blob: 551e3d1047778bcb5515f8580d647b6957129c66 [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 Ripard1f9f6a72014-12-16 22:59:56 +010048#include <dt-bindings/dma/sun4i-a10.h>
Maxime Ripard092a0c32014-12-16 22:59:57 +010049#include <dt-bindings/pinctrl/sun4i-a10.h>
Stefan Roese7423d2d2012-11-26 15:46:12 +010050
51/ {
Maxime Ripard69144e32013-03-13 20:07:37 +010052 interrupt-parent = <&intc>;
53
Emilio Lópeze751cce2013-11-16 15:17:29 -030054 aliases {
55 ethernet0 = &emac;
56 };
57
Hans de Goede5790d4e2014-11-14 16:34:34 +010058 chosen {
59 #address-cells = <1>;
60 #size-cells = <1>;
61 ranges;
62
Hans de Goedea9f8cda2014-11-18 12:07:13 +010063 framebuffer@0 {
Maxime Ripardd8cacaa2015-05-03 11:53:07 +020064 compatible = "allwinner,simple-framebuffer",
65 "simple-framebuffer";
Hans de Goedea9f8cda2014-11-18 12:07:13 +010066 allwinner,pipeline = "de_be0-lcd0-hdmi";
Hans de Goede678e75d2014-11-16 17:09:32 +010067 clocks = <&pll5 1>, <&ahb_gates 36>, <&ahb_gates 43>,
68 <&ahb_gates 44>;
Hans de Goede5790d4e2014-11-14 16:34:34 +010069 status = "disabled";
70 };
Hans de Goede8cedd662015-01-19 14:01:17 +010071
72 framebuffer@1 {
Maxime Ripardd8cacaa2015-05-03 11:53:07 +020073 compatible = "allwinner,simple-framebuffer",
74 "simple-framebuffer";
Hans de Goede8cedd662015-01-19 14:01:17 +010075 allwinner,pipeline = "de_fe0-de_be0-lcd0-hdmi";
76 clocks = <&pll5 1>, <&ahb_gates 36>, <&ahb_gates 43>,
77 <&ahb_gates 44>, <&ahb_gates 46>;
78 status = "disabled";
79 };
Hans de Goedefd18c7e2015-01-19 14:05:12 +010080
81 framebuffer@2 {
82 compatible = "allwinner,simple-framebuffer",
83 "simple-framebuffer";
84 allwinner,pipeline = "de_fe0-de_be0-lcd0";
85 clocks = <&pll5 1>, <&ahb_gates 36>, <&ahb_gates 44>,
86 <&ahb_gates 46>;
87 status = "disabled";
88 };
89
90 framebuffer@3 {
91 compatible = "allwinner,simple-framebuffer",
92 "simple-framebuffer";
93 allwinner,pipeline = "de_fe0-de_be0-lcd0-tve0";
94 clocks = <&pll5 1>, <&ahb_gates 34>, <&ahb_gates 36>,
95 <&ahb_gates 44>, <&ahb_gates 46>;
96 status = "disabled";
97 };
Hans de Goede5790d4e2014-11-14 16:34:34 +010098 };
99
Maxime Ripard69144e32013-03-13 20:07:37 +0100100 cpus {
Arnd Bergmann8b2efa892013-06-10 16:48:36 +0200101 #address-cells = <1>;
102 #size-cells = <0>;
Chen-Yu Tsai7294be52015-01-06 10:35:23 +0800103 cpu0: cpu@0 {
Lorenzo Pieralisi14c44aa2013-04-18 18:41:57 +0100104 device_type = "cpu";
Maxime Ripard69144e32013-03-13 20:07:37 +0100105 compatible = "arm,cortex-a8";
Lorenzo Pieralisi14c44aa2013-04-18 18:41:57 +0100106 reg = <0x0>;
Chen-Yu Tsai7294be52015-01-06 10:35:23 +0800107 clocks = <&cpu>;
108 clock-latency = <244144>; /* 8 32k periods */
109 operating-points = <
Maxime Ripard8358aad2015-05-03 11:54:35 +0200110 /* kHz uV */
Chen-Yu Tsai7294be52015-01-06 10:35:23 +0800111 1008000 1400000
Maxime Ripard8358aad2015-05-03 11:54:35 +0200112 912000 1350000
113 864000 1300000
114 624000 1250000
Chen-Yu Tsai7294be52015-01-06 10:35:23 +0800115 >;
116 #cooling-cells = <2>;
117 cooling-min-level = <0>;
Chen-Yu Tsai370a9b52015-03-25 00:53:27 +0800118 cooling-max-level = <3>;
Maxime Ripard69144e32013-03-13 20:07:37 +0100119 };
120 };
121
Chen-Yu Tsai541ce2c2015-01-12 12:34:08 +0800122 thermal-zones {
123 cpu_thermal {
124 /* milliseconds */
125 polling-delay-passive = <250>;
126 polling-delay = <1000>;
127 thermal-sensors = <&rtp>;
128
129 cooling-maps {
130 map0 {
131 trip = <&cpu_alert0>;
132 cooling-device = <&cpu0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
133 };
134 };
135
136 trips {
137 cpu_alert0: cpu_alert0 {
138 /* milliCelsius */
139 temperature = <850000>;
140 hysteresis = <2000>;
141 type = "passive";
142 };
143
144 cpu_crit: cpu_crit {
145 /* milliCelsius */
146 temperature = <100000>;
147 hysteresis = <2000>;
148 type = "critical";
149 };
150 };
Stefan Roese7423d2d2012-11-26 15:46:12 +0100151 };
152 };
153
154 memory {
155 reg = <0x40000000 0x80000000>;
156 };
Maxime Ripard874b4e42013-01-26 15:36:54 +0100157
Maxime Ripard69144e32013-03-13 20:07:37 +0100158 clocks {
159 #address-cells = <1>;
160 #size-cells = <1>;
161 ranges;
162
163 /*
164 * This is a dummy clock, to be used as placeholder on
165 * other mux clocks when a specific parent clock is not
166 * yet implemented. It should be dropped when the driver
167 * is complete.
168 */
169 dummy: dummy {
170 #clock-cells = <0>;
171 compatible = "fixed-clock";
172 clock-frequency = <0>;
173 };
174
Chen-Yu Tsaidfb12c02014-02-03 09:51:41 +0800175 osc24M: clk@01c20050 {
Maxime Ripard69144e32013-03-13 20:07:37 +0100176 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100177 compatible = "allwinner,sun4i-a10-osc-clk";
Maxime Ripard69144e32013-03-13 20:07:37 +0100178 reg = <0x01c20050 0x4>;
Emilio López92fd6e02013-04-09 10:48:04 -0300179 clock-frequency = <24000000>;
Chen-Yu Tsaidfb12c02014-02-03 09:51:41 +0800180 clock-output-names = "osc24M";
Maxime Ripard69144e32013-03-13 20:07:37 +0100181 };
182
Chen-Yu Tsaidfb12c02014-02-03 09:51:41 +0800183 osc32k: clk@0 {
Maxime Ripard69144e32013-03-13 20:07:37 +0100184 #clock-cells = <0>;
185 compatible = "fixed-clock";
186 clock-frequency = <32768>;
Chen-Yu Tsaidfb12c02014-02-03 09:51:41 +0800187 clock-output-names = "osc32k";
Maxime Ripard69144e32013-03-13 20:07:37 +0100188 };
189
Chen-Yu Tsaidfb12c02014-02-03 09:51:41 +0800190 pll1: clk@01c20000 {
Maxime Ripard69144e32013-03-13 20:07:37 +0100191 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100192 compatible = "allwinner,sun4i-a10-pll1-clk";
Maxime Ripard69144e32013-03-13 20:07:37 +0100193 reg = <0x01c20000 0x4>;
194 clocks = <&osc24M>;
Chen-Yu Tsaidfb12c02014-02-03 09:51:41 +0800195 clock-output-names = "pll1";
Maxime Ripard69144e32013-03-13 20:07:37 +0100196 };
197
Chen-Yu Tsaidfb12c02014-02-03 09:51:41 +0800198 pll4: clk@01c20018 {
Emilio Lópezec5589f2013-12-23 00:32:35 -0300199 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100200 compatible = "allwinner,sun4i-a10-pll1-clk";
Emilio Lópezec5589f2013-12-23 00:32:35 -0300201 reg = <0x01c20018 0x4>;
202 clocks = <&osc24M>;
Chen-Yu Tsaidfb12c02014-02-03 09:51:41 +0800203 clock-output-names = "pll4";
Emilio Lópezec5589f2013-12-23 00:32:35 -0300204 };
205
Chen-Yu Tsaidfb12c02014-02-03 09:51:41 +0800206 pll5: clk@01c20020 {
Emilio Lópezc3e5e662013-12-23 00:32:38 -0300207 #clock-cells = <1>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100208 compatible = "allwinner,sun4i-a10-pll5-clk";
Emilio Lópezc3e5e662013-12-23 00:32:38 -0300209 reg = <0x01c20020 0x4>;
210 clocks = <&osc24M>;
211 clock-output-names = "pll5_ddr", "pll5_other";
212 };
213
Chen-Yu Tsaidfb12c02014-02-03 09:51:41 +0800214 pll6: clk@01c20028 {
Emilio Lópezc3e5e662013-12-23 00:32:38 -0300215 #clock-cells = <1>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100216 compatible = "allwinner,sun4i-a10-pll6-clk";
Emilio Lópezc3e5e662013-12-23 00:32:38 -0300217 reg = <0x01c20028 0x4>;
218 clocks = <&osc24M>;
219 clock-output-names = "pll6_sata", "pll6_other", "pll6";
220 };
221
Maxime Ripard69144e32013-03-13 20:07:37 +0100222 /* dummy is 200M */
223 cpu: cpu@01c20054 {
224 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100225 compatible = "allwinner,sun4i-a10-cpu-clk";
Maxime Ripard69144e32013-03-13 20:07:37 +0100226 reg = <0x01c20054 0x4>;
227 clocks = <&osc32k>, <&osc24M>, <&pll1>, <&dummy>;
Chen-Yu Tsaidfb12c02014-02-03 09:51:41 +0800228 clock-output-names = "cpu";
Maxime Ripard69144e32013-03-13 20:07:37 +0100229 };
230
231 axi: axi@01c20054 {
232 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100233 compatible = "allwinner,sun4i-a10-axi-clk";
Maxime Ripard69144e32013-03-13 20:07:37 +0100234 reg = <0x01c20054 0x4>;
235 clocks = <&cpu>;
Chen-Yu Tsaidfb12c02014-02-03 09:51:41 +0800236 clock-output-names = "axi";
Maxime Ripard69144e32013-03-13 20:07:37 +0100237 };
238
Chen-Yu Tsaidfb12c02014-02-03 09:51:41 +0800239 axi_gates: clk@01c2005c {
Maxime Ripard69144e32013-03-13 20:07:37 +0100240 #clock-cells = <1>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100241 compatible = "allwinner,sun4i-a10-axi-gates-clk";
Maxime Ripard69144e32013-03-13 20:07:37 +0100242 reg = <0x01c2005c 0x4>;
243 clocks = <&axi>;
244 clock-output-names = "axi_dram";
245 };
246
247 ahb: ahb@01c20054 {
248 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100249 compatible = "allwinner,sun4i-a10-ahb-clk";
Maxime Ripard69144e32013-03-13 20:07:37 +0100250 reg = <0x01c20054 0x4>;
251 clocks = <&axi>;
Chen-Yu Tsaidfb12c02014-02-03 09:51:41 +0800252 clock-output-names = "ahb";
Maxime Ripard69144e32013-03-13 20:07:37 +0100253 };
254
Chen-Yu Tsaidfb12c02014-02-03 09:51:41 +0800255 ahb_gates: clk@01c20060 {
Maxime Ripard69144e32013-03-13 20:07:37 +0100256 #clock-cells = <1>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100257 compatible = "allwinner,sun4i-a10-ahb-gates-clk";
Maxime Ripard69144e32013-03-13 20:07:37 +0100258 reg = <0x01c20060 0x8>;
259 clocks = <&ahb>;
260 clock-output-names = "ahb_usb0", "ahb_ehci0",
261 "ahb_ohci0", "ahb_ehci1", "ahb_ohci1", "ahb_ss",
262 "ahb_dma", "ahb_bist", "ahb_mmc0", "ahb_mmc1",
263 "ahb_mmc2", "ahb_mmc3", "ahb_ms", "ahb_nand",
264 "ahb_sdram", "ahb_ace", "ahb_emac", "ahb_ts",
265 "ahb_spi0", "ahb_spi1", "ahb_spi2", "ahb_spi3",
266 "ahb_pata", "ahb_sata", "ahb_gps", "ahb_ve",
267 "ahb_tvd", "ahb_tve0", "ahb_tve1", "ahb_lcd0",
268 "ahb_lcd1", "ahb_csi0", "ahb_csi1", "ahb_hdmi",
269 "ahb_de_be0", "ahb_de_be1", "ahb_de_fe0",
270 "ahb_de_fe1", "ahb_mp", "ahb_mali400";
271 };
272
273 apb0: apb0@01c20054 {
274 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100275 compatible = "allwinner,sun4i-a10-apb0-clk";
Maxime Ripard69144e32013-03-13 20:07:37 +0100276 reg = <0x01c20054 0x4>;
277 clocks = <&ahb>;
Chen-Yu Tsaidfb12c02014-02-03 09:51:41 +0800278 clock-output-names = "apb0";
Maxime Ripard69144e32013-03-13 20:07:37 +0100279 };
280
Chen-Yu Tsaidfb12c02014-02-03 09:51:41 +0800281 apb0_gates: clk@01c20068 {
Maxime Ripard69144e32013-03-13 20:07:37 +0100282 #clock-cells = <1>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100283 compatible = "allwinner,sun4i-a10-apb0-gates-clk";
Maxime Ripard69144e32013-03-13 20:07:37 +0100284 reg = <0x01c20068 0x4>;
285 clocks = <&apb0>;
286 clock-output-names = "apb0_codec", "apb0_spdif",
287 "apb0_ac97", "apb0_iis", "apb0_pio", "apb0_ir0",
288 "apb0_ir1", "apb0_keypad";
289 };
290
Emilio Lópezacbcc0f2014-11-06 11:40:30 +0800291 apb1: clk@01c20058 {
Maxime Ripard69144e32013-03-13 20:07:37 +0100292 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100293 compatible = "allwinner,sun4i-a10-apb1-clk";
Maxime Ripard69144e32013-03-13 20:07:37 +0100294 reg = <0x01c20058 0x4>;
Emilio Lópezacbcc0f2014-11-06 11:40:30 +0800295 clocks = <&osc24M>, <&pll6 1>, <&osc32k>;
Chen-Yu Tsaidfb12c02014-02-03 09:51:41 +0800296 clock-output-names = "apb1";
Maxime Ripard69144e32013-03-13 20:07:37 +0100297 };
298
Chen-Yu Tsaidfb12c02014-02-03 09:51:41 +0800299 apb1_gates: clk@01c2006c {
Maxime Ripard69144e32013-03-13 20:07:37 +0100300 #clock-cells = <1>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100301 compatible = "allwinner,sun4i-a10-apb1-gates-clk";
Maxime Ripard69144e32013-03-13 20:07:37 +0100302 reg = <0x01c2006c 0x4>;
303 clocks = <&apb1>;
304 clock-output-names = "apb1_i2c0", "apb1_i2c1",
305 "apb1_i2c2", "apb1_can", "apb1_scr",
306 "apb1_ps20", "apb1_ps21", "apb1_uart0",
307 "apb1_uart1", "apb1_uart2", "apb1_uart3",
308 "apb1_uart4", "apb1_uart5", "apb1_uart6",
309 "apb1_uart7";
310 };
Emilio López4b756ff2013-12-23 00:32:41 -0300311
312 nand_clk: clk@01c20080 {
313 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100314 compatible = "allwinner,sun4i-a10-mod0-clk";
Emilio López4b756ff2013-12-23 00:32:41 -0300315 reg = <0x01c20080 0x4>;
316 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
317 clock-output-names = "nand";
318 };
319
320 ms_clk: clk@01c20084 {
321 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100322 compatible = "allwinner,sun4i-a10-mod0-clk";
Emilio López4b756ff2013-12-23 00:32:41 -0300323 reg = <0x01c20084 0x4>;
324 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
325 clock-output-names = "ms";
326 };
327
328 mmc0_clk: clk@01c20088 {
Maxime Ripardd8c3a392014-07-11 19:39:06 +0200329 #clock-cells = <1>;
330 compatible = "allwinner,sun4i-a10-mmc-clk";
Emilio López4b756ff2013-12-23 00:32:41 -0300331 reg = <0x01c20088 0x4>;
332 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
Maxime Ripardd8c3a392014-07-11 19:39:06 +0200333 clock-output-names = "mmc0",
334 "mmc0_output",
335 "mmc0_sample";
Emilio López4b756ff2013-12-23 00:32:41 -0300336 };
337
338 mmc1_clk: clk@01c2008c {
Maxime Ripardd8c3a392014-07-11 19:39:06 +0200339 #clock-cells = <1>;
340 compatible = "allwinner,sun4i-a10-mmc-clk";
Emilio López4b756ff2013-12-23 00:32:41 -0300341 reg = <0x01c2008c 0x4>;
342 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
Maxime Ripardd8c3a392014-07-11 19:39:06 +0200343 clock-output-names = "mmc1",
344 "mmc1_output",
345 "mmc1_sample";
Emilio López4b756ff2013-12-23 00:32:41 -0300346 };
347
348 mmc2_clk: clk@01c20090 {
Maxime Ripardd8c3a392014-07-11 19:39:06 +0200349 #clock-cells = <1>;
350 compatible = "allwinner,sun4i-a10-mmc-clk";
Emilio López4b756ff2013-12-23 00:32:41 -0300351 reg = <0x01c20090 0x4>;
352 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
Maxime Ripardd8c3a392014-07-11 19:39:06 +0200353 clock-output-names = "mmc2",
354 "mmc2_output",
355 "mmc2_sample";
Emilio López4b756ff2013-12-23 00:32:41 -0300356 };
357
358 mmc3_clk: clk@01c20094 {
Maxime Ripardd8c3a392014-07-11 19:39:06 +0200359 #clock-cells = <1>;
360 compatible = "allwinner,sun4i-a10-mmc-clk";
Emilio López4b756ff2013-12-23 00:32:41 -0300361 reg = <0x01c20094 0x4>;
362 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
Maxime Ripardd8c3a392014-07-11 19:39:06 +0200363 clock-output-names = "mmc3",
364 "mmc3_output",
365 "mmc3_sample";
Emilio López4b756ff2013-12-23 00:32:41 -0300366 };
367
368 ts_clk: clk@01c20098 {
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 = <0x01c20098 0x4>;
372 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
373 clock-output-names = "ts";
374 };
375
376 ss_clk: clk@01c2009c {
377 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100378 compatible = "allwinner,sun4i-a10-mod0-clk";
Emilio López4b756ff2013-12-23 00:32:41 -0300379 reg = <0x01c2009c 0x4>;
380 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
381 clock-output-names = "ss";
382 };
383
384 spi0_clk: clk@01c200a0 {
385 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100386 compatible = "allwinner,sun4i-a10-mod0-clk";
Emilio López4b756ff2013-12-23 00:32:41 -0300387 reg = <0x01c200a0 0x4>;
388 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
389 clock-output-names = "spi0";
390 };
391
392 spi1_clk: clk@01c200a4 {
393 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100394 compatible = "allwinner,sun4i-a10-mod0-clk";
Emilio López4b756ff2013-12-23 00:32:41 -0300395 reg = <0x01c200a4 0x4>;
396 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
397 clock-output-names = "spi1";
398 };
399
400 spi2_clk: clk@01c200a8 {
401 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100402 compatible = "allwinner,sun4i-a10-mod0-clk";
Emilio López4b756ff2013-12-23 00:32:41 -0300403 reg = <0x01c200a8 0x4>;
404 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
405 clock-output-names = "spi2";
406 };
407
408 pata_clk: clk@01c200ac {
409 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100410 compatible = "allwinner,sun4i-a10-mod0-clk";
Emilio López4b756ff2013-12-23 00:32:41 -0300411 reg = <0x01c200ac 0x4>;
412 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
413 clock-output-names = "pata";
414 };
415
416 ir0_clk: clk@01c200b0 {
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 = <0x01c200b0 0x4>;
420 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
421 clock-output-names = "ir0";
422 };
423
424 ir1_clk: clk@01c200b4 {
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 = <0x01c200b4 0x4>;
428 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
429 clock-output-names = "ir1";
430 };
431
Roman Byshko0076c8b2014-02-07 16:21:51 +0100432 usb_clk: clk@01c200cc {
433 #clock-cells = <1>;
Maxime Ripard8358aad2015-05-03 11:54:35 +0200434 #reset-cells = <1>;
Roman Byshko0076c8b2014-02-07 16:21:51 +0100435 compatible = "allwinner,sun4i-a10-usb-clk";
436 reg = <0x01c200cc 0x4>;
437 clocks = <&pll6 1>;
Maxime Ripardd8cacaa2015-05-03 11:53:07 +0200438 clock-output-names = "usb_ohci0", "usb_ohci1",
439 "usb_phy";
Roman Byshko0076c8b2014-02-07 16:21:51 +0100440 };
441
Emilio López4b756ff2013-12-23 00:32:41 -0300442 spi3_clk: clk@01c200d4 {
443 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100444 compatible = "allwinner,sun4i-a10-mod0-clk";
Emilio López4b756ff2013-12-23 00:32:41 -0300445 reg = <0x01c200d4 0x4>;
446 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
447 clock-output-names = "spi3";
448 };
Maxime Ripard69144e32013-03-13 20:07:37 +0100449 };
450
Maxime Ripardb74aec12013-08-03 16:07:36 +0200451 soc@01c00000 {
Maxime Ripard69144e32013-03-13 20:07:37 +0100452 compatible = "simple-bus";
453 #address-cells = <1>;
454 #size-cells = <1>;
Maxime Ripard69144e32013-03-13 20:07:37 +0100455 ranges;
456
Maxime Ripard1fbc1512015-03-26 15:53:44 +0100457 sram-controller@01c00000 {
458 compatible = "allwinner,sun4i-a10-sram-controller";
459 reg = <0x01c00000 0x30>;
460 #address-cells = <1>;
461 #size-cells = <1>;
462 ranges;
463
464 sram_a: sram@00000000 {
465 compatible = "mmio-sram";
466 reg = <0x00000000 0xc000>;
467 #address-cells = <1>;
468 #size-cells = <1>;
469 ranges = <0 0x00000000 0xc000>;
470
471 emac_sram: sram-section@8000 {
472 compatible = "allwinner,sun4i-a10-sram-a3-a4";
473 reg = <0x8000 0x4000>;
474 status = "disabled";
475 };
476 };
477
478 sram_d: sram@00010000 {
479 compatible = "mmio-sram";
480 reg = <0x00010000 0x1000>;
481 #address-cells = <1>;
482 #size-cells = <1>;
483 ranges = <0 0x00010000 0x1000>;
484
485 otg_sram: sram-section@0000 {
486 compatible = "allwinner,sun4i-a10-sram-d";
487 reg = <0x0000 0x1000>;
488 status = "disabled";
489 };
490 };
491 };
492
Emilio López1324f532014-08-04 17:09:57 -0300493 dma: dma-controller@01c02000 {
494 compatible = "allwinner,sun4i-a10-dma";
495 reg = <0x01c02000 0x1000>;
496 interrupts = <27>;
497 clocks = <&ahb_gates 6>;
498 #dma-cells = <2>;
499 };
500
Maxime Ripard65918e22014-02-22 22:35:55 +0100501 spi0: spi@01c05000 {
502 compatible = "allwinner,sun4i-a10-spi";
503 reg = <0x01c05000 0x1000>;
504 interrupts = <10>;
505 clocks = <&ahb_gates 20>, <&spi0_clk>;
506 clock-names = "ahb", "mod";
Maxime Ripard1f9f6a72014-12-16 22:59:56 +0100507 dmas = <&dma SUN4I_DMA_DEDICATED 27>,
508 <&dma SUN4I_DMA_DEDICATED 26>;
Emilio López4192ff82014-08-04 17:10:00 -0300509 dma-names = "rx", "tx";
Maxime Ripard65918e22014-02-22 22:35:55 +0100510 status = "disabled";
511 #address-cells = <1>;
512 #size-cells = <0>;
513 };
514
515 spi1: spi@01c06000 {
516 compatible = "allwinner,sun4i-a10-spi";
517 reg = <0x01c06000 0x1000>;
518 interrupts = <11>;
519 clocks = <&ahb_gates 21>, <&spi1_clk>;
520 clock-names = "ahb", "mod";
Maxime Ripard1f9f6a72014-12-16 22:59:56 +0100521 dmas = <&dma SUN4I_DMA_DEDICATED 9>,
522 <&dma SUN4I_DMA_DEDICATED 8>;
Emilio López4192ff82014-08-04 17:10:00 -0300523 dma-names = "rx", "tx";
Maxime Ripard65918e22014-02-22 22:35:55 +0100524 status = "disabled";
525 #address-cells = <1>;
526 #size-cells = <0>;
527 };
528
Maxime Riparde38afcb2013-05-30 03:49:23 +0000529 emac: ethernet@01c0b000 {
Maxime Ripard1c70e092014-02-02 14:49:13 +0100530 compatible = "allwinner,sun4i-a10-emac";
Maxime Riparde38afcb2013-05-30 03:49:23 +0000531 reg = <0x01c0b000 0x1000>;
532 interrupts = <55>;
533 clocks = <&ahb_gates 17>;
Maxime Ripard1fbc1512015-03-26 15:53:44 +0100534 allwinner,sram = <&emac_sram 1>;
Maxime Riparde38afcb2013-05-30 03:49:23 +0000535 status = "disabled";
536 };
537
Aleksei Mamlin92395f52015-01-19 22:35:22 +0300538 mdio: mdio@01c0b080 {
Maxime Ripard1c70e092014-02-02 14:49:13 +0100539 compatible = "allwinner,sun4i-a10-mdio";
Maxime Riparde38afcb2013-05-30 03:49:23 +0000540 reg = <0x01c0b080 0x14>;
541 status = "disabled";
542 #address-cells = <1>;
543 #size-cells = <0>;
544 };
545
David Lanzendörferb258b362014-05-02 17:57:18 +0200546 mmc0: mmc@01c0f000 {
547 compatible = "allwinner,sun4i-a10-mmc";
548 reg = <0x01c0f000 0x1000>;
Maxime Ripardd8c3a392014-07-11 19:39:06 +0200549 clocks = <&ahb_gates 8>,
550 <&mmc0_clk 0>,
551 <&mmc0_clk 1>,
552 <&mmc0_clk 2>;
553 clock-names = "ahb",
554 "mmc",
555 "output",
556 "sample";
David Lanzendörferb258b362014-05-02 17:57:18 +0200557 interrupts = <32>;
558 status = "disabled";
Hans de Goede4c1bb9c2015-03-10 16:27:09 +0100559 #address-cells = <1>;
560 #size-cells = <0>;
David Lanzendörferb258b362014-05-02 17:57:18 +0200561 };
562
563 mmc1: mmc@01c10000 {
564 compatible = "allwinner,sun4i-a10-mmc";
565 reg = <0x01c10000 0x1000>;
Maxime Ripardd8c3a392014-07-11 19:39:06 +0200566 clocks = <&ahb_gates 9>,
567 <&mmc1_clk 0>,
568 <&mmc1_clk 1>,
569 <&mmc1_clk 2>;
570 clock-names = "ahb",
571 "mmc",
572 "output",
573 "sample";
David Lanzendörferb258b362014-05-02 17:57:18 +0200574 interrupts = <33>;
575 status = "disabled";
Hans de Goede4c1bb9c2015-03-10 16:27:09 +0100576 #address-cells = <1>;
577 #size-cells = <0>;
David Lanzendörferb258b362014-05-02 17:57:18 +0200578 };
579
580 mmc2: mmc@01c11000 {
581 compatible = "allwinner,sun4i-a10-mmc";
582 reg = <0x01c11000 0x1000>;
Maxime Ripardd8c3a392014-07-11 19:39:06 +0200583 clocks = <&ahb_gates 10>,
584 <&mmc2_clk 0>,
585 <&mmc2_clk 1>,
586 <&mmc2_clk 2>;
587 clock-names = "ahb",
588 "mmc",
589 "output",
590 "sample";
David Lanzendörferb258b362014-05-02 17:57:18 +0200591 interrupts = <34>;
592 status = "disabled";
Hans de Goede4c1bb9c2015-03-10 16:27:09 +0100593 #address-cells = <1>;
594 #size-cells = <0>;
David Lanzendörferb258b362014-05-02 17:57:18 +0200595 };
596
597 mmc3: mmc@01c12000 {
598 compatible = "allwinner,sun4i-a10-mmc";
599 reg = <0x01c12000 0x1000>;
Maxime Ripardd8c3a392014-07-11 19:39:06 +0200600 clocks = <&ahb_gates 11>,
601 <&mmc3_clk 0>,
602 <&mmc3_clk 1>,
603 <&mmc3_clk 2>;
604 clock-names = "ahb",
605 "mmc",
606 "output",
607 "sample";
David Lanzendörferb258b362014-05-02 17:57:18 +0200608 interrupts = <35>;
609 status = "disabled";
Hans de Goede4c1bb9c2015-03-10 16:27:09 +0100610 #address-cells = <1>;
611 #size-cells = <0>;
David Lanzendörferb258b362014-05-02 17:57:18 +0200612 };
613
Roman Byshko6ab1ce22014-03-01 20:26:23 +0100614 usbphy: phy@01c13400 {
615 #phy-cells = <1>;
616 compatible = "allwinner,sun4i-a10-usb-phy";
617 reg = <0x01c13400 0x10 0x01c14800 0x4 0x01c1c800 0x4>;
618 reg-names = "phy_ctrl", "pmu1", "pmu2";
619 clocks = <&usb_clk 8>;
620 clock-names = "usb_phy";
Chen-Yu Tsai4dba4182014-12-18 19:10:35 +0800621 resets = <&usb_clk 0>, <&usb_clk 1>, <&usb_clk 2>;
622 reset-names = "usb0_reset", "usb1_reset", "usb2_reset";
Roman Byshko6ab1ce22014-03-01 20:26:23 +0100623 status = "disabled";
624 };
625
626 ehci0: usb@01c14000 {
627 compatible = "allwinner,sun4i-a10-ehci", "generic-ehci";
628 reg = <0x01c14000 0x100>;
629 interrupts = <39>;
630 clocks = <&ahb_gates 1>;
631 phys = <&usbphy 1>;
632 phy-names = "usb";
633 status = "disabled";
634 };
635
636 ohci0: usb@01c14400 {
637 compatible = "allwinner,sun4i-a10-ohci", "generic-ohci";
638 reg = <0x01c14400 0x100>;
639 interrupts = <64>;
640 clocks = <&usb_clk 6>, <&ahb_gates 2>;
641 phys = <&usbphy 1>;
642 phy-names = "usb";
643 status = "disabled";
644 };
645
LABBE Corentin56ba8c52015-07-17 16:39:38 +0200646 crypto: crypto-engine@01c15000 {
647 compatible = "allwinner,sun4i-a10-crypto";
648 reg = <0x01c15000 0x1000>;
649 interrupts = <86>;
650 clocks = <&ahb_gates 5>, <&ss_clk>;
651 clock-names = "ahb", "mod";
652 };
653
Maxime Ripard65918e22014-02-22 22:35:55 +0100654 spi2: spi@01c17000 {
655 compatible = "allwinner,sun4i-a10-spi";
656 reg = <0x01c17000 0x1000>;
657 interrupts = <12>;
658 clocks = <&ahb_gates 22>, <&spi2_clk>;
659 clock-names = "ahb", "mod";
Maxime Ripard1f9f6a72014-12-16 22:59:56 +0100660 dmas = <&dma SUN4I_DMA_DEDICATED 29>,
661 <&dma SUN4I_DMA_DEDICATED 28>;
Emilio López4192ff82014-08-04 17:10:00 -0300662 dma-names = "rx", "tx";
Maxime Ripard65918e22014-02-22 22:35:55 +0100663 status = "disabled";
664 #address-cells = <1>;
665 #size-cells = <0>;
666 };
667
Oliver Schinagl248bd1e2014-03-01 20:26:21 +0100668 ahci: sata@01c18000 {
669 compatible = "allwinner,sun4i-a10-ahci";
670 reg = <0x01c18000 0x1000>;
671 interrupts = <56>;
672 clocks = <&pll6 0>, <&ahb_gates 25>;
673 status = "disabled";
674 };
675
Roman Byshko6ab1ce22014-03-01 20:26:23 +0100676 ehci1: usb@01c1c000 {
677 compatible = "allwinner,sun4i-a10-ehci", "generic-ehci";
678 reg = <0x01c1c000 0x100>;
679 interrupts = <40>;
680 clocks = <&ahb_gates 3>;
681 phys = <&usbphy 2>;
682 phy-names = "usb";
683 status = "disabled";
684 };
685
686 ohci1: usb@01c1c400 {
687 compatible = "allwinner,sun4i-a10-ohci", "generic-ohci";
688 reg = <0x01c1c400 0x100>;
689 interrupts = <65>;
690 clocks = <&usb_clk 7>, <&ahb_gates 4>;
691 phys = <&usbphy 2>;
692 phy-names = "usb";
693 status = "disabled";
694 };
695
Maxime Ripard65918e22014-02-22 22:35:55 +0100696 spi3: spi@01c1f000 {
697 compatible = "allwinner,sun4i-a10-spi";
698 reg = <0x01c1f000 0x1000>;
699 interrupts = <50>;
700 clocks = <&ahb_gates 23>, <&spi3_clk>;
701 clock-names = "ahb", "mod";
Maxime Ripard1f9f6a72014-12-16 22:59:56 +0100702 dmas = <&dma SUN4I_DMA_DEDICATED 31>,
703 <&dma SUN4I_DMA_DEDICATED 30>;
Emilio López4192ff82014-08-04 17:10:00 -0300704 dma-names = "rx", "tx";
Maxime Ripard65918e22014-02-22 22:35:55 +0100705 status = "disabled";
706 #address-cells = <1>;
707 #size-cells = <0>;
708 };
709
Maxime Ripard69144e32013-03-13 20:07:37 +0100710 intc: interrupt-controller@01c20400 {
Maxime Ripard09504a72014-02-07 21:50:26 +0100711 compatible = "allwinner,sun4i-a10-ic";
Maxime Ripard69144e32013-03-13 20:07:37 +0100712 reg = <0x01c20400 0x400>;
713 interrupt-controller;
714 #interrupt-cells = <1>;
715 };
716
Maxime Riparde10911e2013-01-27 19:26:05 +0100717 pio: pinctrl@01c20800 {
Maxime Ripard874b4e42013-01-26 15:36:54 +0100718 compatible = "allwinner,sun4i-a10-pinctrl";
719 reg = <0x01c20800 0x400>;
Maxime Ripard39138bc2013-04-06 15:00:48 +0200720 interrupts = <28>;
Emilio López36386d62013-03-27 18:20:41 -0300721 clocks = <&apb0_gates 5>;
Maxime Riparde10911e2013-01-27 19:26:05 +0100722 gpio-controller;
Maxime Ripard39138bc2013-04-06 15:00:48 +0200723 interrupt-controller;
Chen-Yu Tsai7d4ff962014-06-30 23:57:51 +0200724 #interrupt-cells = <2>;
Maxime Ripard874b4e42013-01-26 15:36:54 +0100725 #size-cells = <0>;
Maxime Riparde10911e2013-01-27 19:26:05 +0100726 #gpio-cells = <3>;
Maxime Ripard581981b2013-01-26 15:36:55 +0100727
Alexandre Belloni1d5726e2014-04-28 18:17:10 +0200728 pwm0_pins_a: pwm0@0 {
729 allwinner,pins = "PB2";
730 allwinner,function = "pwm";
Maxime Ripard092a0c32014-12-16 22:59:57 +0100731 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
732 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Alexandre Belloni1d5726e2014-04-28 18:17:10 +0200733 };
734
735 pwm1_pins_a: pwm1@0 {
736 allwinner,pins = "PI3";
737 allwinner,function = "pwm";
Maxime Ripard092a0c32014-12-16 22:59:57 +0100738 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
739 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Alexandre Belloni1d5726e2014-04-28 18:17:10 +0200740 };
741
Maxime Ripard581981b2013-01-26 15:36:55 +0100742 uart0_pins_a: uart0@0 {
743 allwinner,pins = "PB22", "PB23";
744 allwinner,function = "uart0";
Maxime Ripard092a0c32014-12-16 22:59:57 +0100745 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
746 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Maxime Ripard581981b2013-01-26 15:36:55 +0100747 };
748
749 uart0_pins_b: uart0@1 {
750 allwinner,pins = "PF2", "PF4";
751 allwinner,function = "uart0";
Maxime Ripard092a0c32014-12-16 22:59:57 +0100752 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
753 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Maxime Ripard581981b2013-01-26 15:36:55 +0100754 };
755
756 uart1_pins_a: uart1@0 {
757 allwinner,pins = "PA10", "PA11";
758 allwinner,function = "uart1";
Maxime Ripard092a0c32014-12-16 22:59:57 +0100759 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
760 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Maxime Ripard581981b2013-01-26 15:36:55 +0100761 };
Maxime Ripard27cce4f2013-03-10 13:44:38 +0100762
763 i2c0_pins_a: i2c0@0 {
764 allwinner,pins = "PB0", "PB1";
765 allwinner,function = "i2c0";
Maxime Ripard092a0c32014-12-16 22:59:57 +0100766 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
767 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Maxime Ripard27cce4f2013-03-10 13:44:38 +0100768 };
769
770 i2c1_pins_a: i2c1@0 {
771 allwinner,pins = "PB18", "PB19";
772 allwinner,function = "i2c1";
Maxime Ripard092a0c32014-12-16 22:59:57 +0100773 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
774 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Maxime Ripard27cce4f2013-03-10 13:44:38 +0100775 };
776
777 i2c2_pins_a: i2c2@0 {
778 allwinner,pins = "PB20", "PB21";
779 allwinner,function = "i2c2";
Maxime Ripard092a0c32014-12-16 22:59:57 +0100780 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
781 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Maxime Ripard27cce4f2013-03-10 13:44:38 +0100782 };
Linus Torvalds496322b2013-07-09 18:24:39 -0700783
Maxime Ripardb21da662013-05-30 03:49:22 +0000784 emac_pins_a: emac0@0 {
785 allwinner,pins = "PA0", "PA1", "PA2",
786 "PA3", "PA4", "PA5", "PA6",
787 "PA7", "PA8", "PA9", "PA10",
788 "PA11", "PA12", "PA13", "PA14",
789 "PA15", "PA16";
790 allwinner,function = "emac";
Maxime Ripard092a0c32014-12-16 22:59:57 +0100791 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
792 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Maxime Ripardb21da662013-05-30 03:49:22 +0000793 };
Hans de Goedeb5f86a32014-05-02 17:57:19 +0200794
795 mmc0_pins_a: mmc0@0 {
Maxime Ripardd8cacaa2015-05-03 11:53:07 +0200796 allwinner,pins = "PF0", "PF1", "PF2",
797 "PF3", "PF4", "PF5";
Hans de Goedeb5f86a32014-05-02 17:57:19 +0200798 allwinner,function = "mmc0";
Maxime Ripard092a0c32014-12-16 22:59:57 +0100799 allwinner,drive = <SUN4I_PINCTRL_30_MA>;
800 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Hans de Goedeb5f86a32014-05-02 17:57:19 +0200801 };
802
803 mmc0_cd_pin_reference_design: mmc0_cd_pin@0 {
804 allwinner,pins = "PH1";
805 allwinner,function = "gpio_in";
Maxime Ripard092a0c32014-12-16 22:59:57 +0100806 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
807 allwinner,pull = <SUN4I_PINCTRL_PULL_UP>;
Hans de Goedeb5f86a32014-05-02 17:57:19 +0200808 };
Hans de Goedea4e10992014-06-30 23:57:58 +0200809
Marcus Cooper469a22e2015-05-02 13:36:20 +0200810 ir0_rx_pins_a: ir0@0 {
811 allwinner,pins = "PB4";
Hans de Goedea4e10992014-06-30 23:57:58 +0200812 allwinner,function = "ir0";
Maxime Ripard092a0c32014-12-16 22:59:57 +0100813 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
814 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Hans de Goedea4e10992014-06-30 23:57:58 +0200815 };
816
Marcus Cooper469a22e2015-05-02 13:36:20 +0200817 ir0_tx_pins_a: ir0@1 {
818 allwinner,pins = "PB3";
819 allwinner,function = "ir0";
820 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
821 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
822 };
823
824 ir1_rx_pins_a: ir1@0 {
825 allwinner,pins = "PB23";
826 allwinner,function = "ir1";
827 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
828 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
829 };
830
831 ir1_tx_pins_a: ir1@1 {
832 allwinner,pins = "PB22";
Hans de Goedea4e10992014-06-30 23:57:58 +0200833 allwinner,function = "ir1";
Maxime Ripard092a0c32014-12-16 22:59:57 +0100834 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
835 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Hans de Goedea4e10992014-06-30 23:57:58 +0200836 };
Alexandru Gagniucec66d0b2014-12-08 04:14:01 -0600837
838 spi0_pins_a: spi0@0 {
Maxime Ripardf3022c62015-05-03 09:25:41 +0200839 allwinner,pins = "PI11", "PI12", "PI13";
840 allwinner,function = "spi0";
841 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
842 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
843 };
844
845 spi0_cs0_pins_a: spi0_cs0@0 {
846 allwinner,pins = "PI10";
Alexandru Gagniucec66d0b2014-12-08 04:14:01 -0600847 allwinner,function = "spi0";
Maxime Ripard092a0c32014-12-16 22:59:57 +0100848 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
849 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Alexandru Gagniucec66d0b2014-12-08 04:14:01 -0600850 };
851
852 spi1_pins_a: spi1@0 {
Maxime Ripardf3022c62015-05-03 09:25:41 +0200853 allwinner,pins = "PI17", "PI18", "PI19";
854 allwinner,function = "spi1";
855 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
856 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
857 };
858
859 spi1_cs0_pins_a: spi1_cs0@0 {
860 allwinner,pins = "PI16";
Alexandru Gagniucec66d0b2014-12-08 04:14:01 -0600861 allwinner,function = "spi1";
Maxime Ripard092a0c32014-12-16 22:59:57 +0100862 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
863 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Alexandru Gagniucec66d0b2014-12-08 04:14:01 -0600864 };
865
866 spi2_pins_a: spi2@0 {
Maxime Ripardf3022c62015-05-03 09:25:41 +0200867 allwinner,pins = "PC20", "PC21", "PC22";
Alexandru Gagniucec66d0b2014-12-08 04:14:01 -0600868 allwinner,function = "spi2";
Maxime Ripard092a0c32014-12-16 22:59:57 +0100869 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
870 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Alexandru Gagniucec66d0b2014-12-08 04:14:01 -0600871 };
872
873 spi2_pins_b: spi2@1 {
Maxime Ripardf3022c62015-05-03 09:25:41 +0200874 allwinner,pins = "PB15", "PB16", "PB17";
875 allwinner,function = "spi2";
876 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
877 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
878 };
879
880 spi2_cs0_pins_a: spi2_cs0@0 {
881 allwinner,pins = "PC19";
882 allwinner,function = "spi2";
883 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
884 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
885 };
886
887 spi2_cs0_pins_b: spi2_cs0@1 {
888 allwinner,pins = "PB14";
Alexandru Gagniucec66d0b2014-12-08 04:14:01 -0600889 allwinner,function = "spi2";
Maxime Ripard092a0c32014-12-16 22:59:57 +0100890 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
891 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Alexandru Gagniucec66d0b2014-12-08 04:14:01 -0600892 };
Vishnu Patekar1e8d1562015-01-25 19:10:09 +0530893
894 ps20_pins_a: ps20@0 {
895 allwinner,pins = "PI20", "PI21";
896 allwinner,function = "ps2";
897 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
898 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
899 };
900
901 ps21_pins_a: ps21@0 {
902 allwinner,pins = "PH12", "PH13";
903 allwinner,function = "ps2";
904 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
905 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Maxime Ripard69144e32013-03-13 20:07:37 +0100906 };
Carlo Caioneb5d905c2013-10-16 20:30:26 +0200907 };
Maxime Ripard5fc4bc82014-04-03 14:50:03 -0700908
Carlo Caioneb5d905c2013-10-16 20:30:26 +0200909 timer@01c20c00 {
910 compatible = "allwinner,sun4i-a10-timer";
911 reg = <0x01c20c00 0x90>;
912 interrupts = <22>;
Alexandre Belloni4b57a392014-04-28 18:17:11 +0200913 clocks = <&osc24M>;
914 };
915
916 wdt: watchdog@01c20c90 {
917 compatible = "allwinner,sun4i-a10-wdt";
918 reg = <0x01c20c90 0x10>;
919 };
920
Oliver Schinagl2bad9692013-09-03 12:33:28 +0200921 rtc: rtc@01c20d00 {
Maxime Ripard043d56e2014-02-07 22:20:40 +0100922 compatible = "allwinner,sun4i-a10-rtc";
Oliver Schinagl2bad9692013-09-03 12:33:28 +0200923 reg = <0x01c20d00 0x20>;
924 interrupts = <24>;
925 };
Hans de Goede57c88392013-12-31 17:20:50 +0100926
Maxime Ripard40dd8f32014-02-02 14:52:40 +0100927 pwm: pwm@01c20e00 {
Hans de Goede57c88392013-12-31 17:20:50 +0100928 compatible = "allwinner,sun4i-a10-pwm";
929 reg = <0x01c20e00 0xc>;
930 clocks = <&osc24M>;
931 #pwm-cells = <3>;
Maxime Ripard89b3c992013-02-20 17:25:03 -0800932 status = "disabled";
933 };
934
Hans de Goedea4e10992014-06-30 23:57:58 +0200935 ir0: ir@01c21800 {
936 compatible = "allwinner,sun4i-a10-ir";
937 clocks = <&apb0_gates 6>, <&ir0_clk>;
938 clock-names = "apb", "ir";
939 interrupts = <5>;
940 reg = <0x01c21800 0x40>;
941 status = "disabled";
942 };
943
944 ir1: ir@01c21c00 {
945 compatible = "allwinner,sun4i-a10-ir";
946 clocks = <&apb0_gates 7>, <&ir1_clk>;
947 clock-names = "apb", "ir";
948 interrupts = <6>;
949 reg = <0x01c21c00 0x40>;
950 status = "disabled";
951 };
952
Hans de Goedeb0512e12014-12-23 11:13:20 +0100953 lradc: lradc@01c22800 {
954 compatible = "allwinner,sun4i-a10-lradc-keys";
955 reg = <0x01c22800 0x100>;
956 interrupts = <31>;
957 status = "disabled";
958 };
959
Maxime Ripard89b3c992013-02-20 17:25:03 -0800960 sid: eeprom@01c23800 {
961 compatible = "allwinner,sun4i-a10-sid";
962 reg = <0x01c23800 0x10>;
963 };
964
965 rtp: rtp@01c25000 {
Emilio López9ff49ec2013-03-27 18:20:39 -0300966 compatible = "allwinner,sun4i-a10-ts";
Maxime Ripard89b3c992013-02-20 17:25:03 -0800967 reg = <0x01c25000 0x100>;
968 interrupts = <29>;
Chen-Yu Tsai41e7afb2015-01-06 10:35:15 +0800969 #thermal-sensor-cells = <0>;
Stefan Roese7423d2d2012-11-26 15:46:12 +0100970 };
971
972 uart0: serial@01c28000 {
973 compatible = "snps,dw-apb-uart";
974 reg = <0x01c28000 0x400>;
Maxime Ripard76f14d0a2013-02-20 17:38:27 -0800975 interrupts = <1>;
Maxime Ripard69144e32013-03-13 20:07:37 +0100976 reg-shift = <2>;
977 reg-io-width = <4>;
978 clocks = <&apb1_gates 16>;
979 status = "disabled";
980 };
981
982 uart1: serial@01c28400 {
983 compatible = "snps,dw-apb-uart";
984 reg = <0x01c28400 0x400>;
985 interrupts = <2>;
Maxime Ripard76f14d0a2013-02-20 17:38:27 -0800986 reg-shift = <2>;
987 reg-io-width = <4>;
988 clocks = <&apb1_gates 17>;
989 status = "disabled";
990 };
991
Emilio López9ff49ec2013-03-27 18:20:39 -0300992 uart2: serial@01c28800 {
Maxime Ripard76f14d0a2013-02-20 17:38:27 -0800993 compatible = "snps,dw-apb-uart";
994 reg = <0x01c28800 0x400>;
995 interrupts = <3>;
Maxime Ripard69144e32013-03-13 20:07:37 +0100996 reg-shift = <2>;
997 reg-io-width = <4>;
998 clocks = <&apb1_gates 18>;
999 status = "disabled";
1000 };
1001
1002 uart3: serial@01c28c00 {
1003 compatible = "snps,dw-apb-uart";
1004 reg = <0x01c28c00 0x400>;
1005 interrupts = <4>;
Maxime Ripard76f14d0a2013-02-20 17:38:27 -08001006 reg-shift = <2>;
1007 reg-io-width = <4>;
1008 clocks = <&apb1_gates 19>;
1009 status = "disabled";
1010 };
1011
Emilio López9ff49ec2013-03-27 18:20:39 -03001012 uart4: serial@01c29000 {
Maxime Ripard76f14d0a2013-02-20 17:38:27 -08001013 compatible = "snps,dw-apb-uart";
1014 reg = <0x01c29000 0x400>;
1015 interrupts = <17>;
1016 reg-shift = <2>;
1017 reg-io-width = <4>;
1018 clocks = <&apb1_gates 20>;
1019 status = "disabled";
1020 };
1021
Emilio López9ff49ec2013-03-27 18:20:39 -03001022 uart5: serial@01c29400 {
Maxime Ripard76f14d0a2013-02-20 17:38:27 -08001023 compatible = "snps,dw-apb-uart";
1024 reg = <0x01c29400 0x400>;
1025 interrupts = <18>;
1026 reg-shift = <2>;
1027 reg-io-width = <4>;
1028 clocks = <&apb1_gates 21>;
1029 status = "disabled";
1030 };
1031
Emilio López9ff49ec2013-03-27 18:20:39 -03001032 uart6: serial@01c29800 {
Maxime Ripard76f14d0a2013-02-20 17:38:27 -08001033 compatible = "snps,dw-apb-uart";
1034 reg = <0x01c29800 0x400>;
1035 interrupts = <19>;
1036 reg-shift = <2>;
1037 reg-io-width = <4>;
1038 clocks = <&apb1_gates 22>;
1039 status = "disabled";
1040 };
1041
Emilio López9ff49ec2013-03-27 18:20:39 -03001042 uart7: serial@01c29c00 {
Maxime Ripard76f14d0a2013-02-20 17:38:27 -08001043 compatible = "snps,dw-apb-uart";
1044 reg = <0x01c29c00 0x400>;
Maxime Ripardf1741fd2013-03-10 13:34:36 +01001045 interrupts = <20>;
1046 reg-shift = <2>;
1047 reg-io-width = <4>;
1048 clocks = <&apb1_gates 23>;
1049 status = "disabled";
1050 };
1051
1052 i2c0: i2c@01c2ac00 {
Maxime Ripardd2755452014-03-31 14:54:58 +02001053 compatible = "allwinner,sun4i-a10-i2c";
Maxime Ripardf1741fd2013-03-10 13:34:36 +01001054 reg = <0x01c2ac00 0x400>;
1055 interrupts = <7>;
1056 clocks = <&apb1_gates 0>;
Maxime Ripardf1741fd2013-03-10 13:34:36 +01001057 status = "disabled";
Hans de Goede60bbe312014-04-13 13:41:03 +02001058 #address-cells = <1>;
1059 #size-cells = <0>;
Maxime Ripardf1741fd2013-03-10 13:34:36 +01001060 };
1061
1062 i2c1: i2c@01c2b000 {
Maxime Ripardd2755452014-03-31 14:54:58 +02001063 compatible = "allwinner,sun4i-a10-i2c";
Maxime Ripardf1741fd2013-03-10 13:34:36 +01001064 reg = <0x01c2b000 0x400>;
1065 interrupts = <8>;
1066 clocks = <&apb1_gates 1>;
Maxime Ripardf1741fd2013-03-10 13:34:36 +01001067 status = "disabled";
Hans de Goede60bbe312014-04-13 13:41:03 +02001068 #address-cells = <1>;
1069 #size-cells = <0>;
Maxime Ripardf1741fd2013-03-10 13:34:36 +01001070 };
1071
1072 i2c2: i2c@01c2b400 {
Maxime Ripardd2755452014-03-31 14:54:58 +02001073 compatible = "allwinner,sun4i-a10-i2c";
Maxime Ripardf1741fd2013-03-10 13:34:36 +01001074 reg = <0x01c2b400 0x400>;
1075 interrupts = <9>;
1076 clocks = <&apb1_gates 2>;
Maxime Ripardf1741fd2013-03-10 13:34:36 +01001077 status = "disabled";
Hans de Goede60bbe312014-04-13 13:41:03 +02001078 #address-cells = <1>;
1079 #size-cells = <0>;
Maxime Ripardf1741fd2013-03-10 13:34:36 +01001080 };
Vishnu Patekar196654a2015-01-25 19:10:08 +05301081
1082 ps20: ps2@01c2a000 {
1083 compatible = "allwinner,sun4i-a10-ps2";
1084 reg = <0x01c2a000 0x400>;
1085 interrupts = <62>;
1086 clocks = <&apb1_gates 6>;
1087 status = "disabled";
1088 };
1089
1090 ps21: ps2@01c2a400 {
1091 compatible = "allwinner,sun4i-a10-ps2";
1092 reg = <0x01c2a400 0x400>;
1093 interrupts = <63>;
1094 clocks = <&apb1_gates 7>;
1095 status = "disabled";
1096 };
Stefan Roese7423d2d2012-11-26 15:46:12 +01001097 };
1098};