blob: 62fcef9b5eca154bfb0fca603af461e26df69201 [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 Goede678e75d2014-11-16 17:09:32 +010068 clocks = <&pll5 1>, <&ahb_gates 36>, <&ahb_gates 43>,
Chen-Yu Tsai82f85822015-12-05 21:16:44 +080069 <&ahb_gates 44>, <&dram_gates 26>;
Hans de Goede5790d4e2014-11-14 16:34:34 +010070 status = "disabled";
71 };
Hans de Goede8cedd662015-01-19 14:01:17 +010072
73 framebuffer@1 {
Maxime Ripardd8cacaa2015-05-03 11:53:07 +020074 compatible = "allwinner,simple-framebuffer",
75 "simple-framebuffer";
Hans de Goede8cedd662015-01-19 14:01:17 +010076 allwinner,pipeline = "de_fe0-de_be0-lcd0-hdmi";
77 clocks = <&pll5 1>, <&ahb_gates 36>, <&ahb_gates 43>,
Chen-Yu Tsai82f85822015-12-05 21:16:44 +080078 <&ahb_gates 44>, <&ahb_gates 46>,
79 <&dram_gates 25>, <&dram_gates 26>;
Hans de Goede8cedd662015-01-19 14:01:17 +010080 status = "disabled";
81 };
Hans de Goedefd18c7e2015-01-19 14:05:12 +010082
83 framebuffer@2 {
84 compatible = "allwinner,simple-framebuffer",
85 "simple-framebuffer";
86 allwinner,pipeline = "de_fe0-de_be0-lcd0";
87 clocks = <&pll5 1>, <&ahb_gates 36>, <&ahb_gates 44>,
Chen-Yu Tsai82f85822015-12-05 21:16:44 +080088 <&ahb_gates 46>, <&dram_gates 25>,
89 <&dram_gates 26>;
Hans de Goedefd18c7e2015-01-19 14:05:12 +010090 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>,
Chen-Yu Tsai82f85822015-12-05 21:16:44 +080098 <&ahb_gates 44>, <&ahb_gates 46>,
99 <&dram_gates 25>, <&dram_gates 26>;
Hans de Goedefd18c7e2015-01-19 14:05:12 +0100100 status = "disabled";
101 };
Hans de Goede5790d4e2014-11-14 16:34:34 +0100102 };
103
Maxime Ripard69144e32013-03-13 20:07:37 +0100104 cpus {
Arnd Bergmann8b2efa892013-06-10 16:48:36 +0200105 #address-cells = <1>;
106 #size-cells = <0>;
Chen-Yu Tsai7294be52015-01-06 10:35:23 +0800107 cpu0: cpu@0 {
Lorenzo Pieralisi14c44aa2013-04-18 18:41:57 +0100108 device_type = "cpu";
Maxime Ripard69144e32013-03-13 20:07:37 +0100109 compatible = "arm,cortex-a8";
Lorenzo Pieralisi14c44aa2013-04-18 18:41:57 +0100110 reg = <0x0>;
Chen-Yu Tsai7294be52015-01-06 10:35:23 +0800111 clocks = <&cpu>;
112 clock-latency = <244144>; /* 8 32k periods */
113 operating-points = <
Maxime Ripard8358aad2015-05-03 11:54:35 +0200114 /* kHz uV */
Chen-Yu Tsai7294be52015-01-06 10:35:23 +0800115 1008000 1400000
Maxime Ripard8358aad2015-05-03 11:54:35 +0200116 912000 1350000
117 864000 1300000
118 624000 1250000
Chen-Yu Tsai7294be52015-01-06 10:35:23 +0800119 >;
120 #cooling-cells = <2>;
121 cooling-min-level = <0>;
Chen-Yu Tsai370a9b52015-03-25 00:53:27 +0800122 cooling-max-level = <3>;
Maxime Ripard69144e32013-03-13 20:07:37 +0100123 };
124 };
125
Chen-Yu Tsai541ce2c2015-01-12 12:34:08 +0800126 thermal-zones {
127 cpu_thermal {
128 /* milliseconds */
129 polling-delay-passive = <250>;
130 polling-delay = <1000>;
131 thermal-sensors = <&rtp>;
132
133 cooling-maps {
134 map0 {
135 trip = <&cpu_alert0>;
136 cooling-device = <&cpu0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
137 };
138 };
139
140 trips {
141 cpu_alert0: cpu_alert0 {
142 /* milliCelsius */
143 temperature = <850000>;
144 hysteresis = <2000>;
145 type = "passive";
146 };
147
148 cpu_crit: cpu_crit {
149 /* milliCelsius */
150 temperature = <100000>;
151 hysteresis = <2000>;
152 type = "critical";
153 };
154 };
Stefan Roese7423d2d2012-11-26 15:46:12 +0100155 };
156 };
157
158 memory {
159 reg = <0x40000000 0x80000000>;
160 };
Maxime Ripard874b4e42013-01-26 15:36:54 +0100161
Maxime Ripard69144e32013-03-13 20:07:37 +0100162 clocks {
163 #address-cells = <1>;
164 #size-cells = <1>;
165 ranges;
166
167 /*
168 * This is a dummy clock, to be used as placeholder on
169 * other mux clocks when a specific parent clock is not
170 * yet implemented. It should be dropped when the driver
171 * is complete.
172 */
173 dummy: dummy {
174 #clock-cells = <0>;
175 compatible = "fixed-clock";
176 clock-frequency = <0>;
177 };
178
Chen-Yu Tsaidfb12c02014-02-03 09:51:41 +0800179 osc24M: clk@01c20050 {
Maxime Ripard69144e32013-03-13 20:07:37 +0100180 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100181 compatible = "allwinner,sun4i-a10-osc-clk";
Maxime Ripard69144e32013-03-13 20:07:37 +0100182 reg = <0x01c20050 0x4>;
Emilio López92fd6e02013-04-09 10:48:04 -0300183 clock-frequency = <24000000>;
Chen-Yu Tsaidfb12c02014-02-03 09:51:41 +0800184 clock-output-names = "osc24M";
Maxime Ripard69144e32013-03-13 20:07:37 +0100185 };
186
Chen-Yu Tsaidfb12c02014-02-03 09:51:41 +0800187 osc32k: clk@0 {
Maxime Ripard69144e32013-03-13 20:07:37 +0100188 #clock-cells = <0>;
189 compatible = "fixed-clock";
190 clock-frequency = <32768>;
Chen-Yu Tsaidfb12c02014-02-03 09:51:41 +0800191 clock-output-names = "osc32k";
Maxime Ripard69144e32013-03-13 20:07:37 +0100192 };
193
Chen-Yu Tsaidfb12c02014-02-03 09:51:41 +0800194 pll1: clk@01c20000 {
Maxime Ripard69144e32013-03-13 20:07:37 +0100195 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100196 compatible = "allwinner,sun4i-a10-pll1-clk";
Maxime Ripard69144e32013-03-13 20:07:37 +0100197 reg = <0x01c20000 0x4>;
198 clocks = <&osc24M>;
Chen-Yu Tsaidfb12c02014-02-03 09:51:41 +0800199 clock-output-names = "pll1";
Maxime Ripard69144e32013-03-13 20:07:37 +0100200 };
201
Maxime Ripard6ee93e12015-10-12 22:21:49 +0200202 pll2: clk@01c20008 {
203 #clock-cells = <1>;
204 compatible = "allwinner,sun4i-a10-pll2-clk";
205 reg = <0x01c20008 0x8>;
206 clocks = <&osc24M>;
207 clock-output-names = "pll2-1x", "pll2-2x",
208 "pll2-4x", "pll2-8x";
209 };
210
Chen-Yu Tsaidfb12c02014-02-03 09:51:41 +0800211 pll4: clk@01c20018 {
Emilio Lópezec5589f2013-12-23 00:32:35 -0300212 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100213 compatible = "allwinner,sun4i-a10-pll1-clk";
Emilio Lópezec5589f2013-12-23 00:32:35 -0300214 reg = <0x01c20018 0x4>;
215 clocks = <&osc24M>;
Chen-Yu Tsaidfb12c02014-02-03 09:51:41 +0800216 clock-output-names = "pll4";
Emilio Lópezec5589f2013-12-23 00:32:35 -0300217 };
218
Chen-Yu Tsaidfb12c02014-02-03 09:51:41 +0800219 pll5: clk@01c20020 {
Emilio Lópezc3e5e662013-12-23 00:32:38 -0300220 #clock-cells = <1>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100221 compatible = "allwinner,sun4i-a10-pll5-clk";
Emilio Lópezc3e5e662013-12-23 00:32:38 -0300222 reg = <0x01c20020 0x4>;
223 clocks = <&osc24M>;
224 clock-output-names = "pll5_ddr", "pll5_other";
225 };
226
Chen-Yu Tsaidfb12c02014-02-03 09:51:41 +0800227 pll6: clk@01c20028 {
Emilio Lópezc3e5e662013-12-23 00:32:38 -0300228 #clock-cells = <1>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100229 compatible = "allwinner,sun4i-a10-pll6-clk";
Emilio Lópezc3e5e662013-12-23 00:32:38 -0300230 reg = <0x01c20028 0x4>;
231 clocks = <&osc24M>;
232 clock-output-names = "pll6_sata", "pll6_other", "pll6";
233 };
234
Maxime Ripard69144e32013-03-13 20:07:37 +0100235 /* dummy is 200M */
236 cpu: cpu@01c20054 {
237 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100238 compatible = "allwinner,sun4i-a10-cpu-clk";
Maxime Ripard69144e32013-03-13 20:07:37 +0100239 reg = <0x01c20054 0x4>;
240 clocks = <&osc32k>, <&osc24M>, <&pll1>, <&dummy>;
Chen-Yu Tsaidfb12c02014-02-03 09:51:41 +0800241 clock-output-names = "cpu";
Maxime Ripard69144e32013-03-13 20:07:37 +0100242 };
243
244 axi: axi@01c20054 {
245 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100246 compatible = "allwinner,sun4i-a10-axi-clk";
Maxime Ripard69144e32013-03-13 20:07:37 +0100247 reg = <0x01c20054 0x4>;
248 clocks = <&cpu>;
Chen-Yu Tsaidfb12c02014-02-03 09:51:41 +0800249 clock-output-names = "axi";
Maxime Ripard69144e32013-03-13 20:07:37 +0100250 };
251
Chen-Yu Tsaidfb12c02014-02-03 09:51:41 +0800252 axi_gates: clk@01c2005c {
Maxime Ripard69144e32013-03-13 20:07:37 +0100253 #clock-cells = <1>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100254 compatible = "allwinner,sun4i-a10-axi-gates-clk";
Maxime Ripard69144e32013-03-13 20:07:37 +0100255 reg = <0x01c2005c 0x4>;
256 clocks = <&axi>;
Maxime Riparda3854002015-07-31 19:46:16 +0200257 clock-indices = <0>;
Maxime Ripard69144e32013-03-13 20:07:37 +0100258 clock-output-names = "axi_dram";
259 };
260
261 ahb: ahb@01c20054 {
262 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100263 compatible = "allwinner,sun4i-a10-ahb-clk";
Maxime Ripard69144e32013-03-13 20:07:37 +0100264 reg = <0x01c20054 0x4>;
265 clocks = <&axi>;
Chen-Yu Tsaidfb12c02014-02-03 09:51:41 +0800266 clock-output-names = "ahb";
Maxime Ripard69144e32013-03-13 20:07:37 +0100267 };
268
Chen-Yu Tsaidfb12c02014-02-03 09:51:41 +0800269 ahb_gates: clk@01c20060 {
Maxime Ripard69144e32013-03-13 20:07:37 +0100270 #clock-cells = <1>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100271 compatible = "allwinner,sun4i-a10-ahb-gates-clk";
Maxime Ripard69144e32013-03-13 20:07:37 +0100272 reg = <0x01c20060 0x8>;
273 clocks = <&ahb>;
Maxime Riparda3854002015-07-31 19:46:16 +0200274 clock-indices = <0>, <1>,
275 <2>, <3>,
276 <4>, <5>, <6>,
277 <7>, <8>, <9>,
278 <10>, <11>, <12>,
279 <13>, <14>, <16>,
280 <17>, <18>, <20>,
281 <21>, <22>, <23>,
282 <24>, <25>, <26>,
283 <32>, <33>, <34>,
284 <35>, <36>, <37>,
285 <40>, <41>, <43>,
286 <44>, <45>,
287 <46>, <47>,
288 <50>, <52>;
Maxime Ripard69144e32013-03-13 20:07:37 +0100289 clock-output-names = "ahb_usb0", "ahb_ehci0",
Maxime Riparda3854002015-07-31 19:46:16 +0200290 "ahb_ohci0", "ahb_ehci1",
291 "ahb_ohci1", "ahb_ss", "ahb_dma",
292 "ahb_bist", "ahb_mmc0", "ahb_mmc1",
293 "ahb_mmc2", "ahb_mmc3", "ahb_ms",
294 "ahb_nand", "ahb_sdram", "ahb_ace",
295 "ahb_emac", "ahb_ts", "ahb_spi0",
296 "ahb_spi1", "ahb_spi2", "ahb_spi3",
297 "ahb_pata", "ahb_sata", "ahb_gps",
298 "ahb_ve", "ahb_tvd", "ahb_tve0",
299 "ahb_tve1", "ahb_lcd0", "ahb_lcd1",
300 "ahb_csi0", "ahb_csi1", "ahb_hdmi",
301 "ahb_de_be0", "ahb_de_be1",
302 "ahb_de_fe0", "ahb_de_fe1",
303 "ahb_mp", "ahb_mali400";
Maxime Ripard69144e32013-03-13 20:07:37 +0100304 };
305
306 apb0: apb0@01c20054 {
307 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100308 compatible = "allwinner,sun4i-a10-apb0-clk";
Maxime Ripard69144e32013-03-13 20:07:37 +0100309 reg = <0x01c20054 0x4>;
310 clocks = <&ahb>;
Chen-Yu Tsaidfb12c02014-02-03 09:51:41 +0800311 clock-output-names = "apb0";
Maxime Ripard69144e32013-03-13 20:07:37 +0100312 };
313
Chen-Yu Tsaidfb12c02014-02-03 09:51:41 +0800314 apb0_gates: clk@01c20068 {
Maxime Ripard69144e32013-03-13 20:07:37 +0100315 #clock-cells = <1>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100316 compatible = "allwinner,sun4i-a10-apb0-gates-clk";
Maxime Ripard69144e32013-03-13 20:07:37 +0100317 reg = <0x01c20068 0x4>;
318 clocks = <&apb0>;
Maxime Riparda3854002015-07-31 19:46:16 +0200319 clock-indices = <0>, <1>,
320 <2>, <3>,
321 <5>, <6>,
322 <7>, <10>;
Maxime Ripard69144e32013-03-13 20:07:37 +0100323 clock-output-names = "apb0_codec", "apb0_spdif",
Maxime Riparda3854002015-07-31 19:46:16 +0200324 "apb0_ac97", "apb0_iis",
325 "apb0_pio", "apb0_ir0",
326 "apb0_ir1", "apb0_keypad";
Maxime Ripard69144e32013-03-13 20:07:37 +0100327 };
328
Emilio Lópezacbcc0f2014-11-06 11:40:30 +0800329 apb1: clk@01c20058 {
Maxime Ripard69144e32013-03-13 20:07:37 +0100330 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100331 compatible = "allwinner,sun4i-a10-apb1-clk";
Maxime Ripard69144e32013-03-13 20:07:37 +0100332 reg = <0x01c20058 0x4>;
Emilio Lópezacbcc0f2014-11-06 11:40:30 +0800333 clocks = <&osc24M>, <&pll6 1>, <&osc32k>;
Chen-Yu Tsaidfb12c02014-02-03 09:51:41 +0800334 clock-output-names = "apb1";
Maxime Ripard69144e32013-03-13 20:07:37 +0100335 };
336
Chen-Yu Tsaidfb12c02014-02-03 09:51:41 +0800337 apb1_gates: clk@01c2006c {
Maxime Ripard69144e32013-03-13 20:07:37 +0100338 #clock-cells = <1>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100339 compatible = "allwinner,sun4i-a10-apb1-gates-clk";
Maxime Ripard69144e32013-03-13 20:07:37 +0100340 reg = <0x01c2006c 0x4>;
341 clocks = <&apb1>;
Maxime Riparda3854002015-07-31 19:46:16 +0200342 clock-indices = <0>, <1>,
343 <2>, <4>,
344 <5>, <6>,
345 <7>, <16>,
346 <17>, <18>,
347 <19>, <20>,
348 <21>, <22>,
349 <23>;
Maxime Ripard69144e32013-03-13 20:07:37 +0100350 clock-output-names = "apb1_i2c0", "apb1_i2c1",
Maxime Riparda3854002015-07-31 19:46:16 +0200351 "apb1_i2c2", "apb1_can",
352 "apb1_scr", "apb1_ps20",
353 "apb1_ps21", "apb1_uart0",
354 "apb1_uart1", "apb1_uart2",
355 "apb1_uart3", "apb1_uart4",
356 "apb1_uart5", "apb1_uart6",
357 "apb1_uart7";
Maxime Ripard69144e32013-03-13 20:07:37 +0100358 };
Emilio López4b756ff2013-12-23 00:32:41 -0300359
360 nand_clk: clk@01c20080 {
361 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100362 compatible = "allwinner,sun4i-a10-mod0-clk";
Emilio López4b756ff2013-12-23 00:32:41 -0300363 reg = <0x01c20080 0x4>;
364 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
365 clock-output-names = "nand";
366 };
367
368 ms_clk: clk@01c20084 {
369 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100370 compatible = "allwinner,sun4i-a10-mod0-clk";
Emilio López4b756ff2013-12-23 00:32:41 -0300371 reg = <0x01c20084 0x4>;
372 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
373 clock-output-names = "ms";
374 };
375
376 mmc0_clk: clk@01c20088 {
Maxime Ripardd8c3a392014-07-11 19:39:06 +0200377 #clock-cells = <1>;
378 compatible = "allwinner,sun4i-a10-mmc-clk";
Emilio López4b756ff2013-12-23 00:32:41 -0300379 reg = <0x01c20088 0x4>;
380 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
Maxime Ripardd8c3a392014-07-11 19:39:06 +0200381 clock-output-names = "mmc0",
382 "mmc0_output",
383 "mmc0_sample";
Emilio López4b756ff2013-12-23 00:32:41 -0300384 };
385
386 mmc1_clk: clk@01c2008c {
Maxime Ripardd8c3a392014-07-11 19:39:06 +0200387 #clock-cells = <1>;
388 compatible = "allwinner,sun4i-a10-mmc-clk";
Emilio López4b756ff2013-12-23 00:32:41 -0300389 reg = <0x01c2008c 0x4>;
390 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
Maxime Ripardd8c3a392014-07-11 19:39:06 +0200391 clock-output-names = "mmc1",
392 "mmc1_output",
393 "mmc1_sample";
Emilio López4b756ff2013-12-23 00:32:41 -0300394 };
395
396 mmc2_clk: clk@01c20090 {
Maxime Ripardd8c3a392014-07-11 19:39:06 +0200397 #clock-cells = <1>;
398 compatible = "allwinner,sun4i-a10-mmc-clk";
Emilio López4b756ff2013-12-23 00:32:41 -0300399 reg = <0x01c20090 0x4>;
400 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
Maxime Ripardd8c3a392014-07-11 19:39:06 +0200401 clock-output-names = "mmc2",
402 "mmc2_output",
403 "mmc2_sample";
Emilio López4b756ff2013-12-23 00:32:41 -0300404 };
405
406 mmc3_clk: clk@01c20094 {
Maxime Ripardd8c3a392014-07-11 19:39:06 +0200407 #clock-cells = <1>;
408 compatible = "allwinner,sun4i-a10-mmc-clk";
Emilio López4b756ff2013-12-23 00:32:41 -0300409 reg = <0x01c20094 0x4>;
410 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
Maxime Ripardd8c3a392014-07-11 19:39:06 +0200411 clock-output-names = "mmc3",
412 "mmc3_output",
413 "mmc3_sample";
Emilio López4b756ff2013-12-23 00:32:41 -0300414 };
415
416 ts_clk: clk@01c20098 {
417 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100418 compatible = "allwinner,sun4i-a10-mod0-clk";
Emilio López4b756ff2013-12-23 00:32:41 -0300419 reg = <0x01c20098 0x4>;
420 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
421 clock-output-names = "ts";
422 };
423
424 ss_clk: clk@01c2009c {
425 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100426 compatible = "allwinner,sun4i-a10-mod0-clk";
Emilio López4b756ff2013-12-23 00:32:41 -0300427 reg = <0x01c2009c 0x4>;
428 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
429 clock-output-names = "ss";
430 };
431
432 spi0_clk: clk@01c200a0 {
433 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100434 compatible = "allwinner,sun4i-a10-mod0-clk";
Emilio López4b756ff2013-12-23 00:32:41 -0300435 reg = <0x01c200a0 0x4>;
436 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
437 clock-output-names = "spi0";
438 };
439
440 spi1_clk: clk@01c200a4 {
441 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100442 compatible = "allwinner,sun4i-a10-mod0-clk";
Emilio López4b756ff2013-12-23 00:32:41 -0300443 reg = <0x01c200a4 0x4>;
444 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
445 clock-output-names = "spi1";
446 };
447
448 spi2_clk: clk@01c200a8 {
449 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100450 compatible = "allwinner,sun4i-a10-mod0-clk";
Emilio López4b756ff2013-12-23 00:32:41 -0300451 reg = <0x01c200a8 0x4>;
452 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
453 clock-output-names = "spi2";
454 };
455
456 pata_clk: clk@01c200ac {
457 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100458 compatible = "allwinner,sun4i-a10-mod0-clk";
Emilio López4b756ff2013-12-23 00:32:41 -0300459 reg = <0x01c200ac 0x4>;
460 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
461 clock-output-names = "pata";
462 };
463
464 ir0_clk: clk@01c200b0 {
465 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100466 compatible = "allwinner,sun4i-a10-mod0-clk";
Emilio López4b756ff2013-12-23 00:32:41 -0300467 reg = <0x01c200b0 0x4>;
468 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
469 clock-output-names = "ir0";
470 };
471
472 ir1_clk: clk@01c200b4 {
473 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100474 compatible = "allwinner,sun4i-a10-mod0-clk";
Emilio López4b756ff2013-12-23 00:32:41 -0300475 reg = <0x01c200b4 0x4>;
476 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
477 clock-output-names = "ir1";
478 };
479
Roman Byshko0076c8b2014-02-07 16:21:51 +0100480 usb_clk: clk@01c200cc {
481 #clock-cells = <1>;
Maxime Ripard8358aad2015-05-03 11:54:35 +0200482 #reset-cells = <1>;
Roman Byshko0076c8b2014-02-07 16:21:51 +0100483 compatible = "allwinner,sun4i-a10-usb-clk";
484 reg = <0x01c200cc 0x4>;
485 clocks = <&pll6 1>;
Maxime Ripardd8cacaa2015-05-03 11:53:07 +0200486 clock-output-names = "usb_ohci0", "usb_ohci1",
487 "usb_phy";
Roman Byshko0076c8b2014-02-07 16:21:51 +0100488 };
489
Emilio López4b756ff2013-12-23 00:32:41 -0300490 spi3_clk: clk@01c200d4 {
491 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100492 compatible = "allwinner,sun4i-a10-mod0-clk";
Emilio López4b756ff2013-12-23 00:32:41 -0300493 reg = <0x01c200d4 0x4>;
494 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
495 clock-output-names = "spi3";
496 };
Maxime Ripardb516fa52015-10-12 22:28:46 +0200497
Chen-Yu Tsai82f85822015-12-05 21:16:44 +0800498 dram_gates: clk@01c20100 {
499 #clock-cells = <1>;
500 compatible = "allwinner,sun4i-a10-dram-gates-clk";
501 reg = <0x01c20100 0x4>;
502 clocks = <&pll5 0>;
503 clock-indices = <0>,
504 <1>, <2>,
505 <3>,
506 <4>,
507 <5>, <6>,
508 <15>,
509 <24>, <25>,
510 <26>, <27>,
511 <28>, <29>;
512 clock-output-names = "dram_ve",
513 "dram_csi0", "dram_csi1",
514 "dram_ts",
515 "dram_tvd",
516 "dram_tve0", "dram_tve1",
517 "dram_output",
518 "dram_de_fe1", "dram_de_fe0",
519 "dram_de_be0", "dram_de_be1",
520 "dram_de_mp", "dram_ace";
521 };
522
Chen-Yu Tsai1ccc4932015-12-05 21:16:45 +0800523 ve_clk: clk@01c2013c {
524 #clock-cells = <0>;
525 #reset-cells = <0>;
526 compatible = "allwinner,sun4i-a10-ve-clk";
527 reg = <0x01c2013c 0x4>;
528 clocks = <&pll4>;
529 clock-output-names = "ve";
530 };
531
Maxime Ripardb516fa52015-10-12 22:28:46 +0200532 codec_clk: clk@01c20140 {
533 #clock-cells = <0>;
534 compatible = "allwinner,sun4i-a10-codec-clk";
535 reg = <0x01c20140 0x4>;
536 clocks = <&pll2 SUN4I_A10_PLL2_1X>;
537 clock-output-names = "codec";
538 };
Maxime Ripard69144e32013-03-13 20:07:37 +0100539 };
540
Maxime Ripardb74aec12013-08-03 16:07:36 +0200541 soc@01c00000 {
Maxime Ripard69144e32013-03-13 20:07:37 +0100542 compatible = "simple-bus";
543 #address-cells = <1>;
544 #size-cells = <1>;
Maxime Ripard69144e32013-03-13 20:07:37 +0100545 ranges;
546
Maxime Ripard1fbc1512015-03-26 15:53:44 +0100547 sram-controller@01c00000 {
548 compatible = "allwinner,sun4i-a10-sram-controller";
549 reg = <0x01c00000 0x30>;
550 #address-cells = <1>;
551 #size-cells = <1>;
552 ranges;
553
554 sram_a: sram@00000000 {
555 compatible = "mmio-sram";
556 reg = <0x00000000 0xc000>;
557 #address-cells = <1>;
558 #size-cells = <1>;
559 ranges = <0 0x00000000 0xc000>;
560
561 emac_sram: sram-section@8000 {
562 compatible = "allwinner,sun4i-a10-sram-a3-a4";
563 reg = <0x8000 0x4000>;
564 status = "disabled";
565 };
566 };
567
568 sram_d: sram@00010000 {
569 compatible = "mmio-sram";
570 reg = <0x00010000 0x1000>;
571 #address-cells = <1>;
572 #size-cells = <1>;
573 ranges = <0 0x00010000 0x1000>;
574
575 otg_sram: sram-section@0000 {
576 compatible = "allwinner,sun4i-a10-sram-d";
577 reg = <0x0000 0x1000>;
578 status = "disabled";
579 };
580 };
581 };
582
Emilio López1324f532014-08-04 17:09:57 -0300583 dma: dma-controller@01c02000 {
584 compatible = "allwinner,sun4i-a10-dma";
585 reg = <0x01c02000 0x1000>;
586 interrupts = <27>;
587 clocks = <&ahb_gates 6>;
588 #dma-cells = <2>;
589 };
590
Maxime Ripard65918e22014-02-22 22:35:55 +0100591 spi0: spi@01c05000 {
592 compatible = "allwinner,sun4i-a10-spi";
593 reg = <0x01c05000 0x1000>;
594 interrupts = <10>;
595 clocks = <&ahb_gates 20>, <&spi0_clk>;
596 clock-names = "ahb", "mod";
Maxime Ripard1f9f6a72014-12-16 22:59:56 +0100597 dmas = <&dma SUN4I_DMA_DEDICATED 27>,
598 <&dma SUN4I_DMA_DEDICATED 26>;
Emilio López4192ff82014-08-04 17:10:00 -0300599 dma-names = "rx", "tx";
Maxime Ripard65918e22014-02-22 22:35:55 +0100600 status = "disabled";
601 #address-cells = <1>;
602 #size-cells = <0>;
603 };
604
605 spi1: spi@01c06000 {
606 compatible = "allwinner,sun4i-a10-spi";
607 reg = <0x01c06000 0x1000>;
608 interrupts = <11>;
609 clocks = <&ahb_gates 21>, <&spi1_clk>;
610 clock-names = "ahb", "mod";
Maxime Ripard1f9f6a72014-12-16 22:59:56 +0100611 dmas = <&dma SUN4I_DMA_DEDICATED 9>,
612 <&dma SUN4I_DMA_DEDICATED 8>;
Emilio López4192ff82014-08-04 17:10:00 -0300613 dma-names = "rx", "tx";
Maxime Ripard65918e22014-02-22 22:35:55 +0100614 status = "disabled";
615 #address-cells = <1>;
616 #size-cells = <0>;
617 };
618
Maxime Riparde38afcb2013-05-30 03:49:23 +0000619 emac: ethernet@01c0b000 {
Maxime Ripard1c70e092014-02-02 14:49:13 +0100620 compatible = "allwinner,sun4i-a10-emac";
Maxime Riparde38afcb2013-05-30 03:49:23 +0000621 reg = <0x01c0b000 0x1000>;
622 interrupts = <55>;
623 clocks = <&ahb_gates 17>;
Maxime Ripard1fbc1512015-03-26 15:53:44 +0100624 allwinner,sram = <&emac_sram 1>;
Maxime Riparde38afcb2013-05-30 03:49:23 +0000625 status = "disabled";
626 };
627
Aleksei Mamlin92395f52015-01-19 22:35:22 +0300628 mdio: mdio@01c0b080 {
Maxime Ripard1c70e092014-02-02 14:49:13 +0100629 compatible = "allwinner,sun4i-a10-mdio";
Maxime Riparde38afcb2013-05-30 03:49:23 +0000630 reg = <0x01c0b080 0x14>;
631 status = "disabled";
632 #address-cells = <1>;
633 #size-cells = <0>;
634 };
635
David Lanzendörferb258b362014-05-02 17:57:18 +0200636 mmc0: mmc@01c0f000 {
637 compatible = "allwinner,sun4i-a10-mmc";
638 reg = <0x01c0f000 0x1000>;
Maxime Ripardd8c3a392014-07-11 19:39:06 +0200639 clocks = <&ahb_gates 8>,
640 <&mmc0_clk 0>,
641 <&mmc0_clk 1>,
642 <&mmc0_clk 2>;
643 clock-names = "ahb",
644 "mmc",
645 "output",
646 "sample";
David Lanzendörferb258b362014-05-02 17:57:18 +0200647 interrupts = <32>;
648 status = "disabled";
Hans de Goede4c1bb9c2015-03-10 16:27:09 +0100649 #address-cells = <1>;
650 #size-cells = <0>;
David Lanzendörferb258b362014-05-02 17:57:18 +0200651 };
652
653 mmc1: mmc@01c10000 {
654 compatible = "allwinner,sun4i-a10-mmc";
655 reg = <0x01c10000 0x1000>;
Maxime Ripardd8c3a392014-07-11 19:39:06 +0200656 clocks = <&ahb_gates 9>,
657 <&mmc1_clk 0>,
658 <&mmc1_clk 1>,
659 <&mmc1_clk 2>;
660 clock-names = "ahb",
661 "mmc",
662 "output",
663 "sample";
David Lanzendörferb258b362014-05-02 17:57:18 +0200664 interrupts = <33>;
665 status = "disabled";
Hans de Goede4c1bb9c2015-03-10 16:27:09 +0100666 #address-cells = <1>;
667 #size-cells = <0>;
David Lanzendörferb258b362014-05-02 17:57:18 +0200668 };
669
670 mmc2: mmc@01c11000 {
671 compatible = "allwinner,sun4i-a10-mmc";
672 reg = <0x01c11000 0x1000>;
Maxime Ripardd8c3a392014-07-11 19:39:06 +0200673 clocks = <&ahb_gates 10>,
674 <&mmc2_clk 0>,
675 <&mmc2_clk 1>,
676 <&mmc2_clk 2>;
677 clock-names = "ahb",
678 "mmc",
679 "output",
680 "sample";
David Lanzendörferb258b362014-05-02 17:57:18 +0200681 interrupts = <34>;
682 status = "disabled";
Hans de Goede4c1bb9c2015-03-10 16:27:09 +0100683 #address-cells = <1>;
684 #size-cells = <0>;
David Lanzendörferb258b362014-05-02 17:57:18 +0200685 };
686
687 mmc3: mmc@01c12000 {
688 compatible = "allwinner,sun4i-a10-mmc";
689 reg = <0x01c12000 0x1000>;
Maxime Ripardd8c3a392014-07-11 19:39:06 +0200690 clocks = <&ahb_gates 11>,
691 <&mmc3_clk 0>,
692 <&mmc3_clk 1>,
693 <&mmc3_clk 2>;
694 clock-names = "ahb",
695 "mmc",
696 "output",
697 "sample";
David Lanzendörferb258b362014-05-02 17:57:18 +0200698 interrupts = <35>;
699 status = "disabled";
Hans de Goede4c1bb9c2015-03-10 16:27:09 +0100700 #address-cells = <1>;
701 #size-cells = <0>;
David Lanzendörferb258b362014-05-02 17:57:18 +0200702 };
703
Hans de Goedece650372015-02-03 19:17:35 +0100704 usb_otg: usb@01c13000 {
705 compatible = "allwinner,sun4i-a10-musb";
706 reg = <0x01c13000 0x0400>;
707 clocks = <&ahb_gates 0>;
708 interrupts = <38>;
709 interrupt-names = "mc";
710 phys = <&usbphy 0>;
711 phy-names = "usb";
712 extcon = <&usbphy 0>;
713 allwinner,sram = <&otg_sram 1>;
714 status = "disabled";
715 };
716
Roman Byshko6ab1ce22014-03-01 20:26:23 +0100717 usbphy: phy@01c13400 {
718 #phy-cells = <1>;
719 compatible = "allwinner,sun4i-a10-usb-phy";
720 reg = <0x01c13400 0x10 0x01c14800 0x4 0x01c1c800 0x4>;
721 reg-names = "phy_ctrl", "pmu1", "pmu2";
722 clocks = <&usb_clk 8>;
723 clock-names = "usb_phy";
Chen-Yu Tsai4dba4182014-12-18 19:10:35 +0800724 resets = <&usb_clk 0>, <&usb_clk 1>, <&usb_clk 2>;
725 reset-names = "usb0_reset", "usb1_reset", "usb2_reset";
Roman Byshko6ab1ce22014-03-01 20:26:23 +0100726 status = "disabled";
727 };
728
729 ehci0: usb@01c14000 {
730 compatible = "allwinner,sun4i-a10-ehci", "generic-ehci";
731 reg = <0x01c14000 0x100>;
732 interrupts = <39>;
733 clocks = <&ahb_gates 1>;
734 phys = <&usbphy 1>;
735 phy-names = "usb";
736 status = "disabled";
737 };
738
739 ohci0: usb@01c14400 {
740 compatible = "allwinner,sun4i-a10-ohci", "generic-ohci";
741 reg = <0x01c14400 0x100>;
742 interrupts = <64>;
743 clocks = <&usb_clk 6>, <&ahb_gates 2>;
744 phys = <&usbphy 1>;
745 phy-names = "usb";
746 status = "disabled";
747 };
748
LABBE Corentin56ba8c52015-07-17 16:39:38 +0200749 crypto: crypto-engine@01c15000 {
750 compatible = "allwinner,sun4i-a10-crypto";
751 reg = <0x01c15000 0x1000>;
752 interrupts = <86>;
753 clocks = <&ahb_gates 5>, <&ss_clk>;
754 clock-names = "ahb", "mod";
755 };
756
Maxime Ripard65918e22014-02-22 22:35:55 +0100757 spi2: spi@01c17000 {
758 compatible = "allwinner,sun4i-a10-spi";
759 reg = <0x01c17000 0x1000>;
760 interrupts = <12>;
761 clocks = <&ahb_gates 22>, <&spi2_clk>;
762 clock-names = "ahb", "mod";
Maxime Ripard1f9f6a72014-12-16 22:59:56 +0100763 dmas = <&dma SUN4I_DMA_DEDICATED 29>,
764 <&dma SUN4I_DMA_DEDICATED 28>;
Emilio López4192ff82014-08-04 17:10:00 -0300765 dma-names = "rx", "tx";
Maxime Ripard65918e22014-02-22 22:35:55 +0100766 status = "disabled";
767 #address-cells = <1>;
768 #size-cells = <0>;
769 };
770
Oliver Schinagl248bd1e2014-03-01 20:26:21 +0100771 ahci: sata@01c18000 {
772 compatible = "allwinner,sun4i-a10-ahci";
773 reg = <0x01c18000 0x1000>;
774 interrupts = <56>;
775 clocks = <&pll6 0>, <&ahb_gates 25>;
776 status = "disabled";
777 };
778
Roman Byshko6ab1ce22014-03-01 20:26:23 +0100779 ehci1: usb@01c1c000 {
780 compatible = "allwinner,sun4i-a10-ehci", "generic-ehci";
781 reg = <0x01c1c000 0x100>;
782 interrupts = <40>;
783 clocks = <&ahb_gates 3>;
784 phys = <&usbphy 2>;
785 phy-names = "usb";
786 status = "disabled";
787 };
788
789 ohci1: usb@01c1c400 {
790 compatible = "allwinner,sun4i-a10-ohci", "generic-ohci";
791 reg = <0x01c1c400 0x100>;
792 interrupts = <65>;
793 clocks = <&usb_clk 7>, <&ahb_gates 4>;
794 phys = <&usbphy 2>;
795 phy-names = "usb";
796 status = "disabled";
797 };
798
Maxime Ripard65918e22014-02-22 22:35:55 +0100799 spi3: spi@01c1f000 {
800 compatible = "allwinner,sun4i-a10-spi";
801 reg = <0x01c1f000 0x1000>;
802 interrupts = <50>;
803 clocks = <&ahb_gates 23>, <&spi3_clk>;
804 clock-names = "ahb", "mod";
Maxime Ripard1f9f6a72014-12-16 22:59:56 +0100805 dmas = <&dma SUN4I_DMA_DEDICATED 31>,
806 <&dma SUN4I_DMA_DEDICATED 30>;
Emilio López4192ff82014-08-04 17:10:00 -0300807 dma-names = "rx", "tx";
Maxime Ripard65918e22014-02-22 22:35:55 +0100808 status = "disabled";
809 #address-cells = <1>;
810 #size-cells = <0>;
811 };
812
Maxime Ripard69144e32013-03-13 20:07:37 +0100813 intc: interrupt-controller@01c20400 {
Maxime Ripard09504a72014-02-07 21:50:26 +0100814 compatible = "allwinner,sun4i-a10-ic";
Maxime Ripard69144e32013-03-13 20:07:37 +0100815 reg = <0x01c20400 0x400>;
816 interrupt-controller;
817 #interrupt-cells = <1>;
818 };
819
Maxime Riparde10911e2013-01-27 19:26:05 +0100820 pio: pinctrl@01c20800 {
Maxime Ripard874b4e42013-01-26 15:36:54 +0100821 compatible = "allwinner,sun4i-a10-pinctrl";
822 reg = <0x01c20800 0x400>;
Maxime Ripard39138bc2013-04-06 15:00:48 +0200823 interrupts = <28>;
Emilio López36386d62013-03-27 18:20:41 -0300824 clocks = <&apb0_gates 5>;
Maxime Riparde10911e2013-01-27 19:26:05 +0100825 gpio-controller;
Maxime Ripard39138bc2013-04-06 15:00:48 +0200826 interrupt-controller;
Maxime Ripardb03e0812015-06-17 11:44:24 +0200827 #interrupt-cells = <3>;
Maxime Riparde10911e2013-01-27 19:26:05 +0100828 #gpio-cells = <3>;
Maxime Ripard581981b2013-01-26 15:36:55 +0100829
Alexandre Belloni1d5726e2014-04-28 18:17:10 +0200830 pwm0_pins_a: pwm0@0 {
831 allwinner,pins = "PB2";
832 allwinner,function = "pwm";
Maxime Ripard092a0c32014-12-16 22:59:57 +0100833 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
834 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Alexandre Belloni1d5726e2014-04-28 18:17:10 +0200835 };
836
837 pwm1_pins_a: pwm1@0 {
838 allwinner,pins = "PI3";
839 allwinner,function = "pwm";
Maxime Ripard092a0c32014-12-16 22:59:57 +0100840 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
841 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Alexandre Belloni1d5726e2014-04-28 18:17:10 +0200842 };
843
Maxime Ripard581981b2013-01-26 15:36:55 +0100844 uart0_pins_a: uart0@0 {
845 allwinner,pins = "PB22", "PB23";
846 allwinner,function = "uart0";
Maxime Ripard092a0c32014-12-16 22:59:57 +0100847 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
848 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Maxime Ripard581981b2013-01-26 15:36:55 +0100849 };
850
851 uart0_pins_b: uart0@1 {
852 allwinner,pins = "PF2", "PF4";
853 allwinner,function = "uart0";
Maxime Ripard092a0c32014-12-16 22:59:57 +0100854 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
855 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Maxime Ripard581981b2013-01-26 15:36:55 +0100856 };
857
858 uart1_pins_a: uart1@0 {
859 allwinner,pins = "PA10", "PA11";
860 allwinner,function = "uart1";
Maxime Ripard092a0c32014-12-16 22:59:57 +0100861 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
862 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Maxime Ripard581981b2013-01-26 15:36:55 +0100863 };
Maxime Ripard27cce4f2013-03-10 13:44:38 +0100864
865 i2c0_pins_a: i2c0@0 {
866 allwinner,pins = "PB0", "PB1";
867 allwinner,function = "i2c0";
Maxime Ripard092a0c32014-12-16 22:59:57 +0100868 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
869 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Maxime Ripard27cce4f2013-03-10 13:44:38 +0100870 };
871
872 i2c1_pins_a: i2c1@0 {
873 allwinner,pins = "PB18", "PB19";
874 allwinner,function = "i2c1";
Maxime Ripard092a0c32014-12-16 22:59:57 +0100875 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
876 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Maxime Ripard27cce4f2013-03-10 13:44:38 +0100877 };
878
879 i2c2_pins_a: i2c2@0 {
880 allwinner,pins = "PB20", "PB21";
881 allwinner,function = "i2c2";
Maxime Ripard092a0c32014-12-16 22:59:57 +0100882 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
883 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Maxime Ripard27cce4f2013-03-10 13:44:38 +0100884 };
Linus Torvalds496322b2013-07-09 18:24:39 -0700885
Maxime Ripardb21da662013-05-30 03:49:22 +0000886 emac_pins_a: emac0@0 {
887 allwinner,pins = "PA0", "PA1", "PA2",
888 "PA3", "PA4", "PA5", "PA6",
889 "PA7", "PA8", "PA9", "PA10",
890 "PA11", "PA12", "PA13", "PA14",
891 "PA15", "PA16";
892 allwinner,function = "emac";
Maxime Ripard092a0c32014-12-16 22:59:57 +0100893 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
894 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Maxime Ripardb21da662013-05-30 03:49:22 +0000895 };
Hans de Goedeb5f86a32014-05-02 17:57:19 +0200896
897 mmc0_pins_a: mmc0@0 {
Maxime Ripardd8cacaa2015-05-03 11:53:07 +0200898 allwinner,pins = "PF0", "PF1", "PF2",
899 "PF3", "PF4", "PF5";
Hans de Goedeb5f86a32014-05-02 17:57:19 +0200900 allwinner,function = "mmc0";
Maxime Ripard092a0c32014-12-16 22:59:57 +0100901 allwinner,drive = <SUN4I_PINCTRL_30_MA>;
902 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Hans de Goedeb5f86a32014-05-02 17:57:19 +0200903 };
904
905 mmc0_cd_pin_reference_design: mmc0_cd_pin@0 {
906 allwinner,pins = "PH1";
907 allwinner,function = "gpio_in";
Maxime Ripard092a0c32014-12-16 22:59:57 +0100908 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
909 allwinner,pull = <SUN4I_PINCTRL_PULL_UP>;
Hans de Goedeb5f86a32014-05-02 17:57:19 +0200910 };
Hans de Goedea4e10992014-06-30 23:57:58 +0200911
Marcus Cooper469a22e2015-05-02 13:36:20 +0200912 ir0_rx_pins_a: ir0@0 {
913 allwinner,pins = "PB4";
Hans de Goedea4e10992014-06-30 23:57:58 +0200914 allwinner,function = "ir0";
Maxime Ripard092a0c32014-12-16 22:59:57 +0100915 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
916 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Hans de Goedea4e10992014-06-30 23:57:58 +0200917 };
918
Marcus Cooper469a22e2015-05-02 13:36:20 +0200919 ir0_tx_pins_a: ir0@1 {
920 allwinner,pins = "PB3";
921 allwinner,function = "ir0";
922 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
923 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
924 };
925
926 ir1_rx_pins_a: ir1@0 {
927 allwinner,pins = "PB23";
928 allwinner,function = "ir1";
929 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
930 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
931 };
932
933 ir1_tx_pins_a: ir1@1 {
934 allwinner,pins = "PB22";
Hans de Goedea4e10992014-06-30 23:57:58 +0200935 allwinner,function = "ir1";
Maxime Ripard092a0c32014-12-16 22:59:57 +0100936 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
937 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Hans de Goedea4e10992014-06-30 23:57:58 +0200938 };
Alexandru Gagniucec66d0b2014-12-08 04:14:01 -0600939
940 spi0_pins_a: spi0@0 {
Maxime Ripardf3022c62015-05-03 09:25:41 +0200941 allwinner,pins = "PI11", "PI12", "PI13";
942 allwinner,function = "spi0";
943 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
944 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
945 };
946
947 spi0_cs0_pins_a: spi0_cs0@0 {
948 allwinner,pins = "PI10";
Alexandru Gagniucec66d0b2014-12-08 04:14:01 -0600949 allwinner,function = "spi0";
Maxime Ripard092a0c32014-12-16 22:59:57 +0100950 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
951 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Alexandru Gagniucec66d0b2014-12-08 04:14:01 -0600952 };
953
954 spi1_pins_a: spi1@0 {
Maxime Ripardf3022c62015-05-03 09:25:41 +0200955 allwinner,pins = "PI17", "PI18", "PI19";
956 allwinner,function = "spi1";
957 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
958 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
959 };
960
961 spi1_cs0_pins_a: spi1_cs0@0 {
962 allwinner,pins = "PI16";
Alexandru Gagniucec66d0b2014-12-08 04:14:01 -0600963 allwinner,function = "spi1";
Maxime Ripard092a0c32014-12-16 22:59:57 +0100964 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
965 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Alexandru Gagniucec66d0b2014-12-08 04:14:01 -0600966 };
967
968 spi2_pins_a: spi2@0 {
Maxime Ripardf3022c62015-05-03 09:25:41 +0200969 allwinner,pins = "PC20", "PC21", "PC22";
Alexandru Gagniucec66d0b2014-12-08 04:14:01 -0600970 allwinner,function = "spi2";
Maxime Ripard092a0c32014-12-16 22:59:57 +0100971 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
972 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Alexandru Gagniucec66d0b2014-12-08 04:14:01 -0600973 };
974
975 spi2_pins_b: spi2@1 {
Maxime Ripardf3022c62015-05-03 09:25:41 +0200976 allwinner,pins = "PB15", "PB16", "PB17";
977 allwinner,function = "spi2";
978 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
979 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
980 };
981
982 spi2_cs0_pins_a: spi2_cs0@0 {
983 allwinner,pins = "PC19";
984 allwinner,function = "spi2";
985 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
986 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
987 };
988
989 spi2_cs0_pins_b: spi2_cs0@1 {
990 allwinner,pins = "PB14";
Alexandru Gagniucec66d0b2014-12-08 04:14:01 -0600991 allwinner,function = "spi2";
Maxime Ripard092a0c32014-12-16 22:59:57 +0100992 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
993 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Alexandru Gagniucec66d0b2014-12-08 04:14:01 -0600994 };
Vishnu Patekar1e8d1562015-01-25 19:10:09 +0530995
996 ps20_pins_a: ps20@0 {
997 allwinner,pins = "PI20", "PI21";
998 allwinner,function = "ps2";
999 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
1000 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
1001 };
1002
1003 ps21_pins_a: ps21@0 {
1004 allwinner,pins = "PH12", "PH13";
1005 allwinner,function = "ps2";
1006 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
1007 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Maxime Ripard69144e32013-03-13 20:07:37 +01001008 };
Marcus Cooper79f969f2016-03-21 21:00:59 +01001009
1010 spdif_tx_pins_a: spdif@0 {
1011 allwinner,pins = "PB13";
1012 allwinner,function = "spdif";
1013 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
1014 allwinner,pull = <SUN4I_PINCTRL_PULL_UP>;
1015 };
Maxime Ripardf1741fd2013-03-10 13:34:36 +01001016 };
1017
1018 timer@01c20c00 {
1019 compatible = "allwinner,sun4i-a10-timer";
1020 reg = <0x01c20c00 0x90>;
1021 interrupts = <22>;
1022 clocks = <&osc24M>;
1023 };
Maxime Ripard874b4e42013-01-26 15:36:54 +01001024
Stefan Roese7423d2d2012-11-26 15:46:12 +01001025 wdt: watchdog@01c20c90 {
1026 compatible = "allwinner,sun4i-a10-wdt";
1027 reg = <0x01c20c90 0x10>;
1028 };
1029
1030 rtc: rtc@01c20d00 {
1031 compatible = "allwinner,sun4i-a10-rtc";
1032 reg = <0x01c20d00 0x20>;
1033 interrupts = <24>;
1034 };
1035
Alexandre Belloni4b57a392014-04-28 18:17:11 +02001036 pwm: pwm@01c20e00 {
1037 compatible = "allwinner,sun4i-a10-pwm";
1038 reg = <0x01c20e00 0xc>;
1039 clocks = <&osc24M>;
1040 #pwm-cells = <3>;
1041 status = "disabled";
1042 };
1043
Hans de Goedea4e10992014-06-30 23:57:58 +02001044 ir0: ir@01c21800 {
1045 compatible = "allwinner,sun4i-a10-ir";
1046 clocks = <&apb0_gates 6>, <&ir0_clk>;
1047 clock-names = "apb", "ir";
1048 interrupts = <5>;
1049 reg = <0x01c21800 0x40>;
1050 status = "disabled";
1051 };
1052
1053 ir1: ir@01c21c00 {
1054 compatible = "allwinner,sun4i-a10-ir";
1055 clocks = <&apb0_gates 7>, <&ir1_clk>;
1056 clock-names = "apb", "ir";
1057 interrupts = <6>;
1058 reg = <0x01c21c00 0x40>;
1059 status = "disabled";
1060 };
1061
Hans de Goedeb0512e12014-12-23 11:13:20 +01001062 lradc: lradc@01c22800 {
1063 compatible = "allwinner,sun4i-a10-lradc-keys";
1064 reg = <0x01c22800 0x100>;
1065 interrupts = <31>;
1066 status = "disabled";
1067 };
1068
Marcus Cooperbcf88452014-07-22 13:06:48 +02001069 codec: codec@01c22c00 {
1070 #sound-dai-cells = <0>;
1071 compatible = "allwinner,sun4i-a10-codec";
1072 reg = <0x01c22c00 0x40>;
1073 interrupts = <30>;
1074 clocks = <&apb0_gates 0>, <&codec_clk>;
1075 clock-names = "apb", "codec";
1076 dmas = <&dma SUN4I_DMA_NORMAL 19>,
1077 <&dma SUN4I_DMA_NORMAL 19>;
1078 dma-names = "rx", "tx";
1079 status = "disabled";
1080 };
1081
Stefan Roese7423d2d2012-11-26 15:46:12 +01001082 sid: eeprom@01c23800 {
1083 compatible = "allwinner,sun4i-a10-sid";
1084 reg = <0x01c23800 0x10>;
1085 };
1086
1087 rtp: rtp@01c25000 {
1088 compatible = "allwinner,sun4i-a10-ts";
1089 reg = <0x01c25000 0x100>;
1090 interrupts = <29>;
Chen-Yu Tsai41e7afb2015-01-06 10:35:15 +08001091 #thermal-sensor-cells = <0>;
Stefan Roese7423d2d2012-11-26 15:46:12 +01001092 };
1093
1094 uart0: serial@01c28000 {
1095 compatible = "snps,dw-apb-uart";
1096 reg = <0x01c28000 0x400>;
1097 interrupts = <1>;
1098 reg-shift = <2>;
1099 reg-io-width = <4>;
1100 clocks = <&apb1_gates 16>;
1101 status = "disabled";
1102 };
1103
1104 uart1: serial@01c28400 {
1105 compatible = "snps,dw-apb-uart";
1106 reg = <0x01c28400 0x400>;
1107 interrupts = <2>;
1108 reg-shift = <2>;
1109 reg-io-width = <4>;
1110 clocks = <&apb1_gates 17>;
1111 status = "disabled";
1112 };
1113
1114 uart2: serial@01c28800 {
1115 compatible = "snps,dw-apb-uart";
1116 reg = <0x01c28800 0x400>;
1117 interrupts = <3>;
1118 reg-shift = <2>;
1119 reg-io-width = <4>;
1120 clocks = <&apb1_gates 18>;
1121 status = "disabled";
1122 };
1123
1124 uart3: serial@01c28c00 {
1125 compatible = "snps,dw-apb-uart";
1126 reg = <0x01c28c00 0x400>;
1127 interrupts = <4>;
1128 reg-shift = <2>;
1129 reg-io-width = <4>;
1130 clocks = <&apb1_gates 19>;
1131 status = "disabled";
1132 };
1133
1134 uart4: serial@01c29000 {
1135 compatible = "snps,dw-apb-uart";
1136 reg = <0x01c29000 0x400>;
1137 interrupts = <17>;
1138 reg-shift = <2>;
1139 reg-io-width = <4>;
1140 clocks = <&apb1_gates 20>;
1141 status = "disabled";
1142 };
1143
1144 uart5: serial@01c29400 {
1145 compatible = "snps,dw-apb-uart";
1146 reg = <0x01c29400 0x400>;
1147 interrupts = <18>;
1148 reg-shift = <2>;
1149 reg-io-width = <4>;
1150 clocks = <&apb1_gates 21>;
1151 status = "disabled";
1152 };
1153
1154 uart6: serial@01c29800 {
1155 compatible = "snps,dw-apb-uart";
1156 reg = <0x01c29800 0x400>;
1157 interrupts = <19>;
1158 reg-shift = <2>;
1159 reg-io-width = <4>;
1160 clocks = <&apb1_gates 22>;
1161 status = "disabled";
1162 };
1163
1164 uart7: serial@01c29c00 {
1165 compatible = "snps,dw-apb-uart";
1166 reg = <0x01c29c00 0x400>;
1167 interrupts = <20>;
1168 reg-shift = <2>;
1169 reg-io-width = <4>;
1170 clocks = <&apb1_gates 23>;
1171 status = "disabled";
1172 };
1173
1174 i2c0: i2c@01c2ac00 {
Maxime Ripardd2755452014-03-31 14:54:58 +02001175 compatible = "allwinner,sun4i-a10-i2c";
Stefan Roese7423d2d2012-11-26 15:46:12 +01001176 reg = <0x01c2ac00 0x400>;
1177 interrupts = <7>;
1178 clocks = <&apb1_gates 0>;
Stefan Roese7423d2d2012-11-26 15:46:12 +01001179 status = "disabled";
Hans de Goede60bbe312014-04-13 13:41:03 +02001180 #address-cells = <1>;
1181 #size-cells = <0>;
Stefan Roese7423d2d2012-11-26 15:46:12 +01001182 };
1183
1184 i2c1: i2c@01c2b000 {
Maxime Ripardd2755452014-03-31 14:54:58 +02001185 compatible = "allwinner,sun4i-a10-i2c";
Stefan Roese7423d2d2012-11-26 15:46:12 +01001186 reg = <0x01c2b000 0x400>;
1187 interrupts = <8>;
1188 clocks = <&apb1_gates 1>;
Stefan Roese7423d2d2012-11-26 15:46:12 +01001189 status = "disabled";
Hans de Goede60bbe312014-04-13 13:41:03 +02001190 #address-cells = <1>;
1191 #size-cells = <0>;
Stefan Roese7423d2d2012-11-26 15:46:12 +01001192 };
1193
1194 i2c2: i2c@01c2b400 {
Maxime Ripardd2755452014-03-31 14:54:58 +02001195 compatible = "allwinner,sun4i-a10-i2c";
Stefan Roese7423d2d2012-11-26 15:46:12 +01001196 reg = <0x01c2b400 0x400>;
1197 interrupts = <9>;
1198 clocks = <&apb1_gates 2>;
Stefan Roese7423d2d2012-11-26 15:46:12 +01001199 status = "disabled";
Hans de Goede60bbe312014-04-13 13:41:03 +02001200 #address-cells = <1>;
1201 #size-cells = <0>;
Stefan Roese7423d2d2012-11-26 15:46:12 +01001202 };
Vishnu Patekar196654a2015-01-25 19:10:08 +05301203
1204 ps20: ps2@01c2a000 {
1205 compatible = "allwinner,sun4i-a10-ps2";
1206 reg = <0x01c2a000 0x400>;
1207 interrupts = <62>;
1208 clocks = <&apb1_gates 6>;
1209 status = "disabled";
1210 };
1211
1212 ps21: ps2@01c2a400 {
1213 compatible = "allwinner,sun4i-a10-ps2";
1214 reg = <0x01c2a400 0x400>;
1215 interrupts = <63>;
1216 clocks = <&apb1_gates 7>;
1217 status = "disabled";
1218 };
Stefan Roese7423d2d2012-11-26 15:46:12 +01001219 };
1220};