blob: 3733fc1ed4c7cc80b31ab64abbf699ece6c33bc6 [file] [log] [blame]
Maxime Ripardd3ae0782013-06-09 10:40:53 +02001/*
2 * Copyright 2013 Maxime Ripard
3 *
4 * Maxime Ripard <maxime.ripard@free-electrons.com>
5 *
Maxime Ripard1d86b4b2014-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 Ripardd3ae0782013-06-09 10:40:53 +020010 *
Maxime Ripard1d86b4b2014-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 Ripardd3ae0782013-06-09 10:40:53 +020048 */
49
Maxime Ripard71455702014-12-16 22:59:54 +010050#include "skeleton.dtsi"
Maxime Ripardd3ae0782013-06-09 10:40:53 +020051
Maxime Ripard1f9f6a72014-12-16 22:59:56 +010052#include <dt-bindings/dma/sun4i-a10.h>
Maxime Ripard092a0c32014-12-16 22:59:57 +010053#include <dt-bindings/pinctrl/sun4i-a10.h>
Maxime Ripardd3ae0782013-06-09 10:40:53 +020054
55/ {
56 interrupt-parent = <&intc>;
57
Emilio Lópeze751cce2013-11-16 15:17:29 -030058 aliases {
59 ethernet0 = &emac;
60 };
61
Hans de Goeded5018412014-11-14 16:34:35 +010062 chosen {
63 #address-cells = <1>;
64 #size-cells = <1>;
65 ranges;
66
Hans de Goedea9f8cda2014-11-18 12:07:13 +010067 framebuffer@0 {
68 compatible = "allwinner,simple-framebuffer", "simple-framebuffer";
69 allwinner,pipeline = "de_be0-lcd0-hdmi";
Hans de Goede678e75d2014-11-16 17:09:32 +010070 clocks = <&pll5 1>, <&ahb_gates 36>, <&ahb_gates 43>,
71 <&ahb_gates 44>;
Hans de Goeded5018412014-11-14 16:34:35 +010072 status = "disabled";
73 };
Hans de Goedefd18c7e2015-01-19 14:05:12 +010074
75 framebuffer@1 {
76 compatible = "allwinner,simple-framebuffer",
77 "simple-framebuffer";
78 allwinner,pipeline = "de_be0-lcd0";
79 clocks = <&pll5 1>, <&ahb_gates 36>, <&ahb_gates 44>;
80 status = "disabled";
81 };
Hans de Goeded5018412014-11-14 16:34:35 +010082 };
83
Maxime Ripardd3ae0782013-06-09 10:40:53 +020084 cpus {
85 cpu@0 {
86 compatible = "arm,cortex-a8";
87 };
88 };
89
90 memory {
91 reg = <0x40000000 0x20000000>;
92 };
93
94 clocks {
95 #address-cells = <1>;
96 #size-cells = <1>;
97 ranges;
98
99 /*
100 * This is a dummy clock, to be used as placeholder on
101 * other mux clocks when a specific parent clock is not
102 * yet implemented. It should be dropped when the driver
103 * is complete.
104 */
105 dummy: dummy {
106 #clock-cells = <0>;
107 compatible = "fixed-clock";
108 clock-frequency = <0>;
109 };
110
Chen-Yu Tsai3dce8322014-02-03 09:51:42 +0800111 osc24M: clk@01c20050 {
Maxime Ripardd3ae0782013-06-09 10:40:53 +0200112 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100113 compatible = "allwinner,sun4i-a10-osc-clk";
Maxime Ripardd3ae0782013-06-09 10:40:53 +0200114 reg = <0x01c20050 0x4>;
115 clock-frequency = <24000000>;
Chen-Yu Tsai3dce8322014-02-03 09:51:42 +0800116 clock-output-names = "osc24M";
Maxime Ripardd3ae0782013-06-09 10:40:53 +0200117 };
118
Chen-Yu Tsai3dce8322014-02-03 09:51:42 +0800119 osc32k: clk@0 {
Maxime Ripardd3ae0782013-06-09 10:40:53 +0200120 #clock-cells = <0>;
121 compatible = "fixed-clock";
122 clock-frequency = <32768>;
Chen-Yu Tsai3dce8322014-02-03 09:51:42 +0800123 clock-output-names = "osc32k";
Maxime Ripardd3ae0782013-06-09 10:40:53 +0200124 };
125
Chen-Yu Tsai3dce8322014-02-03 09:51:42 +0800126 pll1: clk@01c20000 {
Maxime Ripardd3ae0782013-06-09 10:40:53 +0200127 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100128 compatible = "allwinner,sun4i-a10-pll1-clk";
Maxime Ripardd3ae0782013-06-09 10:40:53 +0200129 reg = <0x01c20000 0x4>;
130 clocks = <&osc24M>;
Chen-Yu Tsai3dce8322014-02-03 09:51:42 +0800131 clock-output-names = "pll1";
Maxime Ripardd3ae0782013-06-09 10:40:53 +0200132 };
133
Chen-Yu Tsai3dce8322014-02-03 09:51:42 +0800134 pll4: clk@01c20018 {
Emilio Lópezec5589f2013-12-23 00:32:35 -0300135 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100136 compatible = "allwinner,sun4i-a10-pll1-clk";
Emilio Lópezec5589f2013-12-23 00:32:35 -0300137 reg = <0x01c20018 0x4>;
138 clocks = <&osc24M>;
Chen-Yu Tsai3dce8322014-02-03 09:51:42 +0800139 clock-output-names = "pll4";
Emilio Lópezec5589f2013-12-23 00:32:35 -0300140 };
141
Chen-Yu Tsai3dce8322014-02-03 09:51:42 +0800142 pll5: clk@01c20020 {
Emilio Lópezc3e5e662013-12-23 00:32:38 -0300143 #clock-cells = <1>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100144 compatible = "allwinner,sun4i-a10-pll5-clk";
Emilio Lópezc3e5e662013-12-23 00:32:38 -0300145 reg = <0x01c20020 0x4>;
146 clocks = <&osc24M>;
147 clock-output-names = "pll5_ddr", "pll5_other";
148 };
149
Chen-Yu Tsai3dce8322014-02-03 09:51:42 +0800150 pll6: clk@01c20028 {
Emilio Lópezc3e5e662013-12-23 00:32:38 -0300151 #clock-cells = <1>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100152 compatible = "allwinner,sun4i-a10-pll6-clk";
Emilio Lópezc3e5e662013-12-23 00:32:38 -0300153 reg = <0x01c20028 0x4>;
154 clocks = <&osc24M>;
155 clock-output-names = "pll6_sata", "pll6_other", "pll6";
156 };
157
Maxime Ripardd3ae0782013-06-09 10:40:53 +0200158 /* dummy is 200M */
159 cpu: cpu@01c20054 {
160 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100161 compatible = "allwinner,sun4i-a10-cpu-clk";
Maxime Ripardd3ae0782013-06-09 10:40:53 +0200162 reg = <0x01c20054 0x4>;
163 clocks = <&osc32k>, <&osc24M>, <&pll1>, <&dummy>;
Chen-Yu Tsai3dce8322014-02-03 09:51:42 +0800164 clock-output-names = "cpu";
Maxime Ripardd3ae0782013-06-09 10:40:53 +0200165 };
166
167 axi: axi@01c20054 {
168 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100169 compatible = "allwinner,sun4i-a10-axi-clk";
Maxime Ripardd3ae0782013-06-09 10:40:53 +0200170 reg = <0x01c20054 0x4>;
171 clocks = <&cpu>;
Chen-Yu Tsai3dce8322014-02-03 09:51:42 +0800172 clock-output-names = "axi";
Maxime Ripardd3ae0782013-06-09 10:40:53 +0200173 };
174
Chen-Yu Tsai3dce8322014-02-03 09:51:42 +0800175 axi_gates: clk@01c2005c {
Maxime Ripardd3ae0782013-06-09 10:40:53 +0200176 #clock-cells = <1>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100177 compatible = "allwinner,sun4i-a10-axi-gates-clk";
Maxime Ripardd3ae0782013-06-09 10:40:53 +0200178 reg = <0x01c2005c 0x4>;
179 clocks = <&axi>;
180 clock-output-names = "axi_dram";
181 };
182
183 ahb: ahb@01c20054 {
184 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100185 compatible = "allwinner,sun4i-a10-ahb-clk";
Maxime Ripardd3ae0782013-06-09 10:40:53 +0200186 reg = <0x01c20054 0x4>;
187 clocks = <&axi>;
Chen-Yu Tsai3dce8322014-02-03 09:51:42 +0800188 clock-output-names = "ahb";
Maxime Ripardd3ae0782013-06-09 10:40:53 +0200189 };
190
Chen-Yu Tsai3dce8322014-02-03 09:51:42 +0800191 ahb_gates: clk@01c20060 {
Maxime Ripardd3ae0782013-06-09 10:40:53 +0200192 #clock-cells = <1>;
Maxime Ripard29bb8052013-07-16 11:28:58 +0200193 compatible = "allwinner,sun5i-a10s-ahb-gates-clk";
Maxime Ripardd3ae0782013-06-09 10:40:53 +0200194 reg = <0x01c20060 0x8>;
195 clocks = <&ahb>;
Maxime Ripard29bb8052013-07-16 11:28:58 +0200196 clock-output-names = "ahb_usbotg", "ahb_ehci", "ahb_ohci",
197 "ahb_ss", "ahb_dma", "ahb_bist", "ahb_mmc0",
198 "ahb_mmc1", "ahb_mmc2", "ahb_nand", "ahb_sdram",
199 "ahb_emac", "ahb_ts", "ahb_spi0", "ahb_spi1",
200 "ahb_spi2", "ahb_gps", "ahb_stimer", "ahb_ve",
201 "ahb_tve", "ahb_lcd", "ahb_csi", "ahb_hdmi",
202 "ahb_de_be", "ahb_de_fe", "ahb_iep", "ahb_mali400";
Maxime Ripardd3ae0782013-06-09 10:40:53 +0200203 };
204
205 apb0: apb0@01c20054 {
206 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100207 compatible = "allwinner,sun4i-a10-apb0-clk";
Maxime Ripardd3ae0782013-06-09 10:40:53 +0200208 reg = <0x01c20054 0x4>;
209 clocks = <&ahb>;
Chen-Yu Tsai3dce8322014-02-03 09:51:42 +0800210 clock-output-names = "apb0";
Maxime Ripardd3ae0782013-06-09 10:40:53 +0200211 };
212
Chen-Yu Tsai3dce8322014-02-03 09:51:42 +0800213 apb0_gates: clk@01c20068 {
Maxime Ripardd3ae0782013-06-09 10:40:53 +0200214 #clock-cells = <1>;
Maxime Ripard29bb8052013-07-16 11:28:58 +0200215 compatible = "allwinner,sun5i-a10s-apb0-gates-clk";
Maxime Ripardd3ae0782013-06-09 10:40:53 +0200216 reg = <0x01c20068 0x4>;
217 clocks = <&apb0>;
Maxime Ripard29bb8052013-07-16 11:28:58 +0200218 clock-output-names = "apb0_codec", "apb0_iis", "apb0_pio",
219 "apb0_ir", "apb0_keypad";
Maxime Ripardd3ae0782013-06-09 10:40:53 +0200220 };
221
Emilio Lópezacbcc0f2014-11-06 11:40:30 +0800222 apb1: clk@01c20058 {
Maxime Ripardd3ae0782013-06-09 10:40:53 +0200223 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100224 compatible = "allwinner,sun4i-a10-apb1-clk";
Maxime Ripardd3ae0782013-06-09 10:40:53 +0200225 reg = <0x01c20058 0x4>;
Emilio Lópezacbcc0f2014-11-06 11:40:30 +0800226 clocks = <&osc24M>, <&pll6 1>, <&osc32k>;
Chen-Yu Tsai3dce8322014-02-03 09:51:42 +0800227 clock-output-names = "apb1";
Maxime Ripardd3ae0782013-06-09 10:40:53 +0200228 };
229
Chen-Yu Tsai3dce8322014-02-03 09:51:42 +0800230 apb1_gates: clk@01c2006c {
Maxime Ripardd3ae0782013-06-09 10:40:53 +0200231 #clock-cells = <1>;
Maxime Ripard29bb8052013-07-16 11:28:58 +0200232 compatible = "allwinner,sun5i-a10s-apb1-gates-clk";
Maxime Ripardd3ae0782013-06-09 10:40:53 +0200233 reg = <0x01c2006c 0x4>;
234 clocks = <&apb1>;
235 clock-output-names = "apb1_i2c0", "apb1_i2c1",
Maxime Ripard29bb8052013-07-16 11:28:58 +0200236 "apb1_i2c2", "apb1_uart0", "apb1_uart1",
237 "apb1_uart2", "apb1_uart3";
Maxime Ripardd3ae0782013-06-09 10:40:53 +0200238 };
Emilio López8dc36bf2013-12-23 00:32:42 -0300239
240 nand_clk: clk@01c20080 {
241 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100242 compatible = "allwinner,sun4i-a10-mod0-clk";
Emilio López8dc36bf2013-12-23 00:32:42 -0300243 reg = <0x01c20080 0x4>;
244 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
245 clock-output-names = "nand";
246 };
247
248 ms_clk: clk@01c20084 {
249 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100250 compatible = "allwinner,sun4i-a10-mod0-clk";
Emilio López8dc36bf2013-12-23 00:32:42 -0300251 reg = <0x01c20084 0x4>;
252 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
253 clock-output-names = "ms";
254 };
255
256 mmc0_clk: clk@01c20088 {
Maxime Ripardd8c3a392014-07-11 19:39:06 +0200257 #clock-cells = <1>;
258 compatible = "allwinner,sun4i-a10-mmc-clk";
Emilio López8dc36bf2013-12-23 00:32:42 -0300259 reg = <0x01c20088 0x4>;
260 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
Maxime Ripardd8c3a392014-07-11 19:39:06 +0200261 clock-output-names = "mmc0",
262 "mmc0_output",
263 "mmc0_sample";
Emilio López8dc36bf2013-12-23 00:32:42 -0300264 };
265
266 mmc1_clk: clk@01c2008c {
Maxime Ripardd8c3a392014-07-11 19:39:06 +0200267 #clock-cells = <1>;
268 compatible = "allwinner,sun4i-a10-mmc-clk";
Emilio López8dc36bf2013-12-23 00:32:42 -0300269 reg = <0x01c2008c 0x4>;
270 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
Maxime Ripardd8c3a392014-07-11 19:39:06 +0200271 clock-output-names = "mmc1",
272 "mmc1_output",
273 "mmc1_sample";
Emilio López8dc36bf2013-12-23 00:32:42 -0300274 };
275
276 mmc2_clk: clk@01c20090 {
Maxime Ripardd8c3a392014-07-11 19:39:06 +0200277 #clock-cells = <1>;
278 compatible = "allwinner,sun4i-a10-mmc-clk";
Emilio López8dc36bf2013-12-23 00:32:42 -0300279 reg = <0x01c20090 0x4>;
280 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
Maxime Ripardd8c3a392014-07-11 19:39:06 +0200281 clock-output-names = "mmc2",
282 "mmc2_output",
283 "mmc2_sample";
Emilio López8dc36bf2013-12-23 00:32:42 -0300284 };
285
286 ts_clk: clk@01c20098 {
287 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100288 compatible = "allwinner,sun4i-a10-mod0-clk";
Emilio López8dc36bf2013-12-23 00:32:42 -0300289 reg = <0x01c20098 0x4>;
290 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
291 clock-output-names = "ts";
292 };
293
294 ss_clk: clk@01c2009c {
295 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100296 compatible = "allwinner,sun4i-a10-mod0-clk";
Emilio López8dc36bf2013-12-23 00:32:42 -0300297 reg = <0x01c2009c 0x4>;
298 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
299 clock-output-names = "ss";
300 };
301
302 spi0_clk: clk@01c200a0 {
303 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100304 compatible = "allwinner,sun4i-a10-mod0-clk";
Emilio López8dc36bf2013-12-23 00:32:42 -0300305 reg = <0x01c200a0 0x4>;
306 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
307 clock-output-names = "spi0";
308 };
309
310 spi1_clk: clk@01c200a4 {
311 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100312 compatible = "allwinner,sun4i-a10-mod0-clk";
Emilio López8dc36bf2013-12-23 00:32:42 -0300313 reg = <0x01c200a4 0x4>;
314 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
315 clock-output-names = "spi1";
316 };
317
318 spi2_clk: clk@01c200a8 {
319 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100320 compatible = "allwinner,sun4i-a10-mod0-clk";
Emilio López8dc36bf2013-12-23 00:32:42 -0300321 reg = <0x01c200a8 0x4>;
322 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
323 clock-output-names = "spi2";
324 };
325
326 ir0_clk: clk@01c200b0 {
327 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100328 compatible = "allwinner,sun4i-a10-mod0-clk";
Emilio López8dc36bf2013-12-23 00:32:42 -0300329 reg = <0x01c200b0 0x4>;
330 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
331 clock-output-names = "ir0";
332 };
Emilio López118c07a2013-12-23 00:32:44 -0300333
Roman Byshko4c5d72f2014-02-07 16:21:52 +0100334 usb_clk: clk@01c200cc {
335 #clock-cells = <1>;
336 #reset-cells = <1>;
337 compatible = "allwinner,sun5i-a13-usb-clk";
338 reg = <0x01c200cc 0x4>;
339 clocks = <&pll6 1>;
340 clock-output-names = "usb_ohci0", "usb_phy";
341 };
342
Emilio López118c07a2013-12-23 00:32:44 -0300343 mbus_clk: clk@01c2015c {
344 #clock-cells = <0>;
Maxime Ripard7868c5e2014-07-16 23:45:48 +0200345 compatible = "allwinner,sun5i-a13-mbus-clk";
Emilio López118c07a2013-12-23 00:32:44 -0300346 reg = <0x01c2015c 0x4>;
347 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
348 clock-output-names = "mbus";
349 };
Maxime Ripardd3ae0782013-06-09 10:40:53 +0200350 };
351
Maxime Ripard9e199292013-08-03 16:07:36 +0200352 soc@01c00000 {
Maxime Ripardd3ae0782013-06-09 10:40:53 +0200353 compatible = "simple-bus";
354 #address-cells = <1>;
355 #size-cells = <1>;
Maxime Ripardd3ae0782013-06-09 10:40:53 +0200356 ranges;
357
Emilio López6a5775e2014-08-04 17:09:58 -0300358 dma: dma-controller@01c02000 {
359 compatible = "allwinner,sun4i-a10-dma";
360 reg = <0x01c02000 0x1000>;
361 interrupts = <27>;
362 clocks = <&ahb_gates 6>;
363 #dma-cells = <2>;
364 };
365
Maxime Ripard8a689562014-02-22 22:35:56 +0100366 spi0: spi@01c05000 {
367 compatible = "allwinner,sun4i-a10-spi";
368 reg = <0x01c05000 0x1000>;
369 interrupts = <10>;
370 clocks = <&ahb_gates 20>, <&spi0_clk>;
371 clock-names = "ahb", "mod";
Maxime Ripard1f9f6a72014-12-16 22:59:56 +0100372 dmas = <&dma SUN4I_DMA_DEDICATED 27>,
373 <&dma SUN4I_DMA_DEDICATED 26>;
Emilio Lópezfed4c5c2014-08-04 17:10:01 -0300374 dma-names = "rx", "tx";
Maxime Ripard8a689562014-02-22 22:35:56 +0100375 status = "disabled";
376 #address-cells = <1>;
377 #size-cells = <0>;
378 };
379
380 spi1: spi@01c06000 {
381 compatible = "allwinner,sun4i-a10-spi";
382 reg = <0x01c06000 0x1000>;
383 interrupts = <11>;
384 clocks = <&ahb_gates 21>, <&spi1_clk>;
385 clock-names = "ahb", "mod";
Maxime Ripard1f9f6a72014-12-16 22:59:56 +0100386 dmas = <&dma SUN4I_DMA_DEDICATED 9>,
387 <&dma SUN4I_DMA_DEDICATED 8>;
Emilio Lópezfed4c5c2014-08-04 17:10:01 -0300388 dma-names = "rx", "tx";
Maxime Ripard8a689562014-02-22 22:35:56 +0100389 status = "disabled";
390 #address-cells = <1>;
391 #size-cells = <0>;
392 };
393
Maxime Ripardd3ae0782013-06-09 10:40:53 +0200394 emac: ethernet@01c0b000 {
Maxime Ripard1c70e092014-02-02 14:49:13 +0100395 compatible = "allwinner,sun4i-a10-emac";
Maxime Ripardd3ae0782013-06-09 10:40:53 +0200396 reg = <0x01c0b000 0x1000>;
397 interrupts = <55>;
398 clocks = <&ahb_gates 17>;
399 status = "disabled";
400 };
401
Aleksei Mamlin92395f52015-01-19 22:35:22 +0300402 mdio: mdio@01c0b080 {
Maxime Ripard1c70e092014-02-02 14:49:13 +0100403 compatible = "allwinner,sun4i-a10-mdio";
Maxime Ripardd3ae0782013-06-09 10:40:53 +0200404 reg = <0x01c0b080 0x14>;
405 status = "disabled";
406 #address-cells = <1>;
407 #size-cells = <0>;
408 };
409
David Lanzendörferd3aed1d2014-05-02 17:57:21 +0200410 mmc0: mmc@01c0f000 {
411 compatible = "allwinner,sun5i-a13-mmc";
412 reg = <0x01c0f000 0x1000>;
Maxime Ripardd8c3a392014-07-11 19:39:06 +0200413 clocks = <&ahb_gates 8>,
414 <&mmc0_clk 0>,
415 <&mmc0_clk 1>,
416 <&mmc0_clk 2>;
417 clock-names = "ahb",
418 "mmc",
419 "output",
420 "sample";
David Lanzendörferd3aed1d2014-05-02 17:57:21 +0200421 interrupts = <32>;
422 status = "disabled";
423 };
424
425 mmc1: mmc@01c10000 {
426 compatible = "allwinner,sun5i-a13-mmc";
427 reg = <0x01c10000 0x1000>;
Maxime Ripardd8c3a392014-07-11 19:39:06 +0200428 clocks = <&ahb_gates 9>,
429 <&mmc1_clk 0>,
430 <&mmc1_clk 1>,
431 <&mmc1_clk 2>;
432 clock-names = "ahb",
433 "mmc",
434 "output",
435 "sample";
David Lanzendörferd3aed1d2014-05-02 17:57:21 +0200436 interrupts = <33>;
437 status = "disabled";
438 };
439
440 mmc2: mmc@01c11000 {
441 compatible = "allwinner,sun5i-a13-mmc";
442 reg = <0x01c11000 0x1000>;
Maxime Ripardd8c3a392014-07-11 19:39:06 +0200443 clocks = <&ahb_gates 10>,
444 <&mmc2_clk 0>,
445 <&mmc2_clk 1>,
446 <&mmc2_clk 2>;
447 clock-names = "ahb",
448 "mmc",
449 "output",
450 "sample";
David Lanzendörferd3aed1d2014-05-02 17:57:21 +0200451 interrupts = <34>;
452 status = "disabled";
453 };
454
Roman Byshko06c7d522014-03-01 20:26:24 +0100455 usbphy: phy@01c13400 {
456 #phy-cells = <1>;
457 compatible = "allwinner,sun5i-a13-usb-phy";
458 reg = <0x01c13400 0x10 0x01c14800 0x4>;
459 reg-names = "phy_ctrl", "pmu1";
460 clocks = <&usb_clk 8>;
461 clock-names = "usb_phy";
Chen-Yu Tsai4dba4182014-12-18 19:10:35 +0800462 resets = <&usb_clk 0>, <&usb_clk 1>;
463 reset-names = "usb0_reset", "usb1_reset";
Roman Byshko06c7d522014-03-01 20:26:24 +0100464 status = "disabled";
465 };
466
467 ehci0: usb@01c14000 {
468 compatible = "allwinner,sun5i-a10s-ehci", "generic-ehci";
469 reg = <0x01c14000 0x100>;
470 interrupts = <39>;
471 clocks = <&ahb_gates 1>;
472 phys = <&usbphy 1>;
473 phy-names = "usb";
474 status = "disabled";
475 };
476
477 ohci0: usb@01c14400 {
478 compatible = "allwinner,sun5i-a10s-ohci", "generic-ohci";
479 reg = <0x01c14400 0x100>;
480 interrupts = <40>;
481 clocks = <&usb_clk 6>, <&ahb_gates 2>;
482 phys = <&usbphy 1>;
483 phy-names = "usb";
484 status = "disabled";
485 };
486
Maxime Ripard8a689562014-02-22 22:35:56 +0100487 spi2: spi@01c17000 {
488 compatible = "allwinner,sun4i-a10-spi";
489 reg = <0x01c17000 0x1000>;
490 interrupts = <12>;
491 clocks = <&ahb_gates 22>, <&spi2_clk>;
492 clock-names = "ahb", "mod";
Maxime Ripard1f9f6a72014-12-16 22:59:56 +0100493 dmas = <&dma SUN4I_DMA_DEDICATED 29>,
494 <&dma SUN4I_DMA_DEDICATED 28>;
Emilio Lópezfed4c5c2014-08-04 17:10:01 -0300495 dma-names = "rx", "tx";
Maxime Ripard8a689562014-02-22 22:35:56 +0100496 status = "disabled";
497 #address-cells = <1>;
498 #size-cells = <0>;
499 };
500
Maxime Ripardd3ae0782013-06-09 10:40:53 +0200501 intc: interrupt-controller@01c20400 {
Maxime Ripard09504a72014-02-07 21:50:26 +0100502 compatible = "allwinner,sun4i-a10-ic";
Maxime Ripardd3ae0782013-06-09 10:40:53 +0200503 reg = <0x01c20400 0x400>;
504 interrupt-controller;
505 #interrupt-cells = <1>;
506 };
507
508 pio: pinctrl@01c20800 {
509 compatible = "allwinner,sun5i-a10s-pinctrl";
510 reg = <0x01c20800 0x400>;
511 interrupts = <28>;
512 clocks = <&apb0_gates 5>;
513 gpio-controller;
514 interrupt-controller;
Chen-Yu Tsai7d4ff962014-06-30 23:57:51 +0200515 #interrupt-cells = <2>;
Maxime Ripardd3ae0782013-06-09 10:40:53 +0200516 #size-cells = <0>;
517 #gpio-cells = <3>;
518
519 uart0_pins_a: uart0@0 {
520 allwinner,pins = "PB19", "PB20";
521 allwinner,function = "uart0";
Maxime Ripard092a0c32014-12-16 22:59:57 +0100522 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
523 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Maxime Ripardd3ae0782013-06-09 10:40:53 +0200524 };
525
526 uart2_pins_a: uart2@0 {
527 allwinner,pins = "PC18", "PC19";
528 allwinner,function = "uart2";
Maxime Ripard092a0c32014-12-16 22:59:57 +0100529 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
530 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Maxime Ripardd3ae0782013-06-09 10:40:53 +0200531 };
532
533 uart3_pins_a: uart3@0 {
534 allwinner,pins = "PG9", "PG10";
535 allwinner,function = "uart3";
Maxime Ripard092a0c32014-12-16 22:59:57 +0100536 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
537 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Maxime Ripardd3ae0782013-06-09 10:40:53 +0200538 };
539
540 emac_pins_a: emac0@0 {
541 allwinner,pins = "PA0", "PA1", "PA2",
542 "PA3", "PA4", "PA5", "PA6",
543 "PA7", "PA8", "PA9", "PA10",
544 "PA11", "PA12", "PA13", "PA14",
545 "PA15", "PA16";
546 allwinner,function = "emac";
Maxime Ripard092a0c32014-12-16 22:59:57 +0100547 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
548 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Maxime Ripardd3ae0782013-06-09 10:40:53 +0200549 };
Emilio López170ab432013-07-07 18:31:56 -0300550
551 i2c0_pins_a: i2c0@0 {
552 allwinner,pins = "PB0", "PB1";
553 allwinner,function = "i2c0";
Maxime Ripard092a0c32014-12-16 22:59:57 +0100554 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
555 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Emilio López170ab432013-07-07 18:31:56 -0300556 };
557
558 i2c1_pins_a: i2c1@0 {
559 allwinner,pins = "PB15", "PB16";
560 allwinner,function = "i2c1";
Maxime Ripard092a0c32014-12-16 22:59:57 +0100561 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
562 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Emilio López170ab432013-07-07 18:31:56 -0300563 };
564
565 i2c2_pins_a: i2c2@0 {
566 allwinner,pins = "PB17", "PB18";
567 allwinner,function = "i2c2";
Maxime Ripard092a0c32014-12-16 22:59:57 +0100568 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
569 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Emilio López170ab432013-07-07 18:31:56 -0300570 };
Hans de Goede6da50f12014-04-26 12:16:12 +0200571
572 mmc0_pins_a: mmc0@0 {
573 allwinner,pins = "PF0","PF1","PF2","PF3","PF4","PF5";
574 allwinner,function = "mmc0";
Maxime Ripard092a0c32014-12-16 22:59:57 +0100575 allwinner,drive = <SUN4I_PINCTRL_30_MA>;
576 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Hans de Goede6da50f12014-04-26 12:16:12 +0200577 };
578
579 mmc1_pins_a: mmc1@0 {
580 allwinner,pins = "PG3","PG4","PG5","PG6","PG7","PG8";
581 allwinner,function = "mmc1";
Maxime Ripard092a0c32014-12-16 22:59:57 +0100582 allwinner,drive = <SUN4I_PINCTRL_30_MA>;
583 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Hans de Goede6da50f12014-04-26 12:16:12 +0200584 };
Maxime Ripardd3ae0782013-06-09 10:40:53 +0200585 };
586
587 timer@01c20c00 {
Maxime Ripardb4f26442014-02-06 10:40:32 +0100588 compatible = "allwinner,sun4i-a10-timer";
Maxime Ripardd3ae0782013-06-09 10:40:53 +0200589 reg = <0x01c20c00 0x90>;
590 interrupts = <22>;
591 clocks = <&osc24M>;
592 };
593
594 wdt: watchdog@01c20c90 {
Maxime Ripardca5d04d2014-02-07 22:29:26 +0100595 compatible = "allwinner,sun4i-a10-wdt";
Maxime Ripardd3ae0782013-06-09 10:40:53 +0200596 reg = <0x01c20c90 0x10>;
597 };
598
Hans de Goedeec011af52014-12-23 11:13:21 +0100599 lradc: lradc@01c22800 {
600 compatible = "allwinner,sun4i-a10-lradc-keys";
601 reg = <0x01c22800 0x100>;
602 interrupts = <31>;
603 status = "disabled";
604 };
605
Oliver Schinagl2bad9692013-09-03 12:33:28 +0200606 sid: eeprom@01c23800 {
Maxime Ripard043d56e2014-02-07 22:20:40 +0100607 compatible = "allwinner,sun4i-a10-sid";
Oliver Schinagl2bad9692013-09-03 12:33:28 +0200608 reg = <0x01c23800 0x10>;
609 };
610
Hans de Goedef65c93a2013-12-31 17:20:51 +0100611 rtp: rtp@01c25000 {
Maxime Ripard40dd8f32014-02-02 14:52:40 +0100612 compatible = "allwinner,sun4i-a10-ts";
Hans de Goedef65c93a2013-12-31 17:20:51 +0100613 reg = <0x01c25000 0x100>;
614 interrupts = <29>;
Chen-Yu Tsai41e7afb2015-01-06 10:35:15 +0800615 #thermal-sensor-cells = <0>;
Hans de Goedef65c93a2013-12-31 17:20:51 +0100616 };
617
Maxime Ripardd3ae0782013-06-09 10:40:53 +0200618 uart0: serial@01c28000 {
619 compatible = "snps,dw-apb-uart";
620 reg = <0x01c28000 0x400>;
621 interrupts = <1>;
622 reg-shift = <2>;
623 reg-io-width = <4>;
624 clocks = <&apb1_gates 16>;
625 status = "disabled";
626 };
627
628 uart1: serial@01c28400 {
629 compatible = "snps,dw-apb-uart";
630 reg = <0x01c28400 0x400>;
631 interrupts = <2>;
632 reg-shift = <2>;
633 reg-io-width = <4>;
634 clocks = <&apb1_gates 17>;
635 status = "disabled";
636 };
637
638 uart2: serial@01c28800 {
639 compatible = "snps,dw-apb-uart";
640 reg = <0x01c28800 0x400>;
641 interrupts = <3>;
642 reg-shift = <2>;
643 reg-io-width = <4>;
644 clocks = <&apb1_gates 18>;
645 status = "disabled";
646 };
647
648 uart3: serial@01c28c00 {
649 compatible = "snps,dw-apb-uart";
650 reg = <0x01c28c00 0x400>;
651 interrupts = <4>;
652 reg-shift = <2>;
653 reg-io-width = <4>;
654 clocks = <&apb1_gates 19>;
655 status = "disabled";
656 };
Emilio Lópezca3d4ed2013-07-07 18:31:57 -0300657
658 i2c0: i2c@01c2ac00 {
659 #address-cells = <1>;
660 #size-cells = <0>;
Maxime Ripardd2755452014-03-31 14:54:58 +0200661 compatible = "allwinner,sun5i-a10s-i2c", "allwinner,sun4i-a10-i2c";
Emilio Lópezca3d4ed2013-07-07 18:31:57 -0300662 reg = <0x01c2ac00 0x400>;
663 interrupts = <7>;
664 clocks = <&apb1_gates 0>;
Emilio Lópezca3d4ed2013-07-07 18:31:57 -0300665 status = "disabled";
666 };
667
668 i2c1: i2c@01c2b000 {
669 #address-cells = <1>;
670 #size-cells = <0>;
Maxime Ripardd2755452014-03-31 14:54:58 +0200671 compatible = "allwinner,sun5i-a10s-i2c", "allwinner,sun4i-a10-i2c";
Emilio Lópezca3d4ed2013-07-07 18:31:57 -0300672 reg = <0x01c2b000 0x400>;
673 interrupts = <8>;
674 clocks = <&apb1_gates 1>;
Emilio Lópezca3d4ed2013-07-07 18:31:57 -0300675 status = "disabled";
676 };
677
678 i2c2: i2c@01c2b400 {
679 #address-cells = <1>;
680 #size-cells = <0>;
Maxime Ripardd2755452014-03-31 14:54:58 +0200681 compatible = "allwinner,sun5i-a10s-i2c", "allwinner,sun4i-a10-i2c";
Emilio Lópezca3d4ed2013-07-07 18:31:57 -0300682 reg = <0x01c2b400 0x400>;
683 interrupts = <9>;
684 clocks = <&apb1_gates 2>;
Emilio Lópezca3d4ed2013-07-07 18:31:57 -0300685 status = "disabled";
686 };
Maxime Ripardf2b50022013-11-07 12:01:48 +0100687
688 timer@01c60000 {
689 compatible = "allwinner,sun5i-a13-hstimer";
690 reg = <0x01c60000 0x1000>;
691 interrupts = <82>, <83>;
692 clocks = <&ahb_gates 28>;
693 };
Maxime Ripardd3ae0782013-06-09 10:40:53 +0200694 };
695};