blob: 94cf5a1c7172371b3c5691e831a238dd563d83c7 [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 Riparddbe4dd12015-10-12 22:28:46 +020050#include <dt-bindings/clock/sun4i-a10-pll2.h>
Maxime Ripard1f9f6a72014-12-16 22:59:56 +010051#include <dt-bindings/dma/sun4i-a10.h>
Maxime Ripard092a0c32014-12-16 22:59:57 +010052#include <dt-bindings/pinctrl/sun4i-a10.h>
Maxime Ripard4790ecf2013-07-17 10:07:10 +020053
54/ {
55 interrupt-parent = <&gic>;
56
Emilio Lópeze751cce2013-11-16 15:17:29 -030057 aliases {
Chen-Yu Tsai18428f72014-02-10 18:35:54 +080058 ethernet0 = &gmac;
Emilio Lópeze751cce2013-11-16 15:17:29 -030059 };
60
Hans de Goede8efc5c22014-11-14 16:34:37 +010061 chosen {
62 #address-cells = <1>;
63 #size-cells = <1>;
64 ranges;
65
Hans de Goedea9f8cda2014-11-18 12:07:13 +010066 framebuffer@0 {
Maxime Ripardd8cacaa2015-05-03 11:53:07 +020067 compatible = "allwinner,simple-framebuffer",
68 "simple-framebuffer";
Hans de Goedea9f8cda2014-11-18 12:07:13 +010069 allwinner,pipeline = "de_be0-lcd0-hdmi";
Hans de Goede01621172016-06-05 14:22:48 +020070 clocks = <&ahb_gates 36>, <&ahb_gates 43>,
71 <&ahb_gates 44>, <&de_be0_clk>,
72 <&tcon0_ch1_clk>, <&dram_gates 26>;
Hans de Goede8efc5c22014-11-14 16:34:37 +010073 status = "disabled";
74 };
Hans de Goedefd18c7e2015-01-19 14:05:12 +010075
76 framebuffer@1 {
77 compatible = "allwinner,simple-framebuffer",
78 "simple-framebuffer";
79 allwinner,pipeline = "de_be0-lcd0";
Priit Laesf1afc132016-05-10 22:24:07 +030080 clocks = <&ahb_gates 36>, <&ahb_gates 44>,
81 <&de_be0_clk>, <&tcon0_ch0_clk>,
82 <&dram_gates 26>;
Hans de Goedefd18c7e2015-01-19 14:05:12 +010083 status = "disabled";
84 };
85
86 framebuffer@2 {
87 compatible = "allwinner,simple-framebuffer",
88 "simple-framebuffer";
89 allwinner,pipeline = "de_be0-lcd0-tve0";
Hans de Goede01621172016-06-05 14:22:48 +020090 clocks = <&ahb_gates 34>, <&ahb_gates 36>,
91 <&ahb_gates 44>,
92 <&de_be0_clk>, <&tcon0_ch1_clk>,
Priit Laes4b8ccef2016-03-24 21:52:17 +020093 <&dram_gates 5>, <&dram_gates 26>;
Hans de Goedefd18c7e2015-01-19 14:05:12 +010094 status = "disabled";
95 };
Hans de Goede8efc5c22014-11-14 16:34:37 +010096 };
97
Maxime Ripard4790ecf2013-07-17 10:07:10 +020098 cpus {
99 #address-cells = <1>;
100 #size-cells = <0>;
101
Chen-Yu Tsaid96b7162015-01-06 10:35:16 +0800102 cpu0: cpu@0 {
Maxime Ripard4790ecf2013-07-17 10:07:10 +0200103 compatible = "arm,cortex-a7";
104 device_type = "cpu";
105 reg = <0>;
Chen-Yu Tsaid96b7162015-01-06 10:35:16 +0800106 clocks = <&cpu>;
107 clock-latency = <244144>; /* 8 32k periods */
108 operating-points = <
Maxime Ripard8358aad2015-05-03 11:54:35 +0200109 /* kHz uV */
110 960000 1400000
111 912000 1400000
112 864000 1300000
113 720000 1200000
114 528000 1100000
115 312000 1000000
Timo Sigurdssoneaeef1a2015-08-04 23:08:01 +0200116 144000 1000000
Chen-Yu Tsaid96b7162015-01-06 10:35:16 +0800117 >;
118 #cooling-cells = <2>;
119 cooling-min-level = <0>;
Chen-Yu Tsai370a9b52015-03-25 00:53:27 +0800120 cooling-max-level = <6>;
Maxime Ripard4790ecf2013-07-17 10:07:10 +0200121 };
122
123 cpu@1 {
124 compatible = "arm,cortex-a7";
125 device_type = "cpu";
126 reg = <1>;
127 };
128 };
129
Chen-Yu Tsaib6d34242015-01-12 12:34:03 +0800130 thermal-zones {
131 cpu_thermal {
132 /* milliseconds */
133 polling-delay-passive = <250>;
134 polling-delay = <1000>;
135 thermal-sensors = <&rtp>;
136
137 cooling-maps {
138 map0 {
139 trip = <&cpu_alert0>;
140 cooling-device = <&cpu0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
141 };
142 };
143
144 trips {
145 cpu_alert0: cpu_alert0 {
146 /* milliCelsius */
147 temperature = <75000>;
148 hysteresis = <2000>;
149 type = "passive";
150 };
151
152 cpu_crit: cpu_crit {
153 /* milliCelsius */
154 temperature = <100000>;
155 hysteresis = <2000>;
156 type = "critical";
157 };
158 };
159 };
160 };
161
Maxime Ripard4790ecf2013-07-17 10:07:10 +0200162 memory {
163 reg = <0x40000000 0x80000000>;
164 };
165
Marc Zyngier79027632014-02-18 14:04:44 +0000166 timer {
167 compatible = "arm,armv7-timer";
Maxime Ripard19882b82014-12-16 22:59:58 +0100168 interrupts = <GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
169 <GIC_PPI 14 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
170 <GIC_PPI 11 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
171 <GIC_PPI 10 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>;
Marc Zyngier79027632014-02-18 14:04:44 +0000172 };
173
Maxime Riparde29ea4d2014-04-17 21:54:41 +0200174 pmu {
175 compatible = "arm,cortex-a7-pmu", "arm,cortex-a15-pmu";
Maxime Ripard19882b82014-12-16 22:59:58 +0100176 interrupts = <GIC_SPI 120 IRQ_TYPE_LEVEL_HIGH>,
177 <GIC_SPI 121 IRQ_TYPE_LEVEL_HIGH>;
Maxime Riparde29ea4d2014-04-17 21:54:41 +0200178 };
179
Maxime Ripard4790ecf2013-07-17 10:07:10 +0200180 clocks {
181 #address-cells = <1>;
182 #size-cells = <1>;
183 ranges;
184
Chen-Yu Tsai06067a22014-02-03 09:51:44 +0800185 osc24M: clk@01c20050 {
Maxime Ripard4790ecf2013-07-17 10:07:10 +0200186 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100187 compatible = "allwinner,sun4i-a10-osc-clk";
Maxime Ripardde7dc932013-07-25 21:12:52 +0200188 reg = <0x01c20050 0x4>;
Maxime Ripard4790ecf2013-07-17 10:07:10 +0200189 clock-frequency = <24000000>;
Chen-Yu Tsai06067a22014-02-03 09:51:44 +0800190 clock-output-names = "osc24M";
Maxime Ripard4790ecf2013-07-17 10:07:10 +0200191 };
192
Priit Laes068655dc2016-05-05 20:39:04 +0300193 osc3M: osc3M_clk {
194 #clock-cells = <0>;
195 compatible = "fixed-factor-clock";
196 clock-div = <8>;
197 clock-mult = <1>;
198 clocks = <&osc24M>;
199 clock-output-names = "osc3M";
200 };
201
Chen-Yu Tsai673fac72014-01-01 10:30:47 +0800202 osc32k: clk@0 {
Maxime Ripard4790ecf2013-07-17 10:07:10 +0200203 #clock-cells = <0>;
204 compatible = "fixed-clock";
205 clock-frequency = <32768>;
Chen-Yu Tsai673fac72014-01-01 10:30:47 +0800206 clock-output-names = "osc32k";
Maxime Ripard4790ecf2013-07-17 10:07:10 +0200207 };
Maxime Ripardde7dc932013-07-25 21:12:52 +0200208
Chen-Yu Tsai06067a22014-02-03 09:51:44 +0800209 pll1: clk@01c20000 {
Maxime Ripardde7dc932013-07-25 21:12:52 +0200210 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100211 compatible = "allwinner,sun4i-a10-pll1-clk";
Maxime Ripardde7dc932013-07-25 21:12:52 +0200212 reg = <0x01c20000 0x4>;
213 clocks = <&osc24M>;
Chen-Yu Tsai06067a22014-02-03 09:51:44 +0800214 clock-output-names = "pll1";
Maxime Ripardde7dc932013-07-25 21:12:52 +0200215 };
216
Maxime Ripard88a86aa2015-10-12 22:21:49 +0200217 pll2: clk@01c20008 {
218 #clock-cells = <1>;
219 compatible = "allwinner,sun4i-a10-pll2-clk";
220 reg = <0x01c20008 0x8>;
221 clocks = <&osc24M>;
222 clock-output-names = "pll2-1x", "pll2-2x",
223 "pll2-4x", "pll2-8x";
224 };
225
Priit Laes068655dc2016-05-05 20:39:04 +0300226 pll3: clk@01c20010 {
227 #clock-cells = <0>;
228 compatible = "allwinner,sun4i-a10-pll3-clk";
229 reg = <0x01c20010 0x4>;
230 clocks = <&osc3M>;
231 clock-output-names = "pll3";
232 };
233
234 pll3x2: pll3x2_clk {
235 #clock-cells = <0>;
236 compatible = "fixed-factor-clock";
Hans de Goedeeee25ab2016-06-28 22:11:14 +0200237 clocks = <&pll3>;
Priit Laes068655dc2016-05-05 20:39:04 +0300238 clock-div = <1>;
239 clock-mult = <2>;
240 clock-output-names = "pll3-2x";
241 };
242
Chen-Yu Tsai06067a22014-02-03 09:51:44 +0800243 pll4: clk@01c20018 {
Maxime Ripardde7dc932013-07-25 21:12:52 +0200244 #clock-cells = <0>;
Emilio López04ebcb52014-03-19 15:19:31 -0300245 compatible = "allwinner,sun7i-a20-pll4-clk";
Emilio Lópezec5589f2013-12-23 00:32:35 -0300246 reg = <0x01c20018 0x4>;
247 clocks = <&osc24M>;
Chen-Yu Tsai06067a22014-02-03 09:51:44 +0800248 clock-output-names = "pll4";
Emilio Lópezec5589f2013-12-23 00:32:35 -0300249 };
250
Chen-Yu Tsai06067a22014-02-03 09:51:44 +0800251 pll5: clk@01c20020 {
Emilio Lópezc3e5e662013-12-23 00:32:38 -0300252 #clock-cells = <1>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100253 compatible = "allwinner,sun4i-a10-pll5-clk";
Emilio Lópezc3e5e662013-12-23 00:32:38 -0300254 reg = <0x01c20020 0x4>;
255 clocks = <&osc24M>;
256 clock-output-names = "pll5_ddr", "pll5_other";
257 };
258
Chen-Yu Tsai06067a22014-02-03 09:51:44 +0800259 pll6: clk@01c20028 {
Emilio Lópezc3e5e662013-12-23 00:32:38 -0300260 #clock-cells = <1>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100261 compatible = "allwinner,sun4i-a10-pll6-clk";
Emilio Lópezc3e5e662013-12-23 00:32:38 -0300262 reg = <0x01c20028 0x4>;
263 clocks = <&osc24M>;
Chen-Yu Tsai2186df32015-03-25 01:22:09 +0800264 clock-output-names = "pll6_sata", "pll6_other", "pll6",
265 "pll6_div_4";
Maxime Ripardde7dc932013-07-25 21:12:52 +0200266 };
267
Priit Laes068655dc2016-05-05 20:39:04 +0300268 pll7: clk@01c20030 {
269 #clock-cells = <0>;
270 compatible = "allwinner,sun4i-a10-pll3-clk";
271 reg = <0x01c20030 0x4>;
272 clocks = <&osc3M>;
273 clock-output-names = "pll7";
274 };
275
276 pll7x2: pll7x2_clk {
277 #clock-cells = <0>;
278 compatible = "fixed-factor-clock";
Hans de Goedeeee25ab2016-06-28 22:11:14 +0200279 clocks = <&pll7>;
Priit Laes068655dc2016-05-05 20:39:04 +0300280 clock-div = <1>;
281 clock-mult = <2>;
282 clock-output-names = "pll7-2x";
283 };
284
Emilio López04ebcb52014-03-19 15:19:31 -0300285 pll8: clk@01c20040 {
286 #clock-cells = <0>;
287 compatible = "allwinner,sun7i-a20-pll4-clk";
288 reg = <0x01c20040 0x4>;
289 clocks = <&osc24M>;
290 clock-output-names = "pll8";
291 };
292
Maxime Ripardde7dc932013-07-25 21:12:52 +0200293 cpu: cpu@01c20054 {
294 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100295 compatible = "allwinner,sun4i-a10-cpu-clk";
Maxime Ripardde7dc932013-07-25 21:12:52 +0200296 reg = <0x01c20054 0x4>;
Emilio Lópezc3e5e662013-12-23 00:32:38 -0300297 clocks = <&osc32k>, <&osc24M>, <&pll1>, <&pll6 1>;
Chen-Yu Tsai06067a22014-02-03 09:51:44 +0800298 clock-output-names = "cpu";
Maxime Ripardde7dc932013-07-25 21:12:52 +0200299 };
300
301 axi: axi@01c20054 {
302 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100303 compatible = "allwinner,sun4i-a10-axi-clk";
Maxime Ripardde7dc932013-07-25 21:12:52 +0200304 reg = <0x01c20054 0x4>;
305 clocks = <&cpu>;
Chen-Yu Tsai06067a22014-02-03 09:51:44 +0800306 clock-output-names = "axi";
Maxime Ripardde7dc932013-07-25 21:12:52 +0200307 };
308
309 ahb: ahb@01c20054 {
310 #clock-cells = <0>;
Chen-Yu Tsai2186df32015-03-25 01:22:09 +0800311 compatible = "allwinner,sun5i-a13-ahb-clk";
Maxime Ripardde7dc932013-07-25 21:12:52 +0200312 reg = <0x01c20054 0x4>;
Chen-Yu Tsai2186df32015-03-25 01:22:09 +0800313 clocks = <&axi>, <&pll6 3>, <&pll6 1>;
Chen-Yu Tsai06067a22014-02-03 09:51:44 +0800314 clock-output-names = "ahb";
Chen-Yu Tsai2186df32015-03-25 01:22:09 +0800315 /*
316 * Use PLL6 as parent, instead of CPU/AXI
317 * which has rate changes due to cpufreq
318 */
319 assigned-clocks = <&ahb>;
320 assigned-clock-parents = <&pll6 3>;
Maxime Ripardde7dc932013-07-25 21:12:52 +0200321 };
322
Chen-Yu Tsai06067a22014-02-03 09:51:44 +0800323 ahb_gates: clk@01c20060 {
Maxime Ripardde7dc932013-07-25 21:12:52 +0200324 #clock-cells = <1>;
325 compatible = "allwinner,sun7i-a20-ahb-gates-clk";
326 reg = <0x01c20060 0x8>;
327 clocks = <&ahb>;
Maxime Ripard6bfe30b2015-07-31 19:46:19 +0200328 clock-indices = <0>, <1>,
329 <2>, <3>, <4>,
330 <5>, <6>, <7>, <8>,
331 <9>, <10>, <11>, <12>,
332 <13>, <14>, <16>,
333 <17>, <18>, <20>, <21>,
334 <22>, <23>, <25>,
335 <28>, <32>, <33>, <34>,
336 <35>, <36>, <37>, <40>,
337 <41>, <42>, <43>,
338 <44>, <45>, <46>,
339 <47>, <49>, <50>,
340 <52>;
Maxime Ripardde7dc932013-07-25 21:12:52 +0200341 clock-output-names = "ahb_usb0", "ahb_ehci0",
342 "ahb_ohci0", "ahb_ehci1", "ahb_ohci1",
343 "ahb_ss", "ahb_dma", "ahb_bist", "ahb_mmc0",
344 "ahb_mmc1", "ahb_mmc2", "ahb_mmc3", "ahb_ms",
345 "ahb_nand", "ahb_sdram", "ahb_ace",
346 "ahb_emac", "ahb_ts", "ahb_spi0", "ahb_spi1",
347 "ahb_spi2", "ahb_spi3", "ahb_sata",
348 "ahb_hstimer", "ahb_ve", "ahb_tvd", "ahb_tve0",
349 "ahb_tve1", "ahb_lcd0", "ahb_lcd1", "ahb_csi0",
350 "ahb_csi1", "ahb_hdmi1", "ahb_hdmi0",
351 "ahb_de_be0", "ahb_de_be1", "ahb_de_fe0",
352 "ahb_de_fe1", "ahb_gmac", "ahb_mp",
353 "ahb_mali";
354 };
355
356 apb0: apb0@01c20054 {
357 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100358 compatible = "allwinner,sun4i-a10-apb0-clk";
Maxime Ripardde7dc932013-07-25 21:12:52 +0200359 reg = <0x01c20054 0x4>;
360 clocks = <&ahb>;
Chen-Yu Tsai06067a22014-02-03 09:51:44 +0800361 clock-output-names = "apb0";
Maxime Ripardde7dc932013-07-25 21:12:52 +0200362 };
363
Chen-Yu Tsai06067a22014-02-03 09:51:44 +0800364 apb0_gates: clk@01c20068 {
Maxime Ripardde7dc932013-07-25 21:12:52 +0200365 #clock-cells = <1>;
366 compatible = "allwinner,sun7i-a20-apb0-gates-clk";
367 reg = <0x01c20068 0x4>;
368 clocks = <&apb0>;
Maxime Ripard6bfe30b2015-07-31 19:46:19 +0200369 clock-indices = <0>, <1>,
370 <2>, <3>, <4>,
371 <5>, <6>, <7>,
372 <8>, <10>;
Maxime Ripardde7dc932013-07-25 21:12:52 +0200373 clock-output-names = "apb0_codec", "apb0_spdif",
Emilio López60ecb1e2014-07-18 15:26:08 -0300374 "apb0_ac97", "apb0_i2s0", "apb0_i2s1",
Maxime Ripardde7dc932013-07-25 21:12:52 +0200375 "apb0_pio", "apb0_ir0", "apb0_ir1",
Emilio López60ecb1e2014-07-18 15:26:08 -0300376 "apb0_i2s2", "apb0_keypad";
Maxime Ripardde7dc932013-07-25 21:12:52 +0200377 };
378
Emilio Lópezacbcc0f2014-11-06 11:40:30 +0800379 apb1: clk@01c20058 {
Maxime Ripardde7dc932013-07-25 21:12:52 +0200380 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100381 compatible = "allwinner,sun4i-a10-apb1-clk";
Maxime Ripardde7dc932013-07-25 21:12:52 +0200382 reg = <0x01c20058 0x4>;
Emilio Lópezacbcc0f2014-11-06 11:40:30 +0800383 clocks = <&osc24M>, <&pll6 1>, <&osc32k>;
Chen-Yu Tsai06067a22014-02-03 09:51:44 +0800384 clock-output-names = "apb1";
Maxime Ripardde7dc932013-07-25 21:12:52 +0200385 };
386
Chen-Yu Tsai06067a22014-02-03 09:51:44 +0800387 apb1_gates: clk@01c2006c {
Maxime Ripardde7dc932013-07-25 21:12:52 +0200388 #clock-cells = <1>;
389 compatible = "allwinner,sun7i-a20-apb1-gates-clk";
390 reg = <0x01c2006c 0x4>;
391 clocks = <&apb1>;
Maxime Ripard6bfe30b2015-07-31 19:46:19 +0200392 clock-indices = <0>, <1>,
393 <2>, <3>, <4>,
394 <5>, <6>, <7>,
395 <15>, <16>, <17>,
396 <18>, <19>, <20>,
397 <21>, <22>, <23>;
Maxime Ripardde7dc932013-07-25 21:12:52 +0200398 clock-output-names = "apb1_i2c0", "apb1_i2c1",
399 "apb1_i2c2", "apb1_i2c3", "apb1_can",
400 "apb1_scr", "apb1_ps20", "apb1_ps21",
401 "apb1_i2c4", "apb1_uart0", "apb1_uart1",
402 "apb1_uart2", "apb1_uart3", "apb1_uart4",
403 "apb1_uart5", "apb1_uart6", "apb1_uart7";
404 };
Emilio López1c92b952013-12-23 00:32:43 -0300405
406 nand_clk: clk@01c20080 {
407 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100408 compatible = "allwinner,sun4i-a10-mod0-clk";
Emilio López1c92b952013-12-23 00:32:43 -0300409 reg = <0x01c20080 0x4>;
410 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
411 clock-output-names = "nand";
412 };
413
414 ms_clk: clk@01c20084 {
415 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100416 compatible = "allwinner,sun4i-a10-mod0-clk";
Emilio López1c92b952013-12-23 00:32:43 -0300417 reg = <0x01c20084 0x4>;
418 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
419 clock-output-names = "ms";
420 };
421
422 mmc0_clk: clk@01c20088 {
Maxime Ripardd8c3a392014-07-11 19:39:06 +0200423 #clock-cells = <1>;
424 compatible = "allwinner,sun4i-a10-mmc-clk";
Emilio López1c92b952013-12-23 00:32:43 -0300425 reg = <0x01c20088 0x4>;
426 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
Maxime Ripardd8c3a392014-07-11 19:39:06 +0200427 clock-output-names = "mmc0",
428 "mmc0_output",
429 "mmc0_sample";
Emilio López1c92b952013-12-23 00:32:43 -0300430 };
431
432 mmc1_clk: clk@01c2008c {
Maxime Ripardd8c3a392014-07-11 19:39:06 +0200433 #clock-cells = <1>;
434 compatible = "allwinner,sun4i-a10-mmc-clk";
Emilio López1c92b952013-12-23 00:32:43 -0300435 reg = <0x01c2008c 0x4>;
436 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
Maxime Ripardd8c3a392014-07-11 19:39:06 +0200437 clock-output-names = "mmc1",
438 "mmc1_output",
439 "mmc1_sample";
Emilio López1c92b952013-12-23 00:32:43 -0300440 };
441
442 mmc2_clk: clk@01c20090 {
Maxime Ripardd8c3a392014-07-11 19:39:06 +0200443 #clock-cells = <1>;
444 compatible = "allwinner,sun4i-a10-mmc-clk";
Emilio López1c92b952013-12-23 00:32:43 -0300445 reg = <0x01c20090 0x4>;
446 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
Maxime Ripardd8c3a392014-07-11 19:39:06 +0200447 clock-output-names = "mmc2",
448 "mmc2_output",
449 "mmc2_sample";
Emilio López1c92b952013-12-23 00:32:43 -0300450 };
451
452 mmc3_clk: clk@01c20094 {
Maxime Ripardd8c3a392014-07-11 19:39:06 +0200453 #clock-cells = <1>;
454 compatible = "allwinner,sun4i-a10-mmc-clk";
Emilio López1c92b952013-12-23 00:32:43 -0300455 reg = <0x01c20094 0x4>;
456 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
Maxime Ripardd8c3a392014-07-11 19:39:06 +0200457 clock-output-names = "mmc3",
458 "mmc3_output",
459 "mmc3_sample";
Emilio López1c92b952013-12-23 00:32:43 -0300460 };
461
462 ts_clk: clk@01c20098 {
463 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100464 compatible = "allwinner,sun4i-a10-mod0-clk";
Emilio López1c92b952013-12-23 00:32:43 -0300465 reg = <0x01c20098 0x4>;
466 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
467 clock-output-names = "ts";
468 };
469
470 ss_clk: clk@01c2009c {
471 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100472 compatible = "allwinner,sun4i-a10-mod0-clk";
Emilio López1c92b952013-12-23 00:32:43 -0300473 reg = <0x01c2009c 0x4>;
474 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
475 clock-output-names = "ss";
476 };
477
478 spi0_clk: clk@01c200a0 {
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 = <0x01c200a0 0x4>;
482 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
483 clock-output-names = "spi0";
484 };
485
486 spi1_clk: clk@01c200a4 {
487 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100488 compatible = "allwinner,sun4i-a10-mod0-clk";
Emilio López1c92b952013-12-23 00:32:43 -0300489 reg = <0x01c200a4 0x4>;
490 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
491 clock-output-names = "spi1";
492 };
493
494 spi2_clk: clk@01c200a8 {
495 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100496 compatible = "allwinner,sun4i-a10-mod0-clk";
Emilio López1c92b952013-12-23 00:32:43 -0300497 reg = <0x01c200a8 0x4>;
498 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
499 clock-output-names = "spi2";
500 };
501
502 pata_clk: clk@01c200ac {
503 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100504 compatible = "allwinner,sun4i-a10-mod0-clk";
Emilio López1c92b952013-12-23 00:32:43 -0300505 reg = <0x01c200ac 0x4>;
506 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
507 clock-output-names = "pata";
508 };
509
510 ir0_clk: clk@01c200b0 {
511 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100512 compatible = "allwinner,sun4i-a10-mod0-clk";
Emilio López1c92b952013-12-23 00:32:43 -0300513 reg = <0x01c200b0 0x4>;
514 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
515 clock-output-names = "ir0";
516 };
517
518 ir1_clk: clk@01c200b4 {
519 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100520 compatible = "allwinner,sun4i-a10-mod0-clk";
Emilio López1c92b952013-12-23 00:32:43 -0300521 reg = <0x01c200b4 0x4>;
522 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
523 clock-output-names = "ir1";
524 };
525
Emilio López60ecb1e2014-07-18 15:26:08 -0300526 i2s0_clk: clk@01c200b8 {
527 #clock-cells = <0>;
528 compatible = "allwinner,sun4i-a10-mod1-clk";
529 reg = <0x01c200b8 0x4>;
530 clocks = <&pll2 SUN4I_A10_PLL2_8X>,
531 <&pll2 SUN4I_A10_PLL2_4X>,
532 <&pll2 SUN4I_A10_PLL2_2X>,
533 <&pll2 SUN4I_A10_PLL2_1X>;
534 clock-output-names = "i2s0";
535 };
536
537 ac97_clk: clk@01c200bc {
538 #clock-cells = <0>;
539 compatible = "allwinner,sun4i-a10-mod1-clk";
540 reg = <0x01c200bc 0x4>;
541 clocks = <&pll2 SUN4I_A10_PLL2_8X>,
542 <&pll2 SUN4I_A10_PLL2_4X>,
543 <&pll2 SUN4I_A10_PLL2_2X>,
544 <&pll2 SUN4I_A10_PLL2_1X>;
545 clock-output-names = "ac97";
546 };
547
Marcus Cooper90b7a482016-03-21 21:01:02 +0100548 spdif_clk: clk@01c200c0 {
549 #clock-cells = <0>;
550 compatible = "allwinner,sun4i-a10-mod1-clk";
551 reg = <0x01c200c0 0x4>;
552 clocks = <&pll2 SUN4I_A10_PLL2_8X>,
553 <&pll2 SUN4I_A10_PLL2_4X>,
554 <&pll2 SUN4I_A10_PLL2_2X>,
555 <&pll2 SUN4I_A10_PLL2_1X>;
556 clock-output-names = "spdif";
557 };
558
Yassin Jaffer6f1606b2015-09-16 00:05:54 +1000559 keypad_clk: clk@01c200c4 {
560 #clock-cells = <0>;
561 compatible = "allwinner,sun4i-a10-mod0-clk";
562 reg = <0x01c200c4 0x4>;
563 clocks = <&osc24M>;
564 clock-output-names = "keypad";
565 };
566
Roman Byshko434e41b2014-02-07 16:21:53 +0100567 usb_clk: clk@01c200cc {
568 #clock-cells = <1>;
Maxime Ripard8358aad2015-05-03 11:54:35 +0200569 #reset-cells = <1>;
Roman Byshko434e41b2014-02-07 16:21:53 +0100570 compatible = "allwinner,sun4i-a10-usb-clk";
571 reg = <0x01c200cc 0x4>;
572 clocks = <&pll6 1>;
Maxime Ripardd8cacaa2015-05-03 11:53:07 +0200573 clock-output-names = "usb_ohci0", "usb_ohci1",
574 "usb_phy";
Roman Byshko434e41b2014-02-07 16:21:53 +0100575 };
576
Emilio López1c92b952013-12-23 00:32:43 -0300577 spi3_clk: clk@01c200d4 {
578 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100579 compatible = "allwinner,sun4i-a10-mod0-clk";
Emilio López1c92b952013-12-23 00:32:43 -0300580 reg = <0x01c200d4 0x4>;
581 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
582 clock-output-names = "spi3";
583 };
Emilio López118c07a2013-12-23 00:32:44 -0300584
Emilio López60ecb1e2014-07-18 15:26:08 -0300585 i2s1_clk: clk@01c200d8 {
586 #clock-cells = <0>;
587 compatible = "allwinner,sun4i-a10-mod1-clk";
588 reg = <0x01c200d8 0x4>;
589 clocks = <&pll2 SUN4I_A10_PLL2_8X>,
590 <&pll2 SUN4I_A10_PLL2_4X>,
591 <&pll2 SUN4I_A10_PLL2_2X>,
592 <&pll2 SUN4I_A10_PLL2_1X>;
593 clock-output-names = "i2s1";
594 };
595
596 i2s2_clk: clk@01c200dc {
597 #clock-cells = <0>;
598 compatible = "allwinner,sun4i-a10-mod1-clk";
599 reg = <0x01c200dc 0x4>;
600 clocks = <&pll2 SUN4I_A10_PLL2_8X>,
601 <&pll2 SUN4I_A10_PLL2_4X>,
602 <&pll2 SUN4I_A10_PLL2_2X>,
603 <&pll2 SUN4I_A10_PLL2_1X>;
604 clock-output-names = "i2s2";
605 };
606
Chen-Yu Tsai0b4bf5a2015-12-05 21:16:46 +0800607 dram_gates: clk@01c20100 {
608 #clock-cells = <1>;
609 compatible = "allwinner,sun4i-a10-dram-gates-clk";
610 reg = <0x01c20100 0x4>;
611 clocks = <&pll5 0>;
612 clock-indices = <0>,
613 <1>, <2>,
614 <3>,
615 <4>,
616 <5>, <6>,
617 <15>,
618 <24>, <25>,
619 <26>, <27>,
620 <28>, <29>;
621 clock-output-names = "dram_ve",
622 "dram_csi0", "dram_csi1",
623 "dram_ts",
624 "dram_tvd",
625 "dram_tve0", "dram_tve1",
626 "dram_output",
627 "dram_de_fe1", "dram_de_fe0",
628 "dram_de_be0", "dram_de_be1",
629 "dram_de_mp", "dram_ace";
630 };
631
Priit Laesf1afc132016-05-10 22:24:07 +0300632 de_be0_clk: clk@01c20104 {
633 #clock-cells = <0>;
634 #reset-cells = <0>;
635 compatible = "allwinner,sun4i-a10-display-clk";
636 reg = <0x01c20104 0x4>;
637 clocks = <&pll3>, <&pll7>, <&pll5 1>;
638 clock-output-names = "de-be0";
639 };
640
641 de_be1_clk: clk@01c20108 {
642 #clock-cells = <0>;
643 #reset-cells = <0>;
644 compatible = "allwinner,sun4i-a10-display-clk";
645 reg = <0x01c20108 0x4>;
646 clocks = <&pll3>, <&pll7>, <&pll5 1>;
647 clock-output-names = "de-be1";
648 };
649
650 de_fe0_clk: clk@01c2010c {
651 #clock-cells = <0>;
652 #reset-cells = <0>;
653 compatible = "allwinner,sun4i-a10-display-clk";
654 reg = <0x01c2010c 0x4>;
655 clocks = <&pll3>, <&pll7>, <&pll5 1>;
656 clock-output-names = "de-fe0";
657 };
658
659 de_fe1_clk: clk@01c20110 {
660 #clock-cells = <0>;
661 #reset-cells = <0>;
662 compatible = "allwinner,sun4i-a10-display-clk";
663 reg = <0x01c20110 0x4>;
664 clocks = <&pll3>, <&pll7>, <&pll5 1>;
665 clock-output-names = "de-fe1";
666 };
667
668 tcon0_ch0_clk: clk@01c20118 {
669 #clock-cells = <0>;
670 #reset-cells = <1>;
671 compatible = "allwinner,sun4i-a10-tcon-ch0-clk";
672 reg = <0x01c20118 0x4>;
673 clocks = <&pll3>, <&pll7>, <&pll3x2>, <&pll7x2>;
674 clock-output-names = "tcon0-ch0-sclk";
675
676 };
677
678 tcon1_ch0_clk: clk@01c2011c {
679 #clock-cells = <0>;
680 #reset-cells = <1>;
681 compatible = "allwinner,sun4i-a10-tcon-ch1-clk";
682 reg = <0x01c2011c 0x4>;
683 clocks = <&pll3>, <&pll7>, <&pll3x2>, <&pll7x2>;
684 clock-output-names = "tcon1-ch0-sclk";
685
686 };
687
688 tcon0_ch1_clk: clk@01c2012c {
689 #clock-cells = <0>;
690 compatible = "allwinner,sun4i-a10-tcon-ch0-clk";
691 reg = <0x01c2012c 0x4>;
692 clocks = <&pll3>, <&pll7>, <&pll3x2>, <&pll7x2>;
693 clock-output-names = "tcon0-ch1-sclk";
694
695 };
696
697 tcon1_ch1_clk: clk@01c20130 {
698 #clock-cells = <0>;
699 compatible = "allwinner,sun4i-a10-tcon-ch1-clk";
700 reg = <0x01c20130 0x4>;
701 clocks = <&pll3>, <&pll7>, <&pll3x2>, <&pll7x2>;
702 clock-output-names = "tcon1-ch1-sclk";
703
704 };
705
Chen-Yu Tsaif0571ab2015-12-05 21:16:47 +0800706 ve_clk: clk@01c2013c {
707 #clock-cells = <0>;
708 #reset-cells = <0>;
709 compatible = "allwinner,sun4i-a10-ve-clk";
710 reg = <0x01c2013c 0x4>;
711 clocks = <&pll4>;
712 clock-output-names = "ve";
713 };
714
Maxime Riparddbe4dd12015-10-12 22:28:46 +0200715 codec_clk: clk@01c20140 {
716 #clock-cells = <0>;
717 compatible = "allwinner,sun4i-a10-codec-clk";
718 reg = <0x01c20140 0x4>;
719 clocks = <&pll2 SUN4I_A10_PLL2_1X>;
720 clock-output-names = "codec";
721 };
722
Emilio López118c07a2013-12-23 00:32:44 -0300723 mbus_clk: clk@01c2015c {
724 #clock-cells = <0>;
Maxime Ripard7868c5e2014-07-16 23:45:48 +0200725 compatible = "allwinner,sun5i-a13-mbus-clk";
Emilio López118c07a2013-12-23 00:32:44 -0300726 reg = <0x01c2015c 0x4>;
727 clocks = <&osc24M>, <&pll6 2>, <&pll5 1>;
728 clock-output-names = "mbus";
729 };
Chen-Yu Tsai0aff0372014-01-01 10:30:48 +0800730
731 /*
Maxime Ripardd8cacaa2015-05-03 11:53:07 +0200732 * The following two are dummy clocks, placeholders
733 * used in the gmac_tx clock. The gmac driver will
734 * choose one parent depending on the PHY interface
735 * mode, using clk_set_rate auto-reparenting.
736 *
737 * The actual TX clock rate is not controlled by the
738 * gmac_tx clock.
Chen-Yu Tsaidaed5a82014-02-10 18:35:48 +0800739 */
740 mii_phy_tx_clk: clk@2 {
741 #clock-cells = <0>;
742 compatible = "fixed-clock";
743 clock-frequency = <25000000>;
744 clock-output-names = "mii_phy_tx";
745 };
746
747 gmac_int_tx_clk: clk@3 {
748 #clock-cells = <0>;
749 compatible = "fixed-clock";
750 clock-frequency = <125000000>;
751 clock-output-names = "gmac_int_tx";
752 };
753
754 gmac_tx_clk: clk@01c20164 {
755 #clock-cells = <0>;
756 compatible = "allwinner,sun7i-a20-gmac-clk";
757 reg = <0x01c20164 0x4>;
758 clocks = <&mii_phy_tx_clk>, <&gmac_int_tx_clk>;
759 clock-output-names = "gmac_tx";
760 };
761
762 /*
Chen-Yu Tsai0aff0372014-01-01 10:30:48 +0800763 * Dummy clock used by output clocks
764 */
765 osc24M_32k: clk@1 {
766 #clock-cells = <0>;
767 compatible = "fixed-factor-clock";
768 clock-div = <750>;
769 clock-mult = <1>;
770 clocks = <&osc24M>;
771 clock-output-names = "osc24M_32k";
772 };
773
774 clk_out_a: clk@01c201f0 {
775 #clock-cells = <0>;
776 compatible = "allwinner,sun7i-a20-out-clk";
777 reg = <0x01c201f0 0x4>;
778 clocks = <&osc24M_32k>, <&osc32k>, <&osc24M>;
779 clock-output-names = "clk_out_a";
780 };
781
782 clk_out_b: clk@01c201f4 {
783 #clock-cells = <0>;
784 compatible = "allwinner,sun7i-a20-out-clk";
785 reg = <0x01c201f4 0x4>;
786 clocks = <&osc24M_32k>, <&osc32k>, <&osc24M>;
787 clock-output-names = "clk_out_b";
788 };
Maxime Ripard4790ecf2013-07-17 10:07:10 +0200789 };
790
791 soc@01c00000 {
792 compatible = "simple-bus";
793 #address-cells = <1>;
794 #size-cells = <1>;
795 ranges;
796
Maxime Ripard0eb14a82015-03-26 15:53:44 +0100797 sram-controller@01c00000 {
798 compatible = "allwinner,sun4i-a10-sram-controller";
799 reg = <0x01c00000 0x30>;
800 #address-cells = <1>;
801 #size-cells = <1>;
802 ranges;
803
804 sram_a: sram@00000000 {
805 compatible = "mmio-sram";
806 reg = <0x00000000 0xc000>;
807 #address-cells = <1>;
808 #size-cells = <1>;
809 ranges = <0 0x00000000 0xc000>;
810
811 emac_sram: sram-section@8000 {
812 compatible = "allwinner,sun4i-a10-sram-a3-a4";
813 reg = <0x8000 0x4000>;
814 status = "disabled";
815 };
816 };
817
818 sram_d: sram@00010000 {
819 compatible = "mmio-sram";
820 reg = <0x00010000 0x1000>;
821 #address-cells = <1>;
822 #size-cells = <1>;
823 ranges = <0 0x00010000 0x1000>;
824
825 otg_sram: sram-section@0000 {
826 compatible = "allwinner,sun4i-a10-sram-d";
827 reg = <0x0000 0x1000>;
828 status = "disabled";
829 };
830 };
831 };
832
Carlo Caione8ff973a2014-03-19 20:21:18 +0100833 nmi_intc: interrupt-controller@01c00030 {
834 compatible = "allwinner,sun7i-a20-sc-nmi";
835 interrupt-controller;
836 #interrupt-cells = <2>;
837 reg = <0x01c00030 0x0c>;
Maxime Ripard19882b82014-12-16 22:59:58 +0100838 interrupts = <GIC_SPI 0 IRQ_TYPE_LEVEL_HIGH>;
Carlo Caione8ff973a2014-03-19 20:21:18 +0100839 };
840
Emilio López316e0b02014-08-04 17:09:59 -0300841 dma: dma-controller@01c02000 {
842 compatible = "allwinner,sun4i-a10-dma";
843 reg = <0x01c02000 0x1000>;
Maxime Ripard19882b82014-12-16 22:59:58 +0100844 interrupts = <GIC_SPI 27 IRQ_TYPE_LEVEL_HIGH>;
Emilio López316e0b02014-08-04 17:09:59 -0300845 clocks = <&ahb_gates 6>;
846 #dma-cells = <2>;
847 };
848
Boris Brezillonb2a83ad2016-06-14 14:17:38 +0300849 nfc: nand@01c03000 {
850 compatible = "allwinner,sun4i-a10-nand";
851 reg = <0x01c03000 0x1000>;
852 interrupts = <GIC_SPI 37 IRQ_TYPE_LEVEL_HIGH>;
853 clocks = <&ahb_gates 13>, <&nand_clk>;
854 clock-names = "ahb", "mod";
855 dmas = <&dma SUN4I_DMA_DEDICATED 3>;
856 dma-names = "rxtx";
857 status = "disabled";
858 #address-cells = <1>;
859 #size-cells = <0>;
860 };
861
Maxime Ripard36ab3e72014-02-22 22:35:54 +0100862 spi0: spi@01c05000 {
863 compatible = "allwinner,sun4i-a10-spi";
864 reg = <0x01c05000 0x1000>;
Maxime Ripard19882b82014-12-16 22:59:58 +0100865 interrupts = <GIC_SPI 10 IRQ_TYPE_LEVEL_HIGH>;
Maxime Ripard36ab3e72014-02-22 22:35:54 +0100866 clocks = <&ahb_gates 20>, <&spi0_clk>;
867 clock-names = "ahb", "mod";
Maxime Ripard1f9f6a72014-12-16 22:59:56 +0100868 dmas = <&dma SUN4I_DMA_DEDICATED 27>,
869 <&dma SUN4I_DMA_DEDICATED 26>;
Emilio Lópezffec7212014-08-04 17:10:02 -0300870 dma-names = "rx", "tx";
Maxime Ripard36ab3e72014-02-22 22:35:54 +0100871 status = "disabled";
872 #address-cells = <1>;
873 #size-cells = <0>;
874 };
875
876 spi1: spi@01c06000 {
877 compatible = "allwinner,sun4i-a10-spi";
878 reg = <0x01c06000 0x1000>;
Maxime Ripard19882b82014-12-16 22:59:58 +0100879 interrupts = <GIC_SPI 11 IRQ_TYPE_LEVEL_HIGH>;
Maxime Ripard36ab3e72014-02-22 22:35:54 +0100880 clocks = <&ahb_gates 21>, <&spi1_clk>;
881 clock-names = "ahb", "mod";
Maxime Ripard1f9f6a72014-12-16 22:59:56 +0100882 dmas = <&dma SUN4I_DMA_DEDICATED 9>,
883 <&dma SUN4I_DMA_DEDICATED 8>;
Emilio Lópezffec7212014-08-04 17:10:02 -0300884 dma-names = "rx", "tx";
Maxime Ripard36ab3e72014-02-22 22:35:54 +0100885 status = "disabled";
886 #address-cells = <1>;
887 #size-cells = <0>;
888 };
889
Maxime Ripard2e804d02013-09-11 11:10:06 +0200890 emac: ethernet@01c0b000 {
Maxime Ripard1c70e092014-02-02 14:49:13 +0100891 compatible = "allwinner,sun4i-a10-emac";
Maxime Ripard2e804d02013-09-11 11:10:06 +0200892 reg = <0x01c0b000 0x1000>;
Maxime Ripard19882b82014-12-16 22:59:58 +0100893 interrupts = <GIC_SPI 55 IRQ_TYPE_LEVEL_HIGH>;
Maxime Ripard2e804d02013-09-11 11:10:06 +0200894 clocks = <&ahb_gates 17>;
Maxime Ripard0eb14a82015-03-26 15:53:44 +0100895 allwinner,sram = <&emac_sram 1>;
Maxime Ripard2e804d02013-09-11 11:10:06 +0200896 status = "disabled";
897 };
898
Aleksei Mamlin92395f52015-01-19 22:35:22 +0300899 mdio: mdio@01c0b080 {
Maxime Ripard1c70e092014-02-02 14:49:13 +0100900 compatible = "allwinner,sun4i-a10-mdio";
Maxime Ripard2e804d02013-09-11 11:10:06 +0200901 reg = <0x01c0b080 0x14>;
902 status = "disabled";
903 #address-cells = <1>;
904 #size-cells = <0>;
905 };
906
Hans de Goededd29ce52014-05-02 17:57:26 +0200907 mmc0: mmc@01c0f000 {
Hans de Goede57af7112016-07-30 16:25:48 +0200908 compatible = "allwinner,sun7i-a20-mmc";
Hans de Goededd29ce52014-05-02 17:57:26 +0200909 reg = <0x01c0f000 0x1000>;
Maxime Ripardd8c3a392014-07-11 19:39:06 +0200910 clocks = <&ahb_gates 8>,
911 <&mmc0_clk 0>,
912 <&mmc0_clk 1>,
913 <&mmc0_clk 2>;
914 clock-names = "ahb",
915 "mmc",
916 "output",
917 "sample";
Maxime Ripard19882b82014-12-16 22:59:58 +0100918 interrupts = <GIC_SPI 32 IRQ_TYPE_LEVEL_HIGH>;
Hans de Goededd29ce52014-05-02 17:57:26 +0200919 status = "disabled";
Hans de Goede4c1bb9c2015-03-10 16:27:09 +0100920 #address-cells = <1>;
921 #size-cells = <0>;
Hans de Goededd29ce52014-05-02 17:57:26 +0200922 };
923
924 mmc1: mmc@01c10000 {
Hans de Goede57af7112016-07-30 16:25:48 +0200925 compatible = "allwinner,sun7i-a20-mmc";
Hans de Goededd29ce52014-05-02 17:57:26 +0200926 reg = <0x01c10000 0x1000>;
Maxime Ripardd8c3a392014-07-11 19:39:06 +0200927 clocks = <&ahb_gates 9>,
928 <&mmc1_clk 0>,
929 <&mmc1_clk 1>,
930 <&mmc1_clk 2>;
931 clock-names = "ahb",
932 "mmc",
933 "output",
934 "sample";
Maxime Ripard19882b82014-12-16 22:59:58 +0100935 interrupts = <GIC_SPI 33 IRQ_TYPE_LEVEL_HIGH>;
Hans de Goededd29ce52014-05-02 17:57:26 +0200936 status = "disabled";
Hans de Goede4c1bb9c2015-03-10 16:27:09 +0100937 #address-cells = <1>;
938 #size-cells = <0>;
Hans de Goededd29ce52014-05-02 17:57:26 +0200939 };
940
941 mmc2: mmc@01c11000 {
Hans de Goede57af7112016-07-30 16:25:48 +0200942 compatible = "allwinner,sun7i-a20-mmc";
Hans de Goededd29ce52014-05-02 17:57:26 +0200943 reg = <0x01c11000 0x1000>;
Maxime Ripardd8c3a392014-07-11 19:39:06 +0200944 clocks = <&ahb_gates 10>,
945 <&mmc2_clk 0>,
946 <&mmc2_clk 1>,
947 <&mmc2_clk 2>;
948 clock-names = "ahb",
949 "mmc",
950 "output",
951 "sample";
Maxime Ripard19882b82014-12-16 22:59:58 +0100952 interrupts = <GIC_SPI 34 IRQ_TYPE_LEVEL_HIGH>;
Hans de Goededd29ce52014-05-02 17:57:26 +0200953 status = "disabled";
Hans de Goede4c1bb9c2015-03-10 16:27:09 +0100954 #address-cells = <1>;
955 #size-cells = <0>;
Hans de Goededd29ce52014-05-02 17:57:26 +0200956 };
957
958 mmc3: mmc@01c12000 {
Hans de Goede57af7112016-07-30 16:25:48 +0200959 compatible = "allwinner,sun7i-a20-mmc";
Hans de Goededd29ce52014-05-02 17:57:26 +0200960 reg = <0x01c12000 0x1000>;
Maxime Ripardd8c3a392014-07-11 19:39:06 +0200961 clocks = <&ahb_gates 11>,
962 <&mmc3_clk 0>,
963 <&mmc3_clk 1>,
964 <&mmc3_clk 2>;
965 clock-names = "ahb",
966 "mmc",
967 "output",
968 "sample";
Maxime Ripard19882b82014-12-16 22:59:58 +0100969 interrupts = <GIC_SPI 35 IRQ_TYPE_LEVEL_HIGH>;
Hans de Goededd29ce52014-05-02 17:57:26 +0200970 status = "disabled";
Hans de Goede4c1bb9c2015-03-10 16:27:09 +0100971 #address-cells = <1>;
972 #size-cells = <0>;
Hans de Goededd29ce52014-05-02 17:57:26 +0200973 };
974
Roman Byshkocbb3ff12014-10-22 00:14:03 +0200975 usb_otg: usb@01c13000 {
976 compatible = "allwinner,sun4i-a10-musb";
977 reg = <0x01c13000 0x0400>;
978 clocks = <&ahb_gates 0>;
979 interrupts = <GIC_SPI 38 IRQ_TYPE_LEVEL_HIGH>;
980 interrupt-names = "mc";
981 phys = <&usbphy 0>;
982 phy-names = "usb";
983 extcon = <&usbphy 0>;
984 allwinner,sram = <&otg_sram 1>;
985 status = "disabled";
986 };
987
Roman Byshko9debd0a2014-03-01 20:26:25 +0100988 usbphy: phy@01c13400 {
989 #phy-cells = <1>;
990 compatible = "allwinner,sun7i-a20-usb-phy";
991 reg = <0x01c13400 0x10 0x01c14800 0x4 0x01c1c800 0x4>;
992 reg-names = "phy_ctrl", "pmu1", "pmu2";
993 clocks = <&usb_clk 8>;
994 clock-names = "usb_phy";
Roman Byshko134c60a2014-11-10 19:55:08 +0100995 resets = <&usb_clk 0>, <&usb_clk 1>, <&usb_clk 2>;
996 reset-names = "usb0_reset", "usb1_reset", "usb2_reset";
Roman Byshko9debd0a2014-03-01 20:26:25 +0100997 status = "disabled";
998 };
999
1000 ehci0: usb@01c14000 {
1001 compatible = "allwinner,sun7i-a20-ehci", "generic-ehci";
1002 reg = <0x01c14000 0x100>;
Maxime Ripard19882b82014-12-16 22:59:58 +01001003 interrupts = <GIC_SPI 39 IRQ_TYPE_LEVEL_HIGH>;
Roman Byshko9debd0a2014-03-01 20:26:25 +01001004 clocks = <&ahb_gates 1>;
1005 phys = <&usbphy 1>;
1006 phy-names = "usb";
1007 status = "disabled";
1008 };
1009
1010 ohci0: usb@01c14400 {
1011 compatible = "allwinner,sun7i-a20-ohci", "generic-ohci";
1012 reg = <0x01c14400 0x100>;
Maxime Ripard19882b82014-12-16 22:59:58 +01001013 interrupts = <GIC_SPI 64 IRQ_TYPE_LEVEL_HIGH>;
Roman Byshko9debd0a2014-03-01 20:26:25 +01001014 clocks = <&usb_clk 6>, <&ahb_gates 2>;
1015 phys = <&usbphy 1>;
1016 phy-names = "usb";
1017 status = "disabled";
1018 };
1019
LABBE Corentin110d4e22015-07-17 16:39:39 +02001020 crypto: crypto-engine@01c15000 {
1021 compatible = "allwinner,sun4i-a10-crypto";
1022 reg = <0x01c15000 0x1000>;
1023 interrupts = <GIC_SPI 86 IRQ_TYPE_LEVEL_HIGH>;
1024 clocks = <&ahb_gates 5>, <&ss_clk>;
1025 clock-names = "ahb", "mod";
1026 };
1027
Maxime Ripard36ab3e72014-02-22 22:35:54 +01001028 spi2: spi@01c17000 {
1029 compatible = "allwinner,sun4i-a10-spi";
1030 reg = <0x01c17000 0x1000>;
Maxime Ripard19882b82014-12-16 22:59:58 +01001031 interrupts = <GIC_SPI 12 IRQ_TYPE_LEVEL_HIGH>;
Maxime Ripard36ab3e72014-02-22 22:35:54 +01001032 clocks = <&ahb_gates 22>, <&spi2_clk>;
1033 clock-names = "ahb", "mod";
Maxime Ripard1f9f6a72014-12-16 22:59:56 +01001034 dmas = <&dma SUN4I_DMA_DEDICATED 29>,
1035 <&dma SUN4I_DMA_DEDICATED 28>;
Emilio Lópezffec7212014-08-04 17:10:02 -03001036 dma-names = "rx", "tx";
Maxime Ripard36ab3e72014-02-22 22:35:54 +01001037 status = "disabled";
1038 #address-cells = <1>;
1039 #size-cells = <0>;
1040 };
1041
Hans de Goede902febf2014-03-01 20:26:22 +01001042 ahci: sata@01c18000 {
1043 compatible = "allwinner,sun4i-a10-ahci";
1044 reg = <0x01c18000 0x1000>;
Maxime Ripard19882b82014-12-16 22:59:58 +01001045 interrupts = <GIC_SPI 56 IRQ_TYPE_LEVEL_HIGH>;
Hans de Goede902febf2014-03-01 20:26:22 +01001046 clocks = <&pll6 0>, <&ahb_gates 25>;
1047 status = "disabled";
1048 };
1049
Roman Byshko9debd0a2014-03-01 20:26:25 +01001050 ehci1: usb@01c1c000 {
1051 compatible = "allwinner,sun7i-a20-ehci", "generic-ehci";
1052 reg = <0x01c1c000 0x100>;
Maxime Ripard19882b82014-12-16 22:59:58 +01001053 interrupts = <GIC_SPI 40 IRQ_TYPE_LEVEL_HIGH>;
Roman Byshko9debd0a2014-03-01 20:26:25 +01001054 clocks = <&ahb_gates 3>;
1055 phys = <&usbphy 2>;
1056 phy-names = "usb";
1057 status = "disabled";
1058 };
1059
1060 ohci1: usb@01c1c400 {
1061 compatible = "allwinner,sun7i-a20-ohci", "generic-ohci";
1062 reg = <0x01c1c400 0x100>;
Maxime Ripard19882b82014-12-16 22:59:58 +01001063 interrupts = <GIC_SPI 65 IRQ_TYPE_LEVEL_HIGH>;
Roman Byshko9debd0a2014-03-01 20:26:25 +01001064 clocks = <&usb_clk 7>, <&ahb_gates 4>;
1065 phys = <&usbphy 2>;
1066 phy-names = "usb";
1067 status = "disabled";
1068 };
1069
Maxime Ripard36ab3e72014-02-22 22:35:54 +01001070 spi3: spi@01c1f000 {
1071 compatible = "allwinner,sun4i-a10-spi";
1072 reg = <0x01c1f000 0x1000>;
Maxime Ripard19882b82014-12-16 22:59:58 +01001073 interrupts = <GIC_SPI 50 IRQ_TYPE_LEVEL_HIGH>;
Maxime Ripard36ab3e72014-02-22 22:35:54 +01001074 clocks = <&ahb_gates 23>, <&spi3_clk>;
1075 clock-names = "ahb", "mod";
Maxime Ripard1f9f6a72014-12-16 22:59:56 +01001076 dmas = <&dma SUN4I_DMA_DEDICATED 31>,
1077 <&dma SUN4I_DMA_DEDICATED 30>;
Emilio Lópezffec7212014-08-04 17:10:02 -03001078 dma-names = "rx", "tx";
Maxime Ripard36ab3e72014-02-22 22:35:54 +01001079 status = "disabled";
1080 #address-cells = <1>;
1081 #size-cells = <0>;
1082 };
1083
Maxime Ripard17eac032013-07-24 23:46:11 +02001084 pio: pinctrl@01c20800 {
1085 compatible = "allwinner,sun7i-a20-pinctrl";
1086 reg = <0x01c20800 0x400>;
Maxime Ripard19882b82014-12-16 22:59:58 +01001087 interrupts = <GIC_SPI 28 IRQ_TYPE_LEVEL_HIGH>;
Maxime Ripardde7dc932013-07-25 21:12:52 +02001088 clocks = <&apb0_gates 5>;
Maxime Ripard17eac032013-07-24 23:46:11 +02001089 gpio-controller;
1090 interrupt-controller;
Maxime Ripardb03e0812015-06-17 11:44:24 +02001091 #interrupt-cells = <3>;
Maxime Ripard17eac032013-07-24 23:46:11 +02001092 #gpio-cells = <3>;
Maxime Ripard9f229ba2013-07-25 00:09:47 +02001093
Aleksei Mamlind130f2e2016-06-10 11:05:19 +03001094 clk_out_a_pins_a: clk_out_a@0 {
1095 allwinner,pins = "PI12";
1096 allwinner,function = "clk_out_a";
Maxime Ripard092a0c32014-12-16 22:59:57 +01001097 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
1098 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Alexandre Bellonifd7898a2014-04-28 18:17:12 +02001099 };
1100
Aleksei Mamlind130f2e2016-06-10 11:05:19 +03001101 clk_out_b_pins_a: clk_out_b@0 {
1102 allwinner,pins = "PI13";
1103 allwinner,function = "clk_out_b";
Maxime Ripard092a0c32014-12-16 22:59:57 +01001104 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
1105 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Alexandre Bellonifd7898a2014-04-28 18:17:12 +02001106 };
1107
Aleksei Mamlind130f2e2016-06-10 11:05:19 +03001108 emac_pins_a: emac0@0 {
1109 allwinner,pins = "PA0", "PA1", "PA2",
1110 "PA3", "PA4", "PA5", "PA6",
1111 "PA7", "PA8", "PA9", "PA10",
1112 "PA11", "PA12", "PA13", "PA14",
1113 "PA15", "PA16";
1114 allwinner,function = "emac";
Maxime Ripard092a0c32014-12-16 22:59:57 +01001115 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
1116 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Maxime Ripard9f229ba2013-07-25 00:09:47 +02001117 };
1118
Aleksei Mamlind130f2e2016-06-10 11:05:19 +03001119 gmac_pins_mii_a: gmac_mii@0 {
1120 allwinner,pins = "PA0", "PA1", "PA2",
1121 "PA3", "PA4", "PA5", "PA6",
1122 "PA7", "PA8", "PA9", "PA10",
1123 "PA11", "PA12", "PA13", "PA14",
1124 "PA15", "PA16";
1125 allwinner,function = "gmac";
Maxime Ripard092a0c32014-12-16 22:59:57 +01001126 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
1127 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Chen-Yu Tsai4261ec42014-01-14 22:49:50 +08001128 };
1129
Aleksei Mamlind130f2e2016-06-10 11:05:19 +03001130 gmac_pins_rgmii_a: gmac_rgmii@0 {
1131 allwinner,pins = "PA0", "PA1", "PA2",
1132 "PA3", "PA4", "PA5", "PA6",
1133 "PA7", "PA8", "PA10",
1134 "PA11", "PA12", "PA13",
1135 "PA15", "PA16";
1136 allwinner,function = "gmac";
1137 /*
1138 * data lines in RGMII mode use DDR mode
1139 * and need a higher signal drive strength
1140 */
1141 allwinner,drive = <SUN4I_PINCTRL_40_MA>;
Maxime Ripard092a0c32014-12-16 22:59:57 +01001142 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Maxime Ripard9f229ba2013-07-25 00:09:47 +02001143 };
Maxime Ripard756084c2013-09-11 11:10:07 +02001144
Maxime Riparde5496a32013-08-31 23:08:49 +02001145 i2c0_pins_a: i2c0@0 {
1146 allwinner,pins = "PB0", "PB1";
1147 allwinner,function = "i2c0";
Maxime Ripard092a0c32014-12-16 22:59:57 +01001148 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
1149 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Maxime Riparde5496a32013-08-31 23:08:49 +02001150 };
1151
1152 i2c1_pins_a: i2c1@0 {
1153 allwinner,pins = "PB18", "PB19";
1154 allwinner,function = "i2c1";
Maxime Ripard092a0c32014-12-16 22:59:57 +01001155 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
1156 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Maxime Riparde5496a32013-08-31 23:08:49 +02001157 };
1158
1159 i2c2_pins_a: i2c2@0 {
1160 allwinner,pins = "PB20", "PB21";
1161 allwinner,function = "i2c2";
Maxime Ripard092a0c32014-12-16 22:59:57 +01001162 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
1163 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Maxime Riparde5496a32013-08-31 23:08:49 +02001164 };
1165
Wills Wang7b5bace2014-08-19 15:33:00 +08001166 i2c3_pins_a: i2c3@0 {
1167 allwinner,pins = "PI0", "PI1";
1168 allwinner,function = "i2c3";
Maxime Ripard092a0c32014-12-16 22:59:57 +01001169 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
1170 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Wills Wang7b5bace2014-08-19 15:33:00 +08001171 };
1172
Aleksei Mamlind130f2e2016-06-10 11:05:19 +03001173 ir0_rx_pins_a: ir0@0 {
1174 allwinner,pins = "PB4";
1175 allwinner,function = "ir0";
1176 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
1177 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
1178 };
1179
1180 ir0_tx_pins_a: ir0@1 {
1181 allwinner,pins = "PB3";
1182 allwinner,function = "ir0";
1183 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
1184 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
1185 };
1186
1187 ir1_rx_pins_a: ir1@0 {
1188 allwinner,pins = "PB23";
1189 allwinner,function = "ir1";
1190 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
1191 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
1192 };
1193
1194 ir1_tx_pins_a: ir1@1 {
1195 allwinner,pins = "PB22";
1196 allwinner,function = "ir1";
1197 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
1198 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
1199 };
1200
1201 mmc0_pins_a: mmc0@0 {
1202 allwinner,pins = "PF0", "PF1", "PF2",
1203 "PF3", "PF4", "PF5";
1204 allwinner,function = "mmc0";
1205 allwinner,drive = <SUN4I_PINCTRL_30_MA>;
1206 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
1207 };
1208
1209 mmc0_cd_pin_reference_design: mmc0_cd_pin@0 {
1210 allwinner,pins = "PH1";
1211 allwinner,function = "gpio_in";
1212 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
1213 allwinner,pull = <SUN4I_PINCTRL_PULL_UP>;
1214 };
1215
1216 mmc2_pins_a: mmc2@0 {
1217 allwinner,pins = "PC6", "PC7", "PC8",
1218 "PC9", "PC10", "PC11";
1219 allwinner,function = "mmc2";
1220 allwinner,drive = <SUN4I_PINCTRL_30_MA>;
1221 allwinner,pull = <SUN4I_PINCTRL_PULL_UP>;
1222 };
1223
1224 mmc3_pins_a: mmc3@0 {
1225 allwinner,pins = "PI4", "PI5", "PI6",
1226 "PI7", "PI8", "PI9";
1227 allwinner,function = "mmc3";
1228 allwinner,drive = <SUN4I_PINCTRL_30_MA>;
1229 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
1230 };
1231
1232 ps20_pins_a: ps20@0 {
1233 allwinner,pins = "PI20", "PI21";
1234 allwinner,function = "ps2";
Maxime Ripard092a0c32014-12-16 22:59:57 +01001235 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
1236 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Maxime Ripard756084c2013-09-11 11:10:07 +02001237 };
Chen-Yu Tsaif2e07592014-01-01 10:30:50 +08001238
Aleksei Mamlind130f2e2016-06-10 11:05:19 +03001239 ps21_pins_a: ps21@0 {
1240 allwinner,pins = "PH12", "PH13";
1241 allwinner,function = "ps2";
Maxime Ripard092a0c32014-12-16 22:59:57 +01001242 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
1243 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Chen-Yu Tsaif2e07592014-01-01 10:30:50 +08001244 };
1245
Aleksei Mamlind130f2e2016-06-10 11:05:19 +03001246 pwm0_pins_a: pwm0@0 {
1247 allwinner,pins = "PB2";
1248 allwinner,function = "pwm";
Maxime Ripard092a0c32014-12-16 22:59:57 +01001249 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
1250 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Chen-Yu Tsaif2e07592014-01-01 10:30:50 +08001251 };
Chen-Yu Tsai129ccbc2014-02-10 18:35:50 +08001252
Aleksei Mamlind130f2e2016-06-10 11:05:19 +03001253 pwm1_pins_a: pwm1@0 {
1254 allwinner,pins = "PI3";
1255 allwinner,function = "pwm";
Maxime Ripard092a0c32014-12-16 22:59:57 +01001256 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
1257 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Chen-Yu Tsai129ccbc2014-02-10 18:35:50 +08001258 };
1259
Aleksei Mamlind130f2e2016-06-10 11:05:19 +03001260 spdif_tx_pins_a: spdif@0 {
1261 allwinner,pins = "PB13";
1262 allwinner,function = "spdif";
1263 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
1264 allwinner,pull = <SUN4I_PINCTRL_PULL_UP>;
Chen-Yu Tsai129ccbc2014-02-10 18:35:50 +08001265 };
Maxime Ripard412f2c62014-02-22 22:35:58 +01001266
Hans de Goede2dad53b2014-10-01 09:26:04 +02001267 spi0_pins_a: spi0@0 {
Maxime Ripardf3022c62015-05-03 09:25:41 +02001268 allwinner,pins = "PI11", "PI12", "PI13";
1269 allwinner,function = "spi0";
1270 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
1271 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
1272 };
1273
1274 spi0_cs0_pins_a: spi0_cs0@0 {
1275 allwinner,pins = "PI10";
1276 allwinner,function = "spi0";
1277 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
1278 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
1279 };
1280
1281 spi0_cs1_pins_a: spi0_cs1@0 {
1282 allwinner,pins = "PI14";
Hans de Goede2dad53b2014-10-01 09:26:04 +02001283 allwinner,function = "spi0";
Maxime Ripard092a0c32014-12-16 22:59:57 +01001284 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
1285 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Hans de Goede2dad53b2014-10-01 09:26:04 +02001286 };
1287
Maxime Ripard412f2c62014-02-22 22:35:58 +01001288 spi1_pins_a: spi1@0 {
Maxime Ripardf3022c62015-05-03 09:25:41 +02001289 allwinner,pins = "PI17", "PI18", "PI19";
1290 allwinner,function = "spi1";
1291 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
1292 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
1293 };
1294
1295 spi1_cs0_pins_a: spi1_cs0@0 {
1296 allwinner,pins = "PI16";
Maxime Ripard412f2c62014-02-22 22:35:58 +01001297 allwinner,function = "spi1";
Maxime Ripard092a0c32014-12-16 22:59:57 +01001298 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
1299 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Maxime Ripard412f2c62014-02-22 22:35:58 +01001300 };
1301
1302 spi2_pins_a: spi2@0 {
Maxime Ripardf3022c62015-05-03 09:25:41 +02001303 allwinner,pins = "PC20", "PC21", "PC22";
Maxime Ripard412f2c62014-02-22 22:35:58 +01001304 allwinner,function = "spi2";
Maxime Ripard092a0c32014-12-16 22:59:57 +01001305 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
1306 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Maxime Ripard412f2c62014-02-22 22:35:58 +01001307 };
Hans de Goede11fbedf2014-05-02 17:57:27 +02001308
Wills Wang7b5bace2014-08-19 15:33:00 +08001309 spi2_pins_b: spi2@1 {
Maxime Ripardf3022c62015-05-03 09:25:41 +02001310 allwinner,pins = "PB15", "PB16", "PB17";
1311 allwinner,function = "spi2";
1312 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
1313 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
1314 };
1315
1316 spi2_cs0_pins_a: spi2_cs0@0 {
1317 allwinner,pins = "PC19";
1318 allwinner,function = "spi2";
1319 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
1320 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
1321 };
1322
1323 spi2_cs0_pins_b: spi2_cs0@1 {
1324 allwinner,pins = "PB14";
Wills Wang7b5bace2014-08-19 15:33:00 +08001325 allwinner,function = "spi2";
Maxime Ripard092a0c32014-12-16 22:59:57 +01001326 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
1327 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Wills Wang7b5bace2014-08-19 15:33:00 +08001328 };
1329
Aleksei Mamlind130f2e2016-06-10 11:05:19 +03001330 uart0_pins_a: uart0@0 {
1331 allwinner,pins = "PB22", "PB23";
1332 allwinner,function = "uart0";
Maxime Ripard092a0c32014-12-16 22:59:57 +01001333 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
Maxime Ripard092a0c32014-12-16 22:59:57 +01001334 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Hans de Goede11fbedf2014-05-02 17:57:27 +02001335 };
Alexander Bersenev0fc2b7a2014-06-09 00:08:11 +06001336
Aleksei Mamlind130f2e2016-06-10 11:05:19 +03001337 uart2_pins_a: uart2@0 {
1338 allwinner,pins = "PI16", "PI17", "PI18", "PI19";
1339 allwinner,function = "uart2";
1340 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
1341 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Alexander Bersenev0fc2b7a2014-06-09 00:08:11 +06001342 };
1343
Aleksei Mamlind130f2e2016-06-10 11:05:19 +03001344 uart3_pins_a: uart3@0 {
1345 allwinner,pins = "PG6", "PG7", "PG8", "PG9";
1346 allwinner,function = "uart3";
1347 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
1348 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Marcus Cooper469a22e2015-05-02 13:36:20 +02001349 };
1350
Aleksei Mamlind130f2e2016-06-10 11:05:19 +03001351 uart3_pins_b: uart3@1 {
1352 allwinner,pins = "PH0", "PH1";
1353 allwinner,function = "uart3";
1354 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
1355 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Marcus Cooper469a22e2015-05-02 13:36:20 +02001356 };
1357
Aleksei Mamlind130f2e2016-06-10 11:05:19 +03001358 uart4_pins_a: uart4@0 {
1359 allwinner,pins = "PG10", "PG11";
1360 allwinner,function = "uart4";
1361 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
1362 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Alexander Bersenev0fc2b7a2014-06-09 00:08:11 +06001363 };
Vishnu Patekar1e8d1562015-01-25 19:10:09 +05301364
Aleksei Mamlind130f2e2016-06-10 11:05:19 +03001365 uart4_pins_b: uart4@1 {
1366 allwinner,pins = "PH4", "PH5";
1367 allwinner,function = "uart4";
1368 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
1369 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
1370 };
1371
1372 uart5_pins_a: uart5@0 {
1373 allwinner,pins = "PI10", "PI11";
1374 allwinner,function = "uart5";
1375 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
1376 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
1377 };
1378
1379 uart6_pins_a: uart6@0 {
1380 allwinner,pins = "PI12", "PI13";
1381 allwinner,function = "uart6";
1382 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
1383 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
1384 };
1385
1386 uart7_pins_a: uart7@0 {
Vishnu Patekar1e8d1562015-01-25 19:10:09 +05301387 allwinner,pins = "PI20", "PI21";
Aleksei Mamlind130f2e2016-06-10 11:05:19 +03001388 allwinner,function = "uart7";
Vishnu Patekar1e8d1562015-01-25 19:10:09 +05301389 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
1390 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
1391 };
Maxime Ripard17eac032013-07-24 23:46:11 +02001392 };
1393
Maxime Ripard4790ecf2013-07-17 10:07:10 +02001394 timer@01c20c00 {
Maxime Ripardb4f26442014-02-06 10:40:32 +01001395 compatible = "allwinner,sun4i-a10-timer";
Maxime Ripard4790ecf2013-07-17 10:07:10 +02001396 reg = <0x01c20c00 0x90>;
Maxime Ripard19882b82014-12-16 22:59:58 +01001397 interrupts = <GIC_SPI 22 IRQ_TYPE_LEVEL_HIGH>,
1398 <GIC_SPI 23 IRQ_TYPE_LEVEL_HIGH>,
1399 <GIC_SPI 24 IRQ_TYPE_LEVEL_HIGH>,
1400 <GIC_SPI 25 IRQ_TYPE_LEVEL_HIGH>,
1401 <GIC_SPI 67 IRQ_TYPE_LEVEL_HIGH>,
1402 <GIC_SPI 68 IRQ_TYPE_LEVEL_HIGH>;
Maxime Ripard4790ecf2013-07-17 10:07:10 +02001403 clocks = <&osc24M>;
1404 };
1405
1406 wdt: watchdog@01c20c90 {
Maxime Ripardca5d04d2014-02-07 22:29:26 +01001407 compatible = "allwinner,sun4i-a10-wdt";
Maxime Ripard4790ecf2013-07-17 10:07:10 +02001408 reg = <0x01c20c90 0x10>;
1409 };
1410
Carlo Caioneb5d905c2013-10-16 20:30:26 +02001411 rtc: rtc@01c20d00 {
1412 compatible = "allwinner,sun7i-a20-rtc";
1413 reg = <0x01c20d00 0x20>;
Maxime Ripard19882b82014-12-16 22:59:58 +01001414 interrupts = <GIC_SPI 24 IRQ_TYPE_LEVEL_HIGH>;
Carlo Caioneb5d905c2013-10-16 20:30:26 +02001415 };
1416
Alexandre Belloni8ec40c22014-04-28 18:17:13 +02001417 pwm: pwm@01c20e00 {
1418 compatible = "allwinner,sun7i-a20-pwm";
1419 reg = <0x01c20e00 0xc>;
1420 clocks = <&osc24M>;
1421 #pwm-cells = <3>;
1422 status = "disabled";
1423 };
1424
Marcus Coopera34d6ce2016-03-21 21:01:04 +01001425 spdif: spdif@01c21000 {
1426 #sound-dai-cells = <0>;
1427 compatible = "allwinner,sun4i-a10-spdif";
1428 reg = <0x01c21000 0x400>;
1429 interrupts = <GIC_SPI 13 IRQ_TYPE_LEVEL_HIGH>;
1430 clocks = <&apb0_gates 1>, <&spdif_clk>;
1431 clock-names = "apb", "spdif";
1432 dmas = <&dma SUN4I_DMA_NORMAL 2>,
1433 <&dma SUN4I_DMA_NORMAL 2>;
1434 dma-names = "rx", "tx";
1435 status = "disabled";
1436 };
1437
Alexander Bersenevc1a0ee32014-06-21 17:04:05 +06001438 ir0: ir@01c21800 {
Hans de Goede1715a382014-06-30 23:57:54 +02001439 compatible = "allwinner,sun4i-a10-ir";
Alexander Bersenevc1a0ee32014-06-21 17:04:05 +06001440 clocks = <&apb0_gates 6>, <&ir0_clk>;
1441 clock-names = "apb", "ir";
Maxime Ripard19882b82014-12-16 22:59:58 +01001442 interrupts = <GIC_SPI 5 IRQ_TYPE_LEVEL_HIGH>;
Alexander Bersenevc1a0ee32014-06-21 17:04:05 +06001443 reg = <0x01c21800 0x40>;
1444 status = "disabled";
1445 };
1446
1447 ir1: ir@01c21c00 {
Hans de Goede1715a382014-06-30 23:57:54 +02001448 compatible = "allwinner,sun4i-a10-ir";
Alexander Bersenevc1a0ee32014-06-21 17:04:05 +06001449 clocks = <&apb0_gates 7>, <&ir1_clk>;
1450 clock-names = "apb", "ir";
Maxime Ripard19882b82014-12-16 22:59:58 +01001451 interrupts = <GIC_SPI 6 IRQ_TYPE_LEVEL_HIGH>;
Alexander Bersenevc1a0ee32014-06-21 17:04:05 +06001452 reg = <0x01c21c00 0x40>;
1453 status = "disabled";
1454 };
1455
Maxime Ripard6a706352015-09-19 16:48:00 +02001456 i2s1: i2s@01c22000 {
1457 #sound-dai-cells = <0>;
1458 compatible = "allwinner,sun4i-a10-i2s";
1459 reg = <0x01c22000 0x400>;
1460 interrupts = <GIC_SPI 87 IRQ_TYPE_LEVEL_HIGH>;
1461 clocks = <&apb0_gates 4>, <&i2s1_clk>;
1462 clock-names = "apb", "mod";
1463 dmas = <&dma SUN4I_DMA_NORMAL 4>,
1464 <&dma SUN4I_DMA_NORMAL 4>;
1465 dma-names = "rx", "tx";
1466 status = "disabled";
1467 };
1468
1469 i2s0: i2s@01c22400 {
1470 #sound-dai-cells = <0>;
1471 compatible = "allwinner,sun4i-a10-i2s";
1472 reg = <0x01c22400 0x400>;
1473 interrupts = <GIC_SPI 16 IRQ_TYPE_LEVEL_HIGH>;
1474 clocks = <&apb0_gates 3>, <&i2s0_clk>;
1475 clock-names = "apb", "mod";
1476 dmas = <&dma SUN4I_DMA_NORMAL 3>,
1477 <&dma SUN4I_DMA_NORMAL 3>;
1478 dma-names = "rx", "tx";
1479 status = "disabled";
1480 };
1481
Hans de Goedea6a2d642014-12-23 11:13:22 +01001482 lradc: lradc@01c22800 {
1483 compatible = "allwinner,sun4i-a10-lradc-keys";
1484 reg = <0x01c22800 0x100>;
Maxime Ripard19882b82014-12-16 22:59:58 +01001485 interrupts = <GIC_SPI 31 IRQ_TYPE_LEVEL_HIGH>;
Hans de Goedea6a2d642014-12-23 11:13:22 +01001486 status = "disabled";
1487 };
1488
Emilio Lópezd5ce1072014-08-18 01:07:55 -03001489 codec: codec@01c22c00 {
1490 #sound-dai-cells = <0>;
1491 compatible = "allwinner,sun7i-a20-codec";
1492 reg = <0x01c22c00 0x40>;
1493 interrupts = <GIC_SPI 30 IRQ_TYPE_LEVEL_HIGH>;
1494 clocks = <&apb0_gates 0>, <&codec_clk>;
1495 clock-names = "apb", "codec";
1496 dmas = <&dma SUN4I_DMA_NORMAL 19>,
1497 <&dma SUN4I_DMA_NORMAL 19>;
1498 dma-names = "rx", "tx";
1499 status = "disabled";
1500 };
1501
Oliver Schinagl2bad9692013-09-03 12:33:28 +02001502 sid: eeprom@01c23800 {
1503 compatible = "allwinner,sun7i-a20-sid";
1504 reg = <0x01c23800 0x200>;
1505 };
1506
Maxime Ripard6a706352015-09-19 16:48:00 +02001507 i2s2: i2s@01c24400 {
1508 #sound-dai-cells = <0>;
1509 compatible = "allwinner,sun4i-a10-i2s";
1510 reg = <0x01c24400 0x400>;
1511 interrupts = <GIC_SPI 90 IRQ_TYPE_LEVEL_HIGH>;
1512 clocks = <&apb0_gates 8>, <&i2s2_clk>;
1513 clock-names = "apb", "mod";
1514 dmas = <&dma SUN4I_DMA_NORMAL 6>,
1515 <&dma SUN4I_DMA_NORMAL 6>;
1516 dma-names = "rx", "tx";
1517 status = "disabled";
1518 };
1519
Hans de Goede00f7ed82013-12-31 17:20:52 +01001520 rtp: rtp@01c25000 {
Hans de Goede8bf1b9b2015-03-08 21:53:42 +01001521 compatible = "allwinner,sun5i-a13-ts";
Hans de Goede00f7ed82013-12-31 17:20:52 +01001522 reg = <0x01c25000 0x100>;
Maxime Ripard19882b82014-12-16 22:59:58 +01001523 interrupts = <GIC_SPI 29 IRQ_TYPE_LEVEL_HIGH>;
Chen-Yu Tsai41e7afb2015-01-06 10:35:15 +08001524 #thermal-sensor-cells = <0>;
Hans de Goede00f7ed82013-12-31 17:20:52 +01001525 };
1526
Maxime Ripard4790ecf2013-07-17 10:07:10 +02001527 uart0: serial@01c28000 {
1528 compatible = "snps,dw-apb-uart";
1529 reg = <0x01c28000 0x400>;
Maxime Ripard19882b82014-12-16 22:59:58 +01001530 interrupts = <GIC_SPI 1 IRQ_TYPE_LEVEL_HIGH>;
Maxime Ripard4790ecf2013-07-17 10:07:10 +02001531 reg-shift = <2>;
1532 reg-io-width = <4>;
Maxime Ripardde7dc932013-07-25 21:12:52 +02001533 clocks = <&apb1_gates 16>;
Maxime Ripard4790ecf2013-07-17 10:07:10 +02001534 status = "disabled";
1535 };
1536
1537 uart1: serial@01c28400 {
1538 compatible = "snps,dw-apb-uart";
1539 reg = <0x01c28400 0x400>;
Maxime Ripard19882b82014-12-16 22:59:58 +01001540 interrupts = <GIC_SPI 2 IRQ_TYPE_LEVEL_HIGH>;
Maxime Ripard4790ecf2013-07-17 10:07:10 +02001541 reg-shift = <2>;
1542 reg-io-width = <4>;
Maxime Ripardde7dc932013-07-25 21:12:52 +02001543 clocks = <&apb1_gates 17>;
Maxime Ripard4790ecf2013-07-17 10:07:10 +02001544 status = "disabled";
1545 };
1546
1547 uart2: serial@01c28800 {
1548 compatible = "snps,dw-apb-uart";
1549 reg = <0x01c28800 0x400>;
Maxime Ripard19882b82014-12-16 22:59:58 +01001550 interrupts = <GIC_SPI 3 IRQ_TYPE_LEVEL_HIGH>;
Maxime Ripard4790ecf2013-07-17 10:07:10 +02001551 reg-shift = <2>;
1552 reg-io-width = <4>;
Maxime Ripardde7dc932013-07-25 21:12:52 +02001553 clocks = <&apb1_gates 18>;
Maxime Ripard4790ecf2013-07-17 10:07:10 +02001554 status = "disabled";
1555 };
1556
1557 uart3: serial@01c28c00 {
1558 compatible = "snps,dw-apb-uart";
1559 reg = <0x01c28c00 0x400>;
Maxime Ripard19882b82014-12-16 22:59:58 +01001560 interrupts = <GIC_SPI 4 IRQ_TYPE_LEVEL_HIGH>;
Maxime Ripard4790ecf2013-07-17 10:07:10 +02001561 reg-shift = <2>;
1562 reg-io-width = <4>;
Maxime Ripardde7dc932013-07-25 21:12:52 +02001563 clocks = <&apb1_gates 19>;
Maxime Ripard4790ecf2013-07-17 10:07:10 +02001564 status = "disabled";
1565 };
1566
1567 uart4: serial@01c29000 {
1568 compatible = "snps,dw-apb-uart";
1569 reg = <0x01c29000 0x400>;
Maxime Ripard19882b82014-12-16 22:59:58 +01001570 interrupts = <GIC_SPI 17 IRQ_TYPE_LEVEL_HIGH>;
Maxime Ripard4790ecf2013-07-17 10:07:10 +02001571 reg-shift = <2>;
1572 reg-io-width = <4>;
Maxime Ripardde7dc932013-07-25 21:12:52 +02001573 clocks = <&apb1_gates 20>;
Maxime Ripard4790ecf2013-07-17 10:07:10 +02001574 status = "disabled";
1575 };
1576
1577 uart5: serial@01c29400 {
1578 compatible = "snps,dw-apb-uart";
1579 reg = <0x01c29400 0x400>;
Maxime Ripard19882b82014-12-16 22:59:58 +01001580 interrupts = <GIC_SPI 18 IRQ_TYPE_LEVEL_HIGH>;
Maxime Ripard4790ecf2013-07-17 10:07:10 +02001581 reg-shift = <2>;
1582 reg-io-width = <4>;
Maxime Ripardde7dc932013-07-25 21:12:52 +02001583 clocks = <&apb1_gates 21>;
Maxime Ripard4790ecf2013-07-17 10:07:10 +02001584 status = "disabled";
1585 };
1586
1587 uart6: serial@01c29800 {
1588 compatible = "snps,dw-apb-uart";
1589 reg = <0x01c29800 0x400>;
Maxime Ripard19882b82014-12-16 22:59:58 +01001590 interrupts = <GIC_SPI 19 IRQ_TYPE_LEVEL_HIGH>;
Maxime Ripard4790ecf2013-07-17 10:07:10 +02001591 reg-shift = <2>;
1592 reg-io-width = <4>;
Maxime Ripardde7dc932013-07-25 21:12:52 +02001593 clocks = <&apb1_gates 22>;
Maxime Ripard4790ecf2013-07-17 10:07:10 +02001594 status = "disabled";
1595 };
1596
1597 uart7: serial@01c29c00 {
1598 compatible = "snps,dw-apb-uart";
1599 reg = <0x01c29c00 0x400>;
Maxime Ripard19882b82014-12-16 22:59:58 +01001600 interrupts = <GIC_SPI 20 IRQ_TYPE_LEVEL_HIGH>;
Maxime Ripard4790ecf2013-07-17 10:07:10 +02001601 reg-shift = <2>;
1602 reg-io-width = <4>;
Maxime Ripardde7dc932013-07-25 21:12:52 +02001603 clocks = <&apb1_gates 23>;
Maxime Ripard4790ecf2013-07-17 10:07:10 +02001604 status = "disabled";
1605 };
1606
Maxime Ripard428abbb2013-08-31 23:07:24 +02001607 i2c0: i2c@01c2ac00 {
Maxime Ripardd8cacaa2015-05-03 11:53:07 +02001608 compatible = "allwinner,sun7i-a20-i2c",
1609 "allwinner,sun4i-a10-i2c";
Maxime Ripard428abbb2013-08-31 23:07:24 +02001610 reg = <0x01c2ac00 0x400>;
Maxime Ripard19882b82014-12-16 22:59:58 +01001611 interrupts = <GIC_SPI 7 IRQ_TYPE_LEVEL_HIGH>;
Maxime Ripard428abbb2013-08-31 23:07:24 +02001612 clocks = <&apb1_gates 0>;
Maxime Ripard428abbb2013-08-31 23:07:24 +02001613 status = "disabled";
Hans de Goeded1412ae2014-04-13 13:41:05 +02001614 #address-cells = <1>;
1615 #size-cells = <0>;
Maxime Ripard428abbb2013-08-31 23:07:24 +02001616 };
1617
1618 i2c1: i2c@01c2b000 {
Maxime Ripardd8cacaa2015-05-03 11:53:07 +02001619 compatible = "allwinner,sun7i-a20-i2c",
1620 "allwinner,sun4i-a10-i2c";
Maxime Ripard428abbb2013-08-31 23:07:24 +02001621 reg = <0x01c2b000 0x400>;
Maxime Ripard19882b82014-12-16 22:59:58 +01001622 interrupts = <GIC_SPI 8 IRQ_TYPE_LEVEL_HIGH>;
Maxime Ripard428abbb2013-08-31 23:07:24 +02001623 clocks = <&apb1_gates 1>;
Maxime Ripard428abbb2013-08-31 23:07:24 +02001624 status = "disabled";
Hans de Goeded1412ae2014-04-13 13:41:05 +02001625 #address-cells = <1>;
1626 #size-cells = <0>;
Maxime Ripard428abbb2013-08-31 23:07:24 +02001627 };
1628
1629 i2c2: i2c@01c2b400 {
Maxime Ripardd8cacaa2015-05-03 11:53:07 +02001630 compatible = "allwinner,sun7i-a20-i2c",
1631 "allwinner,sun4i-a10-i2c";
Maxime Ripard428abbb2013-08-31 23:07:24 +02001632 reg = <0x01c2b400 0x400>;
Maxime Ripard19882b82014-12-16 22:59:58 +01001633 interrupts = <GIC_SPI 9 IRQ_TYPE_LEVEL_HIGH>;
Maxime Ripard428abbb2013-08-31 23:07:24 +02001634 clocks = <&apb1_gates 2>;
Maxime Ripard428abbb2013-08-31 23:07:24 +02001635 status = "disabled";
Hans de Goeded1412ae2014-04-13 13:41:05 +02001636 #address-cells = <1>;
1637 #size-cells = <0>;
Maxime Ripard428abbb2013-08-31 23:07:24 +02001638 };
1639
1640 i2c3: i2c@01c2b800 {
Maxime Ripardd8cacaa2015-05-03 11:53:07 +02001641 compatible = "allwinner,sun7i-a20-i2c",
1642 "allwinner,sun4i-a10-i2c";
Maxime Ripard428abbb2013-08-31 23:07:24 +02001643 reg = <0x01c2b800 0x400>;
Maxime Ripard19882b82014-12-16 22:59:58 +01001644 interrupts = <GIC_SPI 88 IRQ_TYPE_LEVEL_HIGH>;
Maxime Ripard428abbb2013-08-31 23:07:24 +02001645 clocks = <&apb1_gates 3>;
Maxime Ripard428abbb2013-08-31 23:07:24 +02001646 status = "disabled";
Hans de Goeded1412ae2014-04-13 13:41:05 +02001647 #address-cells = <1>;
1648 #size-cells = <0>;
Maxime Ripard428abbb2013-08-31 23:07:24 +02001649 };
1650
Maxime Riparda3867042014-04-18 21:13:08 +02001651 i2c4: i2c@01c2c000 {
Maxime Ripardd8cacaa2015-05-03 11:53:07 +02001652 compatible = "allwinner,sun7i-a20-i2c",
1653 "allwinner,sun4i-a10-i2c";
Maxime Riparda3867042014-04-18 21:13:08 +02001654 reg = <0x01c2c000 0x400>;
Maxime Ripard19882b82014-12-16 22:59:58 +01001655 interrupts = <GIC_SPI 89 IRQ_TYPE_LEVEL_HIGH>;
Maxime Ripard428abbb2013-08-31 23:07:24 +02001656 clocks = <&apb1_gates 15>;
Maxime Ripard428abbb2013-08-31 23:07:24 +02001657 status = "disabled";
Hans de Goeded1412ae2014-04-13 13:41:05 +02001658 #address-cells = <1>;
1659 #size-cells = <0>;
Maxime Ripard428abbb2013-08-31 23:07:24 +02001660 };
1661
Chen-Yu Tsaic40b8d52014-02-10 18:35:49 +08001662 gmac: ethernet@01c50000 {
1663 compatible = "allwinner,sun7i-a20-gmac";
1664 reg = <0x01c50000 0x10000>;
Maxime Ripard19882b82014-12-16 22:59:58 +01001665 interrupts = <GIC_SPI 85 IRQ_TYPE_LEVEL_HIGH>;
Chen-Yu Tsaic40b8d52014-02-10 18:35:49 +08001666 interrupt-names = "macirq";
1667 clocks = <&ahb_gates 49>, <&gmac_tx_clk>;
1668 clock-names = "stmmaceth", "allwinner_gmac_tx";
1669 snps,pbl = <2>;
1670 snps,fixed-burst;
1671 snps,force_sf_dma_mode;
1672 status = "disabled";
1673 #address-cells = <1>;
1674 #size-cells = <0>;
1675 };
1676
Maxime Ripard31f8ad32013-11-07 12:01:48 +01001677 hstimer@01c60000 {
1678 compatible = "allwinner,sun7i-a20-hstimer";
1679 reg = <0x01c60000 0x1000>;
Maxime Ripard19882b82014-12-16 22:59:58 +01001680 interrupts = <GIC_SPI 81 IRQ_TYPE_LEVEL_HIGH>,
1681 <GIC_SPI 82 IRQ_TYPE_LEVEL_HIGH>,
1682 <GIC_SPI 83 IRQ_TYPE_LEVEL_HIGH>,
1683 <GIC_SPI 84 IRQ_TYPE_LEVEL_HIGH>;
Maxime Ripard31f8ad32013-11-07 12:01:48 +01001684 clocks = <&ahb_gates 28>;
1685 };
1686
Maxime Ripard4790ecf2013-07-17 10:07:10 +02001687 gic: interrupt-controller@01c81000 {
1688 compatible = "arm,cortex-a7-gic", "arm,cortex-a15-gic";
1689 reg = <0x01c81000 0x1000>,
1690 <0x01c82000 0x1000>,
1691 <0x01c84000 0x2000>,
1692 <0x01c86000 0x2000>;
1693 interrupt-controller;
1694 #interrupt-cells = <3>;
Maxime Ripard19882b82014-12-16 22:59:58 +01001695 interrupts = <GIC_PPI 9 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>;
Maxime Ripard4790ecf2013-07-17 10:07:10 +02001696 };
Vishnu Patekar196654a2015-01-25 19:10:08 +05301697
1698 ps20: ps2@01c2a000 {
1699 compatible = "allwinner,sun4i-a10-ps2";
1700 reg = <0x01c2a000 0x400>;
1701 interrupts = <GIC_SPI 62 IRQ_TYPE_LEVEL_HIGH>;
1702 clocks = <&apb1_gates 6>;
1703 status = "disabled";
1704 };
1705
1706 ps21: ps2@01c2a400 {
1707 compatible = "allwinner,sun4i-a10-ps2";
1708 reg = <0x01c2a400 0x400>;
1709 interrupts = <GIC_SPI 63 IRQ_TYPE_LEVEL_HIGH>;
1710 clocks = <&apb1_gates 7>;
1711 status = "disabled";
Maxime Ripard4790ecf2013-07-17 10:07:10 +02001712 };
1713 };
1714};