blob: 883cb4873688f2f80ce3036ca2a60f338aa4bb67 [file] [log] [blame]
Maxime Ripardd4da2eb2012-11-14 20:17:04 +01001/*
2 * Copyright 2012 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
Maxime Ripard71455702014-12-16 22:59:54 +010014#include "skeleton.dtsi"
Maxime Ripardd4da2eb2012-11-14 20:17:04 +010015
Chen-Yu Tsai32a5d2d2015-01-12 12:34:06 +080016#include <dt-bindings/thermal/thermal.h>
17
Maxime Ripard1f9f6a72014-12-16 22:59:56 +010018#include <dt-bindings/dma/sun4i-a10.h>
Maxime Ripard092a0c32014-12-16 22:59:57 +010019#include <dt-bindings/pinctrl/sun4i-a10.h>
Maxime Ripardd4da2eb2012-11-14 20:17:04 +010020
21/ {
Maxime Ripard69144e32013-03-13 20:07:37 +010022 interrupt-parent = <&intc>;
23
Hans de Goedefd18c7e2015-01-19 14:05:12 +010024 chosen {
25 #address-cells = <1>;
26 #size-cells = <1>;
27 ranges;
28
29 framebuffer@0 {
30 compatible = "allwinner,simple-framebuffer",
31 "simple-framebuffer";
32 allwinner,pipeline = "de_be0-lcd0";
33 clocks = <&pll5 1>, <&ahb_gates 36>, <&ahb_gates 44>;
34 status = "disabled";
35 };
36 };
37
Maxime Ripard69144e32013-03-13 20:07:37 +010038 cpus {
Arnd Bergmann8b2efa892013-06-10 16:48:36 +020039 #address-cells = <1>;
40 #size-cells = <0>;
Chen-Yu Tsai882facf72015-01-06 10:35:20 +080041
42 cpu0: cpu@0 {
Lorenzo Pieralisi14c44aa2013-04-18 18:41:57 +010043 device_type = "cpu";
Maxime Ripard69144e32013-03-13 20:07:37 +010044 compatible = "arm,cortex-a8";
Lorenzo Pieralisi14c44aa2013-04-18 18:41:57 +010045 reg = <0x0>;
Chen-Yu Tsai882facf72015-01-06 10:35:20 +080046 clocks = <&cpu>;
47 clock-latency = <244144>; /* 8 32k periods */
48 operating-points = <
49 /* kHz uV */
Chen-Yu Tsai882facf72015-01-06 10:35:20 +080050 1008000 1400000
51 912000 1350000
52 864000 1300000
53 624000 1200000
54 576000 1200000
55 432000 1200000
56 >;
57 #cooling-cells = <2>;
58 cooling-min-level = <0>;
Chen-Yu Tsai370a9b52015-03-25 00:53:27 +080059 cooling-max-level = <5>;
Maxime Ripard69144e32013-03-13 20:07:37 +010060 };
61 };
62
Chen-Yu Tsai32a5d2d2015-01-12 12:34:06 +080063 thermal-zones {
64 cpu_thermal {
65 /* milliseconds */
66 polling-delay-passive = <250>;
67 polling-delay = <1000>;
68 thermal-sensors = <&rtp>;
69
70 cooling-maps {
71 map0 {
72 trip = <&cpu_alert0>;
73 cooling-device = <&cpu0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
74 };
75 };
76
77 trips {
78 cpu_alert0: cpu_alert0 {
79 /* milliCelsius */
80 temperature = <850000>;
81 hysteresis = <2000>;
82 type = "passive";
83 };
84
85 cpu_crit: cpu_crit {
86 /* milliCelsius */
87 temperature = <100000>;
88 hysteresis = <2000>;
89 type = "critical";
90 };
91 };
Maxime Ripardd4da2eb2012-11-14 20:17:04 +010092 };
93 };
94
Maxime Ripardd4da2eb2012-11-14 20:17:04 +010095 memory {
96 reg = <0x40000000 0x20000000>;
97 };
Maxime Ripard9e2dcb22013-01-18 22:30:36 +010098
Maxime Ripard69144e32013-03-13 20:07:37 +010099 clocks {
100 #address-cells = <1>;
101 #size-cells = <1>;
102 ranges;
103
104 /*
105 * This is a dummy clock, to be used as placeholder on
106 * other mux clocks when a specific parent clock is not
107 * yet implemented. It should be dropped when the driver
108 * is complete.
109 */
110 dummy: dummy {
111 #clock-cells = <0>;
112 compatible = "fixed-clock";
113 clock-frequency = <0>;
114 };
115
Chen-Yu Tsai3dce8322014-02-03 09:51:42 +0800116 osc24M: clk@01c20050 {
Maxime Ripard69144e32013-03-13 20:07:37 +0100117 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100118 compatible = "allwinner,sun4i-a10-osc-clk";
Maxime Ripard69144e32013-03-13 20:07:37 +0100119 reg = <0x01c20050 0x4>;
Emilio López92fd6e02013-04-09 10:48:04 -0300120 clock-frequency = <24000000>;
Chen-Yu Tsai3dce8322014-02-03 09:51:42 +0800121 clock-output-names = "osc24M";
Maxime Ripard69144e32013-03-13 20:07:37 +0100122 };
123
Chen-Yu Tsai3dce8322014-02-03 09:51:42 +0800124 osc32k: clk@0 {
Maxime Ripard69144e32013-03-13 20:07:37 +0100125 #clock-cells = <0>;
126 compatible = "fixed-clock";
127 clock-frequency = <32768>;
Chen-Yu Tsai3dce8322014-02-03 09:51:42 +0800128 clock-output-names = "osc32k";
Maxime Ripard69144e32013-03-13 20:07:37 +0100129 };
130
Chen-Yu Tsai3dce8322014-02-03 09:51:42 +0800131 pll1: clk@01c20000 {
Maxime Ripard69144e32013-03-13 20:07:37 +0100132 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100133 compatible = "allwinner,sun4i-a10-pll1-clk";
Maxime Ripard69144e32013-03-13 20:07:37 +0100134 reg = <0x01c20000 0x4>;
135 clocks = <&osc24M>;
Chen-Yu Tsai3dce8322014-02-03 09:51:42 +0800136 clock-output-names = "pll1";
Maxime Ripard69144e32013-03-13 20:07:37 +0100137 };
138
Chen-Yu Tsai3dce8322014-02-03 09:51:42 +0800139 pll4: clk@01c20018 {
Emilio Lópezec5589f2013-12-23 00:32:35 -0300140 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100141 compatible = "allwinner,sun4i-a10-pll1-clk";
Emilio Lópezec5589f2013-12-23 00:32:35 -0300142 reg = <0x01c20018 0x4>;
143 clocks = <&osc24M>;
Chen-Yu Tsai3dce8322014-02-03 09:51:42 +0800144 clock-output-names = "pll4";
Emilio Lópezec5589f2013-12-23 00:32:35 -0300145 };
146
Chen-Yu Tsai3dce8322014-02-03 09:51:42 +0800147 pll5: clk@01c20020 {
Emilio Lópezc3e5e662013-12-23 00:32:38 -0300148 #clock-cells = <1>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100149 compatible = "allwinner,sun4i-a10-pll5-clk";
Emilio Lópezc3e5e662013-12-23 00:32:38 -0300150 reg = <0x01c20020 0x4>;
151 clocks = <&osc24M>;
152 clock-output-names = "pll5_ddr", "pll5_other";
153 };
154
Chen-Yu Tsai3dce8322014-02-03 09:51:42 +0800155 pll6: clk@01c20028 {
Emilio Lópezc3e5e662013-12-23 00:32:38 -0300156 #clock-cells = <1>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100157 compatible = "allwinner,sun4i-a10-pll6-clk";
Emilio Lópezc3e5e662013-12-23 00:32:38 -0300158 reg = <0x01c20028 0x4>;
159 clocks = <&osc24M>;
160 clock-output-names = "pll6_sata", "pll6_other", "pll6";
161 };
162
Maxime Ripard69144e32013-03-13 20:07:37 +0100163 /* dummy is 200M */
164 cpu: cpu@01c20054 {
165 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100166 compatible = "allwinner,sun4i-a10-cpu-clk";
Maxime Ripard69144e32013-03-13 20:07:37 +0100167 reg = <0x01c20054 0x4>;
168 clocks = <&osc32k>, <&osc24M>, <&pll1>, <&dummy>;
Chen-Yu Tsai3dce8322014-02-03 09:51:42 +0800169 clock-output-names = "cpu";
Maxime Ripard69144e32013-03-13 20:07:37 +0100170 };
171
172 axi: axi@01c20054 {
173 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100174 compatible = "allwinner,sun4i-a10-axi-clk";
Maxime Ripard69144e32013-03-13 20:07:37 +0100175 reg = <0x01c20054 0x4>;
176 clocks = <&cpu>;
Chen-Yu Tsai3dce8322014-02-03 09:51:42 +0800177 clock-output-names = "axi";
Maxime Ripard69144e32013-03-13 20:07:37 +0100178 };
179
Chen-Yu Tsai3dce8322014-02-03 09:51:42 +0800180 axi_gates: clk@01c2005c {
Maxime Ripard69144e32013-03-13 20:07:37 +0100181 #clock-cells = <1>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100182 compatible = "allwinner,sun4i-a10-axi-gates-clk";
Maxime Ripard69144e32013-03-13 20:07:37 +0100183 reg = <0x01c2005c 0x4>;
184 clocks = <&axi>;
185 clock-output-names = "axi_dram";
186 };
187
188 ahb: ahb@01c20054 {
189 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100190 compatible = "allwinner,sun4i-a10-ahb-clk";
Maxime Ripard69144e32013-03-13 20:07:37 +0100191 reg = <0x01c20054 0x4>;
192 clocks = <&axi>;
Chen-Yu Tsai3dce8322014-02-03 09:51:42 +0800193 clock-output-names = "ahb";
Maxime Ripard69144e32013-03-13 20:07:37 +0100194 };
195
Chen-Yu Tsai3dce8322014-02-03 09:51:42 +0800196 ahb_gates: clk@01c20060 {
Maxime Ripard69144e32013-03-13 20:07:37 +0100197 #clock-cells = <1>;
Maxime Ripard70be4ee62013-04-19 22:14:41 +0200198 compatible = "allwinner,sun5i-a13-ahb-gates-clk";
Maxime Ripard69144e32013-03-13 20:07:37 +0100199 reg = <0x01c20060 0x8>;
200 clocks = <&ahb>;
Maxime Ripard70be4ee62013-04-19 22:14:41 +0200201 clock-output-names = "ahb_usbotg", "ahb_ehci", "ahb_ohci",
202 "ahb_ss", "ahb_dma", "ahb_bist", "ahb_mmc0",
203 "ahb_mmc1", "ahb_mmc2", "ahb_nand", "ahb_sdram",
204 "ahb_spi0", "ahb_spi1", "ahb_spi2", "ahb_stimer",
205 "ahb_ve", "ahb_lcd", "ahb_csi", "ahb_de_be",
206 "ahb_de_fe", "ahb_iep", "ahb_mali400";
Maxime Ripard69144e32013-03-13 20:07:37 +0100207 };
208
209 apb0: apb0@01c20054 {
210 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100211 compatible = "allwinner,sun4i-a10-apb0-clk";
Maxime Ripard69144e32013-03-13 20:07:37 +0100212 reg = <0x01c20054 0x4>;
213 clocks = <&ahb>;
Chen-Yu Tsai3dce8322014-02-03 09:51:42 +0800214 clock-output-names = "apb0";
Maxime Ripard69144e32013-03-13 20:07:37 +0100215 };
216
Chen-Yu Tsai3dce8322014-02-03 09:51:42 +0800217 apb0_gates: clk@01c20068 {
Maxime Ripard69144e32013-03-13 20:07:37 +0100218 #clock-cells = <1>;
Maxime Ripard70be4ee62013-04-19 22:14:41 +0200219 compatible = "allwinner,sun5i-a13-apb0-gates-clk";
Maxime Ripard69144e32013-03-13 20:07:37 +0100220 reg = <0x01c20068 0x4>;
221 clocks = <&apb0>;
Maxime Ripard70be4ee62013-04-19 22:14:41 +0200222 clock-output-names = "apb0_codec", "apb0_pio", "apb0_ir";
Maxime Ripard69144e32013-03-13 20:07:37 +0100223 };
224
Emilio Lópezacbcc0f2014-11-06 11:40:30 +0800225 apb1: clk@01c20058 {
Maxime Ripard69144e32013-03-13 20:07:37 +0100226 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100227 compatible = "allwinner,sun4i-a10-apb1-clk";
Maxime Ripard69144e32013-03-13 20:07:37 +0100228 reg = <0x01c20058 0x4>;
Emilio Lópezacbcc0f2014-11-06 11:40:30 +0800229 clocks = <&osc24M>, <&pll6 1>, <&osc32k>;
Chen-Yu Tsai3dce8322014-02-03 09:51:42 +0800230 clock-output-names = "apb1";
Maxime Ripard69144e32013-03-13 20:07:37 +0100231 };
232
Chen-Yu Tsai3dce8322014-02-03 09:51:42 +0800233 apb1_gates: clk@01c2006c {
Maxime Ripard69144e32013-03-13 20:07:37 +0100234 #clock-cells = <1>;
Maxime Ripard70be4ee62013-04-19 22:14:41 +0200235 compatible = "allwinner,sun5i-a13-apb1-gates-clk";
Maxime Ripard69144e32013-03-13 20:07:37 +0100236 reg = <0x01c2006c 0x4>;
237 clocks = <&apb1>;
238 clock-output-names = "apb1_i2c0", "apb1_i2c1",
Maxime Ripard70be4ee62013-04-19 22:14:41 +0200239 "apb1_i2c2", "apb1_uart1", "apb1_uart3";
Maxime Ripard69144e32013-03-13 20:07:37 +0100240 };
Emilio López8dc36bf2013-12-23 00:32:42 -0300241
242 nand_clk: clk@01c20080 {
243 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100244 compatible = "allwinner,sun4i-a10-mod0-clk";
Emilio López8dc36bf2013-12-23 00:32:42 -0300245 reg = <0x01c20080 0x4>;
246 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
247 clock-output-names = "nand";
248 };
249
250 ms_clk: clk@01c20084 {
251 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100252 compatible = "allwinner,sun4i-a10-mod0-clk";
Emilio López8dc36bf2013-12-23 00:32:42 -0300253 reg = <0x01c20084 0x4>;
254 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
255 clock-output-names = "ms";
256 };
257
258 mmc0_clk: clk@01c20088 {
Maxime Ripardd8c3a392014-07-11 19:39:06 +0200259 #clock-cells = <1>;
260 compatible = "allwinner,sun4i-a10-mmc-clk";
Emilio López8dc36bf2013-12-23 00:32:42 -0300261 reg = <0x01c20088 0x4>;
262 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
Maxime Ripardd8c3a392014-07-11 19:39:06 +0200263 clock-output-names = "mmc0",
264 "mmc0_output",
265 "mmc0_sample";
Emilio López8dc36bf2013-12-23 00:32:42 -0300266 };
267
268 mmc1_clk: clk@01c2008c {
Maxime Ripardd8c3a392014-07-11 19:39:06 +0200269 #clock-cells = <1>;
270 compatible = "allwinner,sun4i-a10-mmc-clk";
Emilio López8dc36bf2013-12-23 00:32:42 -0300271 reg = <0x01c2008c 0x4>;
272 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
Maxime Ripardd8c3a392014-07-11 19:39:06 +0200273 clock-output-names = "mmc1",
274 "mmc1_output",
275 "mmc1_sample";
Emilio López8dc36bf2013-12-23 00:32:42 -0300276 };
277
278 mmc2_clk: clk@01c20090 {
Maxime Ripardd8c3a392014-07-11 19:39:06 +0200279 #clock-cells = <1>;
280 compatible = "allwinner,sun4i-a10-mmc-clk";
Emilio López8dc36bf2013-12-23 00:32:42 -0300281 reg = <0x01c20090 0x4>;
282 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
Maxime Ripardd8c3a392014-07-11 19:39:06 +0200283 clock-output-names = "mmc2",
284 "mmc2_output",
285 "mmc2_sample";
Emilio López8dc36bf2013-12-23 00:32:42 -0300286 };
287
288 ts_clk: clk@01c20098 {
289 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100290 compatible = "allwinner,sun4i-a10-mod0-clk";
Emilio López8dc36bf2013-12-23 00:32:42 -0300291 reg = <0x01c20098 0x4>;
292 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
293 clock-output-names = "ts";
294 };
295
296 ss_clk: clk@01c2009c {
297 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100298 compatible = "allwinner,sun4i-a10-mod0-clk";
Emilio López8dc36bf2013-12-23 00:32:42 -0300299 reg = <0x01c2009c 0x4>;
300 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
301 clock-output-names = "ss";
302 };
303
304 spi0_clk: clk@01c200a0 {
305 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100306 compatible = "allwinner,sun4i-a10-mod0-clk";
Emilio López8dc36bf2013-12-23 00:32:42 -0300307 reg = <0x01c200a0 0x4>;
308 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
309 clock-output-names = "spi0";
310 };
311
312 spi1_clk: clk@01c200a4 {
313 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100314 compatible = "allwinner,sun4i-a10-mod0-clk";
Emilio López8dc36bf2013-12-23 00:32:42 -0300315 reg = <0x01c200a4 0x4>;
316 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
317 clock-output-names = "spi1";
318 };
319
320 spi2_clk: clk@01c200a8 {
321 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100322 compatible = "allwinner,sun4i-a10-mod0-clk";
Emilio López8dc36bf2013-12-23 00:32:42 -0300323 reg = <0x01c200a8 0x4>;
324 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
325 clock-output-names = "spi2";
326 };
327
328 ir0_clk: clk@01c200b0 {
329 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100330 compatible = "allwinner,sun4i-a10-mod0-clk";
Emilio López8dc36bf2013-12-23 00:32:42 -0300331 reg = <0x01c200b0 0x4>;
332 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
333 clock-output-names = "ir0";
334 };
Emilio López118c07a2013-12-23 00:32:44 -0300335
Roman Byshko4c5d72f2014-02-07 16:21:52 +0100336 usb_clk: clk@01c200cc {
337 #clock-cells = <1>;
338 #reset-cells = <1>;
339 compatible = "allwinner,sun5i-a13-usb-clk";
340 reg = <0x01c200cc 0x4>;
341 clocks = <&pll6 1>;
342 clock-output-names = "usb_ohci0", "usb_phy";
343 };
344
Emilio López118c07a2013-12-23 00:32:44 -0300345 mbus_clk: clk@01c2015c {
346 #clock-cells = <0>;
Maxime Ripard7868c5e2014-07-16 23:45:48 +0200347 compatible = "allwinner,sun5i-a13-mbus-clk";
Emilio López118c07a2013-12-23 00:32:44 -0300348 reg = <0x01c2015c 0x4>;
349 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
350 clock-output-names = "mbus";
351 };
Maxime Ripard69144e32013-03-13 20:07:37 +0100352 };
353
Maxime Ripard278fe8b2013-08-03 16:07:36 +0200354 soc@01c00000 {
Maxime Ripard69144e32013-03-13 20:07:37 +0100355 compatible = "simple-bus";
356 #address-cells = <1>;
357 #size-cells = <1>;
Maxime Ripard69144e32013-03-13 20:07:37 +0100358 ranges;
359
Emilio López6a5775e2014-08-04 17:09:58 -0300360 dma: dma-controller@01c02000 {
361 compatible = "allwinner,sun4i-a10-dma";
362 reg = <0x01c02000 0x1000>;
363 interrupts = <27>;
364 clocks = <&ahb_gates 6>;
365 #dma-cells = <2>;
366 };
367
Maxime Ripard8f8658b2014-02-22 22:35:57 +0100368 spi0: spi@01c05000 {
369 compatible = "allwinner,sun4i-a10-spi";
370 reg = <0x01c05000 0x1000>;
371 interrupts = <10>;
372 clocks = <&ahb_gates 20>, <&spi0_clk>;
373 clock-names = "ahb", "mod";
Maxime Ripard1f9f6a72014-12-16 22:59:56 +0100374 dmas = <&dma SUN4I_DMA_DEDICATED 27>,
375 <&dma SUN4I_DMA_DEDICATED 26>;
Emilio Lópezfed4c5c2014-08-04 17:10:01 -0300376 dma-names = "rx", "tx";
Maxime Ripard8f8658b2014-02-22 22:35:57 +0100377 status = "disabled";
378 #address-cells = <1>;
379 #size-cells = <0>;
380 };
381
382 spi1: spi@01c06000 {
383 compatible = "allwinner,sun4i-a10-spi";
384 reg = <0x01c06000 0x1000>;
385 interrupts = <11>;
386 clocks = <&ahb_gates 21>, <&spi1_clk>;
387 clock-names = "ahb", "mod";
Maxime Ripard1f9f6a72014-12-16 22:59:56 +0100388 dmas = <&dma SUN4I_DMA_DEDICATED 9>,
389 <&dma SUN4I_DMA_DEDICATED 8>;
Emilio Lópezfed4c5c2014-08-04 17:10:01 -0300390 dma-names = "rx", "tx";
Maxime Ripard8f8658b2014-02-22 22:35:57 +0100391 status = "disabled";
392 #address-cells = <1>;
393 #size-cells = <0>;
394 };
395
David Lanzendörferd3aed1d2014-05-02 17:57:21 +0200396 mmc0: mmc@01c0f000 {
397 compatible = "allwinner,sun5i-a13-mmc";
398 reg = <0x01c0f000 0x1000>;
Maxime Ripardd8c3a392014-07-11 19:39:06 +0200399 clocks = <&ahb_gates 8>,
400 <&mmc0_clk 0>,
401 <&mmc0_clk 1>,
402 <&mmc0_clk 2>;
403 clock-names = "ahb",
404 "mmc",
405 "output",
406 "sample";
David Lanzendörferd3aed1d2014-05-02 17:57:21 +0200407 interrupts = <32>;
408 status = "disabled";
409 };
410
411 mmc2: mmc@01c11000 {
412 compatible = "allwinner,sun5i-a13-mmc";
413 reg = <0x01c11000 0x1000>;
Maxime Ripardd8c3a392014-07-11 19:39:06 +0200414 clocks = <&ahb_gates 10>,
415 <&mmc2_clk 0>,
416 <&mmc2_clk 1>,
417 <&mmc2_clk 2>;
418 clock-names = "ahb",
419 "mmc",
420 "output",
421 "sample";
David Lanzendörferd3aed1d2014-05-02 17:57:21 +0200422 interrupts = <34>;
423 status = "disabled";
424 };
425
Roman Byshko06c7d522014-03-01 20:26:24 +0100426 usbphy: phy@01c13400 {
427 #phy-cells = <1>;
428 compatible = "allwinner,sun5i-a13-usb-phy";
429 reg = <0x01c13400 0x10 0x01c14800 0x4>;
430 reg-names = "phy_ctrl", "pmu1";
431 clocks = <&usb_clk 8>;
432 clock-names = "usb_phy";
Chen-Yu Tsai4dba4182014-12-18 19:10:35 +0800433 resets = <&usb_clk 0>, <&usb_clk 1>;
434 reset-names = "usb0_reset", "usb1_reset";
Roman Byshko06c7d522014-03-01 20:26:24 +0100435 status = "disabled";
436 };
437
438 ehci0: usb@01c14000 {
439 compatible = "allwinner,sun5i-a13-ehci", "generic-ehci";
440 reg = <0x01c14000 0x100>;
441 interrupts = <39>;
442 clocks = <&ahb_gates 1>;
443 phys = <&usbphy 1>;
444 phy-names = "usb";
445 status = "disabled";
446 };
447
448 ohci0: usb@01c14400 {
449 compatible = "allwinner,sun5i-a13-ohci", "generic-ohci";
450 reg = <0x01c14400 0x100>;
451 interrupts = <40>;
452 clocks = <&usb_clk 6>, <&ahb_gates 2>;
453 phys = <&usbphy 1>;
454 phy-names = "usb";
455 status = "disabled";
456 };
457
Maxime Ripard8f8658b2014-02-22 22:35:57 +0100458 spi2: spi@01c17000 {
459 compatible = "allwinner,sun4i-a10-spi";
460 reg = <0x01c17000 0x1000>;
461 interrupts = <12>;
462 clocks = <&ahb_gates 22>, <&spi2_clk>;
463 clock-names = "ahb", "mod";
Maxime Ripard1f9f6a72014-12-16 22:59:56 +0100464 dmas = <&dma SUN4I_DMA_DEDICATED 29>,
465 <&dma SUN4I_DMA_DEDICATED 28>;
Emilio Lópezfed4c5c2014-08-04 17:10:01 -0300466 dma-names = "rx", "tx";
Maxime Ripard8f8658b2014-02-22 22:35:57 +0100467 status = "disabled";
468 #address-cells = <1>;
469 #size-cells = <0>;
470 };
471
Maxime Ripard69144e32013-03-13 20:07:37 +0100472 intc: interrupt-controller@01c20400 {
Maxime Ripard09504a72014-02-07 21:50:26 +0100473 compatible = "allwinner,sun4i-a10-ic";
Maxime Ripard69144e32013-03-13 20:07:37 +0100474 reg = <0x01c20400 0x400>;
475 interrupt-controller;
476 #interrupt-cells = <1>;
477 };
478
Maxime Riparde10911e2013-01-27 19:26:05 +0100479 pio: pinctrl@01c20800 {
Maxime Ripard9e2dcb22013-01-18 22:30:36 +0100480 compatible = "allwinner,sun5i-a13-pinctrl";
481 reg = <0x01c20800 0x400>;
Maxime Ripard39138bc2013-04-06 15:00:48 +0200482 interrupts = <28>;
Emilio López36386d62013-03-27 18:20:41 -0300483 clocks = <&apb0_gates 5>;
Maxime Riparde10911e2013-01-27 19:26:05 +0100484 gpio-controller;
Maxime Ripard39138bc2013-04-06 15:00:48 +0200485 interrupt-controller;
Chen-Yu Tsai7d4ff962014-06-30 23:57:51 +0200486 #interrupt-cells = <2>;
Maxime Ripard9e2dcb22013-01-18 22:30:36 +0100487 #size-cells = <0>;
Maxime Riparde10911e2013-01-27 19:26:05 +0100488 #gpio-cells = <3>;
Maxime Ripard4348cc62013-01-18 22:30:37 +0100489
490 uart1_pins_a: uart1@0 {
491 allwinner,pins = "PE10", "PE11";
492 allwinner,function = "uart1";
Maxime Ripard092a0c32014-12-16 22:59:57 +0100493 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
494 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Maxime Ripard4348cc62013-01-18 22:30:37 +0100495 };
496
497 uart1_pins_b: uart1@1 {
498 allwinner,pins = "PG3", "PG4";
499 allwinner,function = "uart1";
Maxime Ripard092a0c32014-12-16 22:59:57 +0100500 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
501 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Maxime Ripard4348cc62013-01-18 22:30:37 +0100502 };
Maxime Ripardb4d7c232013-03-10 13:36:02 +0100503
504 i2c0_pins_a: i2c0@0 {
505 allwinner,pins = "PB0", "PB1";
506 allwinner,function = "i2c0";
Maxime Ripard092a0c32014-12-16 22:59:57 +0100507 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
508 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Maxime Ripardb4d7c232013-03-10 13:36:02 +0100509 };
510
511 i2c1_pins_a: i2c1@0 {
512 allwinner,pins = "PB15", "PB16";
513 allwinner,function = "i2c1";
Maxime Ripard092a0c32014-12-16 22:59:57 +0100514 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
515 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Maxime Ripardb4d7c232013-03-10 13:36:02 +0100516 };
517
518 i2c2_pins_a: i2c2@0 {
519 allwinner,pins = "PB17", "PB18";
520 allwinner,function = "i2c2";
Maxime Ripard092a0c32014-12-16 22:59:57 +0100521 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
522 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Maxime Ripardb4d7c232013-03-10 13:36:02 +0100523 };
Hans de Goede6da50f12014-04-26 12:16:12 +0200524
525 mmc0_pins_a: mmc0@0 {
526 allwinner,pins = "PF0","PF1","PF2","PF3","PF4","PF5";
527 allwinner,function = "mmc0";
Maxime Ripard092a0c32014-12-16 22:59:57 +0100528 allwinner,drive = <SUN4I_PINCTRL_30_MA>;
529 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Hans de Goede6da50f12014-04-26 12:16:12 +0200530 };
Maxime Ripard9e2dcb22013-01-18 22:30:36 +0100531 };
Maxime Ripard69144e32013-03-13 20:07:37 +0100532
533 timer@01c20c00 {
Maxime Ripardb4f26442014-02-06 10:40:32 +0100534 compatible = "allwinner,sun4i-a10-timer";
Maxime Ripard69144e32013-03-13 20:07:37 +0100535 reg = <0x01c20c00 0x90>;
536 interrupts = <22>;
537 clocks = <&osc24M>;
538 };
539
540 wdt: watchdog@01c20c90 {
Maxime Ripardca5d04d2014-02-07 22:29:26 +0100541 compatible = "allwinner,sun4i-a10-wdt";
Maxime Ripard69144e32013-03-13 20:07:37 +0100542 reg = <0x01c20c90 0x10>;
543 };
544
Hans de Goedeec011af52014-12-23 11:13:21 +0100545 lradc: lradc@01c22800 {
546 compatible = "allwinner,sun4i-a10-lradc-keys";
547 reg = <0x01c22800 0x100>;
548 interrupts = <31>;
549 status = "disabled";
550 };
551
Oliver Schinagl2bad9692013-09-03 12:33:28 +0200552 sid: eeprom@01c23800 {
Maxime Ripard043d56e2014-02-07 22:20:40 +0100553 compatible = "allwinner,sun4i-a10-sid";
Oliver Schinagl2bad9692013-09-03 12:33:28 +0200554 reg = <0x01c23800 0x10>;
555 };
556
Hans de Goedef65c93a2013-12-31 17:20:51 +0100557 rtp: rtp@01c25000 {
Maxime Ripard40dd8f32014-02-02 14:52:40 +0100558 compatible = "allwinner,sun4i-a10-ts";
Hans de Goedef65c93a2013-12-31 17:20:51 +0100559 reg = <0x01c25000 0x100>;
560 interrupts = <29>;
Chen-Yu Tsai41e7afb2015-01-06 10:35:15 +0800561 #thermal-sensor-cells = <0>;
Hans de Goedef65c93a2013-12-31 17:20:51 +0100562 };
563
Maxime Ripard69144e32013-03-13 20:07:37 +0100564 uart1: serial@01c28400 {
565 compatible = "snps,dw-apb-uart";
566 reg = <0x01c28400 0x400>;
567 interrupts = <2>;
568 reg-shift = <2>;
569 reg-io-width = <4>;
570 clocks = <&apb1_gates 17>;
571 status = "disabled";
572 };
573
574 uart3: serial@01c28c00 {
575 compatible = "snps,dw-apb-uart";
576 reg = <0x01c28c00 0x400>;
577 interrupts = <4>;
578 reg-shift = <2>;
579 reg-io-width = <4>;
580 clocks = <&apb1_gates 19>;
581 status = "disabled";
582 };
Maxime Ripardf1741fd2013-03-10 13:34:36 +0100583
584 i2c0: i2c@01c2ac00 {
Maxime Ripardd2755452014-03-31 14:54:58 +0200585 compatible = "allwinner,sun5i-a13-i2c", "allwinner,sun4i-a10-i2c";
Maxime Ripardf1741fd2013-03-10 13:34:36 +0100586 reg = <0x01c2ac00 0x400>;
587 interrupts = <7>;
588 clocks = <&apb1_gates 0>;
Maxime Ripardf1741fd2013-03-10 13:34:36 +0100589 status = "disabled";
Hans de Goedea4703422014-04-13 13:41:04 +0200590 #address-cells = <1>;
591 #size-cells = <0>;
Maxime Ripardf1741fd2013-03-10 13:34:36 +0100592 };
593
594 i2c1: i2c@01c2b000 {
Maxime Ripardd2755452014-03-31 14:54:58 +0200595 compatible = "allwinner,sun5i-a13-i2c", "allwinner,sun4i-a10-i2c";
Maxime Ripardf1741fd2013-03-10 13:34:36 +0100596 reg = <0x01c2b000 0x400>;
597 interrupts = <8>;
598 clocks = <&apb1_gates 1>;
Maxime Ripardf1741fd2013-03-10 13:34:36 +0100599 status = "disabled";
Hans de Goedea4703422014-04-13 13:41:04 +0200600 #address-cells = <1>;
601 #size-cells = <0>;
Maxime Ripardf1741fd2013-03-10 13:34:36 +0100602 };
603
604 i2c2: i2c@01c2b400 {
Maxime Ripardd2755452014-03-31 14:54:58 +0200605 compatible = "allwinner,sun5i-a13-i2c", "allwinner,sun4i-a10-i2c";
Maxime Ripardf1741fd2013-03-10 13:34:36 +0100606 reg = <0x01c2b400 0x400>;
607 interrupts = <9>;
608 clocks = <&apb1_gates 2>;
Maxime Ripardf1741fd2013-03-10 13:34:36 +0100609 status = "disabled";
Hans de Goedea4703422014-04-13 13:41:04 +0200610 #address-cells = <1>;
611 #size-cells = <0>;
Maxime Ripardf1741fd2013-03-10 13:34:36 +0100612 };
Maxime Ripard44119022013-11-07 12:01:48 +0100613
614 timer@01c60000 {
615 compatible = "allwinner,sun5i-a13-hstimer";
616 reg = <0x01c60000 0x1000>;
617 interrupts = <82>, <83>;
618 clocks = <&ahb_gates 28>;
619 };
Maxime Ripard9e2dcb22013-01-18 22:30:36 +0100620 };
Maxime Ripardd4da2eb2012-11-14 20:17:04 +0100621};