blob: dae838e4dd9ee4f4bceb21eff99e902d2007d9b0 [file] [log] [blame]
Stefan Roese7423d2d2012-11-26 15:46:12 +01001/*
2 * Copyright 2012 Stefan Roese
3 * Stefan Roese <sr@denx.de>
4 *
Maxime Ripard033ba3d2014-09-02 19:25:26 +02005 * This file is dual-licensed: you can use it either under the terms
6 * of the GPL or the X11 license, at your option. Note that this dual
7 * licensing only applies to this file, and not this project as a
8 * whole.
Stefan Roese7423d2d2012-11-26 15:46:12 +01009 *
Maxime Ripard033ba3d2014-09-02 19:25:26 +020010 * a) This library is free software; you can redistribute it and/or
11 * modify it under the terms of the GNU General Public License as
12 * published by the Free Software Foundation; either version 2 of the
13 * License, or (at your option) any later version.
14 *
15 * This library is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU General Public License for more details.
19 *
Maxime Ripard033ba3d2014-09-02 19:25:26 +020020 * Or, alternatively,
21 *
22 * b) Permission is hereby granted, free of charge, to any person
23 * obtaining a copy of this software and associated documentation
24 * files (the "Software"), to deal in the Software without
25 * restriction, including without limitation the rights to use,
26 * copy, modify, merge, publish, distribute, sublicense, and/or
27 * sell copies of the Software, and to permit persons to whom the
28 * Software is furnished to do so, subject to the following
29 * conditions:
30 *
31 * The above copyright notice and this permission notice shall be
32 * included in all copies or substantial portions of the Software.
33 *
34 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
35 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
36 * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
37 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
38 * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
39 * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
40 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
41 * OTHER DEALINGS IN THE SOFTWARE.
Stefan Roese7423d2d2012-11-26 15:46:12 +010042 */
43
Maxime Ripard71455702014-12-16 22:59:54 +010044#include "skeleton.dtsi"
Stefan Roese7423d2d2012-11-26 15:46:12 +010045
Chen-Yu Tsai541ce2c2015-01-12 12:34:08 +080046#include <dt-bindings/thermal/thermal.h>
47
Maxime Ripardb516fa52015-10-12 22:28:46 +020048#include <dt-bindings/clock/sun4i-a10-pll2.h>
Maxime Ripard1f9f6a72014-12-16 22:59:56 +010049#include <dt-bindings/dma/sun4i-a10.h>
Maxime Ripard092a0c32014-12-16 22:59:57 +010050#include <dt-bindings/pinctrl/sun4i-a10.h>
Stefan Roese7423d2d2012-11-26 15:46:12 +010051
52/ {
Maxime Ripard69144e32013-03-13 20:07:37 +010053 interrupt-parent = <&intc>;
54
Emilio Lópeze751cce2013-11-16 15:17:29 -030055 aliases {
56 ethernet0 = &emac;
57 };
58
Hans de Goede5790d4e2014-11-14 16:34:34 +010059 chosen {
60 #address-cells = <1>;
61 #size-cells = <1>;
62 ranges;
63
Hans de Goedea9f8cda2014-11-18 12:07:13 +010064 framebuffer@0 {
Maxime Ripardd8cacaa2015-05-03 11:53:07 +020065 compatible = "allwinner,simple-framebuffer",
66 "simple-framebuffer";
Hans de Goedea9f8cda2014-11-18 12:07:13 +010067 allwinner,pipeline = "de_be0-lcd0-hdmi";
Hans de Goedea8af25e2016-06-05 14:22:47 +020068 clocks = <&ahb_gates 36>, <&ahb_gates 43>,
69 <&ahb_gates 44>, <&de_be0_clk>,
70 <&tcon0_ch1_clk>, <&dram_gates 26>;
Hans de Goede5790d4e2014-11-14 16:34:34 +010071 status = "disabled";
72 };
Hans de Goede8cedd662015-01-19 14:01:17 +010073
74 framebuffer@1 {
Maxime Ripardd8cacaa2015-05-03 11:53:07 +020075 compatible = "allwinner,simple-framebuffer",
76 "simple-framebuffer";
Hans de Goede8cedd662015-01-19 14:01:17 +010077 allwinner,pipeline = "de_fe0-de_be0-lcd0-hdmi";
Priit Laesf5e16482016-05-10 22:24:06 +030078 clocks = <&ahb_gates 36>, <&ahb_gates 43>,
79 <&ahb_gates 44>, <&ahb_gates 46>,
Hans de Goedea8af25e2016-06-05 14:22:47 +020080 <&de_be0_clk>, <&de_fe0_clk>, <&tcon0_ch1_clk>,
Chen-Yu Tsai82f85822015-12-05 21:16:44 +080081 <&dram_gates 25>, <&dram_gates 26>;
Hans de Goede8cedd662015-01-19 14:01:17 +010082 status = "disabled";
83 };
Hans de Goedefd18c7e2015-01-19 14:05:12 +010084
85 framebuffer@2 {
86 compatible = "allwinner,simple-framebuffer",
87 "simple-framebuffer";
88 allwinner,pipeline = "de_fe0-de_be0-lcd0";
Priit Laesf5e16482016-05-10 22:24:06 +030089 clocks = <&ahb_gates 36>, <&ahb_gates 44>, <&ahb_gates 46>,
90 <&de_be0_clk>, <&de_fe0_clk>, <&tcon0_ch0_clk>,
Hans de Goedeb3b630b2016-06-20 22:57:22 +020091 <&dram_gates 25>, <&dram_gates 26>;
Hans de Goedefd18c7e2015-01-19 14:05:12 +010092 status = "disabled";
93 };
94
95 framebuffer@3 {
96 compatible = "allwinner,simple-framebuffer",
97 "simple-framebuffer";
98 allwinner,pipeline = "de_fe0-de_be0-lcd0-tve0";
Priit Laesf5e16482016-05-10 22:24:06 +030099 clocks = <&ahb_gates 34>, <&ahb_gates 36>,
100 <&ahb_gates 44>, <&ahb_gates 46>,
Hans de Goedea8af25e2016-06-05 14:22:47 +0200101 <&de_be0_clk>, <&de_fe0_clk>,
102 <&tcon0_ch1_clk>, <&dram_gates 5>,
103 <&dram_gates 25>, <&dram_gates 26>;
Hans de Goedefd18c7e2015-01-19 14:05:12 +0100104 status = "disabled";
105 };
Hans de Goede5790d4e2014-11-14 16:34:34 +0100106 };
107
Maxime Ripard69144e32013-03-13 20:07:37 +0100108 cpus {
Arnd Bergmann8b2efa892013-06-10 16:48:36 +0200109 #address-cells = <1>;
110 #size-cells = <0>;
Chen-Yu Tsai7294be52015-01-06 10:35:23 +0800111 cpu0: cpu@0 {
Lorenzo Pieralisi14c44aa2013-04-18 18:41:57 +0100112 device_type = "cpu";
Maxime Ripard69144e32013-03-13 20:07:37 +0100113 compatible = "arm,cortex-a8";
Lorenzo Pieralisi14c44aa2013-04-18 18:41:57 +0100114 reg = <0x0>;
Chen-Yu Tsai7294be52015-01-06 10:35:23 +0800115 clocks = <&cpu>;
116 clock-latency = <244144>; /* 8 32k periods */
117 operating-points = <
Maxime Ripard8358aad2015-05-03 11:54:35 +0200118 /* kHz uV */
Chen-Yu Tsai7294be52015-01-06 10:35:23 +0800119 1008000 1400000
Maxime Ripard8358aad2015-05-03 11:54:35 +0200120 912000 1350000
121 864000 1300000
122 624000 1250000
Chen-Yu Tsai7294be52015-01-06 10:35:23 +0800123 >;
124 #cooling-cells = <2>;
125 cooling-min-level = <0>;
Chen-Yu Tsai370a9b52015-03-25 00:53:27 +0800126 cooling-max-level = <3>;
Maxime Ripard69144e32013-03-13 20:07:37 +0100127 };
128 };
129
Chen-Yu Tsai541ce2c2015-01-12 12:34:08 +0800130 thermal-zones {
131 cpu_thermal {
132 /* milliseconds */
133 polling-delay-passive = <250>;
134 polling-delay = <1000>;
135 thermal-sensors = <&rtp>;
136
137 cooling-maps {
138 map0 {
139 trip = <&cpu_alert0>;
140 cooling-device = <&cpu0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
141 };
142 };
143
144 trips {
145 cpu_alert0: cpu_alert0 {
146 /* milliCelsius */
147 temperature = <850000>;
148 hysteresis = <2000>;
149 type = "passive";
150 };
151
152 cpu_crit: cpu_crit {
153 /* milliCelsius */
154 temperature = <100000>;
155 hysteresis = <2000>;
156 type = "critical";
157 };
158 };
Stefan Roese7423d2d2012-11-26 15:46:12 +0100159 };
160 };
161
162 memory {
163 reg = <0x40000000 0x80000000>;
164 };
Maxime Ripard874b4e42013-01-26 15:36:54 +0100165
Maxime Ripard69144e32013-03-13 20:07:37 +0100166 clocks {
167 #address-cells = <1>;
168 #size-cells = <1>;
169 ranges;
170
171 /*
172 * This is a dummy clock, to be used as placeholder on
173 * other mux clocks when a specific parent clock is not
174 * yet implemented. It should be dropped when the driver
175 * is complete.
176 */
177 dummy: dummy {
178 #clock-cells = <0>;
179 compatible = "fixed-clock";
180 clock-frequency = <0>;
181 };
182
Chen-Yu Tsaidfb12c02014-02-03 09:51:41 +0800183 osc24M: clk@01c20050 {
Maxime Ripard69144e32013-03-13 20:07:37 +0100184 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100185 compatible = "allwinner,sun4i-a10-osc-clk";
Maxime Ripard69144e32013-03-13 20:07:37 +0100186 reg = <0x01c20050 0x4>;
Emilio López92fd6e02013-04-09 10:48:04 -0300187 clock-frequency = <24000000>;
Chen-Yu Tsaidfb12c02014-02-03 09:51:41 +0800188 clock-output-names = "osc24M";
Maxime Ripard69144e32013-03-13 20:07:37 +0100189 };
190
Priit Laesbe5f83f2016-05-03 20:14:18 +0300191 osc3M: osc3M_clk {
192 compatible = "fixed-factor-clock";
193 #clock-cells = <0>;
194 clock-div = <8>;
195 clock-mult = <1>;
196 clocks = <&osc24M>;
197 clock-output-names = "osc3M";
198 };
199
Chen-Yu Tsaidfb12c02014-02-03 09:51:41 +0800200 osc32k: clk@0 {
Maxime Ripard69144e32013-03-13 20:07:37 +0100201 #clock-cells = <0>;
202 compatible = "fixed-clock";
203 clock-frequency = <32768>;
Chen-Yu Tsaidfb12c02014-02-03 09:51:41 +0800204 clock-output-names = "osc32k";
Maxime Ripard69144e32013-03-13 20:07:37 +0100205 };
206
Chen-Yu Tsaidfb12c02014-02-03 09:51:41 +0800207 pll1: clk@01c20000 {
Maxime Ripard69144e32013-03-13 20:07:37 +0100208 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100209 compatible = "allwinner,sun4i-a10-pll1-clk";
Maxime Ripard69144e32013-03-13 20:07:37 +0100210 reg = <0x01c20000 0x4>;
211 clocks = <&osc24M>;
Chen-Yu Tsaidfb12c02014-02-03 09:51:41 +0800212 clock-output-names = "pll1";
Maxime Ripard69144e32013-03-13 20:07:37 +0100213 };
214
Maxime Ripard6ee93e12015-10-12 22:21:49 +0200215 pll2: clk@01c20008 {
216 #clock-cells = <1>;
217 compatible = "allwinner,sun4i-a10-pll2-clk";
218 reg = <0x01c20008 0x8>;
219 clocks = <&osc24M>;
220 clock-output-names = "pll2-1x", "pll2-2x",
221 "pll2-4x", "pll2-8x";
222 };
223
Priit Laesbe5f83f2016-05-03 20:14:18 +0300224 pll3: clk@01c20010 {
225 #clock-cells = <0>;
226 compatible = "allwinner,sun4i-a10-pll3-clk";
227 reg = <0x01c20010 0x4>;
228 clocks = <&osc3M>;
229 clock-output-names = "pll3";
230 };
231
232 pll3x2: pll3x2_clk {
233 compatible = "fixed-factor-clock";
234 #clock-cells = <0>;
235 clock-div = <1>;
236 clock-mult = <2>;
237 clocks = <&pll3>;
238 clock-output-names = "pll3-2x";
239 };
240
Chen-Yu Tsaidfb12c02014-02-03 09:51:41 +0800241 pll4: clk@01c20018 {
Emilio Lópezec5589f2013-12-23 00:32:35 -0300242 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100243 compatible = "allwinner,sun4i-a10-pll1-clk";
Emilio Lópezec5589f2013-12-23 00:32:35 -0300244 reg = <0x01c20018 0x4>;
245 clocks = <&osc24M>;
Chen-Yu Tsaidfb12c02014-02-03 09:51:41 +0800246 clock-output-names = "pll4";
Emilio Lópezec5589f2013-12-23 00:32:35 -0300247 };
248
Chen-Yu Tsaidfb12c02014-02-03 09:51:41 +0800249 pll5: clk@01c20020 {
Emilio Lópezc3e5e662013-12-23 00:32:38 -0300250 #clock-cells = <1>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100251 compatible = "allwinner,sun4i-a10-pll5-clk";
Emilio Lópezc3e5e662013-12-23 00:32:38 -0300252 reg = <0x01c20020 0x4>;
253 clocks = <&osc24M>;
254 clock-output-names = "pll5_ddr", "pll5_other";
255 };
256
Chen-Yu Tsaidfb12c02014-02-03 09:51:41 +0800257 pll6: clk@01c20028 {
Emilio Lópezc3e5e662013-12-23 00:32:38 -0300258 #clock-cells = <1>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100259 compatible = "allwinner,sun4i-a10-pll6-clk";
Emilio Lópezc3e5e662013-12-23 00:32:38 -0300260 reg = <0x01c20028 0x4>;
261 clocks = <&osc24M>;
262 clock-output-names = "pll6_sata", "pll6_other", "pll6";
263 };
264
Priit Laesbe5f83f2016-05-03 20:14:18 +0300265 pll7: clk@01c20030 {
266 #clock-cells = <0>;
267 compatible = "allwinner,sun4i-a10-pll3-clk";
268 reg = <0x01c20030 0x4>;
269 clocks = <&osc3M>;
270 clock-output-names = "pll7";
271 };
272
273 pll7x2: pll7x2_clk {
274 compatible = "fixed-factor-clock";
275 #clock-cells = <0>;
276 clock-div = <1>;
277 clock-mult = <2>;
278 clocks = <&pll7>;
279 clock-output-names = "pll7-2x";
280 };
281
Maxime Ripard69144e32013-03-13 20:07:37 +0100282 /* dummy is 200M */
283 cpu: cpu@01c20054 {
284 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100285 compatible = "allwinner,sun4i-a10-cpu-clk";
Maxime Ripard69144e32013-03-13 20:07:37 +0100286 reg = <0x01c20054 0x4>;
287 clocks = <&osc32k>, <&osc24M>, <&pll1>, <&dummy>;
Chen-Yu Tsaidfb12c02014-02-03 09:51:41 +0800288 clock-output-names = "cpu";
Maxime Ripard69144e32013-03-13 20:07:37 +0100289 };
290
291 axi: axi@01c20054 {
292 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100293 compatible = "allwinner,sun4i-a10-axi-clk";
Maxime Ripard69144e32013-03-13 20:07:37 +0100294 reg = <0x01c20054 0x4>;
295 clocks = <&cpu>;
Chen-Yu Tsaidfb12c02014-02-03 09:51:41 +0800296 clock-output-names = "axi";
Maxime Ripard69144e32013-03-13 20:07:37 +0100297 };
298
Chen-Yu Tsaidfb12c02014-02-03 09:51:41 +0800299 axi_gates: clk@01c2005c {
Maxime Ripard69144e32013-03-13 20:07:37 +0100300 #clock-cells = <1>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100301 compatible = "allwinner,sun4i-a10-axi-gates-clk";
Maxime Ripard69144e32013-03-13 20:07:37 +0100302 reg = <0x01c2005c 0x4>;
303 clocks = <&axi>;
Maxime Riparda3854002015-07-31 19:46:16 +0200304 clock-indices = <0>;
Maxime Ripard69144e32013-03-13 20:07:37 +0100305 clock-output-names = "axi_dram";
306 };
307
308 ahb: ahb@01c20054 {
309 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100310 compatible = "allwinner,sun4i-a10-ahb-clk";
Maxime Ripard69144e32013-03-13 20:07:37 +0100311 reg = <0x01c20054 0x4>;
312 clocks = <&axi>;
Chen-Yu Tsaidfb12c02014-02-03 09:51:41 +0800313 clock-output-names = "ahb";
Maxime Ripard69144e32013-03-13 20:07:37 +0100314 };
315
Chen-Yu Tsaidfb12c02014-02-03 09:51:41 +0800316 ahb_gates: clk@01c20060 {
Maxime Ripard69144e32013-03-13 20:07:37 +0100317 #clock-cells = <1>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100318 compatible = "allwinner,sun4i-a10-ahb-gates-clk";
Maxime Ripard69144e32013-03-13 20:07:37 +0100319 reg = <0x01c20060 0x8>;
320 clocks = <&ahb>;
Maxime Riparda3854002015-07-31 19:46:16 +0200321 clock-indices = <0>, <1>,
322 <2>, <3>,
323 <4>, <5>, <6>,
324 <7>, <8>, <9>,
325 <10>, <11>, <12>,
326 <13>, <14>, <16>,
327 <17>, <18>, <20>,
328 <21>, <22>, <23>,
329 <24>, <25>, <26>,
330 <32>, <33>, <34>,
331 <35>, <36>, <37>,
332 <40>, <41>, <43>,
333 <44>, <45>,
334 <46>, <47>,
335 <50>, <52>;
Maxime Ripard69144e32013-03-13 20:07:37 +0100336 clock-output-names = "ahb_usb0", "ahb_ehci0",
Maxime Riparda3854002015-07-31 19:46:16 +0200337 "ahb_ohci0", "ahb_ehci1",
338 "ahb_ohci1", "ahb_ss", "ahb_dma",
339 "ahb_bist", "ahb_mmc0", "ahb_mmc1",
340 "ahb_mmc2", "ahb_mmc3", "ahb_ms",
341 "ahb_nand", "ahb_sdram", "ahb_ace",
342 "ahb_emac", "ahb_ts", "ahb_spi0",
343 "ahb_spi1", "ahb_spi2", "ahb_spi3",
344 "ahb_pata", "ahb_sata", "ahb_gps",
345 "ahb_ve", "ahb_tvd", "ahb_tve0",
346 "ahb_tve1", "ahb_lcd0", "ahb_lcd1",
347 "ahb_csi0", "ahb_csi1", "ahb_hdmi",
348 "ahb_de_be0", "ahb_de_be1",
349 "ahb_de_fe0", "ahb_de_fe1",
350 "ahb_mp", "ahb_mali400";
Maxime Ripard69144e32013-03-13 20:07:37 +0100351 };
352
353 apb0: apb0@01c20054 {
354 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100355 compatible = "allwinner,sun4i-a10-apb0-clk";
Maxime Ripard69144e32013-03-13 20:07:37 +0100356 reg = <0x01c20054 0x4>;
357 clocks = <&ahb>;
Chen-Yu Tsaidfb12c02014-02-03 09:51:41 +0800358 clock-output-names = "apb0";
Maxime Ripard69144e32013-03-13 20:07:37 +0100359 };
360
Chen-Yu Tsaidfb12c02014-02-03 09:51:41 +0800361 apb0_gates: clk@01c20068 {
Maxime Ripard69144e32013-03-13 20:07:37 +0100362 #clock-cells = <1>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100363 compatible = "allwinner,sun4i-a10-apb0-gates-clk";
Maxime Ripard69144e32013-03-13 20:07:37 +0100364 reg = <0x01c20068 0x4>;
365 clocks = <&apb0>;
Maxime Riparda3854002015-07-31 19:46:16 +0200366 clock-indices = <0>, <1>,
367 <2>, <3>,
368 <5>, <6>,
369 <7>, <10>;
Maxime Ripard69144e32013-03-13 20:07:37 +0100370 clock-output-names = "apb0_codec", "apb0_spdif",
Maxime Riparda3854002015-07-31 19:46:16 +0200371 "apb0_ac97", "apb0_iis",
372 "apb0_pio", "apb0_ir0",
373 "apb0_ir1", "apb0_keypad";
Maxime Ripard69144e32013-03-13 20:07:37 +0100374 };
375
Emilio Lópezacbcc0f2014-11-06 11:40:30 +0800376 apb1: clk@01c20058 {
Maxime Ripard69144e32013-03-13 20:07:37 +0100377 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100378 compatible = "allwinner,sun4i-a10-apb1-clk";
Maxime Ripard69144e32013-03-13 20:07:37 +0100379 reg = <0x01c20058 0x4>;
Emilio Lópezacbcc0f2014-11-06 11:40:30 +0800380 clocks = <&osc24M>, <&pll6 1>, <&osc32k>;
Chen-Yu Tsaidfb12c02014-02-03 09:51:41 +0800381 clock-output-names = "apb1";
Maxime Ripard69144e32013-03-13 20:07:37 +0100382 };
383
Chen-Yu Tsaidfb12c02014-02-03 09:51:41 +0800384 apb1_gates: clk@01c2006c {
Maxime Ripard69144e32013-03-13 20:07:37 +0100385 #clock-cells = <1>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100386 compatible = "allwinner,sun4i-a10-apb1-gates-clk";
Maxime Ripard69144e32013-03-13 20:07:37 +0100387 reg = <0x01c2006c 0x4>;
388 clocks = <&apb1>;
Maxime Riparda3854002015-07-31 19:46:16 +0200389 clock-indices = <0>, <1>,
390 <2>, <4>,
391 <5>, <6>,
392 <7>, <16>,
393 <17>, <18>,
394 <19>, <20>,
395 <21>, <22>,
396 <23>;
Maxime Ripard69144e32013-03-13 20:07:37 +0100397 clock-output-names = "apb1_i2c0", "apb1_i2c1",
Maxime Riparda3854002015-07-31 19:46:16 +0200398 "apb1_i2c2", "apb1_can",
399 "apb1_scr", "apb1_ps20",
400 "apb1_ps21", "apb1_uart0",
401 "apb1_uart1", "apb1_uart2",
402 "apb1_uart3", "apb1_uart4",
403 "apb1_uart5", "apb1_uart6",
404 "apb1_uart7";
Maxime Ripard69144e32013-03-13 20:07:37 +0100405 };
Emilio López4b756ff2013-12-23 00:32:41 -0300406
407 nand_clk: clk@01c20080 {
408 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100409 compatible = "allwinner,sun4i-a10-mod0-clk";
Emilio López4b756ff2013-12-23 00:32:41 -0300410 reg = <0x01c20080 0x4>;
411 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
412 clock-output-names = "nand";
413 };
414
415 ms_clk: clk@01c20084 {
416 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100417 compatible = "allwinner,sun4i-a10-mod0-clk";
Emilio López4b756ff2013-12-23 00:32:41 -0300418 reg = <0x01c20084 0x4>;
419 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
420 clock-output-names = "ms";
421 };
422
423 mmc0_clk: clk@01c20088 {
Maxime Ripardd8c3a392014-07-11 19:39:06 +0200424 #clock-cells = <1>;
425 compatible = "allwinner,sun4i-a10-mmc-clk";
Emilio López4b756ff2013-12-23 00:32:41 -0300426 reg = <0x01c20088 0x4>;
427 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
Maxime Ripardd8c3a392014-07-11 19:39:06 +0200428 clock-output-names = "mmc0",
429 "mmc0_output",
430 "mmc0_sample";
Emilio López4b756ff2013-12-23 00:32:41 -0300431 };
432
433 mmc1_clk: clk@01c2008c {
Maxime Ripardd8c3a392014-07-11 19:39:06 +0200434 #clock-cells = <1>;
435 compatible = "allwinner,sun4i-a10-mmc-clk";
Emilio López4b756ff2013-12-23 00:32:41 -0300436 reg = <0x01c2008c 0x4>;
437 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
Maxime Ripardd8c3a392014-07-11 19:39:06 +0200438 clock-output-names = "mmc1",
439 "mmc1_output",
440 "mmc1_sample";
Emilio López4b756ff2013-12-23 00:32:41 -0300441 };
442
443 mmc2_clk: clk@01c20090 {
Maxime Ripardd8c3a392014-07-11 19:39:06 +0200444 #clock-cells = <1>;
445 compatible = "allwinner,sun4i-a10-mmc-clk";
Emilio López4b756ff2013-12-23 00:32:41 -0300446 reg = <0x01c20090 0x4>;
447 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
Maxime Ripardd8c3a392014-07-11 19:39:06 +0200448 clock-output-names = "mmc2",
449 "mmc2_output",
450 "mmc2_sample";
Emilio López4b756ff2013-12-23 00:32:41 -0300451 };
452
453 mmc3_clk: clk@01c20094 {
Maxime Ripardd8c3a392014-07-11 19:39:06 +0200454 #clock-cells = <1>;
455 compatible = "allwinner,sun4i-a10-mmc-clk";
Emilio López4b756ff2013-12-23 00:32:41 -0300456 reg = <0x01c20094 0x4>;
457 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
Maxime Ripardd8c3a392014-07-11 19:39:06 +0200458 clock-output-names = "mmc3",
459 "mmc3_output",
460 "mmc3_sample";
Emilio López4b756ff2013-12-23 00:32:41 -0300461 };
462
463 ts_clk: clk@01c20098 {
464 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100465 compatible = "allwinner,sun4i-a10-mod0-clk";
Emilio López4b756ff2013-12-23 00:32:41 -0300466 reg = <0x01c20098 0x4>;
467 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
468 clock-output-names = "ts";
469 };
470
471 ss_clk: clk@01c2009c {
472 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100473 compatible = "allwinner,sun4i-a10-mod0-clk";
Emilio López4b756ff2013-12-23 00:32:41 -0300474 reg = <0x01c2009c 0x4>;
475 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
476 clock-output-names = "ss";
477 };
478
479 spi0_clk: clk@01c200a0 {
480 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100481 compatible = "allwinner,sun4i-a10-mod0-clk";
Emilio López4b756ff2013-12-23 00:32:41 -0300482 reg = <0x01c200a0 0x4>;
483 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
484 clock-output-names = "spi0";
485 };
486
487 spi1_clk: clk@01c200a4 {
488 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100489 compatible = "allwinner,sun4i-a10-mod0-clk";
Emilio López4b756ff2013-12-23 00:32:41 -0300490 reg = <0x01c200a4 0x4>;
491 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
492 clock-output-names = "spi1";
493 };
494
495 spi2_clk: clk@01c200a8 {
496 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100497 compatible = "allwinner,sun4i-a10-mod0-clk";
Emilio López4b756ff2013-12-23 00:32:41 -0300498 reg = <0x01c200a8 0x4>;
499 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
500 clock-output-names = "spi2";
501 };
502
503 pata_clk: clk@01c200ac {
504 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100505 compatible = "allwinner,sun4i-a10-mod0-clk";
Emilio López4b756ff2013-12-23 00:32:41 -0300506 reg = <0x01c200ac 0x4>;
507 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
508 clock-output-names = "pata";
509 };
510
511 ir0_clk: clk@01c200b0 {
512 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100513 compatible = "allwinner,sun4i-a10-mod0-clk";
Emilio López4b756ff2013-12-23 00:32:41 -0300514 reg = <0x01c200b0 0x4>;
515 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
516 clock-output-names = "ir0";
517 };
518
519 ir1_clk: clk@01c200b4 {
520 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100521 compatible = "allwinner,sun4i-a10-mod0-clk";
Emilio López4b756ff2013-12-23 00:32:41 -0300522 reg = <0x01c200b4 0x4>;
523 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
524 clock-output-names = "ir1";
525 };
526
Marcus Cooper1010cd52016-03-21 21:01:01 +0100527 spdif_clk: clk@01c200c0 {
528 #clock-cells = <0>;
529 compatible = "allwinner,sun4i-a10-mod1-clk";
530 reg = <0x01c200c0 0x4>;
531 clocks = <&pll2 SUN4I_A10_PLL2_8X>,
532 <&pll2 SUN4I_A10_PLL2_4X>,
533 <&pll2 SUN4I_A10_PLL2_2X>,
534 <&pll2 SUN4I_A10_PLL2_1X>;
535 clock-output-names = "spdif";
536 };
537
Roman Byshko0076c8b2014-02-07 16:21:51 +0100538 usb_clk: clk@01c200cc {
539 #clock-cells = <1>;
Maxime Ripard8358aad2015-05-03 11:54:35 +0200540 #reset-cells = <1>;
Roman Byshko0076c8b2014-02-07 16:21:51 +0100541 compatible = "allwinner,sun4i-a10-usb-clk";
542 reg = <0x01c200cc 0x4>;
543 clocks = <&pll6 1>;
Maxime Ripardd8cacaa2015-05-03 11:53:07 +0200544 clock-output-names = "usb_ohci0", "usb_ohci1",
545 "usb_phy";
Roman Byshko0076c8b2014-02-07 16:21:51 +0100546 };
547
Emilio López4b756ff2013-12-23 00:32:41 -0300548 spi3_clk: clk@01c200d4 {
549 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100550 compatible = "allwinner,sun4i-a10-mod0-clk";
Emilio López4b756ff2013-12-23 00:32:41 -0300551 reg = <0x01c200d4 0x4>;
552 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
553 clock-output-names = "spi3";
554 };
Maxime Ripardb516fa52015-10-12 22:28:46 +0200555
Chen-Yu Tsai82f85822015-12-05 21:16:44 +0800556 dram_gates: clk@01c20100 {
557 #clock-cells = <1>;
558 compatible = "allwinner,sun4i-a10-dram-gates-clk";
559 reg = <0x01c20100 0x4>;
560 clocks = <&pll5 0>;
561 clock-indices = <0>,
562 <1>, <2>,
563 <3>,
564 <4>,
565 <5>, <6>,
566 <15>,
567 <24>, <25>,
568 <26>, <27>,
569 <28>, <29>;
570 clock-output-names = "dram_ve",
571 "dram_csi0", "dram_csi1",
572 "dram_ts",
573 "dram_tvd",
574 "dram_tve0", "dram_tve1",
575 "dram_output",
576 "dram_de_fe1", "dram_de_fe0",
577 "dram_de_be0", "dram_de_be1",
578 "dram_de_mp", "dram_ace";
579 };
580
Priit Laesf5e16482016-05-10 22:24:06 +0300581 de_be0_clk: clk@01c20104 {
582 #clock-cells = <0>;
583 #reset-cells = <0>;
584 compatible = "allwinner,sun4i-a10-display-clk";
585 reg = <0x01c20104 0x4>;
586 clocks = <&pll3>, <&pll7>, <&pll5 1>;
587 clock-output-names = "de-be0";
588 };
589
590 de_be1_clk: clk@01c20108 {
591 #clock-cells = <0>;
592 #reset-cells = <0>;
593 compatible = "allwinner,sun4i-a10-display-clk";
594 reg = <0x01c20108 0x4>;
595 clocks = <&pll3>, <&pll7>, <&pll5 1>;
596 clock-output-names = "de-be1";
597 };
598
599 de_fe0_clk: clk@01c2010c {
600 #clock-cells = <0>;
601 #reset-cells = <0>;
602 compatible = "allwinner,sun4i-a10-display-clk";
603 reg = <0x01c2010c 0x4>;
604 clocks = <&pll3>, <&pll7>, <&pll5 1>;
605 clock-output-names = "de-fe0";
606 };
607
608 de_fe1_clk: clk@01c20110 {
609 #clock-cells = <0>;
610 #reset-cells = <0>;
611 compatible = "allwinner,sun4i-a10-display-clk";
612 reg = <0x01c20110 0x4>;
613 clocks = <&pll3>, <&pll7>, <&pll5 1>;
614 clock-output-names = "de-fe1";
615 };
616
617
618 tcon0_ch0_clk: clk@01c20118 {
619 #clock-cells = <0>;
620 #reset-cells = <1>;
621 compatible = "allwinner,sun4i-a10-tcon-ch0-clk";
622 reg = <0x01c20118 0x4>;
623 clocks = <&pll3>, <&pll7>, <&pll3x2>, <&pll7x2>;
624 clock-output-names = "tcon0-ch0-sclk";
625
626 };
627
628 tcon1_ch0_clk: clk@01c2011c {
629 #clock-cells = <0>;
630 #reset-cells = <1>;
631 compatible = "allwinner,sun4i-a10-tcon-ch1-clk";
632 reg = <0x01c2011c 0x4>;
633 clocks = <&pll3>, <&pll7>, <&pll3x2>, <&pll7x2>;
634 clock-output-names = "tcon1-ch0-sclk";
635
636 };
637
638 tcon0_ch1_clk: clk@01c2012c {
639 #clock-cells = <0>;
640 compatible = "allwinner,sun4i-a10-tcon-ch0-clk";
641 reg = <0x01c2012c 0x4>;
642 clocks = <&pll3>, <&pll7>, <&pll3x2>, <&pll7x2>;
643 clock-output-names = "tcon0-ch1-sclk";
644
645 };
646
647 tcon1_ch1_clk: clk@01c20130 {
648 #clock-cells = <0>;
649 compatible = "allwinner,sun4i-a10-tcon-ch1-clk";
650 reg = <0x01c20130 0x4>;
651 clocks = <&pll3>, <&pll7>, <&pll3x2>, <&pll7x2>;
652 clock-output-names = "tcon1-ch1-sclk";
653
654 };
655
Chen-Yu Tsai1ccc4932015-12-05 21:16:45 +0800656 ve_clk: clk@01c2013c {
657 #clock-cells = <0>;
658 #reset-cells = <0>;
659 compatible = "allwinner,sun4i-a10-ve-clk";
660 reg = <0x01c2013c 0x4>;
661 clocks = <&pll4>;
662 clock-output-names = "ve";
663 };
664
Maxime Ripardb516fa52015-10-12 22:28:46 +0200665 codec_clk: clk@01c20140 {
666 #clock-cells = <0>;
667 compatible = "allwinner,sun4i-a10-codec-clk";
668 reg = <0x01c20140 0x4>;
669 clocks = <&pll2 SUN4I_A10_PLL2_1X>;
670 clock-output-names = "codec";
671 };
Maxime Ripard69144e32013-03-13 20:07:37 +0100672 };
673
Maxime Ripardb74aec12013-08-03 16:07:36 +0200674 soc@01c00000 {
Maxime Ripard69144e32013-03-13 20:07:37 +0100675 compatible = "simple-bus";
676 #address-cells = <1>;
677 #size-cells = <1>;
Maxime Ripard69144e32013-03-13 20:07:37 +0100678 ranges;
679
Maxime Ripard1fbc1512015-03-26 15:53:44 +0100680 sram-controller@01c00000 {
681 compatible = "allwinner,sun4i-a10-sram-controller";
682 reg = <0x01c00000 0x30>;
683 #address-cells = <1>;
684 #size-cells = <1>;
685 ranges;
686
687 sram_a: sram@00000000 {
688 compatible = "mmio-sram";
689 reg = <0x00000000 0xc000>;
690 #address-cells = <1>;
691 #size-cells = <1>;
692 ranges = <0 0x00000000 0xc000>;
693
694 emac_sram: sram-section@8000 {
695 compatible = "allwinner,sun4i-a10-sram-a3-a4";
696 reg = <0x8000 0x4000>;
697 status = "disabled";
698 };
699 };
700
701 sram_d: sram@00010000 {
702 compatible = "mmio-sram";
703 reg = <0x00010000 0x1000>;
704 #address-cells = <1>;
705 #size-cells = <1>;
706 ranges = <0 0x00010000 0x1000>;
707
708 otg_sram: sram-section@0000 {
709 compatible = "allwinner,sun4i-a10-sram-d";
710 reg = <0x0000 0x1000>;
711 status = "disabled";
712 };
713 };
714 };
715
Emilio López1324f532014-08-04 17:09:57 -0300716 dma: dma-controller@01c02000 {
717 compatible = "allwinner,sun4i-a10-dma";
718 reg = <0x01c02000 0x1000>;
719 interrupts = <27>;
720 clocks = <&ahb_gates 6>;
721 #dma-cells = <2>;
722 };
723
Boris Brezilloncefd4862016-06-14 14:17:36 +0300724 nfc: nand@01c03000 {
725 compatible = "allwinner,sun4i-a10-nand";
726 reg = <0x01c03000 0x1000>;
727 interrupts = <37>;
728 clocks = <&ahb_gates 13>, <&nand_clk>;
729 clock-names = "ahb", "mod";
730 dmas = <&dma SUN4I_DMA_DEDICATED 3>;
731 dma-names = "rxtx";
732 status = "disabled";
733 #address-cells = <1>;
734 #size-cells = <0>;
735 };
736
Maxime Ripard65918e22014-02-22 22:35:55 +0100737 spi0: spi@01c05000 {
738 compatible = "allwinner,sun4i-a10-spi";
739 reg = <0x01c05000 0x1000>;
740 interrupts = <10>;
741 clocks = <&ahb_gates 20>, <&spi0_clk>;
742 clock-names = "ahb", "mod";
Maxime Ripard1f9f6a72014-12-16 22:59:56 +0100743 dmas = <&dma SUN4I_DMA_DEDICATED 27>,
744 <&dma SUN4I_DMA_DEDICATED 26>;
Emilio López4192ff82014-08-04 17:10:00 -0300745 dma-names = "rx", "tx";
Maxime Ripard65918e22014-02-22 22:35:55 +0100746 status = "disabled";
747 #address-cells = <1>;
748 #size-cells = <0>;
749 };
750
751 spi1: spi@01c06000 {
752 compatible = "allwinner,sun4i-a10-spi";
753 reg = <0x01c06000 0x1000>;
754 interrupts = <11>;
755 clocks = <&ahb_gates 21>, <&spi1_clk>;
756 clock-names = "ahb", "mod";
Maxime Ripard1f9f6a72014-12-16 22:59:56 +0100757 dmas = <&dma SUN4I_DMA_DEDICATED 9>,
758 <&dma SUN4I_DMA_DEDICATED 8>;
Emilio López4192ff82014-08-04 17:10:00 -0300759 dma-names = "rx", "tx";
Maxime Ripard65918e22014-02-22 22:35:55 +0100760 status = "disabled";
761 #address-cells = <1>;
762 #size-cells = <0>;
763 };
764
Maxime Riparde38afcb2013-05-30 03:49:23 +0000765 emac: ethernet@01c0b000 {
Maxime Ripard1c70e092014-02-02 14:49:13 +0100766 compatible = "allwinner,sun4i-a10-emac";
Maxime Riparde38afcb2013-05-30 03:49:23 +0000767 reg = <0x01c0b000 0x1000>;
768 interrupts = <55>;
769 clocks = <&ahb_gates 17>;
Maxime Ripard1fbc1512015-03-26 15:53:44 +0100770 allwinner,sram = <&emac_sram 1>;
Maxime Riparde38afcb2013-05-30 03:49:23 +0000771 status = "disabled";
772 };
773
Aleksei Mamlin92395f52015-01-19 22:35:22 +0300774 mdio: mdio@01c0b080 {
Maxime Ripard1c70e092014-02-02 14:49:13 +0100775 compatible = "allwinner,sun4i-a10-mdio";
Maxime Riparde38afcb2013-05-30 03:49:23 +0000776 reg = <0x01c0b080 0x14>;
777 status = "disabled";
778 #address-cells = <1>;
779 #size-cells = <0>;
780 };
781
David Lanzendörferb258b362014-05-02 17:57:18 +0200782 mmc0: mmc@01c0f000 {
783 compatible = "allwinner,sun4i-a10-mmc";
784 reg = <0x01c0f000 0x1000>;
Maxime Ripardd8c3a392014-07-11 19:39:06 +0200785 clocks = <&ahb_gates 8>,
786 <&mmc0_clk 0>,
787 <&mmc0_clk 1>,
788 <&mmc0_clk 2>;
789 clock-names = "ahb",
790 "mmc",
791 "output",
792 "sample";
David Lanzendörferb258b362014-05-02 17:57:18 +0200793 interrupts = <32>;
794 status = "disabled";
Hans de Goede4c1bb9c2015-03-10 16:27:09 +0100795 #address-cells = <1>;
796 #size-cells = <0>;
David Lanzendörferb258b362014-05-02 17:57:18 +0200797 };
798
799 mmc1: mmc@01c10000 {
800 compatible = "allwinner,sun4i-a10-mmc";
801 reg = <0x01c10000 0x1000>;
Maxime Ripardd8c3a392014-07-11 19:39:06 +0200802 clocks = <&ahb_gates 9>,
803 <&mmc1_clk 0>,
804 <&mmc1_clk 1>,
805 <&mmc1_clk 2>;
806 clock-names = "ahb",
807 "mmc",
808 "output",
809 "sample";
David Lanzendörferb258b362014-05-02 17:57:18 +0200810 interrupts = <33>;
811 status = "disabled";
Hans de Goede4c1bb9c2015-03-10 16:27:09 +0100812 #address-cells = <1>;
813 #size-cells = <0>;
David Lanzendörferb258b362014-05-02 17:57:18 +0200814 };
815
816 mmc2: mmc@01c11000 {
817 compatible = "allwinner,sun4i-a10-mmc";
818 reg = <0x01c11000 0x1000>;
Maxime Ripardd8c3a392014-07-11 19:39:06 +0200819 clocks = <&ahb_gates 10>,
820 <&mmc2_clk 0>,
821 <&mmc2_clk 1>,
822 <&mmc2_clk 2>;
823 clock-names = "ahb",
824 "mmc",
825 "output",
826 "sample";
David Lanzendörferb258b362014-05-02 17:57:18 +0200827 interrupts = <34>;
828 status = "disabled";
Hans de Goede4c1bb9c2015-03-10 16:27:09 +0100829 #address-cells = <1>;
830 #size-cells = <0>;
David Lanzendörferb258b362014-05-02 17:57:18 +0200831 };
832
833 mmc3: mmc@01c12000 {
834 compatible = "allwinner,sun4i-a10-mmc";
835 reg = <0x01c12000 0x1000>;
Maxime Ripardd8c3a392014-07-11 19:39:06 +0200836 clocks = <&ahb_gates 11>,
837 <&mmc3_clk 0>,
838 <&mmc3_clk 1>,
839 <&mmc3_clk 2>;
840 clock-names = "ahb",
841 "mmc",
842 "output",
843 "sample";
David Lanzendörferb258b362014-05-02 17:57:18 +0200844 interrupts = <35>;
845 status = "disabled";
Hans de Goede4c1bb9c2015-03-10 16:27:09 +0100846 #address-cells = <1>;
847 #size-cells = <0>;
David Lanzendörferb258b362014-05-02 17:57:18 +0200848 };
849
Hans de Goedece650372015-02-03 19:17:35 +0100850 usb_otg: usb@01c13000 {
851 compatible = "allwinner,sun4i-a10-musb";
852 reg = <0x01c13000 0x0400>;
853 clocks = <&ahb_gates 0>;
854 interrupts = <38>;
855 interrupt-names = "mc";
856 phys = <&usbphy 0>;
857 phy-names = "usb";
858 extcon = <&usbphy 0>;
859 allwinner,sram = <&otg_sram 1>;
860 status = "disabled";
861 };
862
Roman Byshko6ab1ce22014-03-01 20:26:23 +0100863 usbphy: phy@01c13400 {
864 #phy-cells = <1>;
865 compatible = "allwinner,sun4i-a10-usb-phy";
866 reg = <0x01c13400 0x10 0x01c14800 0x4 0x01c1c800 0x4>;
867 reg-names = "phy_ctrl", "pmu1", "pmu2";
868 clocks = <&usb_clk 8>;
869 clock-names = "usb_phy";
Chen-Yu Tsai4dba4182014-12-18 19:10:35 +0800870 resets = <&usb_clk 0>, <&usb_clk 1>, <&usb_clk 2>;
871 reset-names = "usb0_reset", "usb1_reset", "usb2_reset";
Roman Byshko6ab1ce22014-03-01 20:26:23 +0100872 status = "disabled";
873 };
874
875 ehci0: usb@01c14000 {
876 compatible = "allwinner,sun4i-a10-ehci", "generic-ehci";
877 reg = <0x01c14000 0x100>;
878 interrupts = <39>;
879 clocks = <&ahb_gates 1>;
880 phys = <&usbphy 1>;
881 phy-names = "usb";
882 status = "disabled";
883 };
884
885 ohci0: usb@01c14400 {
886 compatible = "allwinner,sun4i-a10-ohci", "generic-ohci";
887 reg = <0x01c14400 0x100>;
888 interrupts = <64>;
889 clocks = <&usb_clk 6>, <&ahb_gates 2>;
890 phys = <&usbphy 1>;
891 phy-names = "usb";
892 status = "disabled";
893 };
894
LABBE Corentin56ba8c52015-07-17 16:39:38 +0200895 crypto: crypto-engine@01c15000 {
896 compatible = "allwinner,sun4i-a10-crypto";
897 reg = <0x01c15000 0x1000>;
898 interrupts = <86>;
899 clocks = <&ahb_gates 5>, <&ss_clk>;
900 clock-names = "ahb", "mod";
901 };
902
Maxime Ripard65918e22014-02-22 22:35:55 +0100903 spi2: spi@01c17000 {
904 compatible = "allwinner,sun4i-a10-spi";
905 reg = <0x01c17000 0x1000>;
906 interrupts = <12>;
907 clocks = <&ahb_gates 22>, <&spi2_clk>;
908 clock-names = "ahb", "mod";
Maxime Ripard1f9f6a72014-12-16 22:59:56 +0100909 dmas = <&dma SUN4I_DMA_DEDICATED 29>,
910 <&dma SUN4I_DMA_DEDICATED 28>;
Emilio López4192ff82014-08-04 17:10:00 -0300911 dma-names = "rx", "tx";
Maxime Ripard65918e22014-02-22 22:35:55 +0100912 status = "disabled";
913 #address-cells = <1>;
914 #size-cells = <0>;
915 };
916
Oliver Schinagl248bd1e2014-03-01 20:26:21 +0100917 ahci: sata@01c18000 {
918 compatible = "allwinner,sun4i-a10-ahci";
919 reg = <0x01c18000 0x1000>;
920 interrupts = <56>;
921 clocks = <&pll6 0>, <&ahb_gates 25>;
922 status = "disabled";
923 };
924
Roman Byshko6ab1ce22014-03-01 20:26:23 +0100925 ehci1: usb@01c1c000 {
926 compatible = "allwinner,sun4i-a10-ehci", "generic-ehci";
927 reg = <0x01c1c000 0x100>;
928 interrupts = <40>;
929 clocks = <&ahb_gates 3>;
930 phys = <&usbphy 2>;
931 phy-names = "usb";
932 status = "disabled";
933 };
934
935 ohci1: usb@01c1c400 {
936 compatible = "allwinner,sun4i-a10-ohci", "generic-ohci";
937 reg = <0x01c1c400 0x100>;
938 interrupts = <65>;
939 clocks = <&usb_clk 7>, <&ahb_gates 4>;
940 phys = <&usbphy 2>;
941 phy-names = "usb";
942 status = "disabled";
943 };
944
Maxime Ripard65918e22014-02-22 22:35:55 +0100945 spi3: spi@01c1f000 {
946 compatible = "allwinner,sun4i-a10-spi";
947 reg = <0x01c1f000 0x1000>;
948 interrupts = <50>;
949 clocks = <&ahb_gates 23>, <&spi3_clk>;
950 clock-names = "ahb", "mod";
Maxime Ripard1f9f6a72014-12-16 22:59:56 +0100951 dmas = <&dma SUN4I_DMA_DEDICATED 31>,
952 <&dma SUN4I_DMA_DEDICATED 30>;
Emilio López4192ff82014-08-04 17:10:00 -0300953 dma-names = "rx", "tx";
Maxime Ripard65918e22014-02-22 22:35:55 +0100954 status = "disabled";
955 #address-cells = <1>;
956 #size-cells = <0>;
957 };
958
Maxime Ripard69144e32013-03-13 20:07:37 +0100959 intc: interrupt-controller@01c20400 {
Maxime Ripard09504a72014-02-07 21:50:26 +0100960 compatible = "allwinner,sun4i-a10-ic";
Maxime Ripard69144e32013-03-13 20:07:37 +0100961 reg = <0x01c20400 0x400>;
962 interrupt-controller;
963 #interrupt-cells = <1>;
964 };
965
Maxime Riparde10911e2013-01-27 19:26:05 +0100966 pio: pinctrl@01c20800 {
Maxime Ripard874b4e42013-01-26 15:36:54 +0100967 compatible = "allwinner,sun4i-a10-pinctrl";
968 reg = <0x01c20800 0x400>;
Maxime Ripard39138bc2013-04-06 15:00:48 +0200969 interrupts = <28>;
Maxime Ripardbe7bc6b2016-10-19 11:15:27 +0200970 clocks = <&apb0_gates 5>, <&osc24M>, <&osc32k>;
971 clock-names = "apb", "hosc", "losc";
Maxime Riparde10911e2013-01-27 19:26:05 +0100972 gpio-controller;
Maxime Ripard39138bc2013-04-06 15:00:48 +0200973 interrupt-controller;
Maxime Ripardb03e0812015-06-17 11:44:24 +0200974 #interrupt-cells = <3>;
Maxime Riparde10911e2013-01-27 19:26:05 +0100975 #gpio-cells = <3>;
Maxime Ripard581981b2013-01-26 15:36:55 +0100976
Aleksei Mamlin03907ab2016-06-10 11:05:18 +0300977 emac_pins_a: emac0@0 {
Maxime Ripard1edcd362016-09-23 14:28:10 +0300978 pins = "PA0", "PA1", "PA2",
979 "PA3", "PA4", "PA5", "PA6",
980 "PA7", "PA8", "PA9", "PA10",
981 "PA11", "PA12", "PA13", "PA14",
982 "PA15", "PA16";
983 function = "emac";
Maxime Ripard581981b2013-01-26 15:36:55 +0100984 };
Maxime Ripard27cce4f2013-03-10 13:44:38 +0100985
986 i2c0_pins_a: i2c0@0 {
Maxime Ripard1edcd362016-09-23 14:28:10 +0300987 pins = "PB0", "PB1";
988 function = "i2c0";
Maxime Ripard27cce4f2013-03-10 13:44:38 +0100989 };
990
991 i2c1_pins_a: i2c1@0 {
Maxime Ripard1edcd362016-09-23 14:28:10 +0300992 pins = "PB18", "PB19";
993 function = "i2c1";
Maxime Ripard27cce4f2013-03-10 13:44:38 +0100994 };
995
996 i2c2_pins_a: i2c2@0 {
Maxime Ripard1edcd362016-09-23 14:28:10 +0300997 pins = "PB20", "PB21";
998 function = "i2c2";
Maxime Ripard27cce4f2013-03-10 13:44:38 +0100999 };
Linus Torvalds496322b2013-07-09 18:24:39 -07001000
Marcus Cooper469a22e2015-05-02 13:36:20 +02001001 ir0_rx_pins_a: ir0@0 {
Maxime Ripard1edcd362016-09-23 14:28:10 +03001002 pins = "PB4";
1003 function = "ir0";
Hans de Goedea4e10992014-06-30 23:57:58 +02001004 };
1005
Marcus Cooper469a22e2015-05-02 13:36:20 +02001006 ir0_tx_pins_a: ir0@1 {
Maxime Ripard1edcd362016-09-23 14:28:10 +03001007 pins = "PB3";
1008 function = "ir0";
Marcus Cooper469a22e2015-05-02 13:36:20 +02001009 };
1010
1011 ir1_rx_pins_a: ir1@0 {
Maxime Ripard1edcd362016-09-23 14:28:10 +03001012 pins = "PB23";
1013 function = "ir1";
Marcus Cooper469a22e2015-05-02 13:36:20 +02001014 };
1015
1016 ir1_tx_pins_a: ir1@1 {
Maxime Ripard1edcd362016-09-23 14:28:10 +03001017 pins = "PB22";
1018 function = "ir1";
Hans de Goedea4e10992014-06-30 23:57:58 +02001019 };
Alexandru Gagniucec66d0b2014-12-08 04:14:01 -06001020
Aleksei Mamlin03907ab2016-06-10 11:05:18 +03001021 mmc0_pins_a: mmc0@0 {
Maxime Ripard1edcd362016-09-23 14:28:10 +03001022 pins = "PF0", "PF1", "PF2",
1023 "PF3", "PF4", "PF5";
1024 function = "mmc0";
1025 drive-strength = <30>;
Aleksei Mamlin03907ab2016-06-10 11:05:18 +03001026 };
1027
1028 mmc0_cd_pin_reference_design: mmc0_cd_pin@0 {
Maxime Ripard1edcd362016-09-23 14:28:10 +03001029 pins = "PH1";
1030 function = "gpio_in";
1031 bias-pull-up;
Aleksei Mamlin03907ab2016-06-10 11:05:18 +03001032 };
1033
1034 ps20_pins_a: ps20@0 {
Maxime Ripard1edcd362016-09-23 14:28:10 +03001035 pins = "PI20", "PI21";
1036 function = "ps2";
Aleksei Mamlin03907ab2016-06-10 11:05:18 +03001037 };
1038
1039 ps21_pins_a: ps21@0 {
Maxime Ripard1edcd362016-09-23 14:28:10 +03001040 pins = "PH12", "PH13";
1041 function = "ps2";
Aleksei Mamlin03907ab2016-06-10 11:05:18 +03001042 };
1043
1044 pwm0_pins_a: pwm0@0 {
Maxime Ripard1edcd362016-09-23 14:28:10 +03001045 pins = "PB2";
1046 function = "pwm";
Aleksei Mamlin03907ab2016-06-10 11:05:18 +03001047 };
1048
1049 pwm1_pins_a: pwm1@0 {
Maxime Ripard1edcd362016-09-23 14:28:10 +03001050 pins = "PI3";
1051 function = "pwm";
Aleksei Mamlin03907ab2016-06-10 11:05:18 +03001052 };
1053
1054 spdif_tx_pins_a: spdif@0 {
Maxime Ripard1edcd362016-09-23 14:28:10 +03001055 pins = "PB13";
1056 function = "spdif";
1057 bias-pull-up;
Aleksei Mamlin03907ab2016-06-10 11:05:18 +03001058 };
1059
Alexandru Gagniucec66d0b2014-12-08 04:14:01 -06001060 spi0_pins_a: spi0@0 {
Maxime Ripard1edcd362016-09-23 14:28:10 +03001061 pins = "PI11", "PI12", "PI13";
1062 function = "spi0";
Maxime Ripardf3022c62015-05-03 09:25:41 +02001063 };
1064
1065 spi0_cs0_pins_a: spi0_cs0@0 {
Maxime Ripard1edcd362016-09-23 14:28:10 +03001066 pins = "PI10";
1067 function = "spi0";
Alexandru Gagniucec66d0b2014-12-08 04:14:01 -06001068 };
1069
1070 spi1_pins_a: spi1@0 {
Maxime Ripard1edcd362016-09-23 14:28:10 +03001071 pins = "PI17", "PI18", "PI19";
1072 function = "spi1";
Maxime Ripardf3022c62015-05-03 09:25:41 +02001073 };
1074
1075 spi1_cs0_pins_a: spi1_cs0@0 {
Maxime Ripard1edcd362016-09-23 14:28:10 +03001076 pins = "PI16";
1077 function = "spi1";
Alexandru Gagniucec66d0b2014-12-08 04:14:01 -06001078 };
1079
1080 spi2_pins_a: spi2@0 {
Maxime Ripard1edcd362016-09-23 14:28:10 +03001081 pins = "PC20", "PC21", "PC22";
1082 function = "spi2";
Alexandru Gagniucec66d0b2014-12-08 04:14:01 -06001083 };
1084
1085 spi2_pins_b: spi2@1 {
Maxime Ripard1edcd362016-09-23 14:28:10 +03001086 pins = "PB15", "PB16", "PB17";
1087 function = "spi2";
Maxime Ripardf3022c62015-05-03 09:25:41 +02001088 };
1089
1090 spi2_cs0_pins_a: spi2_cs0@0 {
Maxime Ripard1edcd362016-09-23 14:28:10 +03001091 pins = "PC19";
1092 function = "spi2";
Maxime Ripardf3022c62015-05-03 09:25:41 +02001093 };
1094
1095 spi2_cs0_pins_b: spi2_cs0@1 {
Maxime Ripard1edcd362016-09-23 14:28:10 +03001096 pins = "PB14";
1097 function = "spi2";
Alexandru Gagniucec66d0b2014-12-08 04:14:01 -06001098 };
Vishnu Patekar1e8d1562015-01-25 19:10:09 +05301099
Aleksei Mamlin03907ab2016-06-10 11:05:18 +03001100 uart0_pins_a: uart0@0 {
Maxime Ripard1edcd362016-09-23 14:28:10 +03001101 pins = "PB22", "PB23";
1102 function = "uart0";
Vishnu Patekar1e8d1562015-01-25 19:10:09 +05301103 };
1104
Aleksei Mamlin03907ab2016-06-10 11:05:18 +03001105 uart0_pins_b: uart0@1 {
Maxime Ripard1edcd362016-09-23 14:28:10 +03001106 pins = "PF2", "PF4";
1107 function = "uart0";
Hans de Goedeb5f86a32014-05-02 17:57:19 +02001108 };
Marcus Cooper79f969f2016-03-21 21:00:59 +01001109
Aleksei Mamlin03907ab2016-06-10 11:05:18 +03001110 uart1_pins_a: uart1@0 {
Maxime Ripard1edcd362016-09-23 14:28:10 +03001111 pins = "PA10", "PA11";
1112 function = "uart1";
Marcus Cooper79f969f2016-03-21 21:00:59 +01001113 };
Maxime Ripard874b4e42013-01-26 15:36:54 +01001114 };
Maxime Ripard89b3c992013-02-20 17:25:03 -08001115
Maxime Ripard69144e32013-03-13 20:07:37 +01001116 timer@01c20c00 {
Maxime Ripardb4f26442014-02-06 10:40:32 +01001117 compatible = "allwinner,sun4i-a10-timer";
Maxime Ripard69144e32013-03-13 20:07:37 +01001118 reg = <0x01c20c00 0x90>;
1119 interrupts = <22>;
1120 clocks = <&osc24M>;
1121 };
1122
1123 wdt: watchdog@01c20c90 {
Maxime Ripardca5d04d2014-02-07 22:29:26 +01001124 compatible = "allwinner,sun4i-a10-wdt";
Maxime Ripard69144e32013-03-13 20:07:37 +01001125 reg = <0x01c20c90 0x10>;
1126 };
1127
Carlo Caioneb5d905c2013-10-16 20:30:26 +02001128 rtc: rtc@01c20d00 {
Maxime Ripard5fc4bc82014-04-03 14:50:03 -07001129 compatible = "allwinner,sun4i-a10-rtc";
Carlo Caioneb5d905c2013-10-16 20:30:26 +02001130 reg = <0x01c20d00 0x20>;
1131 interrupts = <24>;
1132 };
1133
Alexandre Belloni4b57a392014-04-28 18:17:11 +02001134 pwm: pwm@01c20e00 {
1135 compatible = "allwinner,sun4i-a10-pwm";
1136 reg = <0x01c20e00 0xc>;
1137 clocks = <&osc24M>;
1138 #pwm-cells = <3>;
1139 status = "disabled";
1140 };
1141
Marcus Cooper166db832016-03-21 21:01:03 +01001142 spdif: spdif@01c21000 {
1143 #sound-dai-cells = <0>;
1144 compatible = "allwinner,sun4i-a10-spdif";
1145 reg = <0x01c21000 0x400>;
1146 interrupts = <13>;
1147 clocks = <&apb0_gates 1>, <&spdif_clk>;
1148 clock-names = "apb", "spdif";
1149 dmas = <&dma SUN4I_DMA_NORMAL 2>,
1150 <&dma SUN4I_DMA_NORMAL 2>;
1151 dma-names = "rx", "tx";
1152 status = "disabled";
1153 };
1154
Hans de Goedea4e10992014-06-30 23:57:58 +02001155 ir0: ir@01c21800 {
1156 compatible = "allwinner,sun4i-a10-ir";
1157 clocks = <&apb0_gates 6>, <&ir0_clk>;
1158 clock-names = "apb", "ir";
1159 interrupts = <5>;
1160 reg = <0x01c21800 0x40>;
1161 status = "disabled";
1162 };
1163
1164 ir1: ir@01c21c00 {
1165 compatible = "allwinner,sun4i-a10-ir";
1166 clocks = <&apb0_gates 7>, <&ir1_clk>;
1167 clock-names = "apb", "ir";
1168 interrupts = <6>;
1169 reg = <0x01c21c00 0x40>;
1170 status = "disabled";
1171 };
1172
Hans de Goedeb0512e12014-12-23 11:13:20 +01001173 lradc: lradc@01c22800 {
1174 compatible = "allwinner,sun4i-a10-lradc-keys";
1175 reg = <0x01c22800 0x100>;
1176 interrupts = <31>;
1177 status = "disabled";
1178 };
1179
Marcus Cooperbcf88452014-07-22 13:06:48 +02001180 codec: codec@01c22c00 {
1181 #sound-dai-cells = <0>;
1182 compatible = "allwinner,sun4i-a10-codec";
1183 reg = <0x01c22c00 0x40>;
1184 interrupts = <30>;
1185 clocks = <&apb0_gates 0>, <&codec_clk>;
1186 clock-names = "apb", "codec";
1187 dmas = <&dma SUN4I_DMA_NORMAL 19>,
1188 <&dma SUN4I_DMA_NORMAL 19>;
1189 dma-names = "rx", "tx";
1190 status = "disabled";
1191 };
1192
Oliver Schinagl2bad9692013-09-03 12:33:28 +02001193 sid: eeprom@01c23800 {
Maxime Ripard043d56e2014-02-07 22:20:40 +01001194 compatible = "allwinner,sun4i-a10-sid";
Oliver Schinagl2bad9692013-09-03 12:33:28 +02001195 reg = <0x01c23800 0x10>;
1196 };
1197
Hans de Goede57c88392013-12-31 17:20:50 +01001198 rtp: rtp@01c25000 {
Maxime Ripard40dd8f32014-02-02 14:52:40 +01001199 compatible = "allwinner,sun4i-a10-ts";
Hans de Goede57c88392013-12-31 17:20:50 +01001200 reg = <0x01c25000 0x100>;
1201 interrupts = <29>;
Chen-Yu Tsai41e7afb2015-01-06 10:35:15 +08001202 #thermal-sensor-cells = <0>;
Hans de Goede57c88392013-12-31 17:20:50 +01001203 };
1204
Maxime Ripard89b3c992013-02-20 17:25:03 -08001205 uart0: serial@01c28000 {
1206 compatible = "snps,dw-apb-uart";
1207 reg = <0x01c28000 0x400>;
1208 interrupts = <1>;
1209 reg-shift = <2>;
1210 reg-io-width = <4>;
Emilio López9ff49ec2013-03-27 18:20:39 -03001211 clocks = <&apb1_gates 16>;
Maxime Ripard89b3c992013-02-20 17:25:03 -08001212 status = "disabled";
1213 };
Maxime Ripard76f14d0a2013-02-20 17:38:27 -08001214
Maxime Ripard69144e32013-03-13 20:07:37 +01001215 uart1: serial@01c28400 {
1216 compatible = "snps,dw-apb-uart";
1217 reg = <0x01c28400 0x400>;
1218 interrupts = <2>;
1219 reg-shift = <2>;
1220 reg-io-width = <4>;
1221 clocks = <&apb1_gates 17>;
1222 status = "disabled";
1223 };
1224
Maxime Ripard76f14d0a2013-02-20 17:38:27 -08001225 uart2: serial@01c28800 {
1226 compatible = "snps,dw-apb-uart";
1227 reg = <0x01c28800 0x400>;
1228 interrupts = <3>;
1229 reg-shift = <2>;
1230 reg-io-width = <4>;
Emilio López9ff49ec2013-03-27 18:20:39 -03001231 clocks = <&apb1_gates 18>;
Maxime Ripard76f14d0a2013-02-20 17:38:27 -08001232 status = "disabled";
1233 };
1234
Maxime Ripard69144e32013-03-13 20:07:37 +01001235 uart3: serial@01c28c00 {
1236 compatible = "snps,dw-apb-uart";
1237 reg = <0x01c28c00 0x400>;
1238 interrupts = <4>;
1239 reg-shift = <2>;
1240 reg-io-width = <4>;
1241 clocks = <&apb1_gates 19>;
1242 status = "disabled";
1243 };
1244
Maxime Ripard76f14d0a2013-02-20 17:38:27 -08001245 uart4: serial@01c29000 {
1246 compatible = "snps,dw-apb-uart";
1247 reg = <0x01c29000 0x400>;
1248 interrupts = <17>;
1249 reg-shift = <2>;
1250 reg-io-width = <4>;
Emilio López9ff49ec2013-03-27 18:20:39 -03001251 clocks = <&apb1_gates 20>;
Maxime Ripard76f14d0a2013-02-20 17:38:27 -08001252 status = "disabled";
1253 };
1254
1255 uart5: serial@01c29400 {
1256 compatible = "snps,dw-apb-uart";
1257 reg = <0x01c29400 0x400>;
1258 interrupts = <18>;
1259 reg-shift = <2>;
1260 reg-io-width = <4>;
Emilio López9ff49ec2013-03-27 18:20:39 -03001261 clocks = <&apb1_gates 21>;
Maxime Ripard76f14d0a2013-02-20 17:38:27 -08001262 status = "disabled";
1263 };
1264
1265 uart6: serial@01c29800 {
1266 compatible = "snps,dw-apb-uart";
1267 reg = <0x01c29800 0x400>;
1268 interrupts = <19>;
1269 reg-shift = <2>;
1270 reg-io-width = <4>;
Emilio López9ff49ec2013-03-27 18:20:39 -03001271 clocks = <&apb1_gates 22>;
Maxime Ripard76f14d0a2013-02-20 17:38:27 -08001272 status = "disabled";
1273 };
1274
1275 uart7: serial@01c29c00 {
1276 compatible = "snps,dw-apb-uart";
1277 reg = <0x01c29c00 0x400>;
1278 interrupts = <20>;
1279 reg-shift = <2>;
1280 reg-io-width = <4>;
Emilio López9ff49ec2013-03-27 18:20:39 -03001281 clocks = <&apb1_gates 23>;
Maxime Ripard76f14d0a2013-02-20 17:38:27 -08001282 status = "disabled";
1283 };
Maxime Ripardf1741fd2013-03-10 13:34:36 +01001284
1285 i2c0: i2c@01c2ac00 {
Maxime Ripardd2755452014-03-31 14:54:58 +02001286 compatible = "allwinner,sun4i-a10-i2c";
Maxime Ripardf1741fd2013-03-10 13:34:36 +01001287 reg = <0x01c2ac00 0x400>;
1288 interrupts = <7>;
1289 clocks = <&apb1_gates 0>;
Maxime Ripardf1741fd2013-03-10 13:34:36 +01001290 status = "disabled";
Hans de Goede60bbe312014-04-13 13:41:03 +02001291 #address-cells = <1>;
1292 #size-cells = <0>;
Maxime Ripardf1741fd2013-03-10 13:34:36 +01001293 };
1294
1295 i2c1: i2c@01c2b000 {
Maxime Ripardd2755452014-03-31 14:54:58 +02001296 compatible = "allwinner,sun4i-a10-i2c";
Maxime Ripardf1741fd2013-03-10 13:34:36 +01001297 reg = <0x01c2b000 0x400>;
1298 interrupts = <8>;
1299 clocks = <&apb1_gates 1>;
Maxime Ripardf1741fd2013-03-10 13:34:36 +01001300 status = "disabled";
Hans de Goede60bbe312014-04-13 13:41:03 +02001301 #address-cells = <1>;
1302 #size-cells = <0>;
Maxime Ripardf1741fd2013-03-10 13:34:36 +01001303 };
1304
1305 i2c2: i2c@01c2b400 {
Maxime Ripardd2755452014-03-31 14:54:58 +02001306 compatible = "allwinner,sun4i-a10-i2c";
Maxime Ripardf1741fd2013-03-10 13:34:36 +01001307 reg = <0x01c2b400 0x400>;
1308 interrupts = <9>;
1309 clocks = <&apb1_gates 2>;
Maxime Ripardf1741fd2013-03-10 13:34:36 +01001310 status = "disabled";
Hans de Goede60bbe312014-04-13 13:41:03 +02001311 #address-cells = <1>;
1312 #size-cells = <0>;
Maxime Ripardf1741fd2013-03-10 13:34:36 +01001313 };
Vishnu Patekar196654a2015-01-25 19:10:08 +05301314
1315 ps20: ps2@01c2a000 {
1316 compatible = "allwinner,sun4i-a10-ps2";
1317 reg = <0x01c2a000 0x400>;
1318 interrupts = <62>;
1319 clocks = <&apb1_gates 6>;
1320 status = "disabled";
1321 };
1322
1323 ps21: ps2@01c2a400 {
1324 compatible = "allwinner,sun4i-a10-ps2";
1325 reg = <0x01c2a400 0x400>;
1326 interrupts = <63>;
1327 clocks = <&apb1_gates 7>;
1328 status = "disabled";
1329 };
Maxime Ripard874b4e42013-01-26 15:36:54 +01001330 };
Stefan Roese7423d2d2012-11-26 15:46:12 +01001331};