blob: 2bebaa286f9a3a49c65908f8a4874d5e3091b32a [file] [log] [blame]
Maxime Ripard4790ecf2013-07-17 10:07:10 +02001/*
2 * Copyright 2013 Maxime Ripard
3 *
4 * Maxime Ripard <maxime.ripard@free-electrons.com>
5 *
Maxime Ripard394c56c2014-09-02 19:25:26 +02006 * This file is dual-licensed: you can use it either under the terms
7 * of the GPL or the X11 license, at your option. Note that this dual
8 * licensing only applies to this file, and not this project as a
9 * whole.
Maxime Ripard4790ecf2013-07-17 10:07:10 +020010 *
Maxime Ripard5186d832014-10-17 11:38:23 +020011 * a) This file is free software; you can redistribute it and/or
Maxime Ripard394c56c2014-09-02 19:25:26 +020012 * modify it under the terms of the GNU General Public License as
13 * published by the Free Software Foundation; either version 2 of the
14 * License, or (at your option) any later version.
15 *
Maxime Ripard5186d832014-10-17 11:38:23 +020016 * This file is distributed in the hope that it will be useful,
Maxime Ripard394c56c2014-09-02 19:25:26 +020017 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 * GNU General Public License for more details.
20 *
Maxime Ripard394c56c2014-09-02 19:25:26 +020021 * Or, alternatively,
22 *
23 * b) Permission is hereby granted, free of charge, to any person
24 * obtaining a copy of this software and associated documentation
25 * files (the "Software"), to deal in the Software without
26 * restriction, including without limitation the rights to use,
27 * copy, modify, merge, publish, distribute, sublicense, and/or
28 * sell copies of the Software, and to permit persons to whom the
29 * Software is furnished to do so, subject to the following
30 * conditions:
31 *
32 * The above copyright notice and this permission notice shall be
33 * included in all copies or substantial portions of the Software.
34 *
35 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
36 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
37 * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
38 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
39 * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
40 * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
41 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
42 * OTHER DEALINGS IN THE SOFTWARE.
Maxime Ripard4790ecf2013-07-17 10:07:10 +020043 */
44
Maxime Ripard71455702014-12-16 22:59:54 +010045#include "skeleton.dtsi"
Maxime Ripard4790ecf2013-07-17 10:07:10 +020046
Maxime Ripard19882b82014-12-16 22:59:58 +010047#include <dt-bindings/interrupt-controller/arm-gic.h>
Chen-Yu Tsaib6d34242015-01-12 12:34:03 +080048#include <dt-bindings/thermal/thermal.h>
Maxime Ripard19882b82014-12-16 22:59:58 +010049
Maxime Ripard1f9f6a72014-12-16 22:59:56 +010050#include <dt-bindings/dma/sun4i-a10.h>
Maxime Ripard092a0c32014-12-16 22:59:57 +010051#include <dt-bindings/pinctrl/sun4i-a10.h>
Maxime Ripard4790ecf2013-07-17 10:07:10 +020052
53/ {
54 interrupt-parent = <&gic>;
55
Emilio Lópeze751cce2013-11-16 15:17:29 -030056 aliases {
Chen-Yu Tsai18428f72014-02-10 18:35:54 +080057 ethernet0 = &gmac;
Emilio Lópeze751cce2013-11-16 15:17:29 -030058 };
59
Hans de Goede8efc5c22014-11-14 16:34:37 +010060 chosen {
61 #address-cells = <1>;
62 #size-cells = <1>;
63 ranges;
64
Hans de Goedea9f8cda2014-11-18 12:07:13 +010065 framebuffer@0 {
Maxime Ripardd8cacaa2015-05-03 11:53:07 +020066 compatible = "allwinner,simple-framebuffer",
67 "simple-framebuffer";
Hans de Goedea9f8cda2014-11-18 12:07:13 +010068 allwinner,pipeline = "de_be0-lcd0-hdmi";
Hans de Goede678e75d2014-11-16 17:09:32 +010069 clocks = <&pll5 1>, <&ahb_gates 36>, <&ahb_gates 43>,
70 <&ahb_gates 44>;
Hans de Goede8efc5c22014-11-14 16:34:37 +010071 status = "disabled";
72 };
Hans de Goedefd18c7e2015-01-19 14:05:12 +010073
74 framebuffer@1 {
75 compatible = "allwinner,simple-framebuffer",
76 "simple-framebuffer";
77 allwinner,pipeline = "de_be0-lcd0";
78 clocks = <&pll5 1>, <&ahb_gates 36>, <&ahb_gates 44>;
79 status = "disabled";
80 };
81
82 framebuffer@2 {
83 compatible = "allwinner,simple-framebuffer",
84 "simple-framebuffer";
85 allwinner,pipeline = "de_be0-lcd0-tve0";
86 clocks = <&pll5 1>, <&ahb_gates 34>, <&ahb_gates 36>,
87 <&ahb_gates 44>;
88 status = "disabled";
89 };
Hans de Goede8efc5c22014-11-14 16:34:37 +010090 };
91
Maxime Ripard4790ecf2013-07-17 10:07:10 +020092 cpus {
93 #address-cells = <1>;
94 #size-cells = <0>;
95
Chen-Yu Tsaid96b7162015-01-06 10:35:16 +080096 cpu0: cpu@0 {
Maxime Ripard4790ecf2013-07-17 10:07:10 +020097 compatible = "arm,cortex-a7";
98 device_type = "cpu";
99 reg = <0>;
Chen-Yu Tsaid96b7162015-01-06 10:35:16 +0800100 clocks = <&cpu>;
101 clock-latency = <244144>; /* 8 32k periods */
102 operating-points = <
Maxime Ripard8358aad2015-05-03 11:54:35 +0200103 /* kHz uV */
104 960000 1400000
105 912000 1400000
106 864000 1300000
107 720000 1200000
108 528000 1100000
109 312000 1000000
110 144000 900000
Chen-Yu Tsaid96b7162015-01-06 10:35:16 +0800111 >;
112 #cooling-cells = <2>;
113 cooling-min-level = <0>;
Chen-Yu Tsai370a9b52015-03-25 00:53:27 +0800114 cooling-max-level = <6>;
Maxime Ripard4790ecf2013-07-17 10:07:10 +0200115 };
116
117 cpu@1 {
118 compatible = "arm,cortex-a7";
119 device_type = "cpu";
120 reg = <1>;
121 };
122 };
123
Chen-Yu Tsaib6d34242015-01-12 12:34:03 +0800124 thermal-zones {
125 cpu_thermal {
126 /* milliseconds */
127 polling-delay-passive = <250>;
128 polling-delay = <1000>;
129 thermal-sensors = <&rtp>;
130
131 cooling-maps {
132 map0 {
133 trip = <&cpu_alert0>;
134 cooling-device = <&cpu0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
135 };
136 };
137
138 trips {
139 cpu_alert0: cpu_alert0 {
140 /* milliCelsius */
141 temperature = <75000>;
142 hysteresis = <2000>;
143 type = "passive";
144 };
145
146 cpu_crit: cpu_crit {
147 /* milliCelsius */
148 temperature = <100000>;
149 hysteresis = <2000>;
150 type = "critical";
151 };
152 };
153 };
154 };
155
Maxime Ripard4790ecf2013-07-17 10:07:10 +0200156 memory {
157 reg = <0x40000000 0x80000000>;
158 };
159
Marc Zyngier79027632014-02-18 14:04:44 +0000160 timer {
161 compatible = "arm,armv7-timer";
Maxime Ripard19882b82014-12-16 22:59:58 +0100162 interrupts = <GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
163 <GIC_PPI 14 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
164 <GIC_PPI 11 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
165 <GIC_PPI 10 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>;
Marc Zyngier79027632014-02-18 14:04:44 +0000166 };
167
Maxime Riparde29ea4d2014-04-17 21:54:41 +0200168 pmu {
169 compatible = "arm,cortex-a7-pmu", "arm,cortex-a15-pmu";
Maxime Ripard19882b82014-12-16 22:59:58 +0100170 interrupts = <GIC_SPI 120 IRQ_TYPE_LEVEL_HIGH>,
171 <GIC_SPI 121 IRQ_TYPE_LEVEL_HIGH>;
Maxime Riparde29ea4d2014-04-17 21:54:41 +0200172 };
173
Maxime Ripard4790ecf2013-07-17 10:07:10 +0200174 clocks {
175 #address-cells = <1>;
176 #size-cells = <1>;
177 ranges;
178
Chen-Yu Tsai06067a22014-02-03 09:51:44 +0800179 osc24M: clk@01c20050 {
Maxime Ripard4790ecf2013-07-17 10:07:10 +0200180 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100181 compatible = "allwinner,sun4i-a10-osc-clk";
Maxime Ripardde7dc932013-07-25 21:12:52 +0200182 reg = <0x01c20050 0x4>;
Maxime Ripard4790ecf2013-07-17 10:07:10 +0200183 clock-frequency = <24000000>;
Chen-Yu Tsai06067a22014-02-03 09:51:44 +0800184 clock-output-names = "osc24M";
Maxime Ripard4790ecf2013-07-17 10:07:10 +0200185 };
186
Chen-Yu Tsai673fac72014-01-01 10:30:47 +0800187 osc32k: clk@0 {
Maxime Ripard4790ecf2013-07-17 10:07:10 +0200188 #clock-cells = <0>;
189 compatible = "fixed-clock";
190 clock-frequency = <32768>;
Chen-Yu Tsai673fac72014-01-01 10:30:47 +0800191 clock-output-names = "osc32k";
Maxime Ripard4790ecf2013-07-17 10:07:10 +0200192 };
Maxime Ripardde7dc932013-07-25 21:12:52 +0200193
Chen-Yu Tsai06067a22014-02-03 09:51:44 +0800194 pll1: clk@01c20000 {
Maxime Ripardde7dc932013-07-25 21:12:52 +0200195 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100196 compatible = "allwinner,sun4i-a10-pll1-clk";
Maxime Ripardde7dc932013-07-25 21:12:52 +0200197 reg = <0x01c20000 0x4>;
198 clocks = <&osc24M>;
Chen-Yu Tsai06067a22014-02-03 09:51:44 +0800199 clock-output-names = "pll1";
Maxime Ripardde7dc932013-07-25 21:12:52 +0200200 };
201
Chen-Yu Tsai06067a22014-02-03 09:51:44 +0800202 pll4: clk@01c20018 {
Maxime Ripardde7dc932013-07-25 21:12:52 +0200203 #clock-cells = <0>;
Emilio López04ebcb52014-03-19 15:19:31 -0300204 compatible = "allwinner,sun7i-a20-pll4-clk";
Emilio Lópezec5589f2013-12-23 00:32:35 -0300205 reg = <0x01c20018 0x4>;
206 clocks = <&osc24M>;
Chen-Yu Tsai06067a22014-02-03 09:51:44 +0800207 clock-output-names = "pll4";
Emilio Lópezec5589f2013-12-23 00:32:35 -0300208 };
209
Chen-Yu Tsai06067a22014-02-03 09:51:44 +0800210 pll5: clk@01c20020 {
Emilio Lópezc3e5e662013-12-23 00:32:38 -0300211 #clock-cells = <1>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100212 compatible = "allwinner,sun4i-a10-pll5-clk";
Emilio Lópezc3e5e662013-12-23 00:32:38 -0300213 reg = <0x01c20020 0x4>;
214 clocks = <&osc24M>;
215 clock-output-names = "pll5_ddr", "pll5_other";
216 };
217
Chen-Yu Tsai06067a22014-02-03 09:51:44 +0800218 pll6: clk@01c20028 {
Emilio Lópezc3e5e662013-12-23 00:32:38 -0300219 #clock-cells = <1>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100220 compatible = "allwinner,sun4i-a10-pll6-clk";
Emilio Lópezc3e5e662013-12-23 00:32:38 -0300221 reg = <0x01c20028 0x4>;
222 clocks = <&osc24M>;
Chen-Yu Tsai2186df32015-03-25 01:22:09 +0800223 clock-output-names = "pll6_sata", "pll6_other", "pll6",
224 "pll6_div_4";
Maxime Ripardde7dc932013-07-25 21:12:52 +0200225 };
226
Emilio López04ebcb52014-03-19 15:19:31 -0300227 pll8: clk@01c20040 {
228 #clock-cells = <0>;
229 compatible = "allwinner,sun7i-a20-pll4-clk";
230 reg = <0x01c20040 0x4>;
231 clocks = <&osc24M>;
232 clock-output-names = "pll8";
233 };
234
Maxime Ripardde7dc932013-07-25 21:12:52 +0200235 cpu: cpu@01c20054 {
236 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100237 compatible = "allwinner,sun4i-a10-cpu-clk";
Maxime Ripardde7dc932013-07-25 21:12:52 +0200238 reg = <0x01c20054 0x4>;
Emilio Lópezc3e5e662013-12-23 00:32:38 -0300239 clocks = <&osc32k>, <&osc24M>, <&pll1>, <&pll6 1>;
Chen-Yu Tsai06067a22014-02-03 09:51:44 +0800240 clock-output-names = "cpu";
Maxime Ripardde7dc932013-07-25 21:12:52 +0200241 };
242
243 axi: axi@01c20054 {
244 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100245 compatible = "allwinner,sun4i-a10-axi-clk";
Maxime Ripardde7dc932013-07-25 21:12:52 +0200246 reg = <0x01c20054 0x4>;
247 clocks = <&cpu>;
Chen-Yu Tsai06067a22014-02-03 09:51:44 +0800248 clock-output-names = "axi";
Maxime Ripardde7dc932013-07-25 21:12:52 +0200249 };
250
251 ahb: ahb@01c20054 {
252 #clock-cells = <0>;
Chen-Yu Tsai2186df32015-03-25 01:22:09 +0800253 compatible = "allwinner,sun5i-a13-ahb-clk";
Maxime Ripardde7dc932013-07-25 21:12:52 +0200254 reg = <0x01c20054 0x4>;
Chen-Yu Tsai2186df32015-03-25 01:22:09 +0800255 clocks = <&axi>, <&pll6 3>, <&pll6 1>;
Chen-Yu Tsai06067a22014-02-03 09:51:44 +0800256 clock-output-names = "ahb";
Chen-Yu Tsai2186df32015-03-25 01:22:09 +0800257 /*
258 * Use PLL6 as parent, instead of CPU/AXI
259 * which has rate changes due to cpufreq
260 */
261 assigned-clocks = <&ahb>;
262 assigned-clock-parents = <&pll6 3>;
Maxime Ripardde7dc932013-07-25 21:12:52 +0200263 };
264
Chen-Yu Tsai06067a22014-02-03 09:51:44 +0800265 ahb_gates: clk@01c20060 {
Maxime Ripardde7dc932013-07-25 21:12:52 +0200266 #clock-cells = <1>;
267 compatible = "allwinner,sun7i-a20-ahb-gates-clk";
268 reg = <0x01c20060 0x8>;
269 clocks = <&ahb>;
Maxime Ripard6bfe30b2015-07-31 19:46:19 +0200270 clock-indices = <0>, <1>,
271 <2>, <3>, <4>,
272 <5>, <6>, <7>, <8>,
273 <9>, <10>, <11>, <12>,
274 <13>, <14>, <16>,
275 <17>, <18>, <20>, <21>,
276 <22>, <23>, <25>,
277 <28>, <32>, <33>, <34>,
278 <35>, <36>, <37>, <40>,
279 <41>, <42>, <43>,
280 <44>, <45>, <46>,
281 <47>, <49>, <50>,
282 <52>;
Maxime Ripardde7dc932013-07-25 21:12:52 +0200283 clock-output-names = "ahb_usb0", "ahb_ehci0",
284 "ahb_ohci0", "ahb_ehci1", "ahb_ohci1",
285 "ahb_ss", "ahb_dma", "ahb_bist", "ahb_mmc0",
286 "ahb_mmc1", "ahb_mmc2", "ahb_mmc3", "ahb_ms",
287 "ahb_nand", "ahb_sdram", "ahb_ace",
288 "ahb_emac", "ahb_ts", "ahb_spi0", "ahb_spi1",
289 "ahb_spi2", "ahb_spi3", "ahb_sata",
290 "ahb_hstimer", "ahb_ve", "ahb_tvd", "ahb_tve0",
291 "ahb_tve1", "ahb_lcd0", "ahb_lcd1", "ahb_csi0",
292 "ahb_csi1", "ahb_hdmi1", "ahb_hdmi0",
293 "ahb_de_be0", "ahb_de_be1", "ahb_de_fe0",
294 "ahb_de_fe1", "ahb_gmac", "ahb_mp",
295 "ahb_mali";
296 };
297
298 apb0: apb0@01c20054 {
299 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100300 compatible = "allwinner,sun4i-a10-apb0-clk";
Maxime Ripardde7dc932013-07-25 21:12:52 +0200301 reg = <0x01c20054 0x4>;
302 clocks = <&ahb>;
Chen-Yu Tsai06067a22014-02-03 09:51:44 +0800303 clock-output-names = "apb0";
Maxime Ripardde7dc932013-07-25 21:12:52 +0200304 };
305
Chen-Yu Tsai06067a22014-02-03 09:51:44 +0800306 apb0_gates: clk@01c20068 {
Maxime Ripardde7dc932013-07-25 21:12:52 +0200307 #clock-cells = <1>;
308 compatible = "allwinner,sun7i-a20-apb0-gates-clk";
309 reg = <0x01c20068 0x4>;
310 clocks = <&apb0>;
Maxime Ripard6bfe30b2015-07-31 19:46:19 +0200311 clock-indices = <0>, <1>,
312 <2>, <3>, <4>,
313 <5>, <6>, <7>,
314 <8>, <10>;
Maxime Ripardde7dc932013-07-25 21:12:52 +0200315 clock-output-names = "apb0_codec", "apb0_spdif",
316 "apb0_ac97", "apb0_iis0", "apb0_iis1",
317 "apb0_pio", "apb0_ir0", "apb0_ir1",
318 "apb0_iis2", "apb0_keypad";
319 };
320
Emilio Lópezacbcc0f2014-11-06 11:40:30 +0800321 apb1: clk@01c20058 {
Maxime Ripardde7dc932013-07-25 21:12:52 +0200322 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100323 compatible = "allwinner,sun4i-a10-apb1-clk";
Maxime Ripardde7dc932013-07-25 21:12:52 +0200324 reg = <0x01c20058 0x4>;
Emilio Lópezacbcc0f2014-11-06 11:40:30 +0800325 clocks = <&osc24M>, <&pll6 1>, <&osc32k>;
Chen-Yu Tsai06067a22014-02-03 09:51:44 +0800326 clock-output-names = "apb1";
Maxime Ripardde7dc932013-07-25 21:12:52 +0200327 };
328
Chen-Yu Tsai06067a22014-02-03 09:51:44 +0800329 apb1_gates: clk@01c2006c {
Maxime Ripardde7dc932013-07-25 21:12:52 +0200330 #clock-cells = <1>;
331 compatible = "allwinner,sun7i-a20-apb1-gates-clk";
332 reg = <0x01c2006c 0x4>;
333 clocks = <&apb1>;
Maxime Ripard6bfe30b2015-07-31 19:46:19 +0200334 clock-indices = <0>, <1>,
335 <2>, <3>, <4>,
336 <5>, <6>, <7>,
337 <15>, <16>, <17>,
338 <18>, <19>, <20>,
339 <21>, <22>, <23>;
Maxime Ripardde7dc932013-07-25 21:12:52 +0200340 clock-output-names = "apb1_i2c0", "apb1_i2c1",
341 "apb1_i2c2", "apb1_i2c3", "apb1_can",
342 "apb1_scr", "apb1_ps20", "apb1_ps21",
343 "apb1_i2c4", "apb1_uart0", "apb1_uart1",
344 "apb1_uart2", "apb1_uart3", "apb1_uart4",
345 "apb1_uart5", "apb1_uart6", "apb1_uart7";
346 };
Emilio López1c92b952013-12-23 00:32:43 -0300347
348 nand_clk: clk@01c20080 {
349 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100350 compatible = "allwinner,sun4i-a10-mod0-clk";
Emilio López1c92b952013-12-23 00:32:43 -0300351 reg = <0x01c20080 0x4>;
352 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
353 clock-output-names = "nand";
354 };
355
356 ms_clk: clk@01c20084 {
357 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100358 compatible = "allwinner,sun4i-a10-mod0-clk";
Emilio López1c92b952013-12-23 00:32:43 -0300359 reg = <0x01c20084 0x4>;
360 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
361 clock-output-names = "ms";
362 };
363
364 mmc0_clk: clk@01c20088 {
Maxime Ripardd8c3a392014-07-11 19:39:06 +0200365 #clock-cells = <1>;
366 compatible = "allwinner,sun4i-a10-mmc-clk";
Emilio López1c92b952013-12-23 00:32:43 -0300367 reg = <0x01c20088 0x4>;
368 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
Maxime Ripardd8c3a392014-07-11 19:39:06 +0200369 clock-output-names = "mmc0",
370 "mmc0_output",
371 "mmc0_sample";
Emilio López1c92b952013-12-23 00:32:43 -0300372 };
373
374 mmc1_clk: clk@01c2008c {
Maxime Ripardd8c3a392014-07-11 19:39:06 +0200375 #clock-cells = <1>;
376 compatible = "allwinner,sun4i-a10-mmc-clk";
Emilio López1c92b952013-12-23 00:32:43 -0300377 reg = <0x01c2008c 0x4>;
378 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
Maxime Ripardd8c3a392014-07-11 19:39:06 +0200379 clock-output-names = "mmc1",
380 "mmc1_output",
381 "mmc1_sample";
Emilio López1c92b952013-12-23 00:32:43 -0300382 };
383
384 mmc2_clk: clk@01c20090 {
Maxime Ripardd8c3a392014-07-11 19:39:06 +0200385 #clock-cells = <1>;
386 compatible = "allwinner,sun4i-a10-mmc-clk";
Emilio López1c92b952013-12-23 00:32:43 -0300387 reg = <0x01c20090 0x4>;
388 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
Maxime Ripardd8c3a392014-07-11 19:39:06 +0200389 clock-output-names = "mmc2",
390 "mmc2_output",
391 "mmc2_sample";
Emilio López1c92b952013-12-23 00:32:43 -0300392 };
393
394 mmc3_clk: clk@01c20094 {
Maxime Ripardd8c3a392014-07-11 19:39:06 +0200395 #clock-cells = <1>;
396 compatible = "allwinner,sun4i-a10-mmc-clk";
Emilio López1c92b952013-12-23 00:32:43 -0300397 reg = <0x01c20094 0x4>;
398 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
Maxime Ripardd8c3a392014-07-11 19:39:06 +0200399 clock-output-names = "mmc3",
400 "mmc3_output",
401 "mmc3_sample";
Emilio López1c92b952013-12-23 00:32:43 -0300402 };
403
404 ts_clk: clk@01c20098 {
405 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100406 compatible = "allwinner,sun4i-a10-mod0-clk";
Emilio López1c92b952013-12-23 00:32:43 -0300407 reg = <0x01c20098 0x4>;
408 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
409 clock-output-names = "ts";
410 };
411
412 ss_clk: clk@01c2009c {
413 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100414 compatible = "allwinner,sun4i-a10-mod0-clk";
Emilio López1c92b952013-12-23 00:32:43 -0300415 reg = <0x01c2009c 0x4>;
416 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
417 clock-output-names = "ss";
418 };
419
420 spi0_clk: clk@01c200a0 {
421 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100422 compatible = "allwinner,sun4i-a10-mod0-clk";
Emilio López1c92b952013-12-23 00:32:43 -0300423 reg = <0x01c200a0 0x4>;
424 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
425 clock-output-names = "spi0";
426 };
427
428 spi1_clk: clk@01c200a4 {
429 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100430 compatible = "allwinner,sun4i-a10-mod0-clk";
Emilio López1c92b952013-12-23 00:32:43 -0300431 reg = <0x01c200a4 0x4>;
432 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
433 clock-output-names = "spi1";
434 };
435
436 spi2_clk: clk@01c200a8 {
437 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100438 compatible = "allwinner,sun4i-a10-mod0-clk";
Emilio López1c92b952013-12-23 00:32:43 -0300439 reg = <0x01c200a8 0x4>;
440 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
441 clock-output-names = "spi2";
442 };
443
444 pata_clk: clk@01c200ac {
445 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100446 compatible = "allwinner,sun4i-a10-mod0-clk";
Emilio López1c92b952013-12-23 00:32:43 -0300447 reg = <0x01c200ac 0x4>;
448 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
449 clock-output-names = "pata";
450 };
451
452 ir0_clk: clk@01c200b0 {
453 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100454 compatible = "allwinner,sun4i-a10-mod0-clk";
Emilio López1c92b952013-12-23 00:32:43 -0300455 reg = <0x01c200b0 0x4>;
456 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
457 clock-output-names = "ir0";
458 };
459
460 ir1_clk: clk@01c200b4 {
461 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100462 compatible = "allwinner,sun4i-a10-mod0-clk";
Emilio López1c92b952013-12-23 00:32:43 -0300463 reg = <0x01c200b4 0x4>;
464 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
465 clock-output-names = "ir1";
466 };
467
Roman Byshko434e41b2014-02-07 16:21:53 +0100468 usb_clk: clk@01c200cc {
469 #clock-cells = <1>;
Maxime Ripard8358aad2015-05-03 11:54:35 +0200470 #reset-cells = <1>;
Roman Byshko434e41b2014-02-07 16:21:53 +0100471 compatible = "allwinner,sun4i-a10-usb-clk";
472 reg = <0x01c200cc 0x4>;
473 clocks = <&pll6 1>;
Maxime Ripardd8cacaa2015-05-03 11:53:07 +0200474 clock-output-names = "usb_ohci0", "usb_ohci1",
475 "usb_phy";
Roman Byshko434e41b2014-02-07 16:21:53 +0100476 };
477
Emilio López1c92b952013-12-23 00:32:43 -0300478 spi3_clk: clk@01c200d4 {
479 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100480 compatible = "allwinner,sun4i-a10-mod0-clk";
Emilio López1c92b952013-12-23 00:32:43 -0300481 reg = <0x01c200d4 0x4>;
482 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
483 clock-output-names = "spi3";
484 };
Emilio López118c07a2013-12-23 00:32:44 -0300485
486 mbus_clk: clk@01c2015c {
487 #clock-cells = <0>;
Maxime Ripard7868c5e2014-07-16 23:45:48 +0200488 compatible = "allwinner,sun5i-a13-mbus-clk";
Emilio López118c07a2013-12-23 00:32:44 -0300489 reg = <0x01c2015c 0x4>;
490 clocks = <&osc24M>, <&pll6 2>, <&pll5 1>;
491 clock-output-names = "mbus";
492 };
Chen-Yu Tsai0aff0372014-01-01 10:30:48 +0800493
494 /*
Maxime Ripardd8cacaa2015-05-03 11:53:07 +0200495 * The following two are dummy clocks, placeholders
496 * used in the gmac_tx clock. The gmac driver will
497 * choose one parent depending on the PHY interface
498 * mode, using clk_set_rate auto-reparenting.
499 *
500 * The actual TX clock rate is not controlled by the
501 * gmac_tx clock.
Chen-Yu Tsaidaed5a82014-02-10 18:35:48 +0800502 */
503 mii_phy_tx_clk: clk@2 {
504 #clock-cells = <0>;
505 compatible = "fixed-clock";
506 clock-frequency = <25000000>;
507 clock-output-names = "mii_phy_tx";
508 };
509
510 gmac_int_tx_clk: clk@3 {
511 #clock-cells = <0>;
512 compatible = "fixed-clock";
513 clock-frequency = <125000000>;
514 clock-output-names = "gmac_int_tx";
515 };
516
517 gmac_tx_clk: clk@01c20164 {
518 #clock-cells = <0>;
519 compatible = "allwinner,sun7i-a20-gmac-clk";
520 reg = <0x01c20164 0x4>;
521 clocks = <&mii_phy_tx_clk>, <&gmac_int_tx_clk>;
522 clock-output-names = "gmac_tx";
523 };
524
525 /*
Chen-Yu Tsai0aff0372014-01-01 10:30:48 +0800526 * Dummy clock used by output clocks
527 */
528 osc24M_32k: clk@1 {
529 #clock-cells = <0>;
530 compatible = "fixed-factor-clock";
531 clock-div = <750>;
532 clock-mult = <1>;
533 clocks = <&osc24M>;
534 clock-output-names = "osc24M_32k";
535 };
536
537 clk_out_a: clk@01c201f0 {
538 #clock-cells = <0>;
539 compatible = "allwinner,sun7i-a20-out-clk";
540 reg = <0x01c201f0 0x4>;
541 clocks = <&osc24M_32k>, <&osc32k>, <&osc24M>;
542 clock-output-names = "clk_out_a";
543 };
544
545 clk_out_b: clk@01c201f4 {
546 #clock-cells = <0>;
547 compatible = "allwinner,sun7i-a20-out-clk";
548 reg = <0x01c201f4 0x4>;
549 clocks = <&osc24M_32k>, <&osc32k>, <&osc24M>;
550 clock-output-names = "clk_out_b";
551 };
Maxime Ripard4790ecf2013-07-17 10:07:10 +0200552 };
553
554 soc@01c00000 {
555 compatible = "simple-bus";
556 #address-cells = <1>;
557 #size-cells = <1>;
558 ranges;
559
Maxime Ripard0eb14a82015-03-26 15:53:44 +0100560 sram-controller@01c00000 {
561 compatible = "allwinner,sun4i-a10-sram-controller";
562 reg = <0x01c00000 0x30>;
563 #address-cells = <1>;
564 #size-cells = <1>;
565 ranges;
566
567 sram_a: sram@00000000 {
568 compatible = "mmio-sram";
569 reg = <0x00000000 0xc000>;
570 #address-cells = <1>;
571 #size-cells = <1>;
572 ranges = <0 0x00000000 0xc000>;
573
574 emac_sram: sram-section@8000 {
575 compatible = "allwinner,sun4i-a10-sram-a3-a4";
576 reg = <0x8000 0x4000>;
577 status = "disabled";
578 };
579 };
580
581 sram_d: sram@00010000 {
582 compatible = "mmio-sram";
583 reg = <0x00010000 0x1000>;
584 #address-cells = <1>;
585 #size-cells = <1>;
586 ranges = <0 0x00010000 0x1000>;
587
588 otg_sram: sram-section@0000 {
589 compatible = "allwinner,sun4i-a10-sram-d";
590 reg = <0x0000 0x1000>;
591 status = "disabled";
592 };
593 };
594 };
595
Carlo Caione8ff973a2014-03-19 20:21:18 +0100596 nmi_intc: interrupt-controller@01c00030 {
597 compatible = "allwinner,sun7i-a20-sc-nmi";
598 interrupt-controller;
599 #interrupt-cells = <2>;
600 reg = <0x01c00030 0x0c>;
Maxime Ripard19882b82014-12-16 22:59:58 +0100601 interrupts = <GIC_SPI 0 IRQ_TYPE_LEVEL_HIGH>;
Carlo Caione8ff973a2014-03-19 20:21:18 +0100602 };
603
Emilio López316e0b02014-08-04 17:09:59 -0300604 dma: dma-controller@01c02000 {
605 compatible = "allwinner,sun4i-a10-dma";
606 reg = <0x01c02000 0x1000>;
Maxime Ripard19882b82014-12-16 22:59:58 +0100607 interrupts = <GIC_SPI 27 IRQ_TYPE_LEVEL_HIGH>;
Emilio López316e0b02014-08-04 17:09:59 -0300608 clocks = <&ahb_gates 6>;
609 #dma-cells = <2>;
610 };
611
Maxime Ripard36ab3e72014-02-22 22:35:54 +0100612 spi0: spi@01c05000 {
613 compatible = "allwinner,sun4i-a10-spi";
614 reg = <0x01c05000 0x1000>;
Maxime Ripard19882b82014-12-16 22:59:58 +0100615 interrupts = <GIC_SPI 10 IRQ_TYPE_LEVEL_HIGH>;
Maxime Ripard36ab3e72014-02-22 22:35:54 +0100616 clocks = <&ahb_gates 20>, <&spi0_clk>;
617 clock-names = "ahb", "mod";
Maxime Ripard1f9f6a72014-12-16 22:59:56 +0100618 dmas = <&dma SUN4I_DMA_DEDICATED 27>,
619 <&dma SUN4I_DMA_DEDICATED 26>;
Emilio Lópezffec7212014-08-04 17:10:02 -0300620 dma-names = "rx", "tx";
Maxime Ripard36ab3e72014-02-22 22:35:54 +0100621 status = "disabled";
622 #address-cells = <1>;
623 #size-cells = <0>;
624 };
625
626 spi1: spi@01c06000 {
627 compatible = "allwinner,sun4i-a10-spi";
628 reg = <0x01c06000 0x1000>;
Maxime Ripard19882b82014-12-16 22:59:58 +0100629 interrupts = <GIC_SPI 11 IRQ_TYPE_LEVEL_HIGH>;
Maxime Ripard36ab3e72014-02-22 22:35:54 +0100630 clocks = <&ahb_gates 21>, <&spi1_clk>;
631 clock-names = "ahb", "mod";
Maxime Ripard1f9f6a72014-12-16 22:59:56 +0100632 dmas = <&dma SUN4I_DMA_DEDICATED 9>,
633 <&dma SUN4I_DMA_DEDICATED 8>;
Emilio Lópezffec7212014-08-04 17:10:02 -0300634 dma-names = "rx", "tx";
Maxime Ripard36ab3e72014-02-22 22:35:54 +0100635 status = "disabled";
636 #address-cells = <1>;
637 #size-cells = <0>;
638 };
639
Maxime Ripard2e804d02013-09-11 11:10:06 +0200640 emac: ethernet@01c0b000 {
Maxime Ripard1c70e092014-02-02 14:49:13 +0100641 compatible = "allwinner,sun4i-a10-emac";
Maxime Ripard2e804d02013-09-11 11:10:06 +0200642 reg = <0x01c0b000 0x1000>;
Maxime Ripard19882b82014-12-16 22:59:58 +0100643 interrupts = <GIC_SPI 55 IRQ_TYPE_LEVEL_HIGH>;
Maxime Ripard2e804d02013-09-11 11:10:06 +0200644 clocks = <&ahb_gates 17>;
Maxime Ripard0eb14a82015-03-26 15:53:44 +0100645 allwinner,sram = <&emac_sram 1>;
Maxime Ripard2e804d02013-09-11 11:10:06 +0200646 status = "disabled";
647 };
648
Aleksei Mamlin92395f52015-01-19 22:35:22 +0300649 mdio: mdio@01c0b080 {
Maxime Ripard1c70e092014-02-02 14:49:13 +0100650 compatible = "allwinner,sun4i-a10-mdio";
Maxime Ripard2e804d02013-09-11 11:10:06 +0200651 reg = <0x01c0b080 0x14>;
652 status = "disabled";
653 #address-cells = <1>;
654 #size-cells = <0>;
655 };
656
Hans de Goededd29ce52014-05-02 17:57:26 +0200657 mmc0: mmc@01c0f000 {
658 compatible = "allwinner,sun5i-a13-mmc";
659 reg = <0x01c0f000 0x1000>;
Maxime Ripardd8c3a392014-07-11 19:39:06 +0200660 clocks = <&ahb_gates 8>,
661 <&mmc0_clk 0>,
662 <&mmc0_clk 1>,
663 <&mmc0_clk 2>;
664 clock-names = "ahb",
665 "mmc",
666 "output",
667 "sample";
Maxime Ripard19882b82014-12-16 22:59:58 +0100668 interrupts = <GIC_SPI 32 IRQ_TYPE_LEVEL_HIGH>;
Hans de Goededd29ce52014-05-02 17:57:26 +0200669 status = "disabled";
Hans de Goede4c1bb9c2015-03-10 16:27:09 +0100670 #address-cells = <1>;
671 #size-cells = <0>;
Hans de Goededd29ce52014-05-02 17:57:26 +0200672 };
673
674 mmc1: mmc@01c10000 {
675 compatible = "allwinner,sun5i-a13-mmc";
676 reg = <0x01c10000 0x1000>;
Maxime Ripardd8c3a392014-07-11 19:39:06 +0200677 clocks = <&ahb_gates 9>,
678 <&mmc1_clk 0>,
679 <&mmc1_clk 1>,
680 <&mmc1_clk 2>;
681 clock-names = "ahb",
682 "mmc",
683 "output",
684 "sample";
Maxime Ripard19882b82014-12-16 22:59:58 +0100685 interrupts = <GIC_SPI 33 IRQ_TYPE_LEVEL_HIGH>;
Hans de Goededd29ce52014-05-02 17:57:26 +0200686 status = "disabled";
Hans de Goede4c1bb9c2015-03-10 16:27:09 +0100687 #address-cells = <1>;
688 #size-cells = <0>;
Hans de Goededd29ce52014-05-02 17:57:26 +0200689 };
690
691 mmc2: mmc@01c11000 {
692 compatible = "allwinner,sun5i-a13-mmc";
693 reg = <0x01c11000 0x1000>;
Maxime Ripardd8c3a392014-07-11 19:39:06 +0200694 clocks = <&ahb_gates 10>,
695 <&mmc2_clk 0>,
696 <&mmc2_clk 1>,
697 <&mmc2_clk 2>;
698 clock-names = "ahb",
699 "mmc",
700 "output",
701 "sample";
Maxime Ripard19882b82014-12-16 22:59:58 +0100702 interrupts = <GIC_SPI 34 IRQ_TYPE_LEVEL_HIGH>;
Hans de Goededd29ce52014-05-02 17:57:26 +0200703 status = "disabled";
Hans de Goede4c1bb9c2015-03-10 16:27:09 +0100704 #address-cells = <1>;
705 #size-cells = <0>;
Hans de Goededd29ce52014-05-02 17:57:26 +0200706 };
707
708 mmc3: mmc@01c12000 {
709 compatible = "allwinner,sun5i-a13-mmc";
710 reg = <0x01c12000 0x1000>;
Maxime Ripardd8c3a392014-07-11 19:39:06 +0200711 clocks = <&ahb_gates 11>,
712 <&mmc3_clk 0>,
713 <&mmc3_clk 1>,
714 <&mmc3_clk 2>;
715 clock-names = "ahb",
716 "mmc",
717 "output",
718 "sample";
Maxime Ripard19882b82014-12-16 22:59:58 +0100719 interrupts = <GIC_SPI 35 IRQ_TYPE_LEVEL_HIGH>;
Hans de Goededd29ce52014-05-02 17:57:26 +0200720 status = "disabled";
Hans de Goede4c1bb9c2015-03-10 16:27:09 +0100721 #address-cells = <1>;
722 #size-cells = <0>;
Hans de Goededd29ce52014-05-02 17:57:26 +0200723 };
724
Roman Byshkocbb3ff12014-10-22 00:14:03 +0200725 usb_otg: usb@01c13000 {
726 compatible = "allwinner,sun4i-a10-musb";
727 reg = <0x01c13000 0x0400>;
728 clocks = <&ahb_gates 0>;
729 interrupts = <GIC_SPI 38 IRQ_TYPE_LEVEL_HIGH>;
730 interrupt-names = "mc";
731 phys = <&usbphy 0>;
732 phy-names = "usb";
733 extcon = <&usbphy 0>;
734 allwinner,sram = <&otg_sram 1>;
735 status = "disabled";
736 };
737
Roman Byshko9debd0a2014-03-01 20:26:25 +0100738 usbphy: phy@01c13400 {
739 #phy-cells = <1>;
740 compatible = "allwinner,sun7i-a20-usb-phy";
741 reg = <0x01c13400 0x10 0x01c14800 0x4 0x01c1c800 0x4>;
742 reg-names = "phy_ctrl", "pmu1", "pmu2";
743 clocks = <&usb_clk 8>;
744 clock-names = "usb_phy";
Roman Byshko134c60a2014-11-10 19:55:08 +0100745 resets = <&usb_clk 0>, <&usb_clk 1>, <&usb_clk 2>;
746 reset-names = "usb0_reset", "usb1_reset", "usb2_reset";
Roman Byshko9debd0a2014-03-01 20:26:25 +0100747 status = "disabled";
748 };
749
750 ehci0: usb@01c14000 {
751 compatible = "allwinner,sun7i-a20-ehci", "generic-ehci";
752 reg = <0x01c14000 0x100>;
Maxime Ripard19882b82014-12-16 22:59:58 +0100753 interrupts = <GIC_SPI 39 IRQ_TYPE_LEVEL_HIGH>;
Roman Byshko9debd0a2014-03-01 20:26:25 +0100754 clocks = <&ahb_gates 1>;
755 phys = <&usbphy 1>;
756 phy-names = "usb";
757 status = "disabled";
758 };
759
760 ohci0: usb@01c14400 {
761 compatible = "allwinner,sun7i-a20-ohci", "generic-ohci";
762 reg = <0x01c14400 0x100>;
Maxime Ripard19882b82014-12-16 22:59:58 +0100763 interrupts = <GIC_SPI 64 IRQ_TYPE_LEVEL_HIGH>;
Roman Byshko9debd0a2014-03-01 20:26:25 +0100764 clocks = <&usb_clk 6>, <&ahb_gates 2>;
765 phys = <&usbphy 1>;
766 phy-names = "usb";
767 status = "disabled";
768 };
769
LABBE Corentin110d4e22015-07-17 16:39:39 +0200770 crypto: crypto-engine@01c15000 {
771 compatible = "allwinner,sun4i-a10-crypto";
772 reg = <0x01c15000 0x1000>;
773 interrupts = <GIC_SPI 86 IRQ_TYPE_LEVEL_HIGH>;
774 clocks = <&ahb_gates 5>, <&ss_clk>;
775 clock-names = "ahb", "mod";
776 };
777
Maxime Ripard36ab3e72014-02-22 22:35:54 +0100778 spi2: spi@01c17000 {
779 compatible = "allwinner,sun4i-a10-spi";
780 reg = <0x01c17000 0x1000>;
Maxime Ripard19882b82014-12-16 22:59:58 +0100781 interrupts = <GIC_SPI 12 IRQ_TYPE_LEVEL_HIGH>;
Maxime Ripard36ab3e72014-02-22 22:35:54 +0100782 clocks = <&ahb_gates 22>, <&spi2_clk>;
783 clock-names = "ahb", "mod";
Maxime Ripard1f9f6a72014-12-16 22:59:56 +0100784 dmas = <&dma SUN4I_DMA_DEDICATED 29>,
785 <&dma SUN4I_DMA_DEDICATED 28>;
Emilio Lópezffec7212014-08-04 17:10:02 -0300786 dma-names = "rx", "tx";
Maxime Ripard36ab3e72014-02-22 22:35:54 +0100787 status = "disabled";
788 #address-cells = <1>;
789 #size-cells = <0>;
790 };
791
Hans de Goede902febf2014-03-01 20:26:22 +0100792 ahci: sata@01c18000 {
793 compatible = "allwinner,sun4i-a10-ahci";
794 reg = <0x01c18000 0x1000>;
Maxime Ripard19882b82014-12-16 22:59:58 +0100795 interrupts = <GIC_SPI 56 IRQ_TYPE_LEVEL_HIGH>;
Hans de Goede902febf2014-03-01 20:26:22 +0100796 clocks = <&pll6 0>, <&ahb_gates 25>;
797 status = "disabled";
798 };
799
Roman Byshko9debd0a2014-03-01 20:26:25 +0100800 ehci1: usb@01c1c000 {
801 compatible = "allwinner,sun7i-a20-ehci", "generic-ehci";
802 reg = <0x01c1c000 0x100>;
Maxime Ripard19882b82014-12-16 22:59:58 +0100803 interrupts = <GIC_SPI 40 IRQ_TYPE_LEVEL_HIGH>;
Roman Byshko9debd0a2014-03-01 20:26:25 +0100804 clocks = <&ahb_gates 3>;
805 phys = <&usbphy 2>;
806 phy-names = "usb";
807 status = "disabled";
808 };
809
810 ohci1: usb@01c1c400 {
811 compatible = "allwinner,sun7i-a20-ohci", "generic-ohci";
812 reg = <0x01c1c400 0x100>;
Maxime Ripard19882b82014-12-16 22:59:58 +0100813 interrupts = <GIC_SPI 65 IRQ_TYPE_LEVEL_HIGH>;
Roman Byshko9debd0a2014-03-01 20:26:25 +0100814 clocks = <&usb_clk 7>, <&ahb_gates 4>;
815 phys = <&usbphy 2>;
816 phy-names = "usb";
817 status = "disabled";
818 };
819
Maxime Ripard36ab3e72014-02-22 22:35:54 +0100820 spi3: spi@01c1f000 {
821 compatible = "allwinner,sun4i-a10-spi";
822 reg = <0x01c1f000 0x1000>;
Maxime Ripard19882b82014-12-16 22:59:58 +0100823 interrupts = <GIC_SPI 50 IRQ_TYPE_LEVEL_HIGH>;
Maxime Ripard36ab3e72014-02-22 22:35:54 +0100824 clocks = <&ahb_gates 23>, <&spi3_clk>;
825 clock-names = "ahb", "mod";
Maxime Ripard1f9f6a72014-12-16 22:59:56 +0100826 dmas = <&dma SUN4I_DMA_DEDICATED 31>,
827 <&dma SUN4I_DMA_DEDICATED 30>;
Emilio Lópezffec7212014-08-04 17:10:02 -0300828 dma-names = "rx", "tx";
Maxime Ripard36ab3e72014-02-22 22:35:54 +0100829 status = "disabled";
830 #address-cells = <1>;
831 #size-cells = <0>;
832 };
833
Maxime Ripard17eac032013-07-24 23:46:11 +0200834 pio: pinctrl@01c20800 {
835 compatible = "allwinner,sun7i-a20-pinctrl";
836 reg = <0x01c20800 0x400>;
Maxime Ripard19882b82014-12-16 22:59:58 +0100837 interrupts = <GIC_SPI 28 IRQ_TYPE_LEVEL_HIGH>;
Maxime Ripardde7dc932013-07-25 21:12:52 +0200838 clocks = <&apb0_gates 5>;
Maxime Ripard17eac032013-07-24 23:46:11 +0200839 gpio-controller;
840 interrupt-controller;
Maxime Ripardb03e0812015-06-17 11:44:24 +0200841 #interrupt-cells = <3>;
Maxime Ripard17eac032013-07-24 23:46:11 +0200842 #gpio-cells = <3>;
Maxime Ripard9f229ba2013-07-25 00:09:47 +0200843
Alexandre Bellonifd7898a2014-04-28 18:17:12 +0200844 pwm0_pins_a: pwm0@0 {
845 allwinner,pins = "PB2";
846 allwinner,function = "pwm";
Maxime Ripard092a0c32014-12-16 22:59:57 +0100847 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
848 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Alexandre Bellonifd7898a2014-04-28 18:17:12 +0200849 };
850
851 pwm1_pins_a: pwm1@0 {
852 allwinner,pins = "PI3";
853 allwinner,function = "pwm";
Maxime Ripard092a0c32014-12-16 22:59:57 +0100854 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
855 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Alexandre Bellonifd7898a2014-04-28 18:17:12 +0200856 };
857
Maxime Ripard9f229ba2013-07-25 00:09:47 +0200858 uart0_pins_a: uart0@0 {
859 allwinner,pins = "PB22", "PB23";
860 allwinner,function = "uart0";
Maxime Ripard092a0c32014-12-16 22:59:57 +0100861 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
862 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Maxime Ripard9f229ba2013-07-25 00:09:47 +0200863 };
864
Chen-Yu Tsai4261ec42014-01-14 22:49:50 +0800865 uart2_pins_a: uart2@0 {
866 allwinner,pins = "PI16", "PI17", "PI18", "PI19";
867 allwinner,function = "uart2";
Maxime Ripard092a0c32014-12-16 22:59:57 +0100868 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
869 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Chen-Yu Tsai4261ec42014-01-14 22:49:50 +0800870 };
871
Wills Wang7b5bace2014-08-19 15:33:00 +0800872 uart3_pins_a: uart3@0 {
873 allwinner,pins = "PG6", "PG7", "PG8", "PG9";
874 allwinner,function = "uart3";
Maxime Ripard092a0c32014-12-16 22:59:57 +0100875 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
876 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Wills Wang7b5bace2014-08-19 15:33:00 +0800877 };
878
Hans de Goede0510e4b2014-10-01 09:26:05 +0200879 uart3_pins_b: uart3@1 {
880 allwinner,pins = "PH0", "PH1";
881 allwinner,function = "uart3";
Maxime Ripard092a0c32014-12-16 22:59:57 +0100882 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
883 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Hans de Goede0510e4b2014-10-01 09:26:05 +0200884 };
885
Wills Wang7b5bace2014-08-19 15:33:00 +0800886 uart4_pins_a: uart4@0 {
887 allwinner,pins = "PG10", "PG11";
888 allwinner,function = "uart4";
Maxime Ripard092a0c32014-12-16 22:59:57 +0100889 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
890 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Wills Wang7b5bace2014-08-19 15:33:00 +0800891 };
892
Michael Ring869afa72015-05-21 14:32:33 +0200893 uart4_pins_b: uart4@1 {
894 allwinner,pins = "PH4", "PH5";
895 allwinner,function = "uart4";
896 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
897 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
898 };
899
Wills Wang7b5bace2014-08-19 15:33:00 +0800900 uart5_pins_a: uart5@0 {
901 allwinner,pins = "PI10", "PI11";
902 allwinner,function = "uart5";
Maxime Ripard092a0c32014-12-16 22:59:57 +0100903 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
904 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Wills Wang7b5bace2014-08-19 15:33:00 +0800905 };
906
Maxime Ripard9f229ba2013-07-25 00:09:47 +0200907 uart6_pins_a: uart6@0 {
908 allwinner,pins = "PI12", "PI13";
909 allwinner,function = "uart6";
Maxime Ripard092a0c32014-12-16 22:59:57 +0100910 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
911 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Maxime Ripard9f229ba2013-07-25 00:09:47 +0200912 };
913
914 uart7_pins_a: uart7@0 {
915 allwinner,pins = "PI20", "PI21";
916 allwinner,function = "uart7";
Maxime Ripard092a0c32014-12-16 22:59:57 +0100917 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
918 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Maxime Ripard9f229ba2013-07-25 00:09:47 +0200919 };
Maxime Ripard756084c2013-09-11 11:10:07 +0200920
Maxime Riparde5496a32013-08-31 23:08:49 +0200921 i2c0_pins_a: i2c0@0 {
922 allwinner,pins = "PB0", "PB1";
923 allwinner,function = "i2c0";
Maxime Ripard092a0c32014-12-16 22:59:57 +0100924 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
925 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Maxime Riparde5496a32013-08-31 23:08:49 +0200926 };
927
928 i2c1_pins_a: i2c1@0 {
929 allwinner,pins = "PB18", "PB19";
930 allwinner,function = "i2c1";
Maxime Ripard092a0c32014-12-16 22:59:57 +0100931 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
932 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Maxime Riparde5496a32013-08-31 23:08:49 +0200933 };
934
935 i2c2_pins_a: i2c2@0 {
936 allwinner,pins = "PB20", "PB21";
937 allwinner,function = "i2c2";
Maxime Ripard092a0c32014-12-16 22:59:57 +0100938 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
939 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Maxime Riparde5496a32013-08-31 23:08:49 +0200940 };
941
Wills Wang7b5bace2014-08-19 15:33:00 +0800942 i2c3_pins_a: i2c3@0 {
943 allwinner,pins = "PI0", "PI1";
944 allwinner,function = "i2c3";
Maxime Ripard092a0c32014-12-16 22:59:57 +0100945 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
946 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Wills Wang7b5bace2014-08-19 15:33:00 +0800947 };
948
Maxime Ripard756084c2013-09-11 11:10:07 +0200949 emac_pins_a: emac0@0 {
950 allwinner,pins = "PA0", "PA1", "PA2",
951 "PA3", "PA4", "PA5", "PA6",
952 "PA7", "PA8", "PA9", "PA10",
953 "PA11", "PA12", "PA13", "PA14",
954 "PA15", "PA16";
955 allwinner,function = "emac";
Maxime Ripard092a0c32014-12-16 22:59:57 +0100956 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
957 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Maxime Ripard756084c2013-09-11 11:10:07 +0200958 };
Chen-Yu Tsaif2e07592014-01-01 10:30:50 +0800959
960 clk_out_a_pins_a: clk_out_a@0 {
961 allwinner,pins = "PI12";
962 allwinner,function = "clk_out_a";
Maxime Ripard092a0c32014-12-16 22:59:57 +0100963 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
964 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Chen-Yu Tsaif2e07592014-01-01 10:30:50 +0800965 };
966
967 clk_out_b_pins_a: clk_out_b@0 {
968 allwinner,pins = "PI13";
969 allwinner,function = "clk_out_b";
Maxime Ripard092a0c32014-12-16 22:59:57 +0100970 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
971 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Chen-Yu Tsaif2e07592014-01-01 10:30:50 +0800972 };
Chen-Yu Tsai129ccbc2014-02-10 18:35:50 +0800973
974 gmac_pins_mii_a: gmac_mii@0 {
975 allwinner,pins = "PA0", "PA1", "PA2",
976 "PA3", "PA4", "PA5", "PA6",
977 "PA7", "PA8", "PA9", "PA10",
978 "PA11", "PA12", "PA13", "PA14",
979 "PA15", "PA16";
980 allwinner,function = "gmac";
Maxime Ripard092a0c32014-12-16 22:59:57 +0100981 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
982 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Chen-Yu Tsai129ccbc2014-02-10 18:35:50 +0800983 };
984
985 gmac_pins_rgmii_a: gmac_rgmii@0 {
986 allwinner,pins = "PA0", "PA1", "PA2",
987 "PA3", "PA4", "PA5", "PA6",
988 "PA7", "PA8", "PA10",
989 "PA11", "PA12", "PA13",
990 "PA15", "PA16";
991 allwinner,function = "gmac";
992 /*
993 * data lines in RGMII mode use DDR mode
994 * and need a higher signal drive strength
995 */
Maxime Ripard092a0c32014-12-16 22:59:57 +0100996 allwinner,drive = <SUN4I_PINCTRL_40_MA>;
997 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Chen-Yu Tsai129ccbc2014-02-10 18:35:50 +0800998 };
Maxime Ripard412f2c62014-02-22 22:35:58 +0100999
Hans de Goede2dad53b2014-10-01 09:26:04 +02001000 spi0_pins_a: spi0@0 {
Maxime Ripardf3022c62015-05-03 09:25:41 +02001001 allwinner,pins = "PI11", "PI12", "PI13";
1002 allwinner,function = "spi0";
1003 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
1004 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
1005 };
1006
1007 spi0_cs0_pins_a: spi0_cs0@0 {
1008 allwinner,pins = "PI10";
1009 allwinner,function = "spi0";
1010 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
1011 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
1012 };
1013
1014 spi0_cs1_pins_a: spi0_cs1@0 {
1015 allwinner,pins = "PI14";
Hans de Goede2dad53b2014-10-01 09:26:04 +02001016 allwinner,function = "spi0";
Maxime Ripard092a0c32014-12-16 22:59:57 +01001017 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
1018 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Hans de Goede2dad53b2014-10-01 09:26:04 +02001019 };
1020
Maxime Ripard412f2c62014-02-22 22:35:58 +01001021 spi1_pins_a: spi1@0 {
Maxime Ripardf3022c62015-05-03 09:25:41 +02001022 allwinner,pins = "PI17", "PI18", "PI19";
1023 allwinner,function = "spi1";
1024 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
1025 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
1026 };
1027
1028 spi1_cs0_pins_a: spi1_cs0@0 {
1029 allwinner,pins = "PI16";
Maxime Ripard412f2c62014-02-22 22:35:58 +01001030 allwinner,function = "spi1";
Maxime Ripard092a0c32014-12-16 22:59:57 +01001031 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
1032 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Maxime Ripard412f2c62014-02-22 22:35:58 +01001033 };
1034
1035 spi2_pins_a: spi2@0 {
Maxime Ripardf3022c62015-05-03 09:25:41 +02001036 allwinner,pins = "PC20", "PC21", "PC22";
Maxime Ripard412f2c62014-02-22 22:35:58 +01001037 allwinner,function = "spi2";
Maxime Ripard092a0c32014-12-16 22:59:57 +01001038 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
1039 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Maxime Ripard412f2c62014-02-22 22:35:58 +01001040 };
Hans de Goede11fbedf2014-05-02 17:57:27 +02001041
Wills Wang7b5bace2014-08-19 15:33:00 +08001042 spi2_pins_b: spi2@1 {
Maxime Ripardf3022c62015-05-03 09:25:41 +02001043 allwinner,pins = "PB15", "PB16", "PB17";
1044 allwinner,function = "spi2";
1045 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
1046 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
1047 };
1048
1049 spi2_cs0_pins_a: spi2_cs0@0 {
1050 allwinner,pins = "PC19";
1051 allwinner,function = "spi2";
1052 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
1053 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
1054 };
1055
1056 spi2_cs0_pins_b: spi2_cs0@1 {
1057 allwinner,pins = "PB14";
Wills Wang7b5bace2014-08-19 15:33:00 +08001058 allwinner,function = "spi2";
Maxime Ripard092a0c32014-12-16 22:59:57 +01001059 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
1060 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Wills Wang7b5bace2014-08-19 15:33:00 +08001061 };
1062
Hans de Goede11fbedf2014-05-02 17:57:27 +02001063 mmc0_pins_a: mmc0@0 {
Maxime Ripardd8cacaa2015-05-03 11:53:07 +02001064 allwinner,pins = "PF0", "PF1", "PF2",
1065 "PF3", "PF4", "PF5";
Hans de Goede11fbedf2014-05-02 17:57:27 +02001066 allwinner,function = "mmc0";
Maxime Ripard092a0c32014-12-16 22:59:57 +01001067 allwinner,drive = <SUN4I_PINCTRL_30_MA>;
1068 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Hans de Goede11fbedf2014-05-02 17:57:27 +02001069 };
1070
1071 mmc0_cd_pin_reference_design: mmc0_cd_pin@0 {
1072 allwinner,pins = "PH1";
1073 allwinner,function = "gpio_in";
Maxime Ripard092a0c32014-12-16 22:59:57 +01001074 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
1075 allwinner,pull = <SUN4I_PINCTRL_PULL_UP>;
Hans de Goede11fbedf2014-05-02 17:57:27 +02001076 };
1077
Hans de Goede8fa82322014-10-01 16:25:36 +02001078 mmc2_pins_a: mmc2@0 {
Maxime Ripardd8cacaa2015-05-03 11:53:07 +02001079 allwinner,pins = "PC6", "PC7", "PC8",
1080 "PC9", "PC10", "PC11";
Hans de Goede8fa82322014-10-01 16:25:36 +02001081 allwinner,function = "mmc2";
Maxime Ripard092a0c32014-12-16 22:59:57 +01001082 allwinner,drive = <SUN4I_PINCTRL_30_MA>;
1083 allwinner,pull = <SUN4I_PINCTRL_PULL_UP>;
Hans de Goede8fa82322014-10-01 16:25:36 +02001084 };
1085
Hans de Goede11fbedf2014-05-02 17:57:27 +02001086 mmc3_pins_a: mmc3@0 {
Maxime Ripardd8cacaa2015-05-03 11:53:07 +02001087 allwinner,pins = "PI4", "PI5", "PI6",
1088 "PI7", "PI8", "PI9";
Hans de Goede11fbedf2014-05-02 17:57:27 +02001089 allwinner,function = "mmc3";
Maxime Ripard092a0c32014-12-16 22:59:57 +01001090 allwinner,drive = <SUN4I_PINCTRL_30_MA>;
1091 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Hans de Goede11fbedf2014-05-02 17:57:27 +02001092 };
Alexander Bersenev0fc2b7a2014-06-09 00:08:11 +06001093
Marcus Cooper469a22e2015-05-02 13:36:20 +02001094 ir0_rx_pins_a: ir0@0 {
1095 allwinner,pins = "PB4";
Alexander Bersenev0fc2b7a2014-06-09 00:08:11 +06001096 allwinner,function = "ir0";
Maxime Ripard092a0c32014-12-16 22:59:57 +01001097 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
1098 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Alexander Bersenev0fc2b7a2014-06-09 00:08:11 +06001099 };
1100
Marcus Cooper469a22e2015-05-02 13:36:20 +02001101 ir0_tx_pins_a: ir0@1 {
1102 allwinner,pins = "PB3";
1103 allwinner,function = "ir0";
1104 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
1105 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
1106 };
1107
1108 ir1_rx_pins_a: ir1@0 {
1109 allwinner,pins = "PB23";
1110 allwinner,function = "ir1";
1111 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
1112 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
1113 };
1114
1115 ir1_tx_pins_a: ir1@1 {
1116 allwinner,pins = "PB22";
Alexander Bersenev0fc2b7a2014-06-09 00:08:11 +06001117 allwinner,function = "ir1";
Maxime Ripard092a0c32014-12-16 22:59:57 +01001118 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
1119 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Alexander Bersenev0fc2b7a2014-06-09 00:08:11 +06001120 };
Vishnu Patekar1e8d1562015-01-25 19:10:09 +05301121
1122 ps20_pins_a: ps20@0 {
1123 allwinner,pins = "PI20", "PI21";
1124 allwinner,function = "ps2";
1125 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
1126 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
1127 };
1128
1129 ps21_pins_a: ps21@0 {
1130 allwinner,pins = "PH12", "PH13";
1131 allwinner,function = "ps2";
1132 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
1133 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Maxime Ripard4790ecf2013-07-17 10:07:10 +02001134 };
1135 };
Maxime Ripardca5d04d2014-02-07 22:29:26 +01001136
Maxime Ripard4790ecf2013-07-17 10:07:10 +02001137 timer@01c20c00 {
1138 compatible = "allwinner,sun4i-a10-timer";
1139 reg = <0x01c20c00 0x90>;
Maxime Ripard19882b82014-12-16 22:59:58 +01001140 interrupts = <GIC_SPI 22 IRQ_TYPE_LEVEL_HIGH>,
1141 <GIC_SPI 23 IRQ_TYPE_LEVEL_HIGH>,
1142 <GIC_SPI 24 IRQ_TYPE_LEVEL_HIGH>,
1143 <GIC_SPI 25 IRQ_TYPE_LEVEL_HIGH>,
1144 <GIC_SPI 67 IRQ_TYPE_LEVEL_HIGH>,
1145 <GIC_SPI 68 IRQ_TYPE_LEVEL_HIGH>;
Maxime Ripard4790ecf2013-07-17 10:07:10 +02001146 clocks = <&osc24M>;
1147 };
1148
1149 wdt: watchdog@01c20c90 {
1150 compatible = "allwinner,sun4i-a10-wdt";
1151 reg = <0x01c20c90 0x10>;
1152 };
1153
Carlo Caioneb5d905c2013-10-16 20:30:26 +02001154 rtc: rtc@01c20d00 {
1155 compatible = "allwinner,sun7i-a20-rtc";
1156 reg = <0x01c20d00 0x20>;
Maxime Ripard19882b82014-12-16 22:59:58 +01001157 interrupts = <GIC_SPI 24 IRQ_TYPE_LEVEL_HIGH>;
Carlo Caioneb5d905c2013-10-16 20:30:26 +02001158 };
1159
Alexandre Belloni8ec40c22014-04-28 18:17:13 +02001160 pwm: pwm@01c20e00 {
1161 compatible = "allwinner,sun7i-a20-pwm";
1162 reg = <0x01c20e00 0xc>;
1163 clocks = <&osc24M>;
1164 #pwm-cells = <3>;
1165 status = "disabled";
1166 };
1167
Alexander Bersenevc1a0ee32014-06-21 17:04:05 +06001168 ir0: ir@01c21800 {
Hans de Goede1715a382014-06-30 23:57:54 +02001169 compatible = "allwinner,sun4i-a10-ir";
Alexander Bersenevc1a0ee32014-06-21 17:04:05 +06001170 clocks = <&apb0_gates 6>, <&ir0_clk>;
1171 clock-names = "apb", "ir";
Maxime Ripard19882b82014-12-16 22:59:58 +01001172 interrupts = <GIC_SPI 5 IRQ_TYPE_LEVEL_HIGH>;
Alexander Bersenevc1a0ee32014-06-21 17:04:05 +06001173 reg = <0x01c21800 0x40>;
1174 status = "disabled";
1175 };
1176
1177 ir1: ir@01c21c00 {
Hans de Goede1715a382014-06-30 23:57:54 +02001178 compatible = "allwinner,sun4i-a10-ir";
Alexander Bersenevc1a0ee32014-06-21 17:04:05 +06001179 clocks = <&apb0_gates 7>, <&ir1_clk>;
1180 clock-names = "apb", "ir";
Maxime Ripard19882b82014-12-16 22:59:58 +01001181 interrupts = <GIC_SPI 6 IRQ_TYPE_LEVEL_HIGH>;
Alexander Bersenevc1a0ee32014-06-21 17:04:05 +06001182 reg = <0x01c21c00 0x40>;
1183 status = "disabled";
1184 };
1185
Hans de Goedea6a2d642014-12-23 11:13:22 +01001186 lradc: lradc@01c22800 {
1187 compatible = "allwinner,sun4i-a10-lradc-keys";
1188 reg = <0x01c22800 0x100>;
Maxime Ripard19882b82014-12-16 22:59:58 +01001189 interrupts = <GIC_SPI 31 IRQ_TYPE_LEVEL_HIGH>;
Hans de Goedea6a2d642014-12-23 11:13:22 +01001190 status = "disabled";
1191 };
1192
Oliver Schinagl2bad9692013-09-03 12:33:28 +02001193 sid: eeprom@01c23800 {
1194 compatible = "allwinner,sun7i-a20-sid";
1195 reg = <0x01c23800 0x200>;
1196 };
1197
Hans de Goede00f7ed82013-12-31 17:20:52 +01001198 rtp: rtp@01c25000 {
Hans de Goede8bf1b9b2015-03-08 21:53:42 +01001199 compatible = "allwinner,sun5i-a13-ts";
Hans de Goede00f7ed82013-12-31 17:20:52 +01001200 reg = <0x01c25000 0x100>;
Maxime Ripard19882b82014-12-16 22:59:58 +01001201 interrupts = <GIC_SPI 29 IRQ_TYPE_LEVEL_HIGH>;
Chen-Yu Tsai41e7afb2015-01-06 10:35:15 +08001202 #thermal-sensor-cells = <0>;
Hans de Goede00f7ed82013-12-31 17:20:52 +01001203 };
1204
Maxime Ripard4790ecf2013-07-17 10:07:10 +02001205 uart0: serial@01c28000 {
1206 compatible = "snps,dw-apb-uart";
1207 reg = <0x01c28000 0x400>;
Maxime Ripard19882b82014-12-16 22:59:58 +01001208 interrupts = <GIC_SPI 1 IRQ_TYPE_LEVEL_HIGH>;
Maxime Ripard4790ecf2013-07-17 10:07:10 +02001209 reg-shift = <2>;
1210 reg-io-width = <4>;
Maxime Ripardde7dc932013-07-25 21:12:52 +02001211 clocks = <&apb1_gates 16>;
Maxime Ripard4790ecf2013-07-17 10:07:10 +02001212 status = "disabled";
1213 };
1214
1215 uart1: serial@01c28400 {
1216 compatible = "snps,dw-apb-uart";
1217 reg = <0x01c28400 0x400>;
Maxime Ripard19882b82014-12-16 22:59:58 +01001218 interrupts = <GIC_SPI 2 IRQ_TYPE_LEVEL_HIGH>;
Maxime Ripard4790ecf2013-07-17 10:07:10 +02001219 reg-shift = <2>;
1220 reg-io-width = <4>;
Maxime Ripardde7dc932013-07-25 21:12:52 +02001221 clocks = <&apb1_gates 17>;
Maxime Ripard4790ecf2013-07-17 10:07:10 +02001222 status = "disabled";
1223 };
1224
1225 uart2: serial@01c28800 {
1226 compatible = "snps,dw-apb-uart";
1227 reg = <0x01c28800 0x400>;
Maxime Ripard19882b82014-12-16 22:59:58 +01001228 interrupts = <GIC_SPI 3 IRQ_TYPE_LEVEL_HIGH>;
Maxime Ripard4790ecf2013-07-17 10:07:10 +02001229 reg-shift = <2>;
1230 reg-io-width = <4>;
Maxime Ripardde7dc932013-07-25 21:12:52 +02001231 clocks = <&apb1_gates 18>;
Maxime Ripard4790ecf2013-07-17 10:07:10 +02001232 status = "disabled";
1233 };
1234
1235 uart3: serial@01c28c00 {
1236 compatible = "snps,dw-apb-uart";
1237 reg = <0x01c28c00 0x400>;
Maxime Ripard19882b82014-12-16 22:59:58 +01001238 interrupts = <GIC_SPI 4 IRQ_TYPE_LEVEL_HIGH>;
Maxime Ripard4790ecf2013-07-17 10:07:10 +02001239 reg-shift = <2>;
1240 reg-io-width = <4>;
Maxime Ripardde7dc932013-07-25 21:12:52 +02001241 clocks = <&apb1_gates 19>;
Maxime Ripard4790ecf2013-07-17 10:07:10 +02001242 status = "disabled";
1243 };
1244
1245 uart4: serial@01c29000 {
1246 compatible = "snps,dw-apb-uart";
1247 reg = <0x01c29000 0x400>;
Maxime Ripard19882b82014-12-16 22:59:58 +01001248 interrupts = <GIC_SPI 17 IRQ_TYPE_LEVEL_HIGH>;
Maxime Ripard4790ecf2013-07-17 10:07:10 +02001249 reg-shift = <2>;
1250 reg-io-width = <4>;
Maxime Ripardde7dc932013-07-25 21:12:52 +02001251 clocks = <&apb1_gates 20>;
Maxime Ripard4790ecf2013-07-17 10:07:10 +02001252 status = "disabled";
1253 };
1254
1255 uart5: serial@01c29400 {
1256 compatible = "snps,dw-apb-uart";
1257 reg = <0x01c29400 0x400>;
Maxime Ripard19882b82014-12-16 22:59:58 +01001258 interrupts = <GIC_SPI 18 IRQ_TYPE_LEVEL_HIGH>;
Maxime Ripard4790ecf2013-07-17 10:07:10 +02001259 reg-shift = <2>;
1260 reg-io-width = <4>;
Maxime Ripardde7dc932013-07-25 21:12:52 +02001261 clocks = <&apb1_gates 21>;
Maxime Ripard4790ecf2013-07-17 10:07:10 +02001262 status = "disabled";
1263 };
1264
1265 uart6: serial@01c29800 {
1266 compatible = "snps,dw-apb-uart";
1267 reg = <0x01c29800 0x400>;
Maxime Ripard19882b82014-12-16 22:59:58 +01001268 interrupts = <GIC_SPI 19 IRQ_TYPE_LEVEL_HIGH>;
Maxime Ripard4790ecf2013-07-17 10:07:10 +02001269 reg-shift = <2>;
1270 reg-io-width = <4>;
Maxime Ripardde7dc932013-07-25 21:12:52 +02001271 clocks = <&apb1_gates 22>;
Maxime Ripard4790ecf2013-07-17 10:07:10 +02001272 status = "disabled";
1273 };
1274
1275 uart7: serial@01c29c00 {
1276 compatible = "snps,dw-apb-uart";
1277 reg = <0x01c29c00 0x400>;
Maxime Ripard19882b82014-12-16 22:59:58 +01001278 interrupts = <GIC_SPI 20 IRQ_TYPE_LEVEL_HIGH>;
Maxime Ripard4790ecf2013-07-17 10:07:10 +02001279 reg-shift = <2>;
1280 reg-io-width = <4>;
Maxime Ripardde7dc932013-07-25 21:12:52 +02001281 clocks = <&apb1_gates 23>;
Maxime Ripard4790ecf2013-07-17 10:07:10 +02001282 status = "disabled";
1283 };
1284
Maxime Ripard428abbb2013-08-31 23:07:24 +02001285 i2c0: i2c@01c2ac00 {
Maxime Ripardd8cacaa2015-05-03 11:53:07 +02001286 compatible = "allwinner,sun7i-a20-i2c",
1287 "allwinner,sun4i-a10-i2c";
Maxime Ripard428abbb2013-08-31 23:07:24 +02001288 reg = <0x01c2ac00 0x400>;
Maxime Ripard19882b82014-12-16 22:59:58 +01001289 interrupts = <GIC_SPI 7 IRQ_TYPE_LEVEL_HIGH>;
Maxime Ripard428abbb2013-08-31 23:07:24 +02001290 clocks = <&apb1_gates 0>;
Maxime Ripard428abbb2013-08-31 23:07:24 +02001291 status = "disabled";
Hans de Goeded1412ae2014-04-13 13:41:05 +02001292 #address-cells = <1>;
1293 #size-cells = <0>;
Maxime Ripard428abbb2013-08-31 23:07:24 +02001294 };
1295
1296 i2c1: i2c@01c2b000 {
Maxime Ripardd8cacaa2015-05-03 11:53:07 +02001297 compatible = "allwinner,sun7i-a20-i2c",
1298 "allwinner,sun4i-a10-i2c";
Maxime Ripard428abbb2013-08-31 23:07:24 +02001299 reg = <0x01c2b000 0x400>;
Maxime Ripard19882b82014-12-16 22:59:58 +01001300 interrupts = <GIC_SPI 8 IRQ_TYPE_LEVEL_HIGH>;
Maxime Ripard428abbb2013-08-31 23:07:24 +02001301 clocks = <&apb1_gates 1>;
Maxime Ripard428abbb2013-08-31 23:07:24 +02001302 status = "disabled";
Hans de Goeded1412ae2014-04-13 13:41:05 +02001303 #address-cells = <1>;
1304 #size-cells = <0>;
Maxime Ripard428abbb2013-08-31 23:07:24 +02001305 };
1306
1307 i2c2: i2c@01c2b400 {
Maxime Ripardd8cacaa2015-05-03 11:53:07 +02001308 compatible = "allwinner,sun7i-a20-i2c",
1309 "allwinner,sun4i-a10-i2c";
Maxime Ripard428abbb2013-08-31 23:07:24 +02001310 reg = <0x01c2b400 0x400>;
Maxime Ripard19882b82014-12-16 22:59:58 +01001311 interrupts = <GIC_SPI 9 IRQ_TYPE_LEVEL_HIGH>;
Maxime Ripard428abbb2013-08-31 23:07:24 +02001312 clocks = <&apb1_gates 2>;
Maxime Ripard428abbb2013-08-31 23:07:24 +02001313 status = "disabled";
Hans de Goeded1412ae2014-04-13 13:41:05 +02001314 #address-cells = <1>;
1315 #size-cells = <0>;
Maxime Ripard428abbb2013-08-31 23:07:24 +02001316 };
1317
1318 i2c3: i2c@01c2b800 {
Maxime Ripardd8cacaa2015-05-03 11:53:07 +02001319 compatible = "allwinner,sun7i-a20-i2c",
1320 "allwinner,sun4i-a10-i2c";
Maxime Ripard428abbb2013-08-31 23:07:24 +02001321 reg = <0x01c2b800 0x400>;
Maxime Ripard19882b82014-12-16 22:59:58 +01001322 interrupts = <GIC_SPI 88 IRQ_TYPE_LEVEL_HIGH>;
Maxime Ripard428abbb2013-08-31 23:07:24 +02001323 clocks = <&apb1_gates 3>;
Maxime Ripard428abbb2013-08-31 23:07:24 +02001324 status = "disabled";
Hans de Goeded1412ae2014-04-13 13:41:05 +02001325 #address-cells = <1>;
1326 #size-cells = <0>;
Maxime Ripard428abbb2013-08-31 23:07:24 +02001327 };
1328
Maxime Riparda3867042014-04-18 21:13:08 +02001329 i2c4: i2c@01c2c000 {
Maxime Ripardd8cacaa2015-05-03 11:53:07 +02001330 compatible = "allwinner,sun7i-a20-i2c",
1331 "allwinner,sun4i-a10-i2c";
Maxime Riparda3867042014-04-18 21:13:08 +02001332 reg = <0x01c2c000 0x400>;
Maxime Ripard19882b82014-12-16 22:59:58 +01001333 interrupts = <GIC_SPI 89 IRQ_TYPE_LEVEL_HIGH>;
Maxime Ripard428abbb2013-08-31 23:07:24 +02001334 clocks = <&apb1_gates 15>;
Maxime Ripard428abbb2013-08-31 23:07:24 +02001335 status = "disabled";
Hans de Goeded1412ae2014-04-13 13:41:05 +02001336 #address-cells = <1>;
1337 #size-cells = <0>;
Maxime Ripard428abbb2013-08-31 23:07:24 +02001338 };
1339
Chen-Yu Tsaic40b8d52014-02-10 18:35:49 +08001340 gmac: ethernet@01c50000 {
1341 compatible = "allwinner,sun7i-a20-gmac";
1342 reg = <0x01c50000 0x10000>;
Maxime Ripard19882b82014-12-16 22:59:58 +01001343 interrupts = <GIC_SPI 85 IRQ_TYPE_LEVEL_HIGH>;
Chen-Yu Tsaic40b8d52014-02-10 18:35:49 +08001344 interrupt-names = "macirq";
1345 clocks = <&ahb_gates 49>, <&gmac_tx_clk>;
1346 clock-names = "stmmaceth", "allwinner_gmac_tx";
1347 snps,pbl = <2>;
1348 snps,fixed-burst;
1349 snps,force_sf_dma_mode;
1350 status = "disabled";
1351 #address-cells = <1>;
1352 #size-cells = <0>;
1353 };
1354
Maxime Ripard31f8ad32013-11-07 12:01:48 +01001355 hstimer@01c60000 {
1356 compatible = "allwinner,sun7i-a20-hstimer";
1357 reg = <0x01c60000 0x1000>;
Maxime Ripard19882b82014-12-16 22:59:58 +01001358 interrupts = <GIC_SPI 81 IRQ_TYPE_LEVEL_HIGH>,
1359 <GIC_SPI 82 IRQ_TYPE_LEVEL_HIGH>,
1360 <GIC_SPI 83 IRQ_TYPE_LEVEL_HIGH>,
1361 <GIC_SPI 84 IRQ_TYPE_LEVEL_HIGH>;
Maxime Ripard31f8ad32013-11-07 12:01:48 +01001362 clocks = <&ahb_gates 28>;
1363 };
1364
Maxime Ripard4790ecf2013-07-17 10:07:10 +02001365 gic: interrupt-controller@01c81000 {
1366 compatible = "arm,cortex-a7-gic", "arm,cortex-a15-gic";
1367 reg = <0x01c81000 0x1000>,
1368 <0x01c82000 0x1000>,
1369 <0x01c84000 0x2000>,
1370 <0x01c86000 0x2000>;
1371 interrupt-controller;
1372 #interrupt-cells = <3>;
Maxime Ripard19882b82014-12-16 22:59:58 +01001373 interrupts = <GIC_PPI 9 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>;
Maxime Ripard4790ecf2013-07-17 10:07:10 +02001374 };
Vishnu Patekar196654a2015-01-25 19:10:08 +05301375
1376 ps20: ps2@01c2a000 {
1377 compatible = "allwinner,sun4i-a10-ps2";
1378 reg = <0x01c2a000 0x400>;
1379 interrupts = <GIC_SPI 62 IRQ_TYPE_LEVEL_HIGH>;
1380 clocks = <&apb1_gates 6>;
1381 status = "disabled";
1382 };
1383
1384 ps21: ps2@01c2a400 {
1385 compatible = "allwinner,sun4i-a10-ps2";
1386 reg = <0x01c2a400 0x400>;
1387 interrupts = <GIC_SPI 63 IRQ_TYPE_LEVEL_HIGH>;
1388 clocks = <&apb1_gates 7>;
1389 status = "disabled";
Maxime Ripard4790ecf2013-07-17 10:07:10 +02001390 };
1391 };
1392};