blob: 17e4598db1761bb0cc495f70d055f94f85c0eecd [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 *
20 * You should have received a copy of the GNU General Public
21 * License along with this library; if not, write to the Free
22 * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,
23 * MA 02110-1301 USA
24 *
25 * Or, alternatively,
26 *
27 * b) Permission is hereby granted, free of charge, to any person
28 * obtaining a copy of this software and associated documentation
29 * files (the "Software"), to deal in the Software without
30 * restriction, including without limitation the rights to use,
31 * copy, modify, merge, publish, distribute, sublicense, and/or
32 * sell copies of the Software, and to permit persons to whom the
33 * Software is furnished to do so, subject to the following
34 * conditions:
35 *
36 * The above copyright notice and this permission notice shall be
37 * included in all copies or substantial portions of the Software.
38 *
39 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
40 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
41 * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
42 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
43 * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
44 * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
45 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
46 * OTHER DEALINGS IN THE SOFTWARE.
Stefan Roese7423d2d2012-11-26 15:46:12 +010047 */
48
Maxime Ripard71455702014-12-16 22:59:54 +010049#include "skeleton.dtsi"
Stefan Roese7423d2d2012-11-26 15:46:12 +010050
Chen-Yu Tsai541ce2c2015-01-12 12:34:08 +080051#include <dt-bindings/thermal/thermal.h>
52
Maxime Ripard1f9f6a72014-12-16 22:59:56 +010053#include <dt-bindings/dma/sun4i-a10.h>
Maxime Ripard092a0c32014-12-16 22:59:57 +010054#include <dt-bindings/pinctrl/sun4i-a10.h>
Stefan Roese7423d2d2012-11-26 15:46:12 +010055
56/ {
Maxime Ripard69144e32013-03-13 20:07:37 +010057 interrupt-parent = <&intc>;
58
Emilio Lópeze751cce2013-11-16 15:17:29 -030059 aliases {
60 ethernet0 = &emac;
61 };
62
Hans de Goede5790d4e2014-11-14 16:34:34 +010063 chosen {
64 #address-cells = <1>;
65 #size-cells = <1>;
66 ranges;
67
Hans de Goedea9f8cda2014-11-18 12:07:13 +010068 framebuffer@0 {
69 compatible = "allwinner,simple-framebuffer", "simple-framebuffer";
70 allwinner,pipeline = "de_be0-lcd0-hdmi";
Hans de Goede678e75d2014-11-16 17:09:32 +010071 clocks = <&pll5 1>, <&ahb_gates 36>, <&ahb_gates 43>,
72 <&ahb_gates 44>;
Hans de Goede5790d4e2014-11-14 16:34:34 +010073 status = "disabled";
74 };
Hans de Goede8cedd662015-01-19 14:01:17 +010075
76 framebuffer@1 {
77 compatible = "allwinner,simple-framebuffer", "simple-framebuffer";
78 allwinner,pipeline = "de_fe0-de_be0-lcd0-hdmi";
79 clocks = <&pll5 1>, <&ahb_gates 36>, <&ahb_gates 43>,
80 <&ahb_gates 44>, <&ahb_gates 46>;
81 status = "disabled";
82 };
Hans de Goedefd18c7e2015-01-19 14:05:12 +010083
84 framebuffer@2 {
85 compatible = "allwinner,simple-framebuffer",
86 "simple-framebuffer";
87 allwinner,pipeline = "de_fe0-de_be0-lcd0";
88 clocks = <&pll5 1>, <&ahb_gates 36>, <&ahb_gates 44>,
89 <&ahb_gates 46>;
90 status = "disabled";
91 };
92
93 framebuffer@3 {
94 compatible = "allwinner,simple-framebuffer",
95 "simple-framebuffer";
96 allwinner,pipeline = "de_fe0-de_be0-lcd0-tve0";
97 clocks = <&pll5 1>, <&ahb_gates 34>, <&ahb_gates 36>,
98 <&ahb_gates 44>, <&ahb_gates 46>;
99 status = "disabled";
100 };
Hans de Goede5790d4e2014-11-14 16:34:34 +0100101 };
102
Maxime Ripard69144e32013-03-13 20:07:37 +0100103 cpus {
Arnd Bergmann8b2efa892013-06-10 16:48:36 +0200104 #address-cells = <1>;
105 #size-cells = <0>;
Chen-Yu Tsai7294be52015-01-06 10:35:23 +0800106 cpu0: cpu@0 {
Lorenzo Pieralisi14c44aa2013-04-18 18:41:57 +0100107 device_type = "cpu";
Maxime Ripard69144e32013-03-13 20:07:37 +0100108 compatible = "arm,cortex-a8";
Lorenzo Pieralisi14c44aa2013-04-18 18:41:57 +0100109 reg = <0x0>;
Chen-Yu Tsai7294be52015-01-06 10:35:23 +0800110 clocks = <&cpu>;
111 clock-latency = <244144>; /* 8 32k periods */
112 operating-points = <
113 /* kHz uV */
Chen-Yu Tsai7294be52015-01-06 10:35:23 +0800114 1008000 1400000
115 912000 1350000
116 864000 1300000
117 624000 1250000
118 >;
119 #cooling-cells = <2>;
120 cooling-min-level = <0>;
Chen-Yu Tsai370a9b52015-03-25 00:53:27 +0800121 cooling-max-level = <3>;
Maxime Ripard69144e32013-03-13 20:07:37 +0100122 };
123 };
124
Chen-Yu Tsai541ce2c2015-01-12 12:34:08 +0800125 thermal-zones {
126 cpu_thermal {
127 /* milliseconds */
128 polling-delay-passive = <250>;
129 polling-delay = <1000>;
130 thermal-sensors = <&rtp>;
131
132 cooling-maps {
133 map0 {
134 trip = <&cpu_alert0>;
135 cooling-device = <&cpu0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
136 };
137 };
138
139 trips {
140 cpu_alert0: cpu_alert0 {
141 /* milliCelsius */
142 temperature = <850000>;
143 hysteresis = <2000>;
144 type = "passive";
145 };
146
147 cpu_crit: cpu_crit {
148 /* milliCelsius */
149 temperature = <100000>;
150 hysteresis = <2000>;
151 type = "critical";
152 };
153 };
Stefan Roese7423d2d2012-11-26 15:46:12 +0100154 };
155 };
156
157 memory {
158 reg = <0x40000000 0x80000000>;
159 };
Maxime Ripard874b4e42013-01-26 15:36:54 +0100160
Maxime Ripard69144e32013-03-13 20:07:37 +0100161 clocks {
162 #address-cells = <1>;
163 #size-cells = <1>;
164 ranges;
165
166 /*
167 * This is a dummy clock, to be used as placeholder on
168 * other mux clocks when a specific parent clock is not
169 * yet implemented. It should be dropped when the driver
170 * is complete.
171 */
172 dummy: dummy {
173 #clock-cells = <0>;
174 compatible = "fixed-clock";
175 clock-frequency = <0>;
176 };
177
Chen-Yu Tsaidfb12c02014-02-03 09:51:41 +0800178 osc24M: clk@01c20050 {
Maxime Ripard69144e32013-03-13 20:07:37 +0100179 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100180 compatible = "allwinner,sun4i-a10-osc-clk";
Maxime Ripard69144e32013-03-13 20:07:37 +0100181 reg = <0x01c20050 0x4>;
Emilio López92fd6e02013-04-09 10:48:04 -0300182 clock-frequency = <24000000>;
Chen-Yu Tsaidfb12c02014-02-03 09:51:41 +0800183 clock-output-names = "osc24M";
Maxime Ripard69144e32013-03-13 20:07:37 +0100184 };
185
Chen-Yu Tsaidfb12c02014-02-03 09:51:41 +0800186 osc32k: clk@0 {
Maxime Ripard69144e32013-03-13 20:07:37 +0100187 #clock-cells = <0>;
188 compatible = "fixed-clock";
189 clock-frequency = <32768>;
Chen-Yu Tsaidfb12c02014-02-03 09:51:41 +0800190 clock-output-names = "osc32k";
Maxime Ripard69144e32013-03-13 20:07:37 +0100191 };
192
Chen-Yu Tsaidfb12c02014-02-03 09:51:41 +0800193 pll1: clk@01c20000 {
Maxime Ripard69144e32013-03-13 20:07:37 +0100194 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100195 compatible = "allwinner,sun4i-a10-pll1-clk";
Maxime Ripard69144e32013-03-13 20:07:37 +0100196 reg = <0x01c20000 0x4>;
197 clocks = <&osc24M>;
Chen-Yu Tsaidfb12c02014-02-03 09:51:41 +0800198 clock-output-names = "pll1";
Maxime Ripard69144e32013-03-13 20:07:37 +0100199 };
200
Chen-Yu Tsaidfb12c02014-02-03 09:51:41 +0800201 pll4: clk@01c20018 {
Emilio Lópezec5589f2013-12-23 00:32:35 -0300202 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100203 compatible = "allwinner,sun4i-a10-pll1-clk";
Emilio Lópezec5589f2013-12-23 00:32:35 -0300204 reg = <0x01c20018 0x4>;
205 clocks = <&osc24M>;
Chen-Yu Tsaidfb12c02014-02-03 09:51:41 +0800206 clock-output-names = "pll4";
Emilio Lópezec5589f2013-12-23 00:32:35 -0300207 };
208
Chen-Yu Tsaidfb12c02014-02-03 09:51:41 +0800209 pll5: clk@01c20020 {
Emilio Lópezc3e5e662013-12-23 00:32:38 -0300210 #clock-cells = <1>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100211 compatible = "allwinner,sun4i-a10-pll5-clk";
Emilio Lópezc3e5e662013-12-23 00:32:38 -0300212 reg = <0x01c20020 0x4>;
213 clocks = <&osc24M>;
214 clock-output-names = "pll5_ddr", "pll5_other";
215 };
216
Chen-Yu Tsaidfb12c02014-02-03 09:51:41 +0800217 pll6: clk@01c20028 {
Emilio Lópezc3e5e662013-12-23 00:32:38 -0300218 #clock-cells = <1>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100219 compatible = "allwinner,sun4i-a10-pll6-clk";
Emilio Lópezc3e5e662013-12-23 00:32:38 -0300220 reg = <0x01c20028 0x4>;
221 clocks = <&osc24M>;
222 clock-output-names = "pll6_sata", "pll6_other", "pll6";
223 };
224
Maxime Ripard69144e32013-03-13 20:07:37 +0100225 /* dummy is 200M */
226 cpu: cpu@01c20054 {
227 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100228 compatible = "allwinner,sun4i-a10-cpu-clk";
Maxime Ripard69144e32013-03-13 20:07:37 +0100229 reg = <0x01c20054 0x4>;
230 clocks = <&osc32k>, <&osc24M>, <&pll1>, <&dummy>;
Chen-Yu Tsaidfb12c02014-02-03 09:51:41 +0800231 clock-output-names = "cpu";
Maxime Ripard69144e32013-03-13 20:07:37 +0100232 };
233
234 axi: axi@01c20054 {
235 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100236 compatible = "allwinner,sun4i-a10-axi-clk";
Maxime Ripard69144e32013-03-13 20:07:37 +0100237 reg = <0x01c20054 0x4>;
238 clocks = <&cpu>;
Chen-Yu Tsaidfb12c02014-02-03 09:51:41 +0800239 clock-output-names = "axi";
Maxime Ripard69144e32013-03-13 20:07:37 +0100240 };
241
Chen-Yu Tsaidfb12c02014-02-03 09:51:41 +0800242 axi_gates: clk@01c2005c {
Maxime Ripard69144e32013-03-13 20:07:37 +0100243 #clock-cells = <1>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100244 compatible = "allwinner,sun4i-a10-axi-gates-clk";
Maxime Ripard69144e32013-03-13 20:07:37 +0100245 reg = <0x01c2005c 0x4>;
246 clocks = <&axi>;
247 clock-output-names = "axi_dram";
248 };
249
250 ahb: ahb@01c20054 {
251 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100252 compatible = "allwinner,sun4i-a10-ahb-clk";
Maxime Ripard69144e32013-03-13 20:07:37 +0100253 reg = <0x01c20054 0x4>;
254 clocks = <&axi>;
Chen-Yu Tsaidfb12c02014-02-03 09:51:41 +0800255 clock-output-names = "ahb";
Maxime Ripard69144e32013-03-13 20:07:37 +0100256 };
257
Chen-Yu Tsaidfb12c02014-02-03 09:51:41 +0800258 ahb_gates: clk@01c20060 {
Maxime Ripard69144e32013-03-13 20:07:37 +0100259 #clock-cells = <1>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100260 compatible = "allwinner,sun4i-a10-ahb-gates-clk";
Maxime Ripard69144e32013-03-13 20:07:37 +0100261 reg = <0x01c20060 0x8>;
262 clocks = <&ahb>;
263 clock-output-names = "ahb_usb0", "ahb_ehci0",
264 "ahb_ohci0", "ahb_ehci1", "ahb_ohci1", "ahb_ss",
265 "ahb_dma", "ahb_bist", "ahb_mmc0", "ahb_mmc1",
266 "ahb_mmc2", "ahb_mmc3", "ahb_ms", "ahb_nand",
267 "ahb_sdram", "ahb_ace", "ahb_emac", "ahb_ts",
268 "ahb_spi0", "ahb_spi1", "ahb_spi2", "ahb_spi3",
269 "ahb_pata", "ahb_sata", "ahb_gps", "ahb_ve",
270 "ahb_tvd", "ahb_tve0", "ahb_tve1", "ahb_lcd0",
271 "ahb_lcd1", "ahb_csi0", "ahb_csi1", "ahb_hdmi",
272 "ahb_de_be0", "ahb_de_be1", "ahb_de_fe0",
273 "ahb_de_fe1", "ahb_mp", "ahb_mali400";
274 };
275
276 apb0: apb0@01c20054 {
277 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100278 compatible = "allwinner,sun4i-a10-apb0-clk";
Maxime Ripard69144e32013-03-13 20:07:37 +0100279 reg = <0x01c20054 0x4>;
280 clocks = <&ahb>;
Chen-Yu Tsaidfb12c02014-02-03 09:51:41 +0800281 clock-output-names = "apb0";
Maxime Ripard69144e32013-03-13 20:07:37 +0100282 };
283
Chen-Yu Tsaidfb12c02014-02-03 09:51:41 +0800284 apb0_gates: clk@01c20068 {
Maxime Ripard69144e32013-03-13 20:07:37 +0100285 #clock-cells = <1>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100286 compatible = "allwinner,sun4i-a10-apb0-gates-clk";
Maxime Ripard69144e32013-03-13 20:07:37 +0100287 reg = <0x01c20068 0x4>;
288 clocks = <&apb0>;
289 clock-output-names = "apb0_codec", "apb0_spdif",
290 "apb0_ac97", "apb0_iis", "apb0_pio", "apb0_ir0",
291 "apb0_ir1", "apb0_keypad";
292 };
293
Emilio Lópezacbcc0f2014-11-06 11:40:30 +0800294 apb1: clk@01c20058 {
Maxime Ripard69144e32013-03-13 20:07:37 +0100295 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100296 compatible = "allwinner,sun4i-a10-apb1-clk";
Maxime Ripard69144e32013-03-13 20:07:37 +0100297 reg = <0x01c20058 0x4>;
Emilio Lópezacbcc0f2014-11-06 11:40:30 +0800298 clocks = <&osc24M>, <&pll6 1>, <&osc32k>;
Chen-Yu Tsaidfb12c02014-02-03 09:51:41 +0800299 clock-output-names = "apb1";
Maxime Ripard69144e32013-03-13 20:07:37 +0100300 };
301
Chen-Yu Tsaidfb12c02014-02-03 09:51:41 +0800302 apb1_gates: clk@01c2006c {
Maxime Ripard69144e32013-03-13 20:07:37 +0100303 #clock-cells = <1>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100304 compatible = "allwinner,sun4i-a10-apb1-gates-clk";
Maxime Ripard69144e32013-03-13 20:07:37 +0100305 reg = <0x01c2006c 0x4>;
306 clocks = <&apb1>;
307 clock-output-names = "apb1_i2c0", "apb1_i2c1",
308 "apb1_i2c2", "apb1_can", "apb1_scr",
309 "apb1_ps20", "apb1_ps21", "apb1_uart0",
310 "apb1_uart1", "apb1_uart2", "apb1_uart3",
311 "apb1_uart4", "apb1_uart5", "apb1_uart6",
312 "apb1_uart7";
313 };
Emilio López4b756ff2013-12-23 00:32:41 -0300314
315 nand_clk: clk@01c20080 {
316 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100317 compatible = "allwinner,sun4i-a10-mod0-clk";
Emilio López4b756ff2013-12-23 00:32:41 -0300318 reg = <0x01c20080 0x4>;
319 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
320 clock-output-names = "nand";
321 };
322
323 ms_clk: clk@01c20084 {
324 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100325 compatible = "allwinner,sun4i-a10-mod0-clk";
Emilio López4b756ff2013-12-23 00:32:41 -0300326 reg = <0x01c20084 0x4>;
327 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
328 clock-output-names = "ms";
329 };
330
331 mmc0_clk: clk@01c20088 {
Maxime Ripardd8c3a392014-07-11 19:39:06 +0200332 #clock-cells = <1>;
333 compatible = "allwinner,sun4i-a10-mmc-clk";
Emilio López4b756ff2013-12-23 00:32:41 -0300334 reg = <0x01c20088 0x4>;
335 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
Maxime Ripardd8c3a392014-07-11 19:39:06 +0200336 clock-output-names = "mmc0",
337 "mmc0_output",
338 "mmc0_sample";
Emilio López4b756ff2013-12-23 00:32:41 -0300339 };
340
341 mmc1_clk: clk@01c2008c {
Maxime Ripardd8c3a392014-07-11 19:39:06 +0200342 #clock-cells = <1>;
343 compatible = "allwinner,sun4i-a10-mmc-clk";
Emilio López4b756ff2013-12-23 00:32:41 -0300344 reg = <0x01c2008c 0x4>;
345 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
Maxime Ripardd8c3a392014-07-11 19:39:06 +0200346 clock-output-names = "mmc1",
347 "mmc1_output",
348 "mmc1_sample";
Emilio López4b756ff2013-12-23 00:32:41 -0300349 };
350
351 mmc2_clk: clk@01c20090 {
Maxime Ripardd8c3a392014-07-11 19:39:06 +0200352 #clock-cells = <1>;
353 compatible = "allwinner,sun4i-a10-mmc-clk";
Emilio López4b756ff2013-12-23 00:32:41 -0300354 reg = <0x01c20090 0x4>;
355 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
Maxime Ripardd8c3a392014-07-11 19:39:06 +0200356 clock-output-names = "mmc2",
357 "mmc2_output",
358 "mmc2_sample";
Emilio López4b756ff2013-12-23 00:32:41 -0300359 };
360
361 mmc3_clk: clk@01c20094 {
Maxime Ripardd8c3a392014-07-11 19:39:06 +0200362 #clock-cells = <1>;
363 compatible = "allwinner,sun4i-a10-mmc-clk";
Emilio López4b756ff2013-12-23 00:32:41 -0300364 reg = <0x01c20094 0x4>;
365 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
Maxime Ripardd8c3a392014-07-11 19:39:06 +0200366 clock-output-names = "mmc3",
367 "mmc3_output",
368 "mmc3_sample";
Emilio López4b756ff2013-12-23 00:32:41 -0300369 };
370
371 ts_clk: clk@01c20098 {
372 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100373 compatible = "allwinner,sun4i-a10-mod0-clk";
Emilio López4b756ff2013-12-23 00:32:41 -0300374 reg = <0x01c20098 0x4>;
375 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
376 clock-output-names = "ts";
377 };
378
379 ss_clk: clk@01c2009c {
380 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100381 compatible = "allwinner,sun4i-a10-mod0-clk";
Emilio López4b756ff2013-12-23 00:32:41 -0300382 reg = <0x01c2009c 0x4>;
383 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
384 clock-output-names = "ss";
385 };
386
387 spi0_clk: clk@01c200a0 {
388 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100389 compatible = "allwinner,sun4i-a10-mod0-clk";
Emilio López4b756ff2013-12-23 00:32:41 -0300390 reg = <0x01c200a0 0x4>;
391 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
392 clock-output-names = "spi0";
393 };
394
395 spi1_clk: clk@01c200a4 {
396 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100397 compatible = "allwinner,sun4i-a10-mod0-clk";
Emilio López4b756ff2013-12-23 00:32:41 -0300398 reg = <0x01c200a4 0x4>;
399 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
400 clock-output-names = "spi1";
401 };
402
403 spi2_clk: clk@01c200a8 {
404 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100405 compatible = "allwinner,sun4i-a10-mod0-clk";
Emilio López4b756ff2013-12-23 00:32:41 -0300406 reg = <0x01c200a8 0x4>;
407 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
408 clock-output-names = "spi2";
409 };
410
411 pata_clk: clk@01c200ac {
412 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100413 compatible = "allwinner,sun4i-a10-mod0-clk";
Emilio López4b756ff2013-12-23 00:32:41 -0300414 reg = <0x01c200ac 0x4>;
415 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
416 clock-output-names = "pata";
417 };
418
419 ir0_clk: clk@01c200b0 {
420 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100421 compatible = "allwinner,sun4i-a10-mod0-clk";
Emilio López4b756ff2013-12-23 00:32:41 -0300422 reg = <0x01c200b0 0x4>;
423 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
424 clock-output-names = "ir0";
425 };
426
427 ir1_clk: clk@01c200b4 {
428 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100429 compatible = "allwinner,sun4i-a10-mod0-clk";
Emilio López4b756ff2013-12-23 00:32:41 -0300430 reg = <0x01c200b4 0x4>;
431 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
432 clock-output-names = "ir1";
433 };
434
Roman Byshko0076c8b2014-02-07 16:21:51 +0100435 usb_clk: clk@01c200cc {
436 #clock-cells = <1>;
437 #reset-cells = <1>;
438 compatible = "allwinner,sun4i-a10-usb-clk";
439 reg = <0x01c200cc 0x4>;
440 clocks = <&pll6 1>;
441 clock-output-names = "usb_ohci0", "usb_ohci1", "usb_phy";
442 };
443
Emilio López4b756ff2013-12-23 00:32:41 -0300444 spi3_clk: clk@01c200d4 {
445 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100446 compatible = "allwinner,sun4i-a10-mod0-clk";
Emilio López4b756ff2013-12-23 00:32:41 -0300447 reg = <0x01c200d4 0x4>;
448 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
449 clock-output-names = "spi3";
450 };
Maxime Ripard69144e32013-03-13 20:07:37 +0100451 };
452
Maxime Ripardb74aec12013-08-03 16:07:36 +0200453 soc@01c00000 {
Maxime Ripard69144e32013-03-13 20:07:37 +0100454 compatible = "simple-bus";
455 #address-cells = <1>;
456 #size-cells = <1>;
Maxime Ripard69144e32013-03-13 20:07:37 +0100457 ranges;
458
Emilio López1324f532014-08-04 17:09:57 -0300459 dma: dma-controller@01c02000 {
460 compatible = "allwinner,sun4i-a10-dma";
461 reg = <0x01c02000 0x1000>;
462 interrupts = <27>;
463 clocks = <&ahb_gates 6>;
464 #dma-cells = <2>;
465 };
466
Maxime Ripard65918e22014-02-22 22:35:55 +0100467 spi0: spi@01c05000 {
468 compatible = "allwinner,sun4i-a10-spi";
469 reg = <0x01c05000 0x1000>;
470 interrupts = <10>;
471 clocks = <&ahb_gates 20>, <&spi0_clk>;
472 clock-names = "ahb", "mod";
Maxime Ripard1f9f6a72014-12-16 22:59:56 +0100473 dmas = <&dma SUN4I_DMA_DEDICATED 27>,
474 <&dma SUN4I_DMA_DEDICATED 26>;
Emilio López4192ff82014-08-04 17:10:00 -0300475 dma-names = "rx", "tx";
Maxime Ripard65918e22014-02-22 22:35:55 +0100476 status = "disabled";
477 #address-cells = <1>;
478 #size-cells = <0>;
479 };
480
481 spi1: spi@01c06000 {
482 compatible = "allwinner,sun4i-a10-spi";
483 reg = <0x01c06000 0x1000>;
484 interrupts = <11>;
485 clocks = <&ahb_gates 21>, <&spi1_clk>;
486 clock-names = "ahb", "mod";
Maxime Ripard1f9f6a72014-12-16 22:59:56 +0100487 dmas = <&dma SUN4I_DMA_DEDICATED 9>,
488 <&dma SUN4I_DMA_DEDICATED 8>;
Emilio López4192ff82014-08-04 17:10:00 -0300489 dma-names = "rx", "tx";
Maxime Ripard65918e22014-02-22 22:35:55 +0100490 status = "disabled";
491 #address-cells = <1>;
492 #size-cells = <0>;
493 };
494
Maxime Riparde38afcb2013-05-30 03:49:23 +0000495 emac: ethernet@01c0b000 {
Maxime Ripard1c70e092014-02-02 14:49:13 +0100496 compatible = "allwinner,sun4i-a10-emac";
Maxime Riparde38afcb2013-05-30 03:49:23 +0000497 reg = <0x01c0b000 0x1000>;
498 interrupts = <55>;
499 clocks = <&ahb_gates 17>;
500 status = "disabled";
501 };
502
Aleksei Mamlin92395f52015-01-19 22:35:22 +0300503 mdio: mdio@01c0b080 {
Maxime Ripard1c70e092014-02-02 14:49:13 +0100504 compatible = "allwinner,sun4i-a10-mdio";
Maxime Riparde38afcb2013-05-30 03:49:23 +0000505 reg = <0x01c0b080 0x14>;
506 status = "disabled";
507 #address-cells = <1>;
508 #size-cells = <0>;
509 };
510
David Lanzendörferb258b362014-05-02 17:57:18 +0200511 mmc0: mmc@01c0f000 {
512 compatible = "allwinner,sun4i-a10-mmc";
513 reg = <0x01c0f000 0x1000>;
Maxime Ripardd8c3a392014-07-11 19:39:06 +0200514 clocks = <&ahb_gates 8>,
515 <&mmc0_clk 0>,
516 <&mmc0_clk 1>,
517 <&mmc0_clk 2>;
518 clock-names = "ahb",
519 "mmc",
520 "output",
521 "sample";
David Lanzendörferb258b362014-05-02 17:57:18 +0200522 interrupts = <32>;
523 status = "disabled";
524 };
525
526 mmc1: mmc@01c10000 {
527 compatible = "allwinner,sun4i-a10-mmc";
528 reg = <0x01c10000 0x1000>;
Maxime Ripardd8c3a392014-07-11 19:39:06 +0200529 clocks = <&ahb_gates 9>,
530 <&mmc1_clk 0>,
531 <&mmc1_clk 1>,
532 <&mmc1_clk 2>;
533 clock-names = "ahb",
534 "mmc",
535 "output",
536 "sample";
David Lanzendörferb258b362014-05-02 17:57:18 +0200537 interrupts = <33>;
538 status = "disabled";
539 };
540
541 mmc2: mmc@01c11000 {
542 compatible = "allwinner,sun4i-a10-mmc";
543 reg = <0x01c11000 0x1000>;
Maxime Ripardd8c3a392014-07-11 19:39:06 +0200544 clocks = <&ahb_gates 10>,
545 <&mmc2_clk 0>,
546 <&mmc2_clk 1>,
547 <&mmc2_clk 2>;
548 clock-names = "ahb",
549 "mmc",
550 "output",
551 "sample";
David Lanzendörferb258b362014-05-02 17:57:18 +0200552 interrupts = <34>;
553 status = "disabled";
554 };
555
556 mmc3: mmc@01c12000 {
557 compatible = "allwinner,sun4i-a10-mmc";
558 reg = <0x01c12000 0x1000>;
Maxime Ripardd8c3a392014-07-11 19:39:06 +0200559 clocks = <&ahb_gates 11>,
560 <&mmc3_clk 0>,
561 <&mmc3_clk 1>,
562 <&mmc3_clk 2>;
563 clock-names = "ahb",
564 "mmc",
565 "output",
566 "sample";
David Lanzendörferb258b362014-05-02 17:57:18 +0200567 interrupts = <35>;
568 status = "disabled";
569 };
570
Roman Byshko6ab1ce22014-03-01 20:26:23 +0100571 usbphy: phy@01c13400 {
572 #phy-cells = <1>;
573 compatible = "allwinner,sun4i-a10-usb-phy";
574 reg = <0x01c13400 0x10 0x01c14800 0x4 0x01c1c800 0x4>;
575 reg-names = "phy_ctrl", "pmu1", "pmu2";
576 clocks = <&usb_clk 8>;
577 clock-names = "usb_phy";
Chen-Yu Tsai4dba4182014-12-18 19:10:35 +0800578 resets = <&usb_clk 0>, <&usb_clk 1>, <&usb_clk 2>;
579 reset-names = "usb0_reset", "usb1_reset", "usb2_reset";
Roman Byshko6ab1ce22014-03-01 20:26:23 +0100580 status = "disabled";
581 };
582
583 ehci0: usb@01c14000 {
584 compatible = "allwinner,sun4i-a10-ehci", "generic-ehci";
585 reg = <0x01c14000 0x100>;
586 interrupts = <39>;
587 clocks = <&ahb_gates 1>;
588 phys = <&usbphy 1>;
589 phy-names = "usb";
590 status = "disabled";
591 };
592
593 ohci0: usb@01c14400 {
594 compatible = "allwinner,sun4i-a10-ohci", "generic-ohci";
595 reg = <0x01c14400 0x100>;
596 interrupts = <64>;
597 clocks = <&usb_clk 6>, <&ahb_gates 2>;
598 phys = <&usbphy 1>;
599 phy-names = "usb";
600 status = "disabled";
601 };
602
Maxime Ripard65918e22014-02-22 22:35:55 +0100603 spi2: spi@01c17000 {
604 compatible = "allwinner,sun4i-a10-spi";
605 reg = <0x01c17000 0x1000>;
606 interrupts = <12>;
607 clocks = <&ahb_gates 22>, <&spi2_clk>;
608 clock-names = "ahb", "mod";
Maxime Ripard1f9f6a72014-12-16 22:59:56 +0100609 dmas = <&dma SUN4I_DMA_DEDICATED 29>,
610 <&dma SUN4I_DMA_DEDICATED 28>;
Emilio López4192ff82014-08-04 17:10:00 -0300611 dma-names = "rx", "tx";
Maxime Ripard65918e22014-02-22 22:35:55 +0100612 status = "disabled";
613 #address-cells = <1>;
614 #size-cells = <0>;
615 };
616
Oliver Schinagl248bd1e2014-03-01 20:26:21 +0100617 ahci: sata@01c18000 {
618 compatible = "allwinner,sun4i-a10-ahci";
619 reg = <0x01c18000 0x1000>;
620 interrupts = <56>;
621 clocks = <&pll6 0>, <&ahb_gates 25>;
622 status = "disabled";
623 };
624
Roman Byshko6ab1ce22014-03-01 20:26:23 +0100625 ehci1: usb@01c1c000 {
626 compatible = "allwinner,sun4i-a10-ehci", "generic-ehci";
627 reg = <0x01c1c000 0x100>;
628 interrupts = <40>;
629 clocks = <&ahb_gates 3>;
630 phys = <&usbphy 2>;
631 phy-names = "usb";
632 status = "disabled";
633 };
634
635 ohci1: usb@01c1c400 {
636 compatible = "allwinner,sun4i-a10-ohci", "generic-ohci";
637 reg = <0x01c1c400 0x100>;
638 interrupts = <65>;
639 clocks = <&usb_clk 7>, <&ahb_gates 4>;
640 phys = <&usbphy 2>;
641 phy-names = "usb";
642 status = "disabled";
643 };
644
Maxime Ripard65918e22014-02-22 22:35:55 +0100645 spi3: spi@01c1f000 {
646 compatible = "allwinner,sun4i-a10-spi";
647 reg = <0x01c1f000 0x1000>;
648 interrupts = <50>;
649 clocks = <&ahb_gates 23>, <&spi3_clk>;
650 clock-names = "ahb", "mod";
Maxime Ripard1f9f6a72014-12-16 22:59:56 +0100651 dmas = <&dma SUN4I_DMA_DEDICATED 31>,
652 <&dma SUN4I_DMA_DEDICATED 30>;
Emilio López4192ff82014-08-04 17:10:00 -0300653 dma-names = "rx", "tx";
Maxime Ripard65918e22014-02-22 22:35:55 +0100654 status = "disabled";
655 #address-cells = <1>;
656 #size-cells = <0>;
657 };
658
Maxime Ripard69144e32013-03-13 20:07:37 +0100659 intc: interrupt-controller@01c20400 {
Maxime Ripard09504a72014-02-07 21:50:26 +0100660 compatible = "allwinner,sun4i-a10-ic";
Maxime Ripard69144e32013-03-13 20:07:37 +0100661 reg = <0x01c20400 0x400>;
662 interrupt-controller;
663 #interrupt-cells = <1>;
664 };
665
Maxime Riparde10911e2013-01-27 19:26:05 +0100666 pio: pinctrl@01c20800 {
Maxime Ripard874b4e42013-01-26 15:36:54 +0100667 compatible = "allwinner,sun4i-a10-pinctrl";
668 reg = <0x01c20800 0x400>;
Maxime Ripard39138bc2013-04-06 15:00:48 +0200669 interrupts = <28>;
Emilio López36386d62013-03-27 18:20:41 -0300670 clocks = <&apb0_gates 5>;
Maxime Riparde10911e2013-01-27 19:26:05 +0100671 gpio-controller;
Maxime Ripard39138bc2013-04-06 15:00:48 +0200672 interrupt-controller;
Chen-Yu Tsai7d4ff962014-06-30 23:57:51 +0200673 #interrupt-cells = <2>;
Maxime Ripard874b4e42013-01-26 15:36:54 +0100674 #size-cells = <0>;
Maxime Riparde10911e2013-01-27 19:26:05 +0100675 #gpio-cells = <3>;
Maxime Ripard581981b2013-01-26 15:36:55 +0100676
Alexandre Belloni1d5726e2014-04-28 18:17:10 +0200677 pwm0_pins_a: pwm0@0 {
678 allwinner,pins = "PB2";
679 allwinner,function = "pwm";
Maxime Ripard092a0c32014-12-16 22:59:57 +0100680 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
681 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Alexandre Belloni1d5726e2014-04-28 18:17:10 +0200682 };
683
684 pwm1_pins_a: pwm1@0 {
685 allwinner,pins = "PI3";
686 allwinner,function = "pwm";
Maxime Ripard092a0c32014-12-16 22:59:57 +0100687 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
688 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Alexandre Belloni1d5726e2014-04-28 18:17:10 +0200689 };
690
Maxime Ripard581981b2013-01-26 15:36:55 +0100691 uart0_pins_a: uart0@0 {
692 allwinner,pins = "PB22", "PB23";
693 allwinner,function = "uart0";
Maxime Ripard092a0c32014-12-16 22:59:57 +0100694 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
695 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Maxime Ripard581981b2013-01-26 15:36:55 +0100696 };
697
698 uart0_pins_b: uart0@1 {
699 allwinner,pins = "PF2", "PF4";
700 allwinner,function = "uart0";
Maxime Ripard092a0c32014-12-16 22:59:57 +0100701 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
702 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Maxime Ripard581981b2013-01-26 15:36:55 +0100703 };
704
705 uart1_pins_a: uart1@0 {
706 allwinner,pins = "PA10", "PA11";
707 allwinner,function = "uart1";
Maxime Ripard092a0c32014-12-16 22:59:57 +0100708 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
709 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Maxime Ripard581981b2013-01-26 15:36:55 +0100710 };
Maxime Ripard27cce4f2013-03-10 13:44:38 +0100711
712 i2c0_pins_a: i2c0@0 {
713 allwinner,pins = "PB0", "PB1";
714 allwinner,function = "i2c0";
Maxime Ripard092a0c32014-12-16 22:59:57 +0100715 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
716 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Maxime Ripard27cce4f2013-03-10 13:44:38 +0100717 };
718
719 i2c1_pins_a: i2c1@0 {
720 allwinner,pins = "PB18", "PB19";
721 allwinner,function = "i2c1";
Maxime Ripard092a0c32014-12-16 22:59:57 +0100722 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
723 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Maxime Ripard27cce4f2013-03-10 13:44:38 +0100724 };
725
726 i2c2_pins_a: i2c2@0 {
727 allwinner,pins = "PB20", "PB21";
728 allwinner,function = "i2c2";
Maxime Ripard092a0c32014-12-16 22:59:57 +0100729 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
730 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Maxime Ripard27cce4f2013-03-10 13:44:38 +0100731 };
Linus Torvalds496322b2013-07-09 18:24:39 -0700732
Maxime Ripardb21da662013-05-30 03:49:22 +0000733 emac_pins_a: emac0@0 {
734 allwinner,pins = "PA0", "PA1", "PA2",
735 "PA3", "PA4", "PA5", "PA6",
736 "PA7", "PA8", "PA9", "PA10",
737 "PA11", "PA12", "PA13", "PA14",
738 "PA15", "PA16";
739 allwinner,function = "emac";
Maxime Ripard092a0c32014-12-16 22:59:57 +0100740 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
741 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Maxime Ripardb21da662013-05-30 03:49:22 +0000742 };
Hans de Goedeb5f86a32014-05-02 17:57:19 +0200743
744 mmc0_pins_a: mmc0@0 {
745 allwinner,pins = "PF0","PF1","PF2","PF3","PF4","PF5";
746 allwinner,function = "mmc0";
Maxime Ripard092a0c32014-12-16 22:59:57 +0100747 allwinner,drive = <SUN4I_PINCTRL_30_MA>;
748 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Hans de Goedeb5f86a32014-05-02 17:57:19 +0200749 };
750
751 mmc0_cd_pin_reference_design: mmc0_cd_pin@0 {
752 allwinner,pins = "PH1";
753 allwinner,function = "gpio_in";
Maxime Ripard092a0c32014-12-16 22:59:57 +0100754 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
755 allwinner,pull = <SUN4I_PINCTRL_PULL_UP>;
Hans de Goedeb5f86a32014-05-02 17:57:19 +0200756 };
Hans de Goedea4e10992014-06-30 23:57:58 +0200757
758 ir0_pins_a: ir0@0 {
759 allwinner,pins = "PB3","PB4";
760 allwinner,function = "ir0";
Maxime Ripard092a0c32014-12-16 22:59:57 +0100761 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
762 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Hans de Goedea4e10992014-06-30 23:57:58 +0200763 };
764
765 ir1_pins_a: ir1@0 {
766 allwinner,pins = "PB22","PB23";
767 allwinner,function = "ir1";
Maxime Ripard092a0c32014-12-16 22:59:57 +0100768 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
769 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Hans de Goedea4e10992014-06-30 23:57:58 +0200770 };
Alexandru Gagniucec66d0b2014-12-08 04:14:01 -0600771
772 spi0_pins_a: spi0@0 {
773 allwinner,pins = "PI10", "PI11", "PI12", "PI13";
774 allwinner,function = "spi0";
Maxime Ripard092a0c32014-12-16 22:59:57 +0100775 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
776 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Alexandru Gagniucec66d0b2014-12-08 04:14:01 -0600777 };
778
779 spi1_pins_a: spi1@0 {
780 allwinner,pins = "PI16", "PI17", "PI18", "PI19";
781 allwinner,function = "spi1";
Maxime Ripard092a0c32014-12-16 22:59:57 +0100782 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
783 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Alexandru Gagniucec66d0b2014-12-08 04:14:01 -0600784 };
785
786 spi2_pins_a: spi2@0 {
787 allwinner,pins = "PB14", "PB15", "PB16", "PB17";
788 allwinner,function = "spi2";
Maxime Ripard092a0c32014-12-16 22:59:57 +0100789 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
790 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Alexandru Gagniucec66d0b2014-12-08 04:14:01 -0600791 };
792
793 spi2_pins_b: spi2@1 {
794 allwinner,pins = "PC19", "PC20", "PC21", "PC22";
795 allwinner,function = "spi2";
Maxime Ripard092a0c32014-12-16 22:59:57 +0100796 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
797 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Alexandru Gagniucec66d0b2014-12-08 04:14:01 -0600798 };
Vishnu Patekar1e8d1562015-01-25 19:10:09 +0530799
800 ps20_pins_a: ps20@0 {
801 allwinner,pins = "PI20", "PI21";
802 allwinner,function = "ps2";
803 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
804 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
805 };
806
807 ps21_pins_a: ps21@0 {
808 allwinner,pins = "PH12", "PH13";
809 allwinner,function = "ps2";
810 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
811 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Maxime Ripard69144e32013-03-13 20:07:37 +0100812 };
Carlo Caioneb5d905c2013-10-16 20:30:26 +0200813 };
Maxime Ripard5fc4bc82014-04-03 14:50:03 -0700814
Carlo Caioneb5d905c2013-10-16 20:30:26 +0200815 timer@01c20c00 {
816 compatible = "allwinner,sun4i-a10-timer";
817 reg = <0x01c20c00 0x90>;
818 interrupts = <22>;
Alexandre Belloni4b57a392014-04-28 18:17:11 +0200819 clocks = <&osc24M>;
820 };
821
822 wdt: watchdog@01c20c90 {
823 compatible = "allwinner,sun4i-a10-wdt";
824 reg = <0x01c20c90 0x10>;
825 };
826
Oliver Schinagl2bad9692013-09-03 12:33:28 +0200827 rtc: rtc@01c20d00 {
Maxime Ripard043d56e2014-02-07 22:20:40 +0100828 compatible = "allwinner,sun4i-a10-rtc";
Oliver Schinagl2bad9692013-09-03 12:33:28 +0200829 reg = <0x01c20d00 0x20>;
830 interrupts = <24>;
831 };
Hans de Goede57c88392013-12-31 17:20:50 +0100832
Maxime Ripard40dd8f32014-02-02 14:52:40 +0100833 pwm: pwm@01c20e00 {
Hans de Goede57c88392013-12-31 17:20:50 +0100834 compatible = "allwinner,sun4i-a10-pwm";
835 reg = <0x01c20e00 0xc>;
836 clocks = <&osc24M>;
837 #pwm-cells = <3>;
Maxime Ripard89b3c992013-02-20 17:25:03 -0800838 status = "disabled";
839 };
840
Hans de Goedea4e10992014-06-30 23:57:58 +0200841 ir0: ir@01c21800 {
842 compatible = "allwinner,sun4i-a10-ir";
843 clocks = <&apb0_gates 6>, <&ir0_clk>;
844 clock-names = "apb", "ir";
845 interrupts = <5>;
846 reg = <0x01c21800 0x40>;
847 status = "disabled";
848 };
849
850 ir1: ir@01c21c00 {
851 compatible = "allwinner,sun4i-a10-ir";
852 clocks = <&apb0_gates 7>, <&ir1_clk>;
853 clock-names = "apb", "ir";
854 interrupts = <6>;
855 reg = <0x01c21c00 0x40>;
856 status = "disabled";
857 };
858
Hans de Goedeb0512e12014-12-23 11:13:20 +0100859 lradc: lradc@01c22800 {
860 compatible = "allwinner,sun4i-a10-lradc-keys";
861 reg = <0x01c22800 0x100>;
862 interrupts = <31>;
863 status = "disabled";
864 };
865
Maxime Ripard89b3c992013-02-20 17:25:03 -0800866 sid: eeprom@01c23800 {
867 compatible = "allwinner,sun4i-a10-sid";
868 reg = <0x01c23800 0x10>;
869 };
870
871 rtp: rtp@01c25000 {
Emilio López9ff49ec2013-03-27 18:20:39 -0300872 compatible = "allwinner,sun4i-a10-ts";
Maxime Ripard89b3c992013-02-20 17:25:03 -0800873 reg = <0x01c25000 0x100>;
874 interrupts = <29>;
Chen-Yu Tsai41e7afb2015-01-06 10:35:15 +0800875 #thermal-sensor-cells = <0>;
Stefan Roese7423d2d2012-11-26 15:46:12 +0100876 };
877
878 uart0: serial@01c28000 {
879 compatible = "snps,dw-apb-uart";
880 reg = <0x01c28000 0x400>;
Maxime Ripard76f14d0a2013-02-20 17:38:27 -0800881 interrupts = <1>;
Maxime Ripard69144e32013-03-13 20:07:37 +0100882 reg-shift = <2>;
883 reg-io-width = <4>;
884 clocks = <&apb1_gates 16>;
885 status = "disabled";
886 };
887
888 uart1: serial@01c28400 {
889 compatible = "snps,dw-apb-uart";
890 reg = <0x01c28400 0x400>;
891 interrupts = <2>;
Maxime Ripard76f14d0a2013-02-20 17:38:27 -0800892 reg-shift = <2>;
893 reg-io-width = <4>;
894 clocks = <&apb1_gates 17>;
895 status = "disabled";
896 };
897
Emilio López9ff49ec2013-03-27 18:20:39 -0300898 uart2: serial@01c28800 {
Maxime Ripard76f14d0a2013-02-20 17:38:27 -0800899 compatible = "snps,dw-apb-uart";
900 reg = <0x01c28800 0x400>;
901 interrupts = <3>;
Maxime Ripard69144e32013-03-13 20:07:37 +0100902 reg-shift = <2>;
903 reg-io-width = <4>;
904 clocks = <&apb1_gates 18>;
905 status = "disabled";
906 };
907
908 uart3: serial@01c28c00 {
909 compatible = "snps,dw-apb-uart";
910 reg = <0x01c28c00 0x400>;
911 interrupts = <4>;
Maxime Ripard76f14d0a2013-02-20 17:38:27 -0800912 reg-shift = <2>;
913 reg-io-width = <4>;
914 clocks = <&apb1_gates 19>;
915 status = "disabled";
916 };
917
Emilio López9ff49ec2013-03-27 18:20:39 -0300918 uart4: serial@01c29000 {
Maxime Ripard76f14d0a2013-02-20 17:38:27 -0800919 compatible = "snps,dw-apb-uart";
920 reg = <0x01c29000 0x400>;
921 interrupts = <17>;
922 reg-shift = <2>;
923 reg-io-width = <4>;
924 clocks = <&apb1_gates 20>;
925 status = "disabled";
926 };
927
Emilio López9ff49ec2013-03-27 18:20:39 -0300928 uart5: serial@01c29400 {
Maxime Ripard76f14d0a2013-02-20 17:38:27 -0800929 compatible = "snps,dw-apb-uart";
930 reg = <0x01c29400 0x400>;
931 interrupts = <18>;
932 reg-shift = <2>;
933 reg-io-width = <4>;
934 clocks = <&apb1_gates 21>;
935 status = "disabled";
936 };
937
Emilio López9ff49ec2013-03-27 18:20:39 -0300938 uart6: serial@01c29800 {
Maxime Ripard76f14d0a2013-02-20 17:38:27 -0800939 compatible = "snps,dw-apb-uart";
940 reg = <0x01c29800 0x400>;
941 interrupts = <19>;
942 reg-shift = <2>;
943 reg-io-width = <4>;
944 clocks = <&apb1_gates 22>;
945 status = "disabled";
946 };
947
Emilio López9ff49ec2013-03-27 18:20:39 -0300948 uart7: serial@01c29c00 {
Maxime Ripard76f14d0a2013-02-20 17:38:27 -0800949 compatible = "snps,dw-apb-uart";
950 reg = <0x01c29c00 0x400>;
Maxime Ripardf1741fd2013-03-10 13:34:36 +0100951 interrupts = <20>;
952 reg-shift = <2>;
953 reg-io-width = <4>;
954 clocks = <&apb1_gates 23>;
955 status = "disabled";
956 };
957
958 i2c0: i2c@01c2ac00 {
Maxime Ripardd2755452014-03-31 14:54:58 +0200959 compatible = "allwinner,sun4i-a10-i2c";
Maxime Ripardf1741fd2013-03-10 13:34:36 +0100960 reg = <0x01c2ac00 0x400>;
961 interrupts = <7>;
962 clocks = <&apb1_gates 0>;
Maxime Ripardf1741fd2013-03-10 13:34:36 +0100963 status = "disabled";
Hans de Goede60bbe312014-04-13 13:41:03 +0200964 #address-cells = <1>;
965 #size-cells = <0>;
Maxime Ripardf1741fd2013-03-10 13:34:36 +0100966 };
967
968 i2c1: i2c@01c2b000 {
Maxime Ripardd2755452014-03-31 14:54:58 +0200969 compatible = "allwinner,sun4i-a10-i2c";
Maxime Ripardf1741fd2013-03-10 13:34:36 +0100970 reg = <0x01c2b000 0x400>;
971 interrupts = <8>;
972 clocks = <&apb1_gates 1>;
Maxime Ripardf1741fd2013-03-10 13:34:36 +0100973 status = "disabled";
Hans de Goede60bbe312014-04-13 13:41:03 +0200974 #address-cells = <1>;
975 #size-cells = <0>;
Maxime Ripardf1741fd2013-03-10 13:34:36 +0100976 };
977
978 i2c2: i2c@01c2b400 {
Maxime Ripardd2755452014-03-31 14:54:58 +0200979 compatible = "allwinner,sun4i-a10-i2c";
Maxime Ripardf1741fd2013-03-10 13:34:36 +0100980 reg = <0x01c2b400 0x400>;
981 interrupts = <9>;
982 clocks = <&apb1_gates 2>;
Maxime Ripardf1741fd2013-03-10 13:34:36 +0100983 status = "disabled";
Hans de Goede60bbe312014-04-13 13:41:03 +0200984 #address-cells = <1>;
985 #size-cells = <0>;
Maxime Ripardf1741fd2013-03-10 13:34:36 +0100986 };
Vishnu Patekar196654a2015-01-25 19:10:08 +0530987
988 ps20: ps2@01c2a000 {
989 compatible = "allwinner,sun4i-a10-ps2";
990 reg = <0x01c2a000 0x400>;
991 interrupts = <62>;
992 clocks = <&apb1_gates 6>;
993 status = "disabled";
994 };
995
996 ps21: ps2@01c2a400 {
997 compatible = "allwinner,sun4i-a10-ps2";
998 reg = <0x01c2a400 0x400>;
999 interrupts = <63>;
1000 clocks = <&apb1_gates 7>;
1001 status = "disabled";
1002 };
Stefan Roese7423d2d2012-11-26 15:46:12 +01001003 };
1004};