blob: f0a75c6523a1613fc873bc80ad3af1381a333ff5 [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 *
Maxime Ripard394c56c2014-09-02 19:25:26 +02006 * This file is dual-licensed: you can use it either under the terms
7 * of the GPL or the X11 license, at your option. Note that this dual
8 * licensing only applies to this file, and not this project as a
9 * whole.
Maxime Ripard4790ecf2013-07-17 10:07:10 +020010 *
Maxime Ripard394c56c2014-09-02 19:25:26 +020011 * a) This library is free software; you can redistribute it and/or
12 * modify it under the terms of the GNU General Public License as
13 * published by the Free Software Foundation; either version 2 of the
14 * License, or (at your option) any later version.
15 *
16 * This library is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 * GNU General Public License for more details.
20 *
21 * You should have received a copy of the GNU General Public
22 * License along with this library; if not, write to the Free
23 * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,
24 * MA 02110-1301 USA
25 *
26 * Or, alternatively,
27 *
28 * b) Permission is hereby granted, free of charge, to any person
29 * obtaining a copy of this software and associated documentation
30 * files (the "Software"), to deal in the Software without
31 * restriction, including without limitation the rights to use,
32 * copy, modify, merge, publish, distribute, sublicense, and/or
33 * sell copies of the Software, and to permit persons to whom the
34 * Software is furnished to do so, subject to the following
35 * conditions:
36 *
37 * The above copyright notice and this permission notice shall be
38 * included in all copies or substantial portions of the Software.
39 *
40 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
41 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
42 * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
43 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
44 * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
45 * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
46 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
47 * OTHER DEALINGS IN THE SOFTWARE.
Maxime Ripard4790ecf2013-07-17 10:07:10 +020048 */
49
50/include/ "skeleton.dtsi"
51
52/ {
53 interrupt-parent = <&gic>;
54
Emilio Lópeze751cce2013-11-16 15:17:29 -030055 aliases {
Chen-Yu Tsai18428f72014-02-10 18:35:54 +080056 ethernet0 = &gmac;
Maxime Ripard4566b4b2014-01-02 22:05:04 +010057 serial0 = &uart0;
58 serial1 = &uart1;
59 serial2 = &uart2;
60 serial3 = &uart3;
61 serial4 = &uart4;
62 serial5 = &uart5;
63 serial6 = &uart6;
64 serial7 = &uart7;
Emilio Lópeze751cce2013-11-16 15:17:29 -030065 };
66
Maxime Ripard4790ecf2013-07-17 10:07:10 +020067 cpus {
68 #address-cells = <1>;
69 #size-cells = <0>;
70
71 cpu@0 {
72 compatible = "arm,cortex-a7";
73 device_type = "cpu";
74 reg = <0>;
75 };
76
77 cpu@1 {
78 compatible = "arm,cortex-a7";
79 device_type = "cpu";
80 reg = <1>;
81 };
82 };
83
84 memory {
85 reg = <0x40000000 0x80000000>;
86 };
87
Marc Zyngier79027632014-02-18 14:04:44 +000088 timer {
89 compatible = "arm,armv7-timer";
90 interrupts = <1 13 0xf08>,
91 <1 14 0xf08>,
92 <1 11 0xf08>,
93 <1 10 0xf08>;
94 };
95
Maxime Riparde29ea4d2014-04-17 21:54:41 +020096 pmu {
97 compatible = "arm,cortex-a7-pmu", "arm,cortex-a15-pmu";
98 interrupts = <0 120 4>,
99 <0 121 4>;
100 };
101
Maxime Ripard4790ecf2013-07-17 10:07:10 +0200102 clocks {
103 #address-cells = <1>;
104 #size-cells = <1>;
105 ranges;
106
Chen-Yu Tsai06067a22014-02-03 09:51:44 +0800107 osc24M: clk@01c20050 {
Maxime Ripard4790ecf2013-07-17 10:07:10 +0200108 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100109 compatible = "allwinner,sun4i-a10-osc-clk";
Maxime Ripardde7dc932013-07-25 21:12:52 +0200110 reg = <0x01c20050 0x4>;
Maxime Ripard4790ecf2013-07-17 10:07:10 +0200111 clock-frequency = <24000000>;
Chen-Yu Tsai06067a22014-02-03 09:51:44 +0800112 clock-output-names = "osc24M";
Maxime Ripard4790ecf2013-07-17 10:07:10 +0200113 };
114
Chen-Yu Tsai673fac72014-01-01 10:30:47 +0800115 osc32k: clk@0 {
Maxime Ripard4790ecf2013-07-17 10:07:10 +0200116 #clock-cells = <0>;
117 compatible = "fixed-clock";
118 clock-frequency = <32768>;
Chen-Yu Tsai673fac72014-01-01 10:30:47 +0800119 clock-output-names = "osc32k";
Maxime Ripard4790ecf2013-07-17 10:07:10 +0200120 };
Maxime Ripardde7dc932013-07-25 21:12:52 +0200121
Chen-Yu Tsai06067a22014-02-03 09:51:44 +0800122 pll1: clk@01c20000 {
Maxime Ripardde7dc932013-07-25 21:12:52 +0200123 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100124 compatible = "allwinner,sun4i-a10-pll1-clk";
Maxime Ripardde7dc932013-07-25 21:12:52 +0200125 reg = <0x01c20000 0x4>;
126 clocks = <&osc24M>;
Chen-Yu Tsai06067a22014-02-03 09:51:44 +0800127 clock-output-names = "pll1";
Maxime Ripardde7dc932013-07-25 21:12:52 +0200128 };
129
Chen-Yu Tsai06067a22014-02-03 09:51:44 +0800130 pll4: clk@01c20018 {
Maxime Ripardde7dc932013-07-25 21:12:52 +0200131 #clock-cells = <0>;
Emilio López04ebcb52014-03-19 15:19:31 -0300132 compatible = "allwinner,sun7i-a20-pll4-clk";
Emilio Lópezec5589f2013-12-23 00:32:35 -0300133 reg = <0x01c20018 0x4>;
134 clocks = <&osc24M>;
Chen-Yu Tsai06067a22014-02-03 09:51:44 +0800135 clock-output-names = "pll4";
Emilio Lópezec5589f2013-12-23 00:32:35 -0300136 };
137
Chen-Yu Tsai06067a22014-02-03 09:51:44 +0800138 pll5: clk@01c20020 {
Emilio Lópezc3e5e662013-12-23 00:32:38 -0300139 #clock-cells = <1>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100140 compatible = "allwinner,sun4i-a10-pll5-clk";
Emilio Lópezc3e5e662013-12-23 00:32:38 -0300141 reg = <0x01c20020 0x4>;
142 clocks = <&osc24M>;
143 clock-output-names = "pll5_ddr", "pll5_other";
144 };
145
Chen-Yu Tsai06067a22014-02-03 09:51:44 +0800146 pll6: clk@01c20028 {
Emilio Lópezc3e5e662013-12-23 00:32:38 -0300147 #clock-cells = <1>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100148 compatible = "allwinner,sun4i-a10-pll6-clk";
Emilio Lópezc3e5e662013-12-23 00:32:38 -0300149 reg = <0x01c20028 0x4>;
150 clocks = <&osc24M>;
151 clock-output-names = "pll6_sata", "pll6_other", "pll6";
Maxime Ripardde7dc932013-07-25 21:12:52 +0200152 };
153
Emilio López04ebcb52014-03-19 15:19:31 -0300154 pll8: clk@01c20040 {
155 #clock-cells = <0>;
156 compatible = "allwinner,sun7i-a20-pll4-clk";
157 reg = <0x01c20040 0x4>;
158 clocks = <&osc24M>;
159 clock-output-names = "pll8";
160 };
161
Maxime Ripardde7dc932013-07-25 21:12:52 +0200162 cpu: cpu@01c20054 {
163 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100164 compatible = "allwinner,sun4i-a10-cpu-clk";
Maxime Ripardde7dc932013-07-25 21:12:52 +0200165 reg = <0x01c20054 0x4>;
Emilio Lópezc3e5e662013-12-23 00:32:38 -0300166 clocks = <&osc32k>, <&osc24M>, <&pll1>, <&pll6 1>;
Chen-Yu Tsai06067a22014-02-03 09:51:44 +0800167 clock-output-names = "cpu";
Maxime Ripardde7dc932013-07-25 21:12:52 +0200168 };
169
170 axi: axi@01c20054 {
171 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100172 compatible = "allwinner,sun4i-a10-axi-clk";
Maxime Ripardde7dc932013-07-25 21:12:52 +0200173 reg = <0x01c20054 0x4>;
174 clocks = <&cpu>;
Chen-Yu Tsai06067a22014-02-03 09:51:44 +0800175 clock-output-names = "axi";
Maxime Ripardde7dc932013-07-25 21:12:52 +0200176 };
177
178 ahb: ahb@01c20054 {
179 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100180 compatible = "allwinner,sun4i-a10-ahb-clk";
Maxime Ripardde7dc932013-07-25 21:12:52 +0200181 reg = <0x01c20054 0x4>;
182 clocks = <&axi>;
Chen-Yu Tsai06067a22014-02-03 09:51:44 +0800183 clock-output-names = "ahb";
Maxime Ripardde7dc932013-07-25 21:12:52 +0200184 };
185
Chen-Yu Tsai06067a22014-02-03 09:51:44 +0800186 ahb_gates: clk@01c20060 {
Maxime Ripardde7dc932013-07-25 21:12:52 +0200187 #clock-cells = <1>;
188 compatible = "allwinner,sun7i-a20-ahb-gates-clk";
189 reg = <0x01c20060 0x8>;
190 clocks = <&ahb>;
191 clock-output-names = "ahb_usb0", "ahb_ehci0",
192 "ahb_ohci0", "ahb_ehci1", "ahb_ohci1",
193 "ahb_ss", "ahb_dma", "ahb_bist", "ahb_mmc0",
194 "ahb_mmc1", "ahb_mmc2", "ahb_mmc3", "ahb_ms",
195 "ahb_nand", "ahb_sdram", "ahb_ace",
196 "ahb_emac", "ahb_ts", "ahb_spi0", "ahb_spi1",
197 "ahb_spi2", "ahb_spi3", "ahb_sata",
198 "ahb_hstimer", "ahb_ve", "ahb_tvd", "ahb_tve0",
199 "ahb_tve1", "ahb_lcd0", "ahb_lcd1", "ahb_csi0",
200 "ahb_csi1", "ahb_hdmi1", "ahb_hdmi0",
201 "ahb_de_be0", "ahb_de_be1", "ahb_de_fe0",
202 "ahb_de_fe1", "ahb_gmac", "ahb_mp",
203 "ahb_mali";
204 };
205
206 apb0: apb0@01c20054 {
207 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100208 compatible = "allwinner,sun4i-a10-apb0-clk";
Maxime Ripardde7dc932013-07-25 21:12:52 +0200209 reg = <0x01c20054 0x4>;
210 clocks = <&ahb>;
Chen-Yu Tsai06067a22014-02-03 09:51:44 +0800211 clock-output-names = "apb0";
Maxime Ripardde7dc932013-07-25 21:12:52 +0200212 };
213
Chen-Yu Tsai06067a22014-02-03 09:51:44 +0800214 apb0_gates: clk@01c20068 {
Maxime Ripardde7dc932013-07-25 21:12:52 +0200215 #clock-cells = <1>;
216 compatible = "allwinner,sun7i-a20-apb0-gates-clk";
217 reg = <0x01c20068 0x4>;
218 clocks = <&apb0>;
219 clock-output-names = "apb0_codec", "apb0_spdif",
220 "apb0_ac97", "apb0_iis0", "apb0_iis1",
221 "apb0_pio", "apb0_ir0", "apb0_ir1",
222 "apb0_iis2", "apb0_keypad";
223 };
224
225 apb1_mux: apb1_mux@01c20058 {
226 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100227 compatible = "allwinner,sun4i-a10-apb1-mux-clk";
Maxime Ripardde7dc932013-07-25 21:12:52 +0200228 reg = <0x01c20058 0x4>;
Emilio Lópezc3e5e662013-12-23 00:32:38 -0300229 clocks = <&osc24M>, <&pll6 1>, <&osc32k>;
Chen-Yu Tsai06067a22014-02-03 09:51:44 +0800230 clock-output-names = "apb1_mux";
Maxime Ripardde7dc932013-07-25 21:12:52 +0200231 };
232
233 apb1: apb1@01c20058 {
234 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100235 compatible = "allwinner,sun4i-a10-apb1-clk";
Maxime Ripardde7dc932013-07-25 21:12:52 +0200236 reg = <0x01c20058 0x4>;
237 clocks = <&apb1_mux>;
Chen-Yu Tsai06067a22014-02-03 09:51:44 +0800238 clock-output-names = "apb1";
Maxime Ripardde7dc932013-07-25 21:12:52 +0200239 };
240
Chen-Yu Tsai06067a22014-02-03 09:51:44 +0800241 apb1_gates: clk@01c2006c {
Maxime Ripardde7dc932013-07-25 21:12:52 +0200242 #clock-cells = <1>;
243 compatible = "allwinner,sun7i-a20-apb1-gates-clk";
244 reg = <0x01c2006c 0x4>;
245 clocks = <&apb1>;
246 clock-output-names = "apb1_i2c0", "apb1_i2c1",
247 "apb1_i2c2", "apb1_i2c3", "apb1_can",
248 "apb1_scr", "apb1_ps20", "apb1_ps21",
249 "apb1_i2c4", "apb1_uart0", "apb1_uart1",
250 "apb1_uart2", "apb1_uart3", "apb1_uart4",
251 "apb1_uart5", "apb1_uart6", "apb1_uart7";
252 };
Emilio López1c92b952013-12-23 00:32:43 -0300253
254 nand_clk: clk@01c20080 {
255 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100256 compatible = "allwinner,sun4i-a10-mod0-clk";
Emilio López1c92b952013-12-23 00:32:43 -0300257 reg = <0x01c20080 0x4>;
258 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
259 clock-output-names = "nand";
260 };
261
262 ms_clk: clk@01c20084 {
263 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100264 compatible = "allwinner,sun4i-a10-mod0-clk";
Emilio López1c92b952013-12-23 00:32:43 -0300265 reg = <0x01c20084 0x4>;
266 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
267 clock-output-names = "ms";
268 };
269
270 mmc0_clk: clk@01c20088 {
271 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100272 compatible = "allwinner,sun4i-a10-mod0-clk";
Emilio López1c92b952013-12-23 00:32:43 -0300273 reg = <0x01c20088 0x4>;
274 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
275 clock-output-names = "mmc0";
276 };
277
278 mmc1_clk: clk@01c2008c {
279 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100280 compatible = "allwinner,sun4i-a10-mod0-clk";
Emilio López1c92b952013-12-23 00:32:43 -0300281 reg = <0x01c2008c 0x4>;
282 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
283 clock-output-names = "mmc1";
284 };
285
286 mmc2_clk: clk@01c20090 {
287 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100288 compatible = "allwinner,sun4i-a10-mod0-clk";
Emilio López1c92b952013-12-23 00:32:43 -0300289 reg = <0x01c20090 0x4>;
290 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
291 clock-output-names = "mmc2";
292 };
293
294 mmc3_clk: clk@01c20094 {
295 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100296 compatible = "allwinner,sun4i-a10-mod0-clk";
Emilio López1c92b952013-12-23 00:32:43 -0300297 reg = <0x01c20094 0x4>;
298 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
299 clock-output-names = "mmc3";
300 };
301
302 ts_clk: clk@01c20098 {
303 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100304 compatible = "allwinner,sun4i-a10-mod0-clk";
Emilio López1c92b952013-12-23 00:32:43 -0300305 reg = <0x01c20098 0x4>;
306 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
307 clock-output-names = "ts";
308 };
309
310 ss_clk: clk@01c2009c {
311 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100312 compatible = "allwinner,sun4i-a10-mod0-clk";
Emilio López1c92b952013-12-23 00:32:43 -0300313 reg = <0x01c2009c 0x4>;
314 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
315 clock-output-names = "ss";
316 };
317
318 spi0_clk: clk@01c200a0 {
319 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100320 compatible = "allwinner,sun4i-a10-mod0-clk";
Emilio López1c92b952013-12-23 00:32:43 -0300321 reg = <0x01c200a0 0x4>;
322 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
323 clock-output-names = "spi0";
324 };
325
326 spi1_clk: clk@01c200a4 {
327 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100328 compatible = "allwinner,sun4i-a10-mod0-clk";
Emilio López1c92b952013-12-23 00:32:43 -0300329 reg = <0x01c200a4 0x4>;
330 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
331 clock-output-names = "spi1";
332 };
333
334 spi2_clk: clk@01c200a8 {
335 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100336 compatible = "allwinner,sun4i-a10-mod0-clk";
Emilio López1c92b952013-12-23 00:32:43 -0300337 reg = <0x01c200a8 0x4>;
338 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
339 clock-output-names = "spi2";
340 };
341
342 pata_clk: clk@01c200ac {
343 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100344 compatible = "allwinner,sun4i-a10-mod0-clk";
Emilio López1c92b952013-12-23 00:32:43 -0300345 reg = <0x01c200ac 0x4>;
346 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
347 clock-output-names = "pata";
348 };
349
350 ir0_clk: clk@01c200b0 {
351 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100352 compatible = "allwinner,sun4i-a10-mod0-clk";
Emilio López1c92b952013-12-23 00:32:43 -0300353 reg = <0x01c200b0 0x4>;
354 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
355 clock-output-names = "ir0";
356 };
357
358 ir1_clk: clk@01c200b4 {
359 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100360 compatible = "allwinner,sun4i-a10-mod0-clk";
Emilio López1c92b952013-12-23 00:32:43 -0300361 reg = <0x01c200b4 0x4>;
362 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
363 clock-output-names = "ir1";
364 };
365
Roman Byshko434e41b2014-02-07 16:21:53 +0100366 usb_clk: clk@01c200cc {
367 #clock-cells = <1>;
368 #reset-cells = <1>;
369 compatible = "allwinner,sun4i-a10-usb-clk";
370 reg = <0x01c200cc 0x4>;
371 clocks = <&pll6 1>;
372 clock-output-names = "usb_ohci0", "usb_ohci1", "usb_phy";
373 };
374
Emilio López1c92b952013-12-23 00:32:43 -0300375 spi3_clk: clk@01c200d4 {
376 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100377 compatible = "allwinner,sun4i-a10-mod0-clk";
Emilio López1c92b952013-12-23 00:32:43 -0300378 reg = <0x01c200d4 0x4>;
379 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
380 clock-output-names = "spi3";
381 };
Emilio López118c07a2013-12-23 00:32:44 -0300382
383 mbus_clk: clk@01c2015c {
384 #clock-cells = <0>;
Maxime Ripard7868c5e2014-07-16 23:45:48 +0200385 compatible = "allwinner,sun5i-a13-mbus-clk";
Emilio López118c07a2013-12-23 00:32:44 -0300386 reg = <0x01c2015c 0x4>;
387 clocks = <&osc24M>, <&pll6 2>, <&pll5 1>;
388 clock-output-names = "mbus";
389 };
Chen-Yu Tsai0aff0372014-01-01 10:30:48 +0800390
391 /*
Chen-Yu Tsaidaed5a82014-02-10 18:35:48 +0800392 * The following two are dummy clocks, placeholders used in the gmac_tx
393 * clock. The gmac driver will choose one parent depending on the PHY
394 * interface mode, using clk_set_rate auto-reparenting.
395 * The actual TX clock rate is not controlled by the gmac_tx clock.
396 */
397 mii_phy_tx_clk: clk@2 {
398 #clock-cells = <0>;
399 compatible = "fixed-clock";
400 clock-frequency = <25000000>;
401 clock-output-names = "mii_phy_tx";
402 };
403
404 gmac_int_tx_clk: clk@3 {
405 #clock-cells = <0>;
406 compatible = "fixed-clock";
407 clock-frequency = <125000000>;
408 clock-output-names = "gmac_int_tx";
409 };
410
411 gmac_tx_clk: clk@01c20164 {
412 #clock-cells = <0>;
413 compatible = "allwinner,sun7i-a20-gmac-clk";
414 reg = <0x01c20164 0x4>;
415 clocks = <&mii_phy_tx_clk>, <&gmac_int_tx_clk>;
416 clock-output-names = "gmac_tx";
417 };
418
419 /*
Chen-Yu Tsai0aff0372014-01-01 10:30:48 +0800420 * Dummy clock used by output clocks
421 */
422 osc24M_32k: clk@1 {
423 #clock-cells = <0>;
424 compatible = "fixed-factor-clock";
425 clock-div = <750>;
426 clock-mult = <1>;
427 clocks = <&osc24M>;
428 clock-output-names = "osc24M_32k";
429 };
430
431 clk_out_a: clk@01c201f0 {
432 #clock-cells = <0>;
433 compatible = "allwinner,sun7i-a20-out-clk";
434 reg = <0x01c201f0 0x4>;
435 clocks = <&osc24M_32k>, <&osc32k>, <&osc24M>;
436 clock-output-names = "clk_out_a";
437 };
438
439 clk_out_b: clk@01c201f4 {
440 #clock-cells = <0>;
441 compatible = "allwinner,sun7i-a20-out-clk";
442 reg = <0x01c201f4 0x4>;
443 clocks = <&osc24M_32k>, <&osc32k>, <&osc24M>;
444 clock-output-names = "clk_out_b";
445 };
Maxime Ripard4790ecf2013-07-17 10:07:10 +0200446 };
447
448 soc@01c00000 {
449 compatible = "simple-bus";
450 #address-cells = <1>;
451 #size-cells = <1>;
452 ranges;
453
Carlo Caione8ff973a2014-03-19 20:21:18 +0100454 nmi_intc: interrupt-controller@01c00030 {
455 compatible = "allwinner,sun7i-a20-sc-nmi";
456 interrupt-controller;
457 #interrupt-cells = <2>;
458 reg = <0x01c00030 0x0c>;
459 interrupts = <0 0 4>;
460 };
461
Emilio López316e0b02014-08-04 17:09:59 -0300462 dma: dma-controller@01c02000 {
463 compatible = "allwinner,sun4i-a10-dma";
464 reg = <0x01c02000 0x1000>;
465 interrupts = <0 27 4>;
466 clocks = <&ahb_gates 6>;
467 #dma-cells = <2>;
468 };
469
Maxime Ripard36ab3e72014-02-22 22:35:54 +0100470 spi0: spi@01c05000 {
471 compatible = "allwinner,sun4i-a10-spi";
472 reg = <0x01c05000 0x1000>;
473 interrupts = <0 10 4>;
474 clocks = <&ahb_gates 20>, <&spi0_clk>;
475 clock-names = "ahb", "mod";
Emilio Lópezffec7212014-08-04 17:10:02 -0300476 dmas = <&dma 1 27>, <&dma 1 26>;
477 dma-names = "rx", "tx";
Maxime Ripard36ab3e72014-02-22 22:35:54 +0100478 status = "disabled";
479 #address-cells = <1>;
480 #size-cells = <0>;
481 };
482
483 spi1: spi@01c06000 {
484 compatible = "allwinner,sun4i-a10-spi";
485 reg = <0x01c06000 0x1000>;
486 interrupts = <0 11 4>;
487 clocks = <&ahb_gates 21>, <&spi1_clk>;
488 clock-names = "ahb", "mod";
Emilio Lópezffec7212014-08-04 17:10:02 -0300489 dmas = <&dma 1 9>, <&dma 1 8>;
490 dma-names = "rx", "tx";
Maxime Ripard36ab3e72014-02-22 22:35:54 +0100491 status = "disabled";
492 #address-cells = <1>;
493 #size-cells = <0>;
494 };
495
Maxime Ripard2e804d02013-09-11 11:10:06 +0200496 emac: ethernet@01c0b000 {
Maxime Ripard1c70e092014-02-02 14:49:13 +0100497 compatible = "allwinner,sun4i-a10-emac";
Maxime Ripard2e804d02013-09-11 11:10:06 +0200498 reg = <0x01c0b000 0x1000>;
Maxime Ripard378d0ae2013-12-10 19:37:21 +0100499 interrupts = <0 55 4>;
Maxime Ripard2e804d02013-09-11 11:10:06 +0200500 clocks = <&ahb_gates 17>;
501 status = "disabled";
502 };
503
504 mdio@01c0b080 {
Maxime Ripard1c70e092014-02-02 14:49:13 +0100505 compatible = "allwinner,sun4i-a10-mdio";
Maxime Ripard2e804d02013-09-11 11:10:06 +0200506 reg = <0x01c0b080 0x14>;
507 status = "disabled";
508 #address-cells = <1>;
509 #size-cells = <0>;
510 };
511
Hans de Goededd29ce52014-05-02 17:57:26 +0200512 mmc0: mmc@01c0f000 {
513 compatible = "allwinner,sun5i-a13-mmc";
514 reg = <0x01c0f000 0x1000>;
515 clocks = <&ahb_gates 8>, <&mmc0_clk>;
516 clock-names = "ahb", "mmc";
517 interrupts = <0 32 4>;
518 status = "disabled";
519 };
520
521 mmc1: mmc@01c10000 {
522 compatible = "allwinner,sun5i-a13-mmc";
523 reg = <0x01c10000 0x1000>;
524 clocks = <&ahb_gates 9>, <&mmc1_clk>;
525 clock-names = "ahb", "mmc";
526 interrupts = <0 33 4>;
527 status = "disabled";
528 };
529
530 mmc2: mmc@01c11000 {
531 compatible = "allwinner,sun5i-a13-mmc";
532 reg = <0x01c11000 0x1000>;
533 clocks = <&ahb_gates 10>, <&mmc2_clk>;
534 clock-names = "ahb", "mmc";
535 interrupts = <0 34 4>;
536 status = "disabled";
537 };
538
539 mmc3: mmc@01c12000 {
540 compatible = "allwinner,sun5i-a13-mmc";
541 reg = <0x01c12000 0x1000>;
542 clocks = <&ahb_gates 11>, <&mmc3_clk>;
543 clock-names = "ahb", "mmc";
544 interrupts = <0 35 4>;
545 status = "disabled";
546 };
547
Roman Byshko9debd0a2014-03-01 20:26:25 +0100548 usbphy: phy@01c13400 {
549 #phy-cells = <1>;
550 compatible = "allwinner,sun7i-a20-usb-phy";
551 reg = <0x01c13400 0x10 0x01c14800 0x4 0x01c1c800 0x4>;
552 reg-names = "phy_ctrl", "pmu1", "pmu2";
553 clocks = <&usb_clk 8>;
554 clock-names = "usb_phy";
555 resets = <&usb_clk 1>, <&usb_clk 2>;
556 reset-names = "usb1_reset", "usb2_reset";
557 status = "disabled";
558 };
559
560 ehci0: usb@01c14000 {
561 compatible = "allwinner,sun7i-a20-ehci", "generic-ehci";
562 reg = <0x01c14000 0x100>;
563 interrupts = <0 39 4>;
564 clocks = <&ahb_gates 1>;
565 phys = <&usbphy 1>;
566 phy-names = "usb";
567 status = "disabled";
568 };
569
570 ohci0: usb@01c14400 {
571 compatible = "allwinner,sun7i-a20-ohci", "generic-ohci";
572 reg = <0x01c14400 0x100>;
573 interrupts = <0 64 4>;
574 clocks = <&usb_clk 6>, <&ahb_gates 2>;
575 phys = <&usbphy 1>;
576 phy-names = "usb";
577 status = "disabled";
578 };
579
Maxime Ripard36ab3e72014-02-22 22:35:54 +0100580 spi2: spi@01c17000 {
581 compatible = "allwinner,sun4i-a10-spi";
582 reg = <0x01c17000 0x1000>;
583 interrupts = <0 12 4>;
584 clocks = <&ahb_gates 22>, <&spi2_clk>;
585 clock-names = "ahb", "mod";
Emilio Lópezffec7212014-08-04 17:10:02 -0300586 dmas = <&dma 1 29>, <&dma 1 28>;
587 dma-names = "rx", "tx";
Maxime Ripard36ab3e72014-02-22 22:35:54 +0100588 status = "disabled";
589 #address-cells = <1>;
590 #size-cells = <0>;
591 };
592
Hans de Goede902febf2014-03-01 20:26:22 +0100593 ahci: sata@01c18000 {
594 compatible = "allwinner,sun4i-a10-ahci";
595 reg = <0x01c18000 0x1000>;
596 interrupts = <0 56 4>;
597 clocks = <&pll6 0>, <&ahb_gates 25>;
598 status = "disabled";
599 };
600
Roman Byshko9debd0a2014-03-01 20:26:25 +0100601 ehci1: usb@01c1c000 {
602 compatible = "allwinner,sun7i-a20-ehci", "generic-ehci";
603 reg = <0x01c1c000 0x100>;
604 interrupts = <0 40 4>;
605 clocks = <&ahb_gates 3>;
606 phys = <&usbphy 2>;
607 phy-names = "usb";
608 status = "disabled";
609 };
610
611 ohci1: usb@01c1c400 {
612 compatible = "allwinner,sun7i-a20-ohci", "generic-ohci";
613 reg = <0x01c1c400 0x100>;
614 interrupts = <0 65 4>;
615 clocks = <&usb_clk 7>, <&ahb_gates 4>;
616 phys = <&usbphy 2>;
617 phy-names = "usb";
618 status = "disabled";
619 };
620
Maxime Ripard36ab3e72014-02-22 22:35:54 +0100621 spi3: spi@01c1f000 {
622 compatible = "allwinner,sun4i-a10-spi";
623 reg = <0x01c1f000 0x1000>;
624 interrupts = <0 50 4>;
625 clocks = <&ahb_gates 23>, <&spi3_clk>;
626 clock-names = "ahb", "mod";
Emilio Lópezffec7212014-08-04 17:10:02 -0300627 dmas = <&dma 1 31>, <&dma 1 30>;
628 dma-names = "rx", "tx";
Maxime Ripard36ab3e72014-02-22 22:35:54 +0100629 status = "disabled";
630 #address-cells = <1>;
631 #size-cells = <0>;
632 };
633
Maxime Ripard17eac032013-07-24 23:46:11 +0200634 pio: pinctrl@01c20800 {
635 compatible = "allwinner,sun7i-a20-pinctrl";
636 reg = <0x01c20800 0x400>;
Maxime Ripard378d0ae2013-12-10 19:37:21 +0100637 interrupts = <0 28 4>;
Maxime Ripardde7dc932013-07-25 21:12:52 +0200638 clocks = <&apb0_gates 5>;
Maxime Ripard17eac032013-07-24 23:46:11 +0200639 gpio-controller;
640 interrupt-controller;
Chen-Yu Tsai7d4ff962014-06-30 23:57:51 +0200641 #interrupt-cells = <2>;
Maxime Ripard17eac032013-07-24 23:46:11 +0200642 #size-cells = <0>;
643 #gpio-cells = <3>;
Maxime Ripard9f229ba2013-07-25 00:09:47 +0200644
Alexandre Bellonifd7898a2014-04-28 18:17:12 +0200645 pwm0_pins_a: pwm0@0 {
646 allwinner,pins = "PB2";
647 allwinner,function = "pwm";
648 allwinner,drive = <0>;
649 allwinner,pull = <0>;
650 };
651
652 pwm1_pins_a: pwm1@0 {
653 allwinner,pins = "PI3";
654 allwinner,function = "pwm";
655 allwinner,drive = <0>;
656 allwinner,pull = <0>;
657 };
658
Maxime Ripard9f229ba2013-07-25 00:09:47 +0200659 uart0_pins_a: uart0@0 {
660 allwinner,pins = "PB22", "PB23";
661 allwinner,function = "uart0";
662 allwinner,drive = <0>;
663 allwinner,pull = <0>;
664 };
665
Chen-Yu Tsai4261ec42014-01-14 22:49:50 +0800666 uart2_pins_a: uart2@0 {
667 allwinner,pins = "PI16", "PI17", "PI18", "PI19";
668 allwinner,function = "uart2";
669 allwinner,drive = <0>;
670 allwinner,pull = <0>;
671 };
672
Wills Wang7b5bace2014-08-19 15:33:00 +0800673 uart3_pins_a: uart3@0 {
674 allwinner,pins = "PG6", "PG7", "PG8", "PG9";
675 allwinner,function = "uart3";
676 allwinner,drive = <0>;
677 allwinner,pull = <0>;
678 };
679
Hans de Goede0510e4b2014-10-01 09:26:05 +0200680 uart3_pins_b: uart3@1 {
681 allwinner,pins = "PH0", "PH1";
682 allwinner,function = "uart3";
683 allwinner,drive = <0>;
684 allwinner,pull = <0>;
685 };
686
Wills Wang7b5bace2014-08-19 15:33:00 +0800687 uart4_pins_a: uart4@0 {
688 allwinner,pins = "PG10", "PG11";
689 allwinner,function = "uart4";
690 allwinner,drive = <0>;
691 allwinner,pull = <0>;
692 };
693
694 uart5_pins_a: uart5@0 {
695 allwinner,pins = "PI10", "PI11";
696 allwinner,function = "uart5";
697 allwinner,drive = <0>;
698 allwinner,pull = <0>;
699 };
700
Maxime Ripard9f229ba2013-07-25 00:09:47 +0200701 uart6_pins_a: uart6@0 {
702 allwinner,pins = "PI12", "PI13";
703 allwinner,function = "uart6";
704 allwinner,drive = <0>;
705 allwinner,pull = <0>;
706 };
707
708 uart7_pins_a: uart7@0 {
709 allwinner,pins = "PI20", "PI21";
710 allwinner,function = "uart7";
711 allwinner,drive = <0>;
712 allwinner,pull = <0>;
713 };
Maxime Ripard756084c2013-09-11 11:10:07 +0200714
Maxime Riparde5496a32013-08-31 23:08:49 +0200715 i2c0_pins_a: i2c0@0 {
716 allwinner,pins = "PB0", "PB1";
717 allwinner,function = "i2c0";
718 allwinner,drive = <0>;
719 allwinner,pull = <0>;
720 };
721
722 i2c1_pins_a: i2c1@0 {
723 allwinner,pins = "PB18", "PB19";
724 allwinner,function = "i2c1";
725 allwinner,drive = <0>;
726 allwinner,pull = <0>;
727 };
728
729 i2c2_pins_a: i2c2@0 {
730 allwinner,pins = "PB20", "PB21";
731 allwinner,function = "i2c2";
732 allwinner,drive = <0>;
733 allwinner,pull = <0>;
734 };
735
Wills Wang7b5bace2014-08-19 15:33:00 +0800736 i2c3_pins_a: i2c3@0 {
737 allwinner,pins = "PI0", "PI1";
738 allwinner,function = "i2c3";
739 allwinner,drive = <0>;
740 allwinner,pull = <0>;
741 };
742
Maxime Ripard756084c2013-09-11 11:10:07 +0200743 emac_pins_a: emac0@0 {
744 allwinner,pins = "PA0", "PA1", "PA2",
745 "PA3", "PA4", "PA5", "PA6",
746 "PA7", "PA8", "PA9", "PA10",
747 "PA11", "PA12", "PA13", "PA14",
748 "PA15", "PA16";
749 allwinner,function = "emac";
750 allwinner,drive = <0>;
751 allwinner,pull = <0>;
752 };
Chen-Yu Tsaif2e07592014-01-01 10:30:50 +0800753
754 clk_out_a_pins_a: clk_out_a@0 {
755 allwinner,pins = "PI12";
756 allwinner,function = "clk_out_a";
757 allwinner,drive = <0>;
758 allwinner,pull = <0>;
759 };
760
761 clk_out_b_pins_a: clk_out_b@0 {
762 allwinner,pins = "PI13";
763 allwinner,function = "clk_out_b";
764 allwinner,drive = <0>;
765 allwinner,pull = <0>;
766 };
Chen-Yu Tsai129ccbc2014-02-10 18:35:50 +0800767
768 gmac_pins_mii_a: gmac_mii@0 {
769 allwinner,pins = "PA0", "PA1", "PA2",
770 "PA3", "PA4", "PA5", "PA6",
771 "PA7", "PA8", "PA9", "PA10",
772 "PA11", "PA12", "PA13", "PA14",
773 "PA15", "PA16";
774 allwinner,function = "gmac";
775 allwinner,drive = <0>;
776 allwinner,pull = <0>;
777 };
778
779 gmac_pins_rgmii_a: gmac_rgmii@0 {
780 allwinner,pins = "PA0", "PA1", "PA2",
781 "PA3", "PA4", "PA5", "PA6",
782 "PA7", "PA8", "PA10",
783 "PA11", "PA12", "PA13",
784 "PA15", "PA16";
785 allwinner,function = "gmac";
786 /*
787 * data lines in RGMII mode use DDR mode
788 * and need a higher signal drive strength
789 */
790 allwinner,drive = <3>;
791 allwinner,pull = <0>;
792 };
Maxime Ripard412f2c62014-02-22 22:35:58 +0100793
Hans de Goede2dad53b2014-10-01 09:26:04 +0200794 spi0_pins_a: spi0@0 {
795 allwinner,pins = "PI10", "PI11", "PI12", "PI13", "PI14";
796 allwinner,function = "spi0";
797 allwinner,drive = <0>;
798 allwinner,pull = <0>;
799 };
800
Maxime Ripard412f2c62014-02-22 22:35:58 +0100801 spi1_pins_a: spi1@0 {
802 allwinner,pins = "PI16", "PI17", "PI18", "PI19";
803 allwinner,function = "spi1";
804 allwinner,drive = <0>;
805 allwinner,pull = <0>;
806 };
807
808 spi2_pins_a: spi2@0 {
809 allwinner,pins = "PC19", "PC20", "PC21", "PC22";
810 allwinner,function = "spi2";
811 allwinner,drive = <0>;
812 allwinner,pull = <0>;
813 };
Hans de Goede11fbedf2014-05-02 17:57:27 +0200814
Wills Wang7b5bace2014-08-19 15:33:00 +0800815 spi2_pins_b: spi2@1 {
816 allwinner,pins = "PB14", "PB15", "PB16", "PB17";
817 allwinner,function = "spi2";
818 allwinner,drive = <0>;
819 allwinner,pull = <0>;
820 };
821
Hans de Goede11fbedf2014-05-02 17:57:27 +0200822 mmc0_pins_a: mmc0@0 {
823 allwinner,pins = "PF0","PF1","PF2","PF3","PF4","PF5";
824 allwinner,function = "mmc0";
825 allwinner,drive = <2>;
826 allwinner,pull = <0>;
827 };
828
829 mmc0_cd_pin_reference_design: mmc0_cd_pin@0 {
830 allwinner,pins = "PH1";
831 allwinner,function = "gpio_in";
832 allwinner,drive = <0>;
833 allwinner,pull = <1>;
834 };
835
Hans de Goede8fa82322014-10-01 16:25:36 +0200836 mmc2_pins_a: mmc2@0 {
837 allwinner,pins = "PC6","PC7","PC8","PC9","PC10","PC11";
838 allwinner,function = "mmc2";
839 allwinner,drive = <2>;
840 allwinner,pull = <1>;
841 };
842
Hans de Goede11fbedf2014-05-02 17:57:27 +0200843 mmc3_pins_a: mmc3@0 {
844 allwinner,pins = "PI4","PI5","PI6","PI7","PI8","PI9";
845 allwinner,function = "mmc3";
846 allwinner,drive = <2>;
847 allwinner,pull = <0>;
848 };
Alexander Bersenev0fc2b7a2014-06-09 00:08:11 +0600849
850 ir0_pins_a: ir0@0 {
851 allwinner,pins = "PB3","PB4";
852 allwinner,function = "ir0";
853 allwinner,drive = <0>;
854 allwinner,pull = <0>;
855 };
856
857 ir1_pins_a: ir1@0 {
858 allwinner,pins = "PB22","PB23";
859 allwinner,function = "ir1";
860 allwinner,drive = <0>;
861 allwinner,pull = <0>;
862 };
Maxime Ripard17eac032013-07-24 23:46:11 +0200863 };
864
Maxime Ripard4790ecf2013-07-17 10:07:10 +0200865 timer@01c20c00 {
Maxime Ripardb4f26442014-02-06 10:40:32 +0100866 compatible = "allwinner,sun4i-a10-timer";
Maxime Ripard4790ecf2013-07-17 10:07:10 +0200867 reg = <0x01c20c00 0x90>;
Maxime Ripard378d0ae2013-12-10 19:37:21 +0100868 interrupts = <0 22 4>,
869 <0 23 4>,
870 <0 24 4>,
871 <0 25 4>,
872 <0 67 4>,
873 <0 68 4>;
Maxime Ripard4790ecf2013-07-17 10:07:10 +0200874 clocks = <&osc24M>;
875 };
876
877 wdt: watchdog@01c20c90 {
Maxime Ripardca5d04d2014-02-07 22:29:26 +0100878 compatible = "allwinner,sun4i-a10-wdt";
Maxime Ripard4790ecf2013-07-17 10:07:10 +0200879 reg = <0x01c20c90 0x10>;
880 };
881
Carlo Caioneb5d905c2013-10-16 20:30:26 +0200882 rtc: rtc@01c20d00 {
883 compatible = "allwinner,sun7i-a20-rtc";
884 reg = <0x01c20d00 0x20>;
Maxime Ripard2f418982014-02-01 16:46:16 +0100885 interrupts = <0 24 4>;
Carlo Caioneb5d905c2013-10-16 20:30:26 +0200886 };
887
Alexandre Belloni8ec40c22014-04-28 18:17:13 +0200888 pwm: pwm@01c20e00 {
889 compatible = "allwinner,sun7i-a20-pwm";
890 reg = <0x01c20e00 0xc>;
891 clocks = <&osc24M>;
892 #pwm-cells = <3>;
893 status = "disabled";
894 };
895
Alexander Bersenevc1a0ee32014-06-21 17:04:05 +0600896 ir0: ir@01c21800 {
Hans de Goede1715a382014-06-30 23:57:54 +0200897 compatible = "allwinner,sun4i-a10-ir";
Alexander Bersenevc1a0ee32014-06-21 17:04:05 +0600898 clocks = <&apb0_gates 6>, <&ir0_clk>;
899 clock-names = "apb", "ir";
900 interrupts = <0 5 4>;
901 reg = <0x01c21800 0x40>;
902 status = "disabled";
903 };
904
905 ir1: ir@01c21c00 {
Hans de Goede1715a382014-06-30 23:57:54 +0200906 compatible = "allwinner,sun4i-a10-ir";
Alexander Bersenevc1a0ee32014-06-21 17:04:05 +0600907 clocks = <&apb0_gates 7>, <&ir1_clk>;
908 clock-names = "apb", "ir";
909 interrupts = <0 6 4>;
910 reg = <0x01c21c00 0x40>;
911 status = "disabled";
912 };
913
Oliver Schinagl2bad9692013-09-03 12:33:28 +0200914 sid: eeprom@01c23800 {
915 compatible = "allwinner,sun7i-a20-sid";
916 reg = <0x01c23800 0x200>;
917 };
918
Hans de Goede00f7ed82013-12-31 17:20:52 +0100919 rtp: rtp@01c25000 {
Maxime Ripard40dd8f32014-02-02 14:52:40 +0100920 compatible = "allwinner,sun4i-a10-ts";
Hans de Goede00f7ed82013-12-31 17:20:52 +0100921 reg = <0x01c25000 0x100>;
922 interrupts = <0 29 4>;
923 };
924
Maxime Ripard4790ecf2013-07-17 10:07:10 +0200925 uart0: serial@01c28000 {
926 compatible = "snps,dw-apb-uart";
927 reg = <0x01c28000 0x400>;
Maxime Ripard378d0ae2013-12-10 19:37:21 +0100928 interrupts = <0 1 4>;
Maxime Ripard4790ecf2013-07-17 10:07:10 +0200929 reg-shift = <2>;
930 reg-io-width = <4>;
Maxime Ripardde7dc932013-07-25 21:12:52 +0200931 clocks = <&apb1_gates 16>;
Maxime Ripard4790ecf2013-07-17 10:07:10 +0200932 status = "disabled";
933 };
934
935 uart1: serial@01c28400 {
936 compatible = "snps,dw-apb-uart";
937 reg = <0x01c28400 0x400>;
Maxime Ripard378d0ae2013-12-10 19:37:21 +0100938 interrupts = <0 2 4>;
Maxime Ripard4790ecf2013-07-17 10:07:10 +0200939 reg-shift = <2>;
940 reg-io-width = <4>;
Maxime Ripardde7dc932013-07-25 21:12:52 +0200941 clocks = <&apb1_gates 17>;
Maxime Ripard4790ecf2013-07-17 10:07:10 +0200942 status = "disabled";
943 };
944
945 uart2: serial@01c28800 {
946 compatible = "snps,dw-apb-uart";
947 reg = <0x01c28800 0x400>;
Maxime Ripard378d0ae2013-12-10 19:37:21 +0100948 interrupts = <0 3 4>;
Maxime Ripard4790ecf2013-07-17 10:07:10 +0200949 reg-shift = <2>;
950 reg-io-width = <4>;
Maxime Ripardde7dc932013-07-25 21:12:52 +0200951 clocks = <&apb1_gates 18>;
Maxime Ripard4790ecf2013-07-17 10:07:10 +0200952 status = "disabled";
953 };
954
955 uart3: serial@01c28c00 {
956 compatible = "snps,dw-apb-uart";
957 reg = <0x01c28c00 0x400>;
Maxime Ripard378d0ae2013-12-10 19:37:21 +0100958 interrupts = <0 4 4>;
Maxime Ripard4790ecf2013-07-17 10:07:10 +0200959 reg-shift = <2>;
960 reg-io-width = <4>;
Maxime Ripardde7dc932013-07-25 21:12:52 +0200961 clocks = <&apb1_gates 19>;
Maxime Ripard4790ecf2013-07-17 10:07:10 +0200962 status = "disabled";
963 };
964
965 uart4: serial@01c29000 {
966 compatible = "snps,dw-apb-uart";
967 reg = <0x01c29000 0x400>;
Maxime Ripard378d0ae2013-12-10 19:37:21 +0100968 interrupts = <0 17 4>;
Maxime Ripard4790ecf2013-07-17 10:07:10 +0200969 reg-shift = <2>;
970 reg-io-width = <4>;
Maxime Ripardde7dc932013-07-25 21:12:52 +0200971 clocks = <&apb1_gates 20>;
Maxime Ripard4790ecf2013-07-17 10:07:10 +0200972 status = "disabled";
973 };
974
975 uart5: serial@01c29400 {
976 compatible = "snps,dw-apb-uart";
977 reg = <0x01c29400 0x400>;
Maxime Ripard378d0ae2013-12-10 19:37:21 +0100978 interrupts = <0 18 4>;
Maxime Ripard4790ecf2013-07-17 10:07:10 +0200979 reg-shift = <2>;
980 reg-io-width = <4>;
Maxime Ripardde7dc932013-07-25 21:12:52 +0200981 clocks = <&apb1_gates 21>;
Maxime Ripard4790ecf2013-07-17 10:07:10 +0200982 status = "disabled";
983 };
984
985 uart6: serial@01c29800 {
986 compatible = "snps,dw-apb-uart";
987 reg = <0x01c29800 0x400>;
Maxime Ripard378d0ae2013-12-10 19:37:21 +0100988 interrupts = <0 19 4>;
Maxime Ripard4790ecf2013-07-17 10:07:10 +0200989 reg-shift = <2>;
990 reg-io-width = <4>;
Maxime Ripardde7dc932013-07-25 21:12:52 +0200991 clocks = <&apb1_gates 22>;
Maxime Ripard4790ecf2013-07-17 10:07:10 +0200992 status = "disabled";
993 };
994
995 uart7: serial@01c29c00 {
996 compatible = "snps,dw-apb-uart";
997 reg = <0x01c29c00 0x400>;
Maxime Ripard378d0ae2013-12-10 19:37:21 +0100998 interrupts = <0 20 4>;
Maxime Ripard4790ecf2013-07-17 10:07:10 +0200999 reg-shift = <2>;
1000 reg-io-width = <4>;
Maxime Ripardde7dc932013-07-25 21:12:52 +02001001 clocks = <&apb1_gates 23>;
Maxime Ripard4790ecf2013-07-17 10:07:10 +02001002 status = "disabled";
1003 };
1004
Maxime Ripard428abbb2013-08-31 23:07:24 +02001005 i2c0: i2c@01c2ac00 {
Maxime Ripardd2755452014-03-31 14:54:58 +02001006 compatible = "allwinner,sun7i-a20-i2c", "allwinner,sun4i-a10-i2c";
Maxime Ripard428abbb2013-08-31 23:07:24 +02001007 reg = <0x01c2ac00 0x400>;
Maxime Ripard378d0ae2013-12-10 19:37:21 +01001008 interrupts = <0 7 4>;
Maxime Ripard428abbb2013-08-31 23:07:24 +02001009 clocks = <&apb1_gates 0>;
Maxime Ripard428abbb2013-08-31 23:07:24 +02001010 status = "disabled";
Hans de Goeded1412ae2014-04-13 13:41:05 +02001011 #address-cells = <1>;
1012 #size-cells = <0>;
Maxime Ripard428abbb2013-08-31 23:07:24 +02001013 };
1014
1015 i2c1: i2c@01c2b000 {
Maxime Ripardd2755452014-03-31 14:54:58 +02001016 compatible = "allwinner,sun7i-a20-i2c", "allwinner,sun4i-a10-i2c";
Maxime Ripard428abbb2013-08-31 23:07:24 +02001017 reg = <0x01c2b000 0x400>;
Maxime Ripard378d0ae2013-12-10 19:37:21 +01001018 interrupts = <0 8 4>;
Maxime Ripard428abbb2013-08-31 23:07:24 +02001019 clocks = <&apb1_gates 1>;
Maxime Ripard428abbb2013-08-31 23:07:24 +02001020 status = "disabled";
Hans de Goeded1412ae2014-04-13 13:41:05 +02001021 #address-cells = <1>;
1022 #size-cells = <0>;
Maxime Ripard428abbb2013-08-31 23:07:24 +02001023 };
1024
1025 i2c2: i2c@01c2b400 {
Maxime Ripardd2755452014-03-31 14:54:58 +02001026 compatible = "allwinner,sun7i-a20-i2c", "allwinner,sun4i-a10-i2c";
Maxime Ripard428abbb2013-08-31 23:07:24 +02001027 reg = <0x01c2b400 0x400>;
Maxime Ripard378d0ae2013-12-10 19:37:21 +01001028 interrupts = <0 9 4>;
Maxime Ripard428abbb2013-08-31 23:07:24 +02001029 clocks = <&apb1_gates 2>;
Maxime Ripard428abbb2013-08-31 23:07:24 +02001030 status = "disabled";
Hans de Goeded1412ae2014-04-13 13:41:05 +02001031 #address-cells = <1>;
1032 #size-cells = <0>;
Maxime Ripard428abbb2013-08-31 23:07:24 +02001033 };
1034
1035 i2c3: i2c@01c2b800 {
Maxime Ripardd2755452014-03-31 14:54:58 +02001036 compatible = "allwinner,sun7i-a20-i2c", "allwinner,sun4i-a10-i2c";
Maxime Ripard428abbb2013-08-31 23:07:24 +02001037 reg = <0x01c2b800 0x400>;
Maxime Ripard378d0ae2013-12-10 19:37:21 +01001038 interrupts = <0 88 4>;
Maxime Ripard428abbb2013-08-31 23:07:24 +02001039 clocks = <&apb1_gates 3>;
Maxime Ripard428abbb2013-08-31 23:07:24 +02001040 status = "disabled";
Hans de Goeded1412ae2014-04-13 13:41:05 +02001041 #address-cells = <1>;
1042 #size-cells = <0>;
Maxime Ripard428abbb2013-08-31 23:07:24 +02001043 };
1044
Maxime Riparda3867042014-04-18 21:13:08 +02001045 i2c4: i2c@01c2c000 {
Maxime Ripardd2755452014-03-31 14:54:58 +02001046 compatible = "allwinner,sun7i-a20-i2c", "allwinner,sun4i-a10-i2c";
Maxime Riparda3867042014-04-18 21:13:08 +02001047 reg = <0x01c2c000 0x400>;
Maxime Ripard378d0ae2013-12-10 19:37:21 +01001048 interrupts = <0 89 4>;
Maxime Ripard428abbb2013-08-31 23:07:24 +02001049 clocks = <&apb1_gates 15>;
Maxime Ripard428abbb2013-08-31 23:07:24 +02001050 status = "disabled";
Hans de Goeded1412ae2014-04-13 13:41:05 +02001051 #address-cells = <1>;
1052 #size-cells = <0>;
Maxime Ripard428abbb2013-08-31 23:07:24 +02001053 };
1054
Chen-Yu Tsaic40b8d52014-02-10 18:35:49 +08001055 gmac: ethernet@01c50000 {
1056 compatible = "allwinner,sun7i-a20-gmac";
1057 reg = <0x01c50000 0x10000>;
1058 interrupts = <0 85 4>;
1059 interrupt-names = "macirq";
1060 clocks = <&ahb_gates 49>, <&gmac_tx_clk>;
1061 clock-names = "stmmaceth", "allwinner_gmac_tx";
1062 snps,pbl = <2>;
1063 snps,fixed-burst;
1064 snps,force_sf_dma_mode;
1065 status = "disabled";
1066 #address-cells = <1>;
1067 #size-cells = <0>;
1068 };
1069
Maxime Ripard31f8ad32013-11-07 12:01:48 +01001070 hstimer@01c60000 {
1071 compatible = "allwinner,sun7i-a20-hstimer";
1072 reg = <0x01c60000 0x1000>;
Maxime Ripard2f418982014-02-01 16:46:16 +01001073 interrupts = <0 81 4>,
1074 <0 82 4>,
1075 <0 83 4>,
1076 <0 84 4>;
Maxime Ripard31f8ad32013-11-07 12:01:48 +01001077 clocks = <&ahb_gates 28>;
1078 };
1079
Maxime Ripard4790ecf2013-07-17 10:07:10 +02001080 gic: interrupt-controller@01c81000 {
1081 compatible = "arm,cortex-a7-gic", "arm,cortex-a15-gic";
1082 reg = <0x01c81000 0x1000>,
1083 <0x01c82000 0x1000>,
1084 <0x01c84000 0x2000>,
1085 <0x01c86000 0x2000>;
1086 interrupt-controller;
1087 #interrupt-cells = <3>;
1088 interrupts = <1 9 0xf04>;
1089 };
1090 };
1091};