blob: eebb7853e00bbad39916e804453929a2935cc831 [file] [log] [blame]
Stefan Roese7423d2d2012-11-26 15:46:12 +01001/*
2 * Copyright 2012 Stefan Roese
3 * Stefan Roese <sr@denx.de>
4 *
5 * The code contained herein is licensed under the GNU General Public
6 * License. You may obtain a copy of the GNU General Public License
7 * Version 2 or later at the following locations:
8 *
9 * http://www.opensource.org/licenses/gpl-license.html
10 * http://www.gnu.org/copyleft/gpl.html
11 */
12
Maxime Ripard71455702014-12-16 22:59:54 +010013#include "skeleton.dtsi"
Stefan Roese7423d2d2012-11-26 15:46:12 +010014
Chen-Yu Tsai541ce2c2015-01-12 12:34:08 +080015#include <dt-bindings/thermal/thermal.h>
16
Maxime Ripard1f9f6a72014-12-16 22:59:56 +010017#include <dt-bindings/dma/sun4i-a10.h>
Maxime Ripard092a0c32014-12-16 22:59:57 +010018#include <dt-bindings/pinctrl/sun4i-a10.h>
Stefan Roese7423d2d2012-11-26 15:46:12 +010019
20/ {
Maxime Ripard69144e32013-03-13 20:07:37 +010021 interrupt-parent = <&intc>;
22
Emilio Lópeze751cce2013-11-16 15:17:29 -030023 aliases {
24 ethernet0 = &emac;
25 };
26
Hans de Goede5790d4e2014-11-14 16:34:34 +010027 chosen {
28 #address-cells = <1>;
29 #size-cells = <1>;
30 ranges;
31
Hans de Goedea9f8cda2014-11-18 12:07:13 +010032 framebuffer@0 {
33 compatible = "allwinner,simple-framebuffer", "simple-framebuffer";
34 allwinner,pipeline = "de_be0-lcd0-hdmi";
Hans de Goede678e75d2014-11-16 17:09:32 +010035 clocks = <&pll5 1>, <&ahb_gates 36>, <&ahb_gates 43>,
36 <&ahb_gates 44>;
Hans de Goede5790d4e2014-11-14 16:34:34 +010037 status = "disabled";
38 };
Hans de Goede8cedd662015-01-19 14:01:17 +010039
40 framebuffer@1 {
41 compatible = "allwinner,simple-framebuffer", "simple-framebuffer";
42 allwinner,pipeline = "de_fe0-de_be0-lcd0-hdmi";
43 clocks = <&pll5 1>, <&ahb_gates 36>, <&ahb_gates 43>,
44 <&ahb_gates 44>, <&ahb_gates 46>;
45 status = "disabled";
46 };
Hans de Goedefd18c7e2015-01-19 14:05:12 +010047
48 framebuffer@2 {
49 compatible = "allwinner,simple-framebuffer",
50 "simple-framebuffer";
51 allwinner,pipeline = "de_fe0-de_be0-lcd0";
52 clocks = <&pll5 1>, <&ahb_gates 36>, <&ahb_gates 44>,
53 <&ahb_gates 46>;
54 status = "disabled";
55 };
56
57 framebuffer@3 {
58 compatible = "allwinner,simple-framebuffer",
59 "simple-framebuffer";
60 allwinner,pipeline = "de_fe0-de_be0-lcd0-tve0";
61 clocks = <&pll5 1>, <&ahb_gates 34>, <&ahb_gates 36>,
62 <&ahb_gates 44>, <&ahb_gates 46>;
63 status = "disabled";
64 };
Hans de Goede5790d4e2014-11-14 16:34:34 +010065 };
66
Maxime Ripard69144e32013-03-13 20:07:37 +010067 cpus {
Arnd Bergmann8b2efa892013-06-10 16:48:36 +020068 #address-cells = <1>;
69 #size-cells = <0>;
Chen-Yu Tsai7294be52015-01-06 10:35:23 +080070 cpu0: cpu@0 {
Lorenzo Pieralisi14c44aa2013-04-18 18:41:57 +010071 device_type = "cpu";
Maxime Ripard69144e32013-03-13 20:07:37 +010072 compatible = "arm,cortex-a8";
Lorenzo Pieralisi14c44aa2013-04-18 18:41:57 +010073 reg = <0x0>;
Chen-Yu Tsai7294be52015-01-06 10:35:23 +080074 clocks = <&cpu>;
75 clock-latency = <244144>; /* 8 32k periods */
76 operating-points = <
77 /* kHz uV */
Chen-Yu Tsai7294be52015-01-06 10:35:23 +080078 1008000 1400000
79 912000 1350000
80 864000 1300000
81 624000 1250000
82 >;
83 #cooling-cells = <2>;
84 cooling-min-level = <0>;
Chen-Yu Tsai370a9b52015-03-25 00:53:27 +080085 cooling-max-level = <3>;
Maxime Ripard69144e32013-03-13 20:07:37 +010086 };
87 };
88
Chen-Yu Tsai541ce2c2015-01-12 12:34:08 +080089 thermal-zones {
90 cpu_thermal {
91 /* milliseconds */
92 polling-delay-passive = <250>;
93 polling-delay = <1000>;
94 thermal-sensors = <&rtp>;
95
96 cooling-maps {
97 map0 {
98 trip = <&cpu_alert0>;
99 cooling-device = <&cpu0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
100 };
101 };
102
103 trips {
104 cpu_alert0: cpu_alert0 {
105 /* milliCelsius */
106 temperature = <850000>;
107 hysteresis = <2000>;
108 type = "passive";
109 };
110
111 cpu_crit: cpu_crit {
112 /* milliCelsius */
113 temperature = <100000>;
114 hysteresis = <2000>;
115 type = "critical";
116 };
117 };
Stefan Roese7423d2d2012-11-26 15:46:12 +0100118 };
119 };
120
121 memory {
122 reg = <0x40000000 0x80000000>;
123 };
Maxime Ripard874b4e42013-01-26 15:36:54 +0100124
Maxime Ripard69144e32013-03-13 20:07:37 +0100125 clocks {
126 #address-cells = <1>;
127 #size-cells = <1>;
128 ranges;
129
130 /*
131 * This is a dummy clock, to be used as placeholder on
132 * other mux clocks when a specific parent clock is not
133 * yet implemented. It should be dropped when the driver
134 * is complete.
135 */
136 dummy: dummy {
137 #clock-cells = <0>;
138 compatible = "fixed-clock";
139 clock-frequency = <0>;
140 };
141
Chen-Yu Tsaidfb12c02014-02-03 09:51:41 +0800142 osc24M: clk@01c20050 {
Maxime Ripard69144e32013-03-13 20:07:37 +0100143 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100144 compatible = "allwinner,sun4i-a10-osc-clk";
Maxime Ripard69144e32013-03-13 20:07:37 +0100145 reg = <0x01c20050 0x4>;
Emilio López92fd6e02013-04-09 10:48:04 -0300146 clock-frequency = <24000000>;
Chen-Yu Tsaidfb12c02014-02-03 09:51:41 +0800147 clock-output-names = "osc24M";
Maxime Ripard69144e32013-03-13 20:07:37 +0100148 };
149
Chen-Yu Tsaidfb12c02014-02-03 09:51:41 +0800150 osc32k: clk@0 {
Maxime Ripard69144e32013-03-13 20:07:37 +0100151 #clock-cells = <0>;
152 compatible = "fixed-clock";
153 clock-frequency = <32768>;
Chen-Yu Tsaidfb12c02014-02-03 09:51:41 +0800154 clock-output-names = "osc32k";
Maxime Ripard69144e32013-03-13 20:07:37 +0100155 };
156
Chen-Yu Tsaidfb12c02014-02-03 09:51:41 +0800157 pll1: clk@01c20000 {
Maxime Ripard69144e32013-03-13 20:07:37 +0100158 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100159 compatible = "allwinner,sun4i-a10-pll1-clk";
Maxime Ripard69144e32013-03-13 20:07:37 +0100160 reg = <0x01c20000 0x4>;
161 clocks = <&osc24M>;
Chen-Yu Tsaidfb12c02014-02-03 09:51:41 +0800162 clock-output-names = "pll1";
Maxime Ripard69144e32013-03-13 20:07:37 +0100163 };
164
Chen-Yu Tsaidfb12c02014-02-03 09:51:41 +0800165 pll4: clk@01c20018 {
Emilio Lópezec5589f2013-12-23 00:32:35 -0300166 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100167 compatible = "allwinner,sun4i-a10-pll1-clk";
Emilio Lópezec5589f2013-12-23 00:32:35 -0300168 reg = <0x01c20018 0x4>;
169 clocks = <&osc24M>;
Chen-Yu Tsaidfb12c02014-02-03 09:51:41 +0800170 clock-output-names = "pll4";
Emilio Lópezec5589f2013-12-23 00:32:35 -0300171 };
172
Chen-Yu Tsaidfb12c02014-02-03 09:51:41 +0800173 pll5: clk@01c20020 {
Emilio Lópezc3e5e662013-12-23 00:32:38 -0300174 #clock-cells = <1>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100175 compatible = "allwinner,sun4i-a10-pll5-clk";
Emilio Lópezc3e5e662013-12-23 00:32:38 -0300176 reg = <0x01c20020 0x4>;
177 clocks = <&osc24M>;
178 clock-output-names = "pll5_ddr", "pll5_other";
179 };
180
Chen-Yu Tsaidfb12c02014-02-03 09:51:41 +0800181 pll6: clk@01c20028 {
Emilio Lópezc3e5e662013-12-23 00:32:38 -0300182 #clock-cells = <1>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100183 compatible = "allwinner,sun4i-a10-pll6-clk";
Emilio Lópezc3e5e662013-12-23 00:32:38 -0300184 reg = <0x01c20028 0x4>;
185 clocks = <&osc24M>;
186 clock-output-names = "pll6_sata", "pll6_other", "pll6";
187 };
188
Maxime Ripard69144e32013-03-13 20:07:37 +0100189 /* dummy is 200M */
190 cpu: cpu@01c20054 {
191 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100192 compatible = "allwinner,sun4i-a10-cpu-clk";
Maxime Ripard69144e32013-03-13 20:07:37 +0100193 reg = <0x01c20054 0x4>;
194 clocks = <&osc32k>, <&osc24M>, <&pll1>, <&dummy>;
Chen-Yu Tsaidfb12c02014-02-03 09:51:41 +0800195 clock-output-names = "cpu";
Maxime Ripard69144e32013-03-13 20:07:37 +0100196 };
197
198 axi: axi@01c20054 {
199 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100200 compatible = "allwinner,sun4i-a10-axi-clk";
Maxime Ripard69144e32013-03-13 20:07:37 +0100201 reg = <0x01c20054 0x4>;
202 clocks = <&cpu>;
Chen-Yu Tsaidfb12c02014-02-03 09:51:41 +0800203 clock-output-names = "axi";
Maxime Ripard69144e32013-03-13 20:07:37 +0100204 };
205
Chen-Yu Tsaidfb12c02014-02-03 09:51:41 +0800206 axi_gates: clk@01c2005c {
Maxime Ripard69144e32013-03-13 20:07:37 +0100207 #clock-cells = <1>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100208 compatible = "allwinner,sun4i-a10-axi-gates-clk";
Maxime Ripard69144e32013-03-13 20:07:37 +0100209 reg = <0x01c2005c 0x4>;
210 clocks = <&axi>;
211 clock-output-names = "axi_dram";
212 };
213
214 ahb: ahb@01c20054 {
215 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100216 compatible = "allwinner,sun4i-a10-ahb-clk";
Maxime Ripard69144e32013-03-13 20:07:37 +0100217 reg = <0x01c20054 0x4>;
218 clocks = <&axi>;
Chen-Yu Tsaidfb12c02014-02-03 09:51:41 +0800219 clock-output-names = "ahb";
Maxime Ripard69144e32013-03-13 20:07:37 +0100220 };
221
Chen-Yu Tsaidfb12c02014-02-03 09:51:41 +0800222 ahb_gates: clk@01c20060 {
Maxime Ripard69144e32013-03-13 20:07:37 +0100223 #clock-cells = <1>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100224 compatible = "allwinner,sun4i-a10-ahb-gates-clk";
Maxime Ripard69144e32013-03-13 20:07:37 +0100225 reg = <0x01c20060 0x8>;
226 clocks = <&ahb>;
227 clock-output-names = "ahb_usb0", "ahb_ehci0",
228 "ahb_ohci0", "ahb_ehci1", "ahb_ohci1", "ahb_ss",
229 "ahb_dma", "ahb_bist", "ahb_mmc0", "ahb_mmc1",
230 "ahb_mmc2", "ahb_mmc3", "ahb_ms", "ahb_nand",
231 "ahb_sdram", "ahb_ace", "ahb_emac", "ahb_ts",
232 "ahb_spi0", "ahb_spi1", "ahb_spi2", "ahb_spi3",
233 "ahb_pata", "ahb_sata", "ahb_gps", "ahb_ve",
234 "ahb_tvd", "ahb_tve0", "ahb_tve1", "ahb_lcd0",
235 "ahb_lcd1", "ahb_csi0", "ahb_csi1", "ahb_hdmi",
236 "ahb_de_be0", "ahb_de_be1", "ahb_de_fe0",
237 "ahb_de_fe1", "ahb_mp", "ahb_mali400";
238 };
239
240 apb0: apb0@01c20054 {
241 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100242 compatible = "allwinner,sun4i-a10-apb0-clk";
Maxime Ripard69144e32013-03-13 20:07:37 +0100243 reg = <0x01c20054 0x4>;
244 clocks = <&ahb>;
Chen-Yu Tsaidfb12c02014-02-03 09:51:41 +0800245 clock-output-names = "apb0";
Maxime Ripard69144e32013-03-13 20:07:37 +0100246 };
247
Chen-Yu Tsaidfb12c02014-02-03 09:51:41 +0800248 apb0_gates: clk@01c20068 {
Maxime Ripard69144e32013-03-13 20:07:37 +0100249 #clock-cells = <1>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100250 compatible = "allwinner,sun4i-a10-apb0-gates-clk";
Maxime Ripard69144e32013-03-13 20:07:37 +0100251 reg = <0x01c20068 0x4>;
252 clocks = <&apb0>;
253 clock-output-names = "apb0_codec", "apb0_spdif",
254 "apb0_ac97", "apb0_iis", "apb0_pio", "apb0_ir0",
255 "apb0_ir1", "apb0_keypad";
256 };
257
Emilio Lópezacbcc0f2014-11-06 11:40:30 +0800258 apb1: clk@01c20058 {
Maxime Ripard69144e32013-03-13 20:07:37 +0100259 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100260 compatible = "allwinner,sun4i-a10-apb1-clk";
Maxime Ripard69144e32013-03-13 20:07:37 +0100261 reg = <0x01c20058 0x4>;
Emilio Lópezacbcc0f2014-11-06 11:40:30 +0800262 clocks = <&osc24M>, <&pll6 1>, <&osc32k>;
Chen-Yu Tsaidfb12c02014-02-03 09:51:41 +0800263 clock-output-names = "apb1";
Maxime Ripard69144e32013-03-13 20:07:37 +0100264 };
265
Chen-Yu Tsaidfb12c02014-02-03 09:51:41 +0800266 apb1_gates: clk@01c2006c {
Maxime Ripard69144e32013-03-13 20:07:37 +0100267 #clock-cells = <1>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100268 compatible = "allwinner,sun4i-a10-apb1-gates-clk";
Maxime Ripard69144e32013-03-13 20:07:37 +0100269 reg = <0x01c2006c 0x4>;
270 clocks = <&apb1>;
271 clock-output-names = "apb1_i2c0", "apb1_i2c1",
272 "apb1_i2c2", "apb1_can", "apb1_scr",
273 "apb1_ps20", "apb1_ps21", "apb1_uart0",
274 "apb1_uart1", "apb1_uart2", "apb1_uart3",
275 "apb1_uart4", "apb1_uart5", "apb1_uart6",
276 "apb1_uart7";
277 };
Emilio López4b756ff2013-12-23 00:32:41 -0300278
279 nand_clk: clk@01c20080 {
280 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100281 compatible = "allwinner,sun4i-a10-mod0-clk";
Emilio López4b756ff2013-12-23 00:32:41 -0300282 reg = <0x01c20080 0x4>;
283 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
284 clock-output-names = "nand";
285 };
286
287 ms_clk: clk@01c20084 {
288 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100289 compatible = "allwinner,sun4i-a10-mod0-clk";
Emilio López4b756ff2013-12-23 00:32:41 -0300290 reg = <0x01c20084 0x4>;
291 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
292 clock-output-names = "ms";
293 };
294
295 mmc0_clk: clk@01c20088 {
Maxime Ripardd8c3a392014-07-11 19:39:06 +0200296 #clock-cells = <1>;
297 compatible = "allwinner,sun4i-a10-mmc-clk";
Emilio López4b756ff2013-12-23 00:32:41 -0300298 reg = <0x01c20088 0x4>;
299 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
Maxime Ripardd8c3a392014-07-11 19:39:06 +0200300 clock-output-names = "mmc0",
301 "mmc0_output",
302 "mmc0_sample";
Emilio López4b756ff2013-12-23 00:32:41 -0300303 };
304
305 mmc1_clk: clk@01c2008c {
Maxime Ripardd8c3a392014-07-11 19:39:06 +0200306 #clock-cells = <1>;
307 compatible = "allwinner,sun4i-a10-mmc-clk";
Emilio López4b756ff2013-12-23 00:32:41 -0300308 reg = <0x01c2008c 0x4>;
309 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
Maxime Ripardd8c3a392014-07-11 19:39:06 +0200310 clock-output-names = "mmc1",
311 "mmc1_output",
312 "mmc1_sample";
Emilio López4b756ff2013-12-23 00:32:41 -0300313 };
314
315 mmc2_clk: clk@01c20090 {
Maxime Ripardd8c3a392014-07-11 19:39:06 +0200316 #clock-cells = <1>;
317 compatible = "allwinner,sun4i-a10-mmc-clk";
Emilio López4b756ff2013-12-23 00:32:41 -0300318 reg = <0x01c20090 0x4>;
319 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
Maxime Ripardd8c3a392014-07-11 19:39:06 +0200320 clock-output-names = "mmc2",
321 "mmc2_output",
322 "mmc2_sample";
Emilio López4b756ff2013-12-23 00:32:41 -0300323 };
324
325 mmc3_clk: clk@01c20094 {
Maxime Ripardd8c3a392014-07-11 19:39:06 +0200326 #clock-cells = <1>;
327 compatible = "allwinner,sun4i-a10-mmc-clk";
Emilio López4b756ff2013-12-23 00:32:41 -0300328 reg = <0x01c20094 0x4>;
329 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
Maxime Ripardd8c3a392014-07-11 19:39:06 +0200330 clock-output-names = "mmc3",
331 "mmc3_output",
332 "mmc3_sample";
Emilio López4b756ff2013-12-23 00:32:41 -0300333 };
334
335 ts_clk: clk@01c20098 {
336 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100337 compatible = "allwinner,sun4i-a10-mod0-clk";
Emilio López4b756ff2013-12-23 00:32:41 -0300338 reg = <0x01c20098 0x4>;
339 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
340 clock-output-names = "ts";
341 };
342
343 ss_clk: clk@01c2009c {
344 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100345 compatible = "allwinner,sun4i-a10-mod0-clk";
Emilio López4b756ff2013-12-23 00:32:41 -0300346 reg = <0x01c2009c 0x4>;
347 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
348 clock-output-names = "ss";
349 };
350
351 spi0_clk: clk@01c200a0 {
352 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100353 compatible = "allwinner,sun4i-a10-mod0-clk";
Emilio López4b756ff2013-12-23 00:32:41 -0300354 reg = <0x01c200a0 0x4>;
355 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
356 clock-output-names = "spi0";
357 };
358
359 spi1_clk: clk@01c200a4 {
360 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100361 compatible = "allwinner,sun4i-a10-mod0-clk";
Emilio López4b756ff2013-12-23 00:32:41 -0300362 reg = <0x01c200a4 0x4>;
363 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
364 clock-output-names = "spi1";
365 };
366
367 spi2_clk: clk@01c200a8 {
368 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100369 compatible = "allwinner,sun4i-a10-mod0-clk";
Emilio López4b756ff2013-12-23 00:32:41 -0300370 reg = <0x01c200a8 0x4>;
371 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
372 clock-output-names = "spi2";
373 };
374
375 pata_clk: clk@01c200ac {
376 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100377 compatible = "allwinner,sun4i-a10-mod0-clk";
Emilio López4b756ff2013-12-23 00:32:41 -0300378 reg = <0x01c200ac 0x4>;
379 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
380 clock-output-names = "pata";
381 };
382
383 ir0_clk: clk@01c200b0 {
384 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100385 compatible = "allwinner,sun4i-a10-mod0-clk";
Emilio López4b756ff2013-12-23 00:32:41 -0300386 reg = <0x01c200b0 0x4>;
387 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
388 clock-output-names = "ir0";
389 };
390
391 ir1_clk: clk@01c200b4 {
392 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100393 compatible = "allwinner,sun4i-a10-mod0-clk";
Emilio López4b756ff2013-12-23 00:32:41 -0300394 reg = <0x01c200b4 0x4>;
395 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
396 clock-output-names = "ir1";
397 };
398
Roman Byshko0076c8b2014-02-07 16:21:51 +0100399 usb_clk: clk@01c200cc {
400 #clock-cells = <1>;
401 #reset-cells = <1>;
402 compatible = "allwinner,sun4i-a10-usb-clk";
403 reg = <0x01c200cc 0x4>;
404 clocks = <&pll6 1>;
405 clock-output-names = "usb_ohci0", "usb_ohci1", "usb_phy";
406 };
407
Emilio López4b756ff2013-12-23 00:32:41 -0300408 spi3_clk: clk@01c200d4 {
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 = <0x01c200d4 0x4>;
412 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
413 clock-output-names = "spi3";
414 };
Maxime Ripard69144e32013-03-13 20:07:37 +0100415 };
416
Maxime Ripardb74aec12013-08-03 16:07:36 +0200417 soc@01c00000 {
Maxime Ripard69144e32013-03-13 20:07:37 +0100418 compatible = "simple-bus";
419 #address-cells = <1>;
420 #size-cells = <1>;
Maxime Ripard69144e32013-03-13 20:07:37 +0100421 ranges;
422
Emilio López1324f532014-08-04 17:09:57 -0300423 dma: dma-controller@01c02000 {
424 compatible = "allwinner,sun4i-a10-dma";
425 reg = <0x01c02000 0x1000>;
426 interrupts = <27>;
427 clocks = <&ahb_gates 6>;
428 #dma-cells = <2>;
429 };
430
Maxime Ripard65918e22014-02-22 22:35:55 +0100431 spi0: spi@01c05000 {
432 compatible = "allwinner,sun4i-a10-spi";
433 reg = <0x01c05000 0x1000>;
434 interrupts = <10>;
435 clocks = <&ahb_gates 20>, <&spi0_clk>;
436 clock-names = "ahb", "mod";
Maxime Ripard1f9f6a72014-12-16 22:59:56 +0100437 dmas = <&dma SUN4I_DMA_DEDICATED 27>,
438 <&dma SUN4I_DMA_DEDICATED 26>;
Emilio López4192ff82014-08-04 17:10:00 -0300439 dma-names = "rx", "tx";
Maxime Ripard65918e22014-02-22 22:35:55 +0100440 status = "disabled";
441 #address-cells = <1>;
442 #size-cells = <0>;
443 };
444
445 spi1: spi@01c06000 {
446 compatible = "allwinner,sun4i-a10-spi";
447 reg = <0x01c06000 0x1000>;
448 interrupts = <11>;
449 clocks = <&ahb_gates 21>, <&spi1_clk>;
450 clock-names = "ahb", "mod";
Maxime Ripard1f9f6a72014-12-16 22:59:56 +0100451 dmas = <&dma SUN4I_DMA_DEDICATED 9>,
452 <&dma SUN4I_DMA_DEDICATED 8>;
Emilio López4192ff82014-08-04 17:10:00 -0300453 dma-names = "rx", "tx";
Maxime Ripard65918e22014-02-22 22:35:55 +0100454 status = "disabled";
455 #address-cells = <1>;
456 #size-cells = <0>;
457 };
458
Maxime Riparde38afcb2013-05-30 03:49:23 +0000459 emac: ethernet@01c0b000 {
Maxime Ripard1c70e092014-02-02 14:49:13 +0100460 compatible = "allwinner,sun4i-a10-emac";
Maxime Riparde38afcb2013-05-30 03:49:23 +0000461 reg = <0x01c0b000 0x1000>;
462 interrupts = <55>;
463 clocks = <&ahb_gates 17>;
464 status = "disabled";
465 };
466
Aleksei Mamlin92395f52015-01-19 22:35:22 +0300467 mdio: mdio@01c0b080 {
Maxime Ripard1c70e092014-02-02 14:49:13 +0100468 compatible = "allwinner,sun4i-a10-mdio";
Maxime Riparde38afcb2013-05-30 03:49:23 +0000469 reg = <0x01c0b080 0x14>;
470 status = "disabled";
471 #address-cells = <1>;
472 #size-cells = <0>;
473 };
474
David Lanzendörferb258b362014-05-02 17:57:18 +0200475 mmc0: mmc@01c0f000 {
476 compatible = "allwinner,sun4i-a10-mmc";
477 reg = <0x01c0f000 0x1000>;
Maxime Ripardd8c3a392014-07-11 19:39:06 +0200478 clocks = <&ahb_gates 8>,
479 <&mmc0_clk 0>,
480 <&mmc0_clk 1>,
481 <&mmc0_clk 2>;
482 clock-names = "ahb",
483 "mmc",
484 "output",
485 "sample";
David Lanzendörferb258b362014-05-02 17:57:18 +0200486 interrupts = <32>;
487 status = "disabled";
488 };
489
490 mmc1: mmc@01c10000 {
491 compatible = "allwinner,sun4i-a10-mmc";
492 reg = <0x01c10000 0x1000>;
Maxime Ripardd8c3a392014-07-11 19:39:06 +0200493 clocks = <&ahb_gates 9>,
494 <&mmc1_clk 0>,
495 <&mmc1_clk 1>,
496 <&mmc1_clk 2>;
497 clock-names = "ahb",
498 "mmc",
499 "output",
500 "sample";
David Lanzendörferb258b362014-05-02 17:57:18 +0200501 interrupts = <33>;
502 status = "disabled";
503 };
504
505 mmc2: mmc@01c11000 {
506 compatible = "allwinner,sun4i-a10-mmc";
507 reg = <0x01c11000 0x1000>;
Maxime Ripardd8c3a392014-07-11 19:39:06 +0200508 clocks = <&ahb_gates 10>,
509 <&mmc2_clk 0>,
510 <&mmc2_clk 1>,
511 <&mmc2_clk 2>;
512 clock-names = "ahb",
513 "mmc",
514 "output",
515 "sample";
David Lanzendörferb258b362014-05-02 17:57:18 +0200516 interrupts = <34>;
517 status = "disabled";
518 };
519
520 mmc3: mmc@01c12000 {
521 compatible = "allwinner,sun4i-a10-mmc";
522 reg = <0x01c12000 0x1000>;
Maxime Ripardd8c3a392014-07-11 19:39:06 +0200523 clocks = <&ahb_gates 11>,
524 <&mmc3_clk 0>,
525 <&mmc3_clk 1>,
526 <&mmc3_clk 2>;
527 clock-names = "ahb",
528 "mmc",
529 "output",
530 "sample";
David Lanzendörferb258b362014-05-02 17:57:18 +0200531 interrupts = <35>;
532 status = "disabled";
533 };
534
Roman Byshko6ab1ce22014-03-01 20:26:23 +0100535 usbphy: phy@01c13400 {
536 #phy-cells = <1>;
537 compatible = "allwinner,sun4i-a10-usb-phy";
538 reg = <0x01c13400 0x10 0x01c14800 0x4 0x01c1c800 0x4>;
539 reg-names = "phy_ctrl", "pmu1", "pmu2";
540 clocks = <&usb_clk 8>;
541 clock-names = "usb_phy";
Chen-Yu Tsai4dba4182014-12-18 19:10:35 +0800542 resets = <&usb_clk 0>, <&usb_clk 1>, <&usb_clk 2>;
543 reset-names = "usb0_reset", "usb1_reset", "usb2_reset";
Roman Byshko6ab1ce22014-03-01 20:26:23 +0100544 status = "disabled";
545 };
546
547 ehci0: usb@01c14000 {
548 compatible = "allwinner,sun4i-a10-ehci", "generic-ehci";
549 reg = <0x01c14000 0x100>;
550 interrupts = <39>;
551 clocks = <&ahb_gates 1>;
552 phys = <&usbphy 1>;
553 phy-names = "usb";
554 status = "disabled";
555 };
556
557 ohci0: usb@01c14400 {
558 compatible = "allwinner,sun4i-a10-ohci", "generic-ohci";
559 reg = <0x01c14400 0x100>;
560 interrupts = <64>;
561 clocks = <&usb_clk 6>, <&ahb_gates 2>;
562 phys = <&usbphy 1>;
563 phy-names = "usb";
564 status = "disabled";
565 };
566
Maxime Ripard65918e22014-02-22 22:35:55 +0100567 spi2: spi@01c17000 {
568 compatible = "allwinner,sun4i-a10-spi";
569 reg = <0x01c17000 0x1000>;
570 interrupts = <12>;
571 clocks = <&ahb_gates 22>, <&spi2_clk>;
572 clock-names = "ahb", "mod";
Maxime Ripard1f9f6a72014-12-16 22:59:56 +0100573 dmas = <&dma SUN4I_DMA_DEDICATED 29>,
574 <&dma SUN4I_DMA_DEDICATED 28>;
Emilio López4192ff82014-08-04 17:10:00 -0300575 dma-names = "rx", "tx";
Maxime Ripard65918e22014-02-22 22:35:55 +0100576 status = "disabled";
577 #address-cells = <1>;
578 #size-cells = <0>;
579 };
580
Oliver Schinagl248bd1e2014-03-01 20:26:21 +0100581 ahci: sata@01c18000 {
582 compatible = "allwinner,sun4i-a10-ahci";
583 reg = <0x01c18000 0x1000>;
584 interrupts = <56>;
585 clocks = <&pll6 0>, <&ahb_gates 25>;
586 status = "disabled";
587 };
588
Roman Byshko6ab1ce22014-03-01 20:26:23 +0100589 ehci1: usb@01c1c000 {
590 compatible = "allwinner,sun4i-a10-ehci", "generic-ehci";
591 reg = <0x01c1c000 0x100>;
592 interrupts = <40>;
593 clocks = <&ahb_gates 3>;
594 phys = <&usbphy 2>;
595 phy-names = "usb";
596 status = "disabled";
597 };
598
599 ohci1: usb@01c1c400 {
600 compatible = "allwinner,sun4i-a10-ohci", "generic-ohci";
601 reg = <0x01c1c400 0x100>;
602 interrupts = <65>;
603 clocks = <&usb_clk 7>, <&ahb_gates 4>;
604 phys = <&usbphy 2>;
605 phy-names = "usb";
606 status = "disabled";
607 };
608
Maxime Ripard65918e22014-02-22 22:35:55 +0100609 spi3: spi@01c1f000 {
610 compatible = "allwinner,sun4i-a10-spi";
611 reg = <0x01c1f000 0x1000>;
612 interrupts = <50>;
613 clocks = <&ahb_gates 23>, <&spi3_clk>;
614 clock-names = "ahb", "mod";
Maxime Ripard1f9f6a72014-12-16 22:59:56 +0100615 dmas = <&dma SUN4I_DMA_DEDICATED 31>,
616 <&dma SUN4I_DMA_DEDICATED 30>;
Emilio López4192ff82014-08-04 17:10:00 -0300617 dma-names = "rx", "tx";
Maxime Ripard65918e22014-02-22 22:35:55 +0100618 status = "disabled";
619 #address-cells = <1>;
620 #size-cells = <0>;
621 };
622
Maxime Ripard69144e32013-03-13 20:07:37 +0100623 intc: interrupt-controller@01c20400 {
Maxime Ripard09504a72014-02-07 21:50:26 +0100624 compatible = "allwinner,sun4i-a10-ic";
Maxime Ripard69144e32013-03-13 20:07:37 +0100625 reg = <0x01c20400 0x400>;
626 interrupt-controller;
627 #interrupt-cells = <1>;
628 };
629
Maxime Riparde10911e2013-01-27 19:26:05 +0100630 pio: pinctrl@01c20800 {
Maxime Ripard874b4e42013-01-26 15:36:54 +0100631 compatible = "allwinner,sun4i-a10-pinctrl";
632 reg = <0x01c20800 0x400>;
Maxime Ripard39138bc2013-04-06 15:00:48 +0200633 interrupts = <28>;
Emilio López36386d62013-03-27 18:20:41 -0300634 clocks = <&apb0_gates 5>;
Maxime Riparde10911e2013-01-27 19:26:05 +0100635 gpio-controller;
Maxime Ripard39138bc2013-04-06 15:00:48 +0200636 interrupt-controller;
Chen-Yu Tsai7d4ff962014-06-30 23:57:51 +0200637 #interrupt-cells = <2>;
Maxime Ripard874b4e42013-01-26 15:36:54 +0100638 #size-cells = <0>;
Maxime Riparde10911e2013-01-27 19:26:05 +0100639 #gpio-cells = <3>;
Maxime Ripard581981b2013-01-26 15:36:55 +0100640
Alexandre Belloni1d5726e2014-04-28 18:17:10 +0200641 pwm0_pins_a: pwm0@0 {
642 allwinner,pins = "PB2";
643 allwinner,function = "pwm";
Maxime Ripard092a0c32014-12-16 22:59:57 +0100644 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
645 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Alexandre Belloni1d5726e2014-04-28 18:17:10 +0200646 };
647
648 pwm1_pins_a: pwm1@0 {
649 allwinner,pins = "PI3";
650 allwinner,function = "pwm";
Maxime Ripard092a0c32014-12-16 22:59:57 +0100651 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
652 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Alexandre Belloni1d5726e2014-04-28 18:17:10 +0200653 };
654
Maxime Ripard581981b2013-01-26 15:36:55 +0100655 uart0_pins_a: uart0@0 {
656 allwinner,pins = "PB22", "PB23";
657 allwinner,function = "uart0";
Maxime Ripard092a0c32014-12-16 22:59:57 +0100658 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
659 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Maxime Ripard581981b2013-01-26 15:36:55 +0100660 };
661
662 uart0_pins_b: uart0@1 {
663 allwinner,pins = "PF2", "PF4";
664 allwinner,function = "uart0";
Maxime Ripard092a0c32014-12-16 22:59:57 +0100665 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
666 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Maxime Ripard581981b2013-01-26 15:36:55 +0100667 };
668
669 uart1_pins_a: uart1@0 {
670 allwinner,pins = "PA10", "PA11";
671 allwinner,function = "uart1";
Maxime Ripard092a0c32014-12-16 22:59:57 +0100672 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
673 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Maxime Ripard581981b2013-01-26 15:36:55 +0100674 };
Maxime Ripard27cce4f2013-03-10 13:44:38 +0100675
676 i2c0_pins_a: i2c0@0 {
677 allwinner,pins = "PB0", "PB1";
678 allwinner,function = "i2c0";
Maxime Ripard092a0c32014-12-16 22:59:57 +0100679 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
680 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Maxime Ripard27cce4f2013-03-10 13:44:38 +0100681 };
682
683 i2c1_pins_a: i2c1@0 {
684 allwinner,pins = "PB18", "PB19";
685 allwinner,function = "i2c1";
Maxime Ripard092a0c32014-12-16 22:59:57 +0100686 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
687 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Maxime Ripard27cce4f2013-03-10 13:44:38 +0100688 };
689
690 i2c2_pins_a: i2c2@0 {
691 allwinner,pins = "PB20", "PB21";
692 allwinner,function = "i2c2";
Maxime Ripard092a0c32014-12-16 22:59:57 +0100693 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
694 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Maxime Ripard27cce4f2013-03-10 13:44:38 +0100695 };
Linus Torvalds496322b2013-07-09 18:24:39 -0700696
Maxime Ripardb21da662013-05-30 03:49:22 +0000697 emac_pins_a: emac0@0 {
698 allwinner,pins = "PA0", "PA1", "PA2",
699 "PA3", "PA4", "PA5", "PA6",
700 "PA7", "PA8", "PA9", "PA10",
701 "PA11", "PA12", "PA13", "PA14",
702 "PA15", "PA16";
703 allwinner,function = "emac";
Maxime Ripard092a0c32014-12-16 22:59:57 +0100704 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
705 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Maxime Ripardb21da662013-05-30 03:49:22 +0000706 };
Hans de Goedeb5f86a32014-05-02 17:57:19 +0200707
708 mmc0_pins_a: mmc0@0 {
709 allwinner,pins = "PF0","PF1","PF2","PF3","PF4","PF5";
710 allwinner,function = "mmc0";
Maxime Ripard092a0c32014-12-16 22:59:57 +0100711 allwinner,drive = <SUN4I_PINCTRL_30_MA>;
712 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Hans de Goedeb5f86a32014-05-02 17:57:19 +0200713 };
714
715 mmc0_cd_pin_reference_design: mmc0_cd_pin@0 {
716 allwinner,pins = "PH1";
717 allwinner,function = "gpio_in";
Maxime Ripard092a0c32014-12-16 22:59:57 +0100718 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
719 allwinner,pull = <SUN4I_PINCTRL_PULL_UP>;
Hans de Goedeb5f86a32014-05-02 17:57:19 +0200720 };
Hans de Goedea4e10992014-06-30 23:57:58 +0200721
722 ir0_pins_a: ir0@0 {
723 allwinner,pins = "PB3","PB4";
724 allwinner,function = "ir0";
Maxime Ripard092a0c32014-12-16 22:59:57 +0100725 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
726 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Hans de Goedea4e10992014-06-30 23:57:58 +0200727 };
728
729 ir1_pins_a: ir1@0 {
730 allwinner,pins = "PB22","PB23";
731 allwinner,function = "ir1";
Maxime Ripard092a0c32014-12-16 22:59:57 +0100732 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
733 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Hans de Goedea4e10992014-06-30 23:57:58 +0200734 };
Alexandru Gagniucec66d0b2014-12-08 04:14:01 -0600735
736 spi0_pins_a: spi0@0 {
737 allwinner,pins = "PI10", "PI11", "PI12", "PI13";
738 allwinner,function = "spi0";
Maxime Ripard092a0c32014-12-16 22:59:57 +0100739 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
740 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Alexandru Gagniucec66d0b2014-12-08 04:14:01 -0600741 };
742
743 spi1_pins_a: spi1@0 {
744 allwinner,pins = "PI16", "PI17", "PI18", "PI19";
745 allwinner,function = "spi1";
Maxime Ripard092a0c32014-12-16 22:59:57 +0100746 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
747 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Alexandru Gagniucec66d0b2014-12-08 04:14:01 -0600748 };
749
750 spi2_pins_a: spi2@0 {
751 allwinner,pins = "PB14", "PB15", "PB16", "PB17";
752 allwinner,function = "spi2";
Maxime Ripard092a0c32014-12-16 22:59:57 +0100753 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
754 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Alexandru Gagniucec66d0b2014-12-08 04:14:01 -0600755 };
756
757 spi2_pins_b: spi2@1 {
758 allwinner,pins = "PC19", "PC20", "PC21", "PC22";
759 allwinner,function = "spi2";
Maxime Ripard092a0c32014-12-16 22:59:57 +0100760 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
761 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Alexandru Gagniucec66d0b2014-12-08 04:14:01 -0600762 };
Vishnu Patekar1e8d1562015-01-25 19:10:09 +0530763
764 ps20_pins_a: ps20@0 {
765 allwinner,pins = "PI20", "PI21";
766 allwinner,function = "ps2";
767 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
768 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
769 };
770
771 ps21_pins_a: ps21@0 {
772 allwinner,pins = "PH12", "PH13";
773 allwinner,function = "ps2";
774 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
775 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Maxime Ripard69144e32013-03-13 20:07:37 +0100776 };
Carlo Caioneb5d905c2013-10-16 20:30:26 +0200777 };
Maxime Ripard5fc4bc82014-04-03 14:50:03 -0700778
Carlo Caioneb5d905c2013-10-16 20:30:26 +0200779 timer@01c20c00 {
780 compatible = "allwinner,sun4i-a10-timer";
781 reg = <0x01c20c00 0x90>;
782 interrupts = <22>;
Alexandre Belloni4b57a392014-04-28 18:17:11 +0200783 clocks = <&osc24M>;
784 };
785
786 wdt: watchdog@01c20c90 {
787 compatible = "allwinner,sun4i-a10-wdt";
788 reg = <0x01c20c90 0x10>;
789 };
790
Oliver Schinagl2bad9692013-09-03 12:33:28 +0200791 rtc: rtc@01c20d00 {
Maxime Ripard043d56e2014-02-07 22:20:40 +0100792 compatible = "allwinner,sun4i-a10-rtc";
Oliver Schinagl2bad9692013-09-03 12:33:28 +0200793 reg = <0x01c20d00 0x20>;
794 interrupts = <24>;
795 };
Hans de Goede57c88392013-12-31 17:20:50 +0100796
Maxime Ripard40dd8f32014-02-02 14:52:40 +0100797 pwm: pwm@01c20e00 {
Hans de Goede57c88392013-12-31 17:20:50 +0100798 compatible = "allwinner,sun4i-a10-pwm";
799 reg = <0x01c20e00 0xc>;
800 clocks = <&osc24M>;
801 #pwm-cells = <3>;
Maxime Ripard89b3c992013-02-20 17:25:03 -0800802 status = "disabled";
803 };
804
Hans de Goedea4e10992014-06-30 23:57:58 +0200805 ir0: ir@01c21800 {
806 compatible = "allwinner,sun4i-a10-ir";
807 clocks = <&apb0_gates 6>, <&ir0_clk>;
808 clock-names = "apb", "ir";
809 interrupts = <5>;
810 reg = <0x01c21800 0x40>;
811 status = "disabled";
812 };
813
814 ir1: ir@01c21c00 {
815 compatible = "allwinner,sun4i-a10-ir";
816 clocks = <&apb0_gates 7>, <&ir1_clk>;
817 clock-names = "apb", "ir";
818 interrupts = <6>;
819 reg = <0x01c21c00 0x40>;
820 status = "disabled";
821 };
822
Hans de Goedeb0512e12014-12-23 11:13:20 +0100823 lradc: lradc@01c22800 {
824 compatible = "allwinner,sun4i-a10-lradc-keys";
825 reg = <0x01c22800 0x100>;
826 interrupts = <31>;
827 status = "disabled";
828 };
829
Maxime Ripard89b3c992013-02-20 17:25:03 -0800830 sid: eeprom@01c23800 {
831 compatible = "allwinner,sun4i-a10-sid";
832 reg = <0x01c23800 0x10>;
833 };
834
835 rtp: rtp@01c25000 {
Emilio López9ff49ec2013-03-27 18:20:39 -0300836 compatible = "allwinner,sun4i-a10-ts";
Maxime Ripard89b3c992013-02-20 17:25:03 -0800837 reg = <0x01c25000 0x100>;
838 interrupts = <29>;
Chen-Yu Tsai41e7afb2015-01-06 10:35:15 +0800839 #thermal-sensor-cells = <0>;
Stefan Roese7423d2d2012-11-26 15:46:12 +0100840 };
841
842 uart0: serial@01c28000 {
843 compatible = "snps,dw-apb-uart";
844 reg = <0x01c28000 0x400>;
Maxime Ripard76f14d0a2013-02-20 17:38:27 -0800845 interrupts = <1>;
Maxime Ripard69144e32013-03-13 20:07:37 +0100846 reg-shift = <2>;
847 reg-io-width = <4>;
848 clocks = <&apb1_gates 16>;
849 status = "disabled";
850 };
851
852 uart1: serial@01c28400 {
853 compatible = "snps,dw-apb-uart";
854 reg = <0x01c28400 0x400>;
855 interrupts = <2>;
Maxime Ripard76f14d0a2013-02-20 17:38:27 -0800856 reg-shift = <2>;
857 reg-io-width = <4>;
858 clocks = <&apb1_gates 17>;
859 status = "disabled";
860 };
861
Emilio López9ff49ec2013-03-27 18:20:39 -0300862 uart2: serial@01c28800 {
Maxime Ripard76f14d0a2013-02-20 17:38:27 -0800863 compatible = "snps,dw-apb-uart";
864 reg = <0x01c28800 0x400>;
865 interrupts = <3>;
Maxime Ripard69144e32013-03-13 20:07:37 +0100866 reg-shift = <2>;
867 reg-io-width = <4>;
868 clocks = <&apb1_gates 18>;
869 status = "disabled";
870 };
871
872 uart3: serial@01c28c00 {
873 compatible = "snps,dw-apb-uart";
874 reg = <0x01c28c00 0x400>;
875 interrupts = <4>;
Maxime Ripard76f14d0a2013-02-20 17:38:27 -0800876 reg-shift = <2>;
877 reg-io-width = <4>;
878 clocks = <&apb1_gates 19>;
879 status = "disabled";
880 };
881
Emilio López9ff49ec2013-03-27 18:20:39 -0300882 uart4: serial@01c29000 {
Maxime Ripard76f14d0a2013-02-20 17:38:27 -0800883 compatible = "snps,dw-apb-uart";
884 reg = <0x01c29000 0x400>;
885 interrupts = <17>;
886 reg-shift = <2>;
887 reg-io-width = <4>;
888 clocks = <&apb1_gates 20>;
889 status = "disabled";
890 };
891
Emilio López9ff49ec2013-03-27 18:20:39 -0300892 uart5: serial@01c29400 {
Maxime Ripard76f14d0a2013-02-20 17:38:27 -0800893 compatible = "snps,dw-apb-uart";
894 reg = <0x01c29400 0x400>;
895 interrupts = <18>;
896 reg-shift = <2>;
897 reg-io-width = <4>;
898 clocks = <&apb1_gates 21>;
899 status = "disabled";
900 };
901
Emilio López9ff49ec2013-03-27 18:20:39 -0300902 uart6: serial@01c29800 {
Maxime Ripard76f14d0a2013-02-20 17:38:27 -0800903 compatible = "snps,dw-apb-uart";
904 reg = <0x01c29800 0x400>;
905 interrupts = <19>;
906 reg-shift = <2>;
907 reg-io-width = <4>;
908 clocks = <&apb1_gates 22>;
909 status = "disabled";
910 };
911
Emilio López9ff49ec2013-03-27 18:20:39 -0300912 uart7: serial@01c29c00 {
Maxime Ripard76f14d0a2013-02-20 17:38:27 -0800913 compatible = "snps,dw-apb-uart";
914 reg = <0x01c29c00 0x400>;
Maxime Ripardf1741fd2013-03-10 13:34:36 +0100915 interrupts = <20>;
916 reg-shift = <2>;
917 reg-io-width = <4>;
918 clocks = <&apb1_gates 23>;
919 status = "disabled";
920 };
921
922 i2c0: i2c@01c2ac00 {
Maxime Ripardd2755452014-03-31 14:54:58 +0200923 compatible = "allwinner,sun4i-a10-i2c";
Maxime Ripardf1741fd2013-03-10 13:34:36 +0100924 reg = <0x01c2ac00 0x400>;
925 interrupts = <7>;
926 clocks = <&apb1_gates 0>;
Maxime Ripardf1741fd2013-03-10 13:34:36 +0100927 status = "disabled";
Hans de Goede60bbe312014-04-13 13:41:03 +0200928 #address-cells = <1>;
929 #size-cells = <0>;
Maxime Ripardf1741fd2013-03-10 13:34:36 +0100930 };
931
932 i2c1: i2c@01c2b000 {
Maxime Ripardd2755452014-03-31 14:54:58 +0200933 compatible = "allwinner,sun4i-a10-i2c";
Maxime Ripardf1741fd2013-03-10 13:34:36 +0100934 reg = <0x01c2b000 0x400>;
935 interrupts = <8>;
936 clocks = <&apb1_gates 1>;
Maxime Ripardf1741fd2013-03-10 13:34:36 +0100937 status = "disabled";
Hans de Goede60bbe312014-04-13 13:41:03 +0200938 #address-cells = <1>;
939 #size-cells = <0>;
Maxime Ripardf1741fd2013-03-10 13:34:36 +0100940 };
941
942 i2c2: i2c@01c2b400 {
Maxime Ripardd2755452014-03-31 14:54:58 +0200943 compatible = "allwinner,sun4i-a10-i2c";
Maxime Ripardf1741fd2013-03-10 13:34:36 +0100944 reg = <0x01c2b400 0x400>;
945 interrupts = <9>;
946 clocks = <&apb1_gates 2>;
Maxime Ripardf1741fd2013-03-10 13:34:36 +0100947 status = "disabled";
Hans de Goede60bbe312014-04-13 13:41:03 +0200948 #address-cells = <1>;
949 #size-cells = <0>;
Maxime Ripardf1741fd2013-03-10 13:34:36 +0100950 };
Vishnu Patekar196654a2015-01-25 19:10:08 +0530951
952 ps20: ps2@01c2a000 {
953 compatible = "allwinner,sun4i-a10-ps2";
954 reg = <0x01c2a000 0x400>;
955 interrupts = <62>;
956 clocks = <&apb1_gates 6>;
957 status = "disabled";
958 };
959
960 ps21: ps2@01c2a400 {
961 compatible = "allwinner,sun4i-a10-ps2";
962 reg = <0x01c2a400 0x400>;
963 interrupts = <63>;
964 clocks = <&apb1_gates 7>;
965 status = "disabled";
966 };
Stefan Roese7423d2d2012-11-26 15:46:12 +0100967 };
968};