blob: 96bee776e1456b2e8787390bbcadbaecfb8563cd [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 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 Goede01621172016-06-05 14:22:48 +020069 clocks = <&ahb_gates 36>, <&ahb_gates 43>,
70 <&ahb_gates 44>, <&de_be0_clk>,
71 <&tcon0_ch1_clk>, <&dram_gates 26>;
Hans de Goede8efc5c22014-11-14 16:34:37 +010072 status = "disabled";
73 };
Hans de Goedefd18c7e2015-01-19 14:05:12 +010074
75 framebuffer@1 {
76 compatible = "allwinner,simple-framebuffer",
77 "simple-framebuffer";
78 allwinner,pipeline = "de_be0-lcd0";
Priit Laesf1afc132016-05-10 22:24:07 +030079 clocks = <&ahb_gates 36>, <&ahb_gates 44>,
80 <&de_be0_clk>, <&tcon0_ch0_clk>,
81 <&dram_gates 26>;
Hans de Goedefd18c7e2015-01-19 14:05:12 +010082 status = "disabled";
83 };
84
85 framebuffer@2 {
86 compatible = "allwinner,simple-framebuffer",
87 "simple-framebuffer";
88 allwinner,pipeline = "de_be0-lcd0-tve0";
Hans de Goede01621172016-06-05 14:22:48 +020089 clocks = <&ahb_gates 34>, <&ahb_gates 36>,
90 <&ahb_gates 44>,
91 <&de_be0_clk>, <&tcon0_ch1_clk>,
Priit Laes4b8ccef2016-03-24 21:52:17 +020092 <&dram_gates 5>, <&dram_gates 26>;
Hans de Goedefd18c7e2015-01-19 14:05:12 +010093 status = "disabled";
94 };
Hans de Goede8efc5c22014-11-14 16:34:37 +010095 };
96
Maxime Ripard4790ecf2013-07-17 10:07:10 +020097 cpus {
98 #address-cells = <1>;
99 #size-cells = <0>;
100
Chen-Yu Tsaid96b7162015-01-06 10:35:16 +0800101 cpu0: cpu@0 {
Maxime Ripard4790ecf2013-07-17 10:07:10 +0200102 compatible = "arm,cortex-a7";
103 device_type = "cpu";
104 reg = <0>;
Chen-Yu Tsaid96b7162015-01-06 10:35:16 +0800105 clocks = <&cpu>;
106 clock-latency = <244144>; /* 8 32k periods */
107 operating-points = <
Maxime Ripard8358aad2015-05-03 11:54:35 +0200108 /* kHz uV */
109 960000 1400000
110 912000 1400000
111 864000 1300000
112 720000 1200000
113 528000 1100000
114 312000 1000000
Timo Sigurdssoneaeef1a2015-08-04 23:08:01 +0200115 144000 1000000
Chen-Yu Tsaid96b7162015-01-06 10:35:16 +0800116 >;
117 #cooling-cells = <2>;
118 cooling-min-level = <0>;
Chen-Yu Tsai370a9b52015-03-25 00:53:27 +0800119 cooling-max-level = <6>;
Maxime Ripard4790ecf2013-07-17 10:07:10 +0200120 };
121
122 cpu@1 {
123 compatible = "arm,cortex-a7";
124 device_type = "cpu";
125 reg = <1>;
126 };
127 };
128
Chen-Yu Tsaib6d34242015-01-12 12:34:03 +0800129 thermal-zones {
130 cpu_thermal {
131 /* milliseconds */
132 polling-delay-passive = <250>;
133 polling-delay = <1000>;
134 thermal-sensors = <&rtp>;
135
136 cooling-maps {
137 map0 {
138 trip = <&cpu_alert0>;
139 cooling-device = <&cpu0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
140 };
141 };
142
143 trips {
144 cpu_alert0: cpu_alert0 {
145 /* milliCelsius */
146 temperature = <75000>;
147 hysteresis = <2000>;
148 type = "passive";
149 };
150
151 cpu_crit: cpu_crit {
152 /* milliCelsius */
153 temperature = <100000>;
154 hysteresis = <2000>;
155 type = "critical";
156 };
157 };
158 };
159 };
160
Maxime Ripard4790ecf2013-07-17 10:07:10 +0200161 memory {
162 reg = <0x40000000 0x80000000>;
163 };
164
Marc Zyngier79027632014-02-18 14:04:44 +0000165 timer {
166 compatible = "arm,armv7-timer";
Maxime Ripard19882b82014-12-16 22:59:58 +0100167 interrupts = <GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
168 <GIC_PPI 14 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
169 <GIC_PPI 11 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
170 <GIC_PPI 10 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>;
Marc Zyngier79027632014-02-18 14:04:44 +0000171 };
172
Maxime Riparde29ea4d2014-04-17 21:54:41 +0200173 pmu {
174 compatible = "arm,cortex-a7-pmu", "arm,cortex-a15-pmu";
Maxime Ripard19882b82014-12-16 22:59:58 +0100175 interrupts = <GIC_SPI 120 IRQ_TYPE_LEVEL_HIGH>,
176 <GIC_SPI 121 IRQ_TYPE_LEVEL_HIGH>;
Maxime Riparde29ea4d2014-04-17 21:54:41 +0200177 };
178
Maxime Ripard4790ecf2013-07-17 10:07:10 +0200179 clocks {
180 #address-cells = <1>;
181 #size-cells = <1>;
182 ranges;
183
Chen-Yu Tsai06067a22014-02-03 09:51:44 +0800184 osc24M: clk@01c20050 {
Maxime Ripard4790ecf2013-07-17 10:07:10 +0200185 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100186 compatible = "allwinner,sun4i-a10-osc-clk";
Maxime Ripardde7dc932013-07-25 21:12:52 +0200187 reg = <0x01c20050 0x4>;
Maxime Ripard4790ecf2013-07-17 10:07:10 +0200188 clock-frequency = <24000000>;
Chen-Yu Tsai06067a22014-02-03 09:51:44 +0800189 clock-output-names = "osc24M";
Maxime Ripard4790ecf2013-07-17 10:07:10 +0200190 };
191
Priit Laes068655dc2016-05-05 20:39:04 +0300192 osc3M: osc3M_clk {
193 #clock-cells = <0>;
194 compatible = "fixed-factor-clock";
195 clock-div = <8>;
196 clock-mult = <1>;
197 clocks = <&osc24M>;
198 clock-output-names = "osc3M";
199 };
200
Chen-Yu Tsai673fac72014-01-01 10:30:47 +0800201 osc32k: clk@0 {
Maxime Ripard4790ecf2013-07-17 10:07:10 +0200202 #clock-cells = <0>;
203 compatible = "fixed-clock";
204 clock-frequency = <32768>;
Chen-Yu Tsai673fac72014-01-01 10:30:47 +0800205 clock-output-names = "osc32k";
Maxime Ripard4790ecf2013-07-17 10:07:10 +0200206 };
Maxime Ripardde7dc932013-07-25 21:12:52 +0200207
Chen-Yu Tsai06067a22014-02-03 09:51:44 +0800208 pll1: clk@01c20000 {
Maxime Ripardde7dc932013-07-25 21:12:52 +0200209 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100210 compatible = "allwinner,sun4i-a10-pll1-clk";
Maxime Ripardde7dc932013-07-25 21:12:52 +0200211 reg = <0x01c20000 0x4>;
212 clocks = <&osc24M>;
Chen-Yu Tsai06067a22014-02-03 09:51:44 +0800213 clock-output-names = "pll1";
Maxime Ripardde7dc932013-07-25 21:12:52 +0200214 };
215
Maxime Ripard88a86aa2015-10-12 22:21:49 +0200216 pll2: clk@01c20008 {
217 #clock-cells = <1>;
218 compatible = "allwinner,sun4i-a10-pll2-clk";
219 reg = <0x01c20008 0x8>;
220 clocks = <&osc24M>;
221 clock-output-names = "pll2-1x", "pll2-2x",
222 "pll2-4x", "pll2-8x";
223 };
224
Priit Laes068655dc2016-05-05 20:39:04 +0300225 pll3: clk@01c20010 {
226 #clock-cells = <0>;
227 compatible = "allwinner,sun4i-a10-pll3-clk";
228 reg = <0x01c20010 0x4>;
229 clocks = <&osc3M>;
230 clock-output-names = "pll3";
231 };
232
233 pll3x2: pll3x2_clk {
234 #clock-cells = <0>;
235 compatible = "fixed-factor-clock";
Hans de Goedeeee25ab2016-06-28 22:11:14 +0200236 clocks = <&pll3>;
Priit Laes068655dc2016-05-05 20:39:04 +0300237 clock-div = <1>;
238 clock-mult = <2>;
239 clock-output-names = "pll3-2x";
240 };
241
Chen-Yu Tsai06067a22014-02-03 09:51:44 +0800242 pll4: clk@01c20018 {
Maxime Ripardde7dc932013-07-25 21:12:52 +0200243 #clock-cells = <0>;
Emilio López04ebcb52014-03-19 15:19:31 -0300244 compatible = "allwinner,sun7i-a20-pll4-clk";
Emilio Lópezec5589f2013-12-23 00:32:35 -0300245 reg = <0x01c20018 0x4>;
246 clocks = <&osc24M>;
Chen-Yu Tsai06067a22014-02-03 09:51:44 +0800247 clock-output-names = "pll4";
Emilio Lópezec5589f2013-12-23 00:32:35 -0300248 };
249
Chen-Yu Tsai06067a22014-02-03 09:51:44 +0800250 pll5: clk@01c20020 {
Emilio Lópezc3e5e662013-12-23 00:32:38 -0300251 #clock-cells = <1>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100252 compatible = "allwinner,sun4i-a10-pll5-clk";
Emilio Lópezc3e5e662013-12-23 00:32:38 -0300253 reg = <0x01c20020 0x4>;
254 clocks = <&osc24M>;
255 clock-output-names = "pll5_ddr", "pll5_other";
256 };
257
Chen-Yu Tsai06067a22014-02-03 09:51:44 +0800258 pll6: clk@01c20028 {
Emilio Lópezc3e5e662013-12-23 00:32:38 -0300259 #clock-cells = <1>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100260 compatible = "allwinner,sun4i-a10-pll6-clk";
Emilio Lópezc3e5e662013-12-23 00:32:38 -0300261 reg = <0x01c20028 0x4>;
262 clocks = <&osc24M>;
Chen-Yu Tsai2186df32015-03-25 01:22:09 +0800263 clock-output-names = "pll6_sata", "pll6_other", "pll6",
264 "pll6_div_4";
Maxime Ripardde7dc932013-07-25 21:12:52 +0200265 };
266
Priit Laes068655dc2016-05-05 20:39:04 +0300267 pll7: clk@01c20030 {
268 #clock-cells = <0>;
269 compatible = "allwinner,sun4i-a10-pll3-clk";
270 reg = <0x01c20030 0x4>;
271 clocks = <&osc3M>;
272 clock-output-names = "pll7";
273 };
274
275 pll7x2: pll7x2_clk {
276 #clock-cells = <0>;
277 compatible = "fixed-factor-clock";
Hans de Goedeeee25ab2016-06-28 22:11:14 +0200278 clocks = <&pll7>;
Priit Laes068655dc2016-05-05 20:39:04 +0300279 clock-div = <1>;
280 clock-mult = <2>;
281 clock-output-names = "pll7-2x";
282 };
283
Emilio López04ebcb52014-03-19 15:19:31 -0300284 pll8: clk@01c20040 {
285 #clock-cells = <0>;
286 compatible = "allwinner,sun7i-a20-pll4-clk";
287 reg = <0x01c20040 0x4>;
288 clocks = <&osc24M>;
289 clock-output-names = "pll8";
290 };
291
Maxime Ripardde7dc932013-07-25 21:12:52 +0200292 cpu: cpu@01c20054 {
293 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100294 compatible = "allwinner,sun4i-a10-cpu-clk";
Maxime Ripardde7dc932013-07-25 21:12:52 +0200295 reg = <0x01c20054 0x4>;
Emilio Lópezc3e5e662013-12-23 00:32:38 -0300296 clocks = <&osc32k>, <&osc24M>, <&pll1>, <&pll6 1>;
Chen-Yu Tsai06067a22014-02-03 09:51:44 +0800297 clock-output-names = "cpu";
Maxime Ripardde7dc932013-07-25 21:12:52 +0200298 };
299
300 axi: axi@01c20054 {
301 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100302 compatible = "allwinner,sun4i-a10-axi-clk";
Maxime Ripardde7dc932013-07-25 21:12:52 +0200303 reg = <0x01c20054 0x4>;
304 clocks = <&cpu>;
Chen-Yu Tsai06067a22014-02-03 09:51:44 +0800305 clock-output-names = "axi";
Maxime Ripardde7dc932013-07-25 21:12:52 +0200306 };
307
308 ahb: ahb@01c20054 {
309 #clock-cells = <0>;
Chen-Yu Tsai2186df32015-03-25 01:22:09 +0800310 compatible = "allwinner,sun5i-a13-ahb-clk";
Maxime Ripardde7dc932013-07-25 21:12:52 +0200311 reg = <0x01c20054 0x4>;
Chen-Yu Tsai2186df32015-03-25 01:22:09 +0800312 clocks = <&axi>, <&pll6 3>, <&pll6 1>;
Chen-Yu Tsai06067a22014-02-03 09:51:44 +0800313 clock-output-names = "ahb";
Chen-Yu Tsai2186df32015-03-25 01:22:09 +0800314 /*
315 * Use PLL6 as parent, instead of CPU/AXI
316 * which has rate changes due to cpufreq
317 */
318 assigned-clocks = <&ahb>;
319 assigned-clock-parents = <&pll6 3>;
Maxime Ripardde7dc932013-07-25 21:12:52 +0200320 };
321
Chen-Yu Tsai06067a22014-02-03 09:51:44 +0800322 ahb_gates: clk@01c20060 {
Maxime Ripardde7dc932013-07-25 21:12:52 +0200323 #clock-cells = <1>;
324 compatible = "allwinner,sun7i-a20-ahb-gates-clk";
325 reg = <0x01c20060 0x8>;
326 clocks = <&ahb>;
Maxime Ripard6bfe30b2015-07-31 19:46:19 +0200327 clock-indices = <0>, <1>,
328 <2>, <3>, <4>,
329 <5>, <6>, <7>, <8>,
330 <9>, <10>, <11>, <12>,
331 <13>, <14>, <16>,
332 <17>, <18>, <20>, <21>,
333 <22>, <23>, <25>,
334 <28>, <32>, <33>, <34>,
335 <35>, <36>, <37>, <40>,
336 <41>, <42>, <43>,
337 <44>, <45>, <46>,
338 <47>, <49>, <50>,
339 <52>;
Maxime Ripardde7dc932013-07-25 21:12:52 +0200340 clock-output-names = "ahb_usb0", "ahb_ehci0",
341 "ahb_ohci0", "ahb_ehci1", "ahb_ohci1",
342 "ahb_ss", "ahb_dma", "ahb_bist", "ahb_mmc0",
343 "ahb_mmc1", "ahb_mmc2", "ahb_mmc3", "ahb_ms",
344 "ahb_nand", "ahb_sdram", "ahb_ace",
345 "ahb_emac", "ahb_ts", "ahb_spi0", "ahb_spi1",
346 "ahb_spi2", "ahb_spi3", "ahb_sata",
347 "ahb_hstimer", "ahb_ve", "ahb_tvd", "ahb_tve0",
348 "ahb_tve1", "ahb_lcd0", "ahb_lcd1", "ahb_csi0",
349 "ahb_csi1", "ahb_hdmi1", "ahb_hdmi0",
350 "ahb_de_be0", "ahb_de_be1", "ahb_de_fe0",
351 "ahb_de_fe1", "ahb_gmac", "ahb_mp",
352 "ahb_mali";
353 };
354
355 apb0: apb0@01c20054 {
356 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100357 compatible = "allwinner,sun4i-a10-apb0-clk";
Maxime Ripardde7dc932013-07-25 21:12:52 +0200358 reg = <0x01c20054 0x4>;
359 clocks = <&ahb>;
Chen-Yu Tsai06067a22014-02-03 09:51:44 +0800360 clock-output-names = "apb0";
Maxime Ripardde7dc932013-07-25 21:12:52 +0200361 };
362
Chen-Yu Tsai06067a22014-02-03 09:51:44 +0800363 apb0_gates: clk@01c20068 {
Maxime Ripardde7dc932013-07-25 21:12:52 +0200364 #clock-cells = <1>;
365 compatible = "allwinner,sun7i-a20-apb0-gates-clk";
366 reg = <0x01c20068 0x4>;
367 clocks = <&apb0>;
Maxime Ripard6bfe30b2015-07-31 19:46:19 +0200368 clock-indices = <0>, <1>,
369 <2>, <3>, <4>,
370 <5>, <6>, <7>,
371 <8>, <10>;
Maxime Ripardde7dc932013-07-25 21:12:52 +0200372 clock-output-names = "apb0_codec", "apb0_spdif",
Emilio López60ecb1e2014-07-18 15:26:08 -0300373 "apb0_ac97", "apb0_i2s0", "apb0_i2s1",
Maxime Ripardde7dc932013-07-25 21:12:52 +0200374 "apb0_pio", "apb0_ir0", "apb0_ir1",
Emilio López60ecb1e2014-07-18 15:26:08 -0300375 "apb0_i2s2", "apb0_keypad";
Maxime Ripardde7dc932013-07-25 21:12:52 +0200376 };
377
Emilio Lópezacbcc0f2014-11-06 11:40:30 +0800378 apb1: clk@01c20058 {
Maxime Ripardde7dc932013-07-25 21:12:52 +0200379 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100380 compatible = "allwinner,sun4i-a10-apb1-clk";
Maxime Ripardde7dc932013-07-25 21:12:52 +0200381 reg = <0x01c20058 0x4>;
Emilio Lópezacbcc0f2014-11-06 11:40:30 +0800382 clocks = <&osc24M>, <&pll6 1>, <&osc32k>;
Chen-Yu Tsai06067a22014-02-03 09:51:44 +0800383 clock-output-names = "apb1";
Maxime Ripardde7dc932013-07-25 21:12:52 +0200384 };
385
Chen-Yu Tsai06067a22014-02-03 09:51:44 +0800386 apb1_gates: clk@01c2006c {
Maxime Ripardde7dc932013-07-25 21:12:52 +0200387 #clock-cells = <1>;
388 compatible = "allwinner,sun7i-a20-apb1-gates-clk";
389 reg = <0x01c2006c 0x4>;
390 clocks = <&apb1>;
Maxime Ripard6bfe30b2015-07-31 19:46:19 +0200391 clock-indices = <0>, <1>,
392 <2>, <3>, <4>,
393 <5>, <6>, <7>,
394 <15>, <16>, <17>,
395 <18>, <19>, <20>,
396 <21>, <22>, <23>;
Maxime Ripardde7dc932013-07-25 21:12:52 +0200397 clock-output-names = "apb1_i2c0", "apb1_i2c1",
398 "apb1_i2c2", "apb1_i2c3", "apb1_can",
399 "apb1_scr", "apb1_ps20", "apb1_ps21",
400 "apb1_i2c4", "apb1_uart0", "apb1_uart1",
401 "apb1_uart2", "apb1_uart3", "apb1_uart4",
402 "apb1_uart5", "apb1_uart6", "apb1_uart7";
403 };
Emilio López1c92b952013-12-23 00:32:43 -0300404
405 nand_clk: clk@01c20080 {
406 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100407 compatible = "allwinner,sun4i-a10-mod0-clk";
Emilio López1c92b952013-12-23 00:32:43 -0300408 reg = <0x01c20080 0x4>;
409 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
410 clock-output-names = "nand";
411 };
412
413 ms_clk: clk@01c20084 {
414 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100415 compatible = "allwinner,sun4i-a10-mod0-clk";
Emilio López1c92b952013-12-23 00:32:43 -0300416 reg = <0x01c20084 0x4>;
417 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
418 clock-output-names = "ms";
419 };
420
421 mmc0_clk: clk@01c20088 {
Maxime Ripardd8c3a392014-07-11 19:39:06 +0200422 #clock-cells = <1>;
423 compatible = "allwinner,sun4i-a10-mmc-clk";
Emilio López1c92b952013-12-23 00:32:43 -0300424 reg = <0x01c20088 0x4>;
425 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
Maxime Ripardd8c3a392014-07-11 19:39:06 +0200426 clock-output-names = "mmc0",
427 "mmc0_output",
428 "mmc0_sample";
Emilio López1c92b952013-12-23 00:32:43 -0300429 };
430
431 mmc1_clk: clk@01c2008c {
Maxime Ripardd8c3a392014-07-11 19:39:06 +0200432 #clock-cells = <1>;
433 compatible = "allwinner,sun4i-a10-mmc-clk";
Emilio López1c92b952013-12-23 00:32:43 -0300434 reg = <0x01c2008c 0x4>;
435 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
Maxime Ripardd8c3a392014-07-11 19:39:06 +0200436 clock-output-names = "mmc1",
437 "mmc1_output",
438 "mmc1_sample";
Emilio López1c92b952013-12-23 00:32:43 -0300439 };
440
441 mmc2_clk: clk@01c20090 {
Maxime Ripardd8c3a392014-07-11 19:39:06 +0200442 #clock-cells = <1>;
443 compatible = "allwinner,sun4i-a10-mmc-clk";
Emilio López1c92b952013-12-23 00:32:43 -0300444 reg = <0x01c20090 0x4>;
445 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
Maxime Ripardd8c3a392014-07-11 19:39:06 +0200446 clock-output-names = "mmc2",
447 "mmc2_output",
448 "mmc2_sample";
Emilio López1c92b952013-12-23 00:32:43 -0300449 };
450
451 mmc3_clk: clk@01c20094 {
Maxime Ripardd8c3a392014-07-11 19:39:06 +0200452 #clock-cells = <1>;
453 compatible = "allwinner,sun4i-a10-mmc-clk";
Emilio López1c92b952013-12-23 00:32:43 -0300454 reg = <0x01c20094 0x4>;
455 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
Maxime Ripardd8c3a392014-07-11 19:39:06 +0200456 clock-output-names = "mmc3",
457 "mmc3_output",
458 "mmc3_sample";
Emilio López1c92b952013-12-23 00:32:43 -0300459 };
460
461 ts_clk: clk@01c20098 {
462 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100463 compatible = "allwinner,sun4i-a10-mod0-clk";
Emilio López1c92b952013-12-23 00:32:43 -0300464 reg = <0x01c20098 0x4>;
465 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
466 clock-output-names = "ts";
467 };
468
469 ss_clk: clk@01c2009c {
470 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100471 compatible = "allwinner,sun4i-a10-mod0-clk";
Emilio López1c92b952013-12-23 00:32:43 -0300472 reg = <0x01c2009c 0x4>;
473 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
474 clock-output-names = "ss";
475 };
476
477 spi0_clk: clk@01c200a0 {
478 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100479 compatible = "allwinner,sun4i-a10-mod0-clk";
Emilio López1c92b952013-12-23 00:32:43 -0300480 reg = <0x01c200a0 0x4>;
481 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
482 clock-output-names = "spi0";
483 };
484
485 spi1_clk: clk@01c200a4 {
486 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100487 compatible = "allwinner,sun4i-a10-mod0-clk";
Emilio López1c92b952013-12-23 00:32:43 -0300488 reg = <0x01c200a4 0x4>;
489 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
490 clock-output-names = "spi1";
491 };
492
493 spi2_clk: clk@01c200a8 {
494 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100495 compatible = "allwinner,sun4i-a10-mod0-clk";
Emilio López1c92b952013-12-23 00:32:43 -0300496 reg = <0x01c200a8 0x4>;
497 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
498 clock-output-names = "spi2";
499 };
500
501 pata_clk: clk@01c200ac {
502 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100503 compatible = "allwinner,sun4i-a10-mod0-clk";
Emilio López1c92b952013-12-23 00:32:43 -0300504 reg = <0x01c200ac 0x4>;
505 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
506 clock-output-names = "pata";
507 };
508
509 ir0_clk: clk@01c200b0 {
510 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100511 compatible = "allwinner,sun4i-a10-mod0-clk";
Emilio López1c92b952013-12-23 00:32:43 -0300512 reg = <0x01c200b0 0x4>;
513 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
514 clock-output-names = "ir0";
515 };
516
517 ir1_clk: clk@01c200b4 {
518 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100519 compatible = "allwinner,sun4i-a10-mod0-clk";
Emilio López1c92b952013-12-23 00:32:43 -0300520 reg = <0x01c200b4 0x4>;
521 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
522 clock-output-names = "ir1";
523 };
524
Emilio López60ecb1e2014-07-18 15:26:08 -0300525 i2s0_clk: clk@01c200b8 {
526 #clock-cells = <0>;
527 compatible = "allwinner,sun4i-a10-mod1-clk";
528 reg = <0x01c200b8 0x4>;
529 clocks = <&pll2 SUN4I_A10_PLL2_8X>,
530 <&pll2 SUN4I_A10_PLL2_4X>,
531 <&pll2 SUN4I_A10_PLL2_2X>,
532 <&pll2 SUN4I_A10_PLL2_1X>;
533 clock-output-names = "i2s0";
534 };
535
536 ac97_clk: clk@01c200bc {
537 #clock-cells = <0>;
538 compatible = "allwinner,sun4i-a10-mod1-clk";
539 reg = <0x01c200bc 0x4>;
540 clocks = <&pll2 SUN4I_A10_PLL2_8X>,
541 <&pll2 SUN4I_A10_PLL2_4X>,
542 <&pll2 SUN4I_A10_PLL2_2X>,
543 <&pll2 SUN4I_A10_PLL2_1X>;
544 clock-output-names = "ac97";
545 };
546
Marcus Cooper90b7a482016-03-21 21:01:02 +0100547 spdif_clk: clk@01c200c0 {
548 #clock-cells = <0>;
549 compatible = "allwinner,sun4i-a10-mod1-clk";
550 reg = <0x01c200c0 0x4>;
551 clocks = <&pll2 SUN4I_A10_PLL2_8X>,
552 <&pll2 SUN4I_A10_PLL2_4X>,
553 <&pll2 SUN4I_A10_PLL2_2X>,
554 <&pll2 SUN4I_A10_PLL2_1X>;
555 clock-output-names = "spdif";
556 };
557
Yassin Jaffer6f1606b2015-09-16 00:05:54 +1000558 keypad_clk: clk@01c200c4 {
559 #clock-cells = <0>;
560 compatible = "allwinner,sun4i-a10-mod0-clk";
561 reg = <0x01c200c4 0x4>;
562 clocks = <&osc24M>;
563 clock-output-names = "keypad";
564 };
565
Roman Byshko434e41b2014-02-07 16:21:53 +0100566 usb_clk: clk@01c200cc {
567 #clock-cells = <1>;
Maxime Ripard8358aad2015-05-03 11:54:35 +0200568 #reset-cells = <1>;
Roman Byshko434e41b2014-02-07 16:21:53 +0100569 compatible = "allwinner,sun4i-a10-usb-clk";
570 reg = <0x01c200cc 0x4>;
571 clocks = <&pll6 1>;
Maxime Ripardd8cacaa2015-05-03 11:53:07 +0200572 clock-output-names = "usb_ohci0", "usb_ohci1",
573 "usb_phy";
Roman Byshko434e41b2014-02-07 16:21:53 +0100574 };
575
Emilio López1c92b952013-12-23 00:32:43 -0300576 spi3_clk: clk@01c200d4 {
577 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100578 compatible = "allwinner,sun4i-a10-mod0-clk";
Emilio López1c92b952013-12-23 00:32:43 -0300579 reg = <0x01c200d4 0x4>;
580 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
581 clock-output-names = "spi3";
582 };
Emilio López118c07a2013-12-23 00:32:44 -0300583
Emilio López60ecb1e2014-07-18 15:26:08 -0300584 i2s1_clk: clk@01c200d8 {
585 #clock-cells = <0>;
586 compatible = "allwinner,sun4i-a10-mod1-clk";
587 reg = <0x01c200d8 0x4>;
588 clocks = <&pll2 SUN4I_A10_PLL2_8X>,
589 <&pll2 SUN4I_A10_PLL2_4X>,
590 <&pll2 SUN4I_A10_PLL2_2X>,
591 <&pll2 SUN4I_A10_PLL2_1X>;
592 clock-output-names = "i2s1";
593 };
594
595 i2s2_clk: clk@01c200dc {
596 #clock-cells = <0>;
597 compatible = "allwinner,sun4i-a10-mod1-clk";
598 reg = <0x01c200dc 0x4>;
599 clocks = <&pll2 SUN4I_A10_PLL2_8X>,
600 <&pll2 SUN4I_A10_PLL2_4X>,
601 <&pll2 SUN4I_A10_PLL2_2X>,
602 <&pll2 SUN4I_A10_PLL2_1X>;
603 clock-output-names = "i2s2";
604 };
605
Chen-Yu Tsai0b4bf5a2015-12-05 21:16:46 +0800606 dram_gates: clk@01c20100 {
607 #clock-cells = <1>;
608 compatible = "allwinner,sun4i-a10-dram-gates-clk";
609 reg = <0x01c20100 0x4>;
610 clocks = <&pll5 0>;
611 clock-indices = <0>,
612 <1>, <2>,
613 <3>,
614 <4>,
615 <5>, <6>,
616 <15>,
617 <24>, <25>,
618 <26>, <27>,
619 <28>, <29>;
620 clock-output-names = "dram_ve",
621 "dram_csi0", "dram_csi1",
622 "dram_ts",
623 "dram_tvd",
624 "dram_tve0", "dram_tve1",
625 "dram_output",
626 "dram_de_fe1", "dram_de_fe0",
627 "dram_de_be0", "dram_de_be1",
628 "dram_de_mp", "dram_ace";
629 };
630
Priit Laesf1afc132016-05-10 22:24:07 +0300631 de_be0_clk: clk@01c20104 {
632 #clock-cells = <0>;
633 #reset-cells = <0>;
634 compatible = "allwinner,sun4i-a10-display-clk";
635 reg = <0x01c20104 0x4>;
636 clocks = <&pll3>, <&pll7>, <&pll5 1>;
637 clock-output-names = "de-be0";
638 };
639
640 de_be1_clk: clk@01c20108 {
641 #clock-cells = <0>;
642 #reset-cells = <0>;
643 compatible = "allwinner,sun4i-a10-display-clk";
644 reg = <0x01c20108 0x4>;
645 clocks = <&pll3>, <&pll7>, <&pll5 1>;
646 clock-output-names = "de-be1";
647 };
648
649 de_fe0_clk: clk@01c2010c {
650 #clock-cells = <0>;
651 #reset-cells = <0>;
652 compatible = "allwinner,sun4i-a10-display-clk";
653 reg = <0x01c2010c 0x4>;
654 clocks = <&pll3>, <&pll7>, <&pll5 1>;
655 clock-output-names = "de-fe0";
656 };
657
658 de_fe1_clk: clk@01c20110 {
659 #clock-cells = <0>;
660 #reset-cells = <0>;
661 compatible = "allwinner,sun4i-a10-display-clk";
662 reg = <0x01c20110 0x4>;
663 clocks = <&pll3>, <&pll7>, <&pll5 1>;
664 clock-output-names = "de-fe1";
665 };
666
667 tcon0_ch0_clk: clk@01c20118 {
668 #clock-cells = <0>;
669 #reset-cells = <1>;
670 compatible = "allwinner,sun4i-a10-tcon-ch0-clk";
671 reg = <0x01c20118 0x4>;
672 clocks = <&pll3>, <&pll7>, <&pll3x2>, <&pll7x2>;
673 clock-output-names = "tcon0-ch0-sclk";
674
675 };
676
677 tcon1_ch0_clk: clk@01c2011c {
678 #clock-cells = <0>;
679 #reset-cells = <1>;
680 compatible = "allwinner,sun4i-a10-tcon-ch1-clk";
681 reg = <0x01c2011c 0x4>;
682 clocks = <&pll3>, <&pll7>, <&pll3x2>, <&pll7x2>;
683 clock-output-names = "tcon1-ch0-sclk";
684
685 };
686
687 tcon0_ch1_clk: clk@01c2012c {
688 #clock-cells = <0>;
689 compatible = "allwinner,sun4i-a10-tcon-ch0-clk";
690 reg = <0x01c2012c 0x4>;
691 clocks = <&pll3>, <&pll7>, <&pll3x2>, <&pll7x2>;
692 clock-output-names = "tcon0-ch1-sclk";
693
694 };
695
696 tcon1_ch1_clk: clk@01c20130 {
697 #clock-cells = <0>;
698 compatible = "allwinner,sun4i-a10-tcon-ch1-clk";
699 reg = <0x01c20130 0x4>;
700 clocks = <&pll3>, <&pll7>, <&pll3x2>, <&pll7x2>;
701 clock-output-names = "tcon1-ch1-sclk";
702
703 };
704
Chen-Yu Tsaif0571ab2015-12-05 21:16:47 +0800705 ve_clk: clk@01c2013c {
706 #clock-cells = <0>;
707 #reset-cells = <0>;
708 compatible = "allwinner,sun4i-a10-ve-clk";
709 reg = <0x01c2013c 0x4>;
710 clocks = <&pll4>;
711 clock-output-names = "ve";
712 };
713
Maxime Riparddbe4dd12015-10-12 22:28:46 +0200714 codec_clk: clk@01c20140 {
715 #clock-cells = <0>;
716 compatible = "allwinner,sun4i-a10-codec-clk";
717 reg = <0x01c20140 0x4>;
718 clocks = <&pll2 SUN4I_A10_PLL2_1X>;
719 clock-output-names = "codec";
720 };
721
Emilio López118c07a2013-12-23 00:32:44 -0300722 mbus_clk: clk@01c2015c {
723 #clock-cells = <0>;
Maxime Ripard7868c5e2014-07-16 23:45:48 +0200724 compatible = "allwinner,sun5i-a13-mbus-clk";
Emilio López118c07a2013-12-23 00:32:44 -0300725 reg = <0x01c2015c 0x4>;
726 clocks = <&osc24M>, <&pll6 2>, <&pll5 1>;
727 clock-output-names = "mbus";
728 };
Chen-Yu Tsai0aff0372014-01-01 10:30:48 +0800729
730 /*
Maxime Ripardd8cacaa2015-05-03 11:53:07 +0200731 * The following two are dummy clocks, placeholders
732 * used in the gmac_tx clock. The gmac driver will
733 * choose one parent depending on the PHY interface
734 * mode, using clk_set_rate auto-reparenting.
735 *
736 * The actual TX clock rate is not controlled by the
737 * gmac_tx clock.
Chen-Yu Tsaidaed5a82014-02-10 18:35:48 +0800738 */
739 mii_phy_tx_clk: clk@2 {
740 #clock-cells = <0>;
741 compatible = "fixed-clock";
742 clock-frequency = <25000000>;
743 clock-output-names = "mii_phy_tx";
744 };
745
746 gmac_int_tx_clk: clk@3 {
747 #clock-cells = <0>;
748 compatible = "fixed-clock";
749 clock-frequency = <125000000>;
750 clock-output-names = "gmac_int_tx";
751 };
752
753 gmac_tx_clk: clk@01c20164 {
754 #clock-cells = <0>;
755 compatible = "allwinner,sun7i-a20-gmac-clk";
756 reg = <0x01c20164 0x4>;
757 clocks = <&mii_phy_tx_clk>, <&gmac_int_tx_clk>;
758 clock-output-names = "gmac_tx";
759 };
760
761 /*
Chen-Yu Tsai0aff0372014-01-01 10:30:48 +0800762 * Dummy clock used by output clocks
763 */
764 osc24M_32k: clk@1 {
765 #clock-cells = <0>;
766 compatible = "fixed-factor-clock";
767 clock-div = <750>;
768 clock-mult = <1>;
769 clocks = <&osc24M>;
770 clock-output-names = "osc24M_32k";
771 };
772
773 clk_out_a: clk@01c201f0 {
774 #clock-cells = <0>;
775 compatible = "allwinner,sun7i-a20-out-clk";
776 reg = <0x01c201f0 0x4>;
777 clocks = <&osc24M_32k>, <&osc32k>, <&osc24M>;
778 clock-output-names = "clk_out_a";
779 };
780
781 clk_out_b: clk@01c201f4 {
782 #clock-cells = <0>;
783 compatible = "allwinner,sun7i-a20-out-clk";
784 reg = <0x01c201f4 0x4>;
785 clocks = <&osc24M_32k>, <&osc32k>, <&osc24M>;
786 clock-output-names = "clk_out_b";
787 };
Maxime Ripard4790ecf2013-07-17 10:07:10 +0200788 };
789
790 soc@01c00000 {
791 compatible = "simple-bus";
792 #address-cells = <1>;
793 #size-cells = <1>;
794 ranges;
795
Maxime Ripard0eb14a82015-03-26 15:53:44 +0100796 sram-controller@01c00000 {
797 compatible = "allwinner,sun4i-a10-sram-controller";
798 reg = <0x01c00000 0x30>;
799 #address-cells = <1>;
800 #size-cells = <1>;
801 ranges;
802
803 sram_a: sram@00000000 {
804 compatible = "mmio-sram";
805 reg = <0x00000000 0xc000>;
806 #address-cells = <1>;
807 #size-cells = <1>;
808 ranges = <0 0x00000000 0xc000>;
809
810 emac_sram: sram-section@8000 {
811 compatible = "allwinner,sun4i-a10-sram-a3-a4";
812 reg = <0x8000 0x4000>;
813 status = "disabled";
814 };
815 };
816
817 sram_d: sram@00010000 {
818 compatible = "mmio-sram";
819 reg = <0x00010000 0x1000>;
820 #address-cells = <1>;
821 #size-cells = <1>;
822 ranges = <0 0x00010000 0x1000>;
823
824 otg_sram: sram-section@0000 {
825 compatible = "allwinner,sun4i-a10-sram-d";
826 reg = <0x0000 0x1000>;
827 status = "disabled";
828 };
829 };
830 };
831
Carlo Caione8ff973a2014-03-19 20:21:18 +0100832 nmi_intc: interrupt-controller@01c00030 {
833 compatible = "allwinner,sun7i-a20-sc-nmi";
834 interrupt-controller;
835 #interrupt-cells = <2>;
836 reg = <0x01c00030 0x0c>;
Maxime Ripard19882b82014-12-16 22:59:58 +0100837 interrupts = <GIC_SPI 0 IRQ_TYPE_LEVEL_HIGH>;
Carlo Caione8ff973a2014-03-19 20:21:18 +0100838 };
839
Emilio López316e0b02014-08-04 17:09:59 -0300840 dma: dma-controller@01c02000 {
841 compatible = "allwinner,sun4i-a10-dma";
842 reg = <0x01c02000 0x1000>;
Maxime Ripard19882b82014-12-16 22:59:58 +0100843 interrupts = <GIC_SPI 27 IRQ_TYPE_LEVEL_HIGH>;
Emilio López316e0b02014-08-04 17:09:59 -0300844 clocks = <&ahb_gates 6>;
845 #dma-cells = <2>;
846 };
847
Boris Brezillonb2a83ad2016-06-14 14:17:38 +0300848 nfc: nand@01c03000 {
849 compatible = "allwinner,sun4i-a10-nand";
850 reg = <0x01c03000 0x1000>;
851 interrupts = <GIC_SPI 37 IRQ_TYPE_LEVEL_HIGH>;
852 clocks = <&ahb_gates 13>, <&nand_clk>;
853 clock-names = "ahb", "mod";
854 dmas = <&dma SUN4I_DMA_DEDICATED 3>;
855 dma-names = "rxtx";
856 status = "disabled";
857 #address-cells = <1>;
858 #size-cells = <0>;
859 };
860
Maxime Ripard36ab3e72014-02-22 22:35:54 +0100861 spi0: spi@01c05000 {
862 compatible = "allwinner,sun4i-a10-spi";
863 reg = <0x01c05000 0x1000>;
Maxime Ripard19882b82014-12-16 22:59:58 +0100864 interrupts = <GIC_SPI 10 IRQ_TYPE_LEVEL_HIGH>;
Maxime Ripard36ab3e72014-02-22 22:35:54 +0100865 clocks = <&ahb_gates 20>, <&spi0_clk>;
866 clock-names = "ahb", "mod";
Maxime Ripard1f9f6a72014-12-16 22:59:56 +0100867 dmas = <&dma SUN4I_DMA_DEDICATED 27>,
868 <&dma SUN4I_DMA_DEDICATED 26>;
Emilio Lópezffec7212014-08-04 17:10:02 -0300869 dma-names = "rx", "tx";
Maxime Ripard36ab3e72014-02-22 22:35:54 +0100870 status = "disabled";
871 #address-cells = <1>;
872 #size-cells = <0>;
Emmanuel Vadot9bbe3552016-12-27 11:28:07 +0100873 num-cs = <4>;
Maxime Ripard36ab3e72014-02-22 22:35:54 +0100874 };
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>;
Emmanuel Vadot9bbe3552016-12-27 11:28:07 +0100888 num-cs = <1>;
Maxime Ripard36ab3e72014-02-22 22:35:54 +0100889 };
890
Maxime Ripard2e804d02013-09-11 11:10:06 +0200891 emac: ethernet@01c0b000 {
Maxime Ripard1c70e092014-02-02 14:49:13 +0100892 compatible = "allwinner,sun4i-a10-emac";
Maxime Ripard2e804d02013-09-11 11:10:06 +0200893 reg = <0x01c0b000 0x1000>;
Maxime Ripard19882b82014-12-16 22:59:58 +0100894 interrupts = <GIC_SPI 55 IRQ_TYPE_LEVEL_HIGH>;
Maxime Ripard2e804d02013-09-11 11:10:06 +0200895 clocks = <&ahb_gates 17>;
Maxime Ripard0eb14a82015-03-26 15:53:44 +0100896 allwinner,sram = <&emac_sram 1>;
Maxime Ripard2e804d02013-09-11 11:10:06 +0200897 status = "disabled";
898 };
899
Aleksei Mamlin92395f52015-01-19 22:35:22 +0300900 mdio: mdio@01c0b080 {
Maxime Ripard1c70e092014-02-02 14:49:13 +0100901 compatible = "allwinner,sun4i-a10-mdio";
Maxime Ripard2e804d02013-09-11 11:10:06 +0200902 reg = <0x01c0b080 0x14>;
903 status = "disabled";
904 #address-cells = <1>;
905 #size-cells = <0>;
906 };
907
Hans de Goededd29ce52014-05-02 17:57:26 +0200908 mmc0: mmc@01c0f000 {
Hans de Goede57af7112016-07-30 16:25:48 +0200909 compatible = "allwinner,sun7i-a20-mmc";
Hans de Goededd29ce52014-05-02 17:57:26 +0200910 reg = <0x01c0f000 0x1000>;
Maxime Ripardd8c3a392014-07-11 19:39:06 +0200911 clocks = <&ahb_gates 8>,
912 <&mmc0_clk 0>,
913 <&mmc0_clk 1>,
914 <&mmc0_clk 2>;
915 clock-names = "ahb",
916 "mmc",
917 "output",
918 "sample";
Maxime Ripard19882b82014-12-16 22:59:58 +0100919 interrupts = <GIC_SPI 32 IRQ_TYPE_LEVEL_HIGH>;
Hans de Goededd29ce52014-05-02 17:57:26 +0200920 status = "disabled";
Hans de Goede4c1bb9c2015-03-10 16:27:09 +0100921 #address-cells = <1>;
922 #size-cells = <0>;
Hans de Goededd29ce52014-05-02 17:57:26 +0200923 };
924
925 mmc1: mmc@01c10000 {
Hans de Goede57af7112016-07-30 16:25:48 +0200926 compatible = "allwinner,sun7i-a20-mmc";
Hans de Goededd29ce52014-05-02 17:57:26 +0200927 reg = <0x01c10000 0x1000>;
Maxime Ripardd8c3a392014-07-11 19:39:06 +0200928 clocks = <&ahb_gates 9>,
929 <&mmc1_clk 0>,
930 <&mmc1_clk 1>,
931 <&mmc1_clk 2>;
932 clock-names = "ahb",
933 "mmc",
934 "output",
935 "sample";
Maxime Ripard19882b82014-12-16 22:59:58 +0100936 interrupts = <GIC_SPI 33 IRQ_TYPE_LEVEL_HIGH>;
Hans de Goededd29ce52014-05-02 17:57:26 +0200937 status = "disabled";
Hans de Goede4c1bb9c2015-03-10 16:27:09 +0100938 #address-cells = <1>;
939 #size-cells = <0>;
Hans de Goededd29ce52014-05-02 17:57:26 +0200940 };
941
942 mmc2: mmc@01c11000 {
Hans de Goede57af7112016-07-30 16:25:48 +0200943 compatible = "allwinner,sun7i-a20-mmc";
Hans de Goededd29ce52014-05-02 17:57:26 +0200944 reg = <0x01c11000 0x1000>;
Maxime Ripardd8c3a392014-07-11 19:39:06 +0200945 clocks = <&ahb_gates 10>,
946 <&mmc2_clk 0>,
947 <&mmc2_clk 1>,
948 <&mmc2_clk 2>;
949 clock-names = "ahb",
950 "mmc",
951 "output",
952 "sample";
Maxime Ripard19882b82014-12-16 22:59:58 +0100953 interrupts = <GIC_SPI 34 IRQ_TYPE_LEVEL_HIGH>;
Hans de Goededd29ce52014-05-02 17:57:26 +0200954 status = "disabled";
Hans de Goede4c1bb9c2015-03-10 16:27:09 +0100955 #address-cells = <1>;
956 #size-cells = <0>;
Hans de Goededd29ce52014-05-02 17:57:26 +0200957 };
958
959 mmc3: mmc@01c12000 {
Hans de Goede57af7112016-07-30 16:25:48 +0200960 compatible = "allwinner,sun7i-a20-mmc";
Hans de Goededd29ce52014-05-02 17:57:26 +0200961 reg = <0x01c12000 0x1000>;
Maxime Ripardd8c3a392014-07-11 19:39:06 +0200962 clocks = <&ahb_gates 11>,
963 <&mmc3_clk 0>,
964 <&mmc3_clk 1>,
965 <&mmc3_clk 2>;
966 clock-names = "ahb",
967 "mmc",
968 "output",
969 "sample";
Maxime Ripard19882b82014-12-16 22:59:58 +0100970 interrupts = <GIC_SPI 35 IRQ_TYPE_LEVEL_HIGH>;
Hans de Goededd29ce52014-05-02 17:57:26 +0200971 status = "disabled";
Hans de Goede4c1bb9c2015-03-10 16:27:09 +0100972 #address-cells = <1>;
973 #size-cells = <0>;
Hans de Goededd29ce52014-05-02 17:57:26 +0200974 };
975
Roman Byshkocbb3ff12014-10-22 00:14:03 +0200976 usb_otg: usb@01c13000 {
977 compatible = "allwinner,sun4i-a10-musb";
978 reg = <0x01c13000 0x0400>;
979 clocks = <&ahb_gates 0>;
980 interrupts = <GIC_SPI 38 IRQ_TYPE_LEVEL_HIGH>;
981 interrupt-names = "mc";
982 phys = <&usbphy 0>;
983 phy-names = "usb";
984 extcon = <&usbphy 0>;
985 allwinner,sram = <&otg_sram 1>;
986 status = "disabled";
987 };
988
Roman Byshko9debd0a2014-03-01 20:26:25 +0100989 usbphy: phy@01c13400 {
990 #phy-cells = <1>;
991 compatible = "allwinner,sun7i-a20-usb-phy";
992 reg = <0x01c13400 0x10 0x01c14800 0x4 0x01c1c800 0x4>;
993 reg-names = "phy_ctrl", "pmu1", "pmu2";
994 clocks = <&usb_clk 8>;
995 clock-names = "usb_phy";
Roman Byshko134c60a2014-11-10 19:55:08 +0100996 resets = <&usb_clk 0>, <&usb_clk 1>, <&usb_clk 2>;
997 reset-names = "usb0_reset", "usb1_reset", "usb2_reset";
Roman Byshko9debd0a2014-03-01 20:26:25 +0100998 status = "disabled";
999 };
1000
1001 ehci0: usb@01c14000 {
1002 compatible = "allwinner,sun7i-a20-ehci", "generic-ehci";
1003 reg = <0x01c14000 0x100>;
Maxime Ripard19882b82014-12-16 22:59:58 +01001004 interrupts = <GIC_SPI 39 IRQ_TYPE_LEVEL_HIGH>;
Roman Byshko9debd0a2014-03-01 20:26:25 +01001005 clocks = <&ahb_gates 1>;
1006 phys = <&usbphy 1>;
1007 phy-names = "usb";
1008 status = "disabled";
1009 };
1010
1011 ohci0: usb@01c14400 {
1012 compatible = "allwinner,sun7i-a20-ohci", "generic-ohci";
1013 reg = <0x01c14400 0x100>;
Maxime Ripard19882b82014-12-16 22:59:58 +01001014 interrupts = <GIC_SPI 64 IRQ_TYPE_LEVEL_HIGH>;
Roman Byshko9debd0a2014-03-01 20:26:25 +01001015 clocks = <&usb_clk 6>, <&ahb_gates 2>;
1016 phys = <&usbphy 1>;
1017 phy-names = "usb";
1018 status = "disabled";
1019 };
1020
LABBE Corentin110d4e22015-07-17 16:39:39 +02001021 crypto: crypto-engine@01c15000 {
Antoine Tenart9bea19a2017-06-01 21:39:05 +02001022 compatible = "allwinner,sun7i-a20-crypto",
1023 "allwinner,sun4i-a10-crypto";
LABBE Corentin110d4e22015-07-17 16:39:39 +02001024 reg = <0x01c15000 0x1000>;
1025 interrupts = <GIC_SPI 86 IRQ_TYPE_LEVEL_HIGH>;
1026 clocks = <&ahb_gates 5>, <&ss_clk>;
1027 clock-names = "ahb", "mod";
1028 };
1029
Maxime Ripard36ab3e72014-02-22 22:35:54 +01001030 spi2: spi@01c17000 {
1031 compatible = "allwinner,sun4i-a10-spi";
1032 reg = <0x01c17000 0x1000>;
Maxime Ripard19882b82014-12-16 22:59:58 +01001033 interrupts = <GIC_SPI 12 IRQ_TYPE_LEVEL_HIGH>;
Maxime Ripard36ab3e72014-02-22 22:35:54 +01001034 clocks = <&ahb_gates 22>, <&spi2_clk>;
1035 clock-names = "ahb", "mod";
Maxime Ripard1f9f6a72014-12-16 22:59:56 +01001036 dmas = <&dma SUN4I_DMA_DEDICATED 29>,
1037 <&dma SUN4I_DMA_DEDICATED 28>;
Emilio Lópezffec7212014-08-04 17:10:02 -03001038 dma-names = "rx", "tx";
Maxime Ripard36ab3e72014-02-22 22:35:54 +01001039 status = "disabled";
1040 #address-cells = <1>;
1041 #size-cells = <0>;
Emmanuel Vadot9bbe3552016-12-27 11:28:07 +01001042 num-cs = <1>;
Maxime Ripard36ab3e72014-02-22 22:35:54 +01001043 };
1044
Hans de Goede902febf2014-03-01 20:26:22 +01001045 ahci: sata@01c18000 {
1046 compatible = "allwinner,sun4i-a10-ahci";
1047 reg = <0x01c18000 0x1000>;
Maxime Ripard19882b82014-12-16 22:59:58 +01001048 interrupts = <GIC_SPI 56 IRQ_TYPE_LEVEL_HIGH>;
Hans de Goede902febf2014-03-01 20:26:22 +01001049 clocks = <&pll6 0>, <&ahb_gates 25>;
1050 status = "disabled";
1051 };
1052
Roman Byshko9debd0a2014-03-01 20:26:25 +01001053 ehci1: usb@01c1c000 {
1054 compatible = "allwinner,sun7i-a20-ehci", "generic-ehci";
1055 reg = <0x01c1c000 0x100>;
Maxime Ripard19882b82014-12-16 22:59:58 +01001056 interrupts = <GIC_SPI 40 IRQ_TYPE_LEVEL_HIGH>;
Roman Byshko9debd0a2014-03-01 20:26:25 +01001057 clocks = <&ahb_gates 3>;
1058 phys = <&usbphy 2>;
1059 phy-names = "usb";
1060 status = "disabled";
1061 };
1062
1063 ohci1: usb@01c1c400 {
1064 compatible = "allwinner,sun7i-a20-ohci", "generic-ohci";
1065 reg = <0x01c1c400 0x100>;
Maxime Ripard19882b82014-12-16 22:59:58 +01001066 interrupts = <GIC_SPI 65 IRQ_TYPE_LEVEL_HIGH>;
Roman Byshko9debd0a2014-03-01 20:26:25 +01001067 clocks = <&usb_clk 7>, <&ahb_gates 4>;
1068 phys = <&usbphy 2>;
1069 phy-names = "usb";
1070 status = "disabled";
1071 };
1072
Maxime Ripard36ab3e72014-02-22 22:35:54 +01001073 spi3: spi@01c1f000 {
1074 compatible = "allwinner,sun4i-a10-spi";
1075 reg = <0x01c1f000 0x1000>;
Maxime Ripard19882b82014-12-16 22:59:58 +01001076 interrupts = <GIC_SPI 50 IRQ_TYPE_LEVEL_HIGH>;
Maxime Ripard36ab3e72014-02-22 22:35:54 +01001077 clocks = <&ahb_gates 23>, <&spi3_clk>;
1078 clock-names = "ahb", "mod";
Maxime Ripard1f9f6a72014-12-16 22:59:56 +01001079 dmas = <&dma SUN4I_DMA_DEDICATED 31>,
1080 <&dma SUN4I_DMA_DEDICATED 30>;
Emilio Lópezffec7212014-08-04 17:10:02 -03001081 dma-names = "rx", "tx";
Maxime Ripard36ab3e72014-02-22 22:35:54 +01001082 status = "disabled";
1083 #address-cells = <1>;
1084 #size-cells = <0>;
Emmanuel Vadot9bbe3552016-12-27 11:28:07 +01001085 num-cs = <1>;
Maxime Ripard36ab3e72014-02-22 22:35:54 +01001086 };
1087
Maxime Ripard17eac032013-07-24 23:46:11 +02001088 pio: pinctrl@01c20800 {
1089 compatible = "allwinner,sun7i-a20-pinctrl";
1090 reg = <0x01c20800 0x400>;
Maxime Ripard19882b82014-12-16 22:59:58 +01001091 interrupts = <GIC_SPI 28 IRQ_TYPE_LEVEL_HIGH>;
Maxime Ripardbe7bc6b2016-10-19 11:15:27 +02001092 clocks = <&apb0_gates 5>, <&osc24M>, <&osc32k>;
1093 clock-names = "apb", "hosc", "losc";
Maxime Ripard17eac032013-07-24 23:46:11 +02001094 gpio-controller;
1095 interrupt-controller;
Maxime Ripardb03e0812015-06-17 11:44:24 +02001096 #interrupt-cells = <3>;
Maxime Ripard17eac032013-07-24 23:46:11 +02001097 #gpio-cells = <3>;
Maxime Ripard9f229ba2013-07-25 00:09:47 +02001098
Patrick Menschel86daa3d2017-04-03 19:00:14 +02001099 can0_pins_a: can0@0 {
1100 pins = "PH20", "PH21";
1101 function = "can";
1102 };
1103
Aleksei Mamlind130f2e2016-06-10 11:05:19 +03001104 clk_out_a_pins_a: clk_out_a@0 {
Maxime Ripard1edcd362016-09-23 14:28:10 +03001105 pins = "PI12";
1106 function = "clk_out_a";
Alexandre Bellonifd7898a2014-04-28 18:17:12 +02001107 };
1108
Aleksei Mamlind130f2e2016-06-10 11:05:19 +03001109 clk_out_b_pins_a: clk_out_b@0 {
Maxime Ripard1edcd362016-09-23 14:28:10 +03001110 pins = "PI13";
1111 function = "clk_out_b";
Alexandre Bellonifd7898a2014-04-28 18:17:12 +02001112 };
1113
Aleksei Mamlind130f2e2016-06-10 11:05:19 +03001114 emac_pins_a: emac0@0 {
Maxime Ripard1edcd362016-09-23 14:28:10 +03001115 pins = "PA0", "PA1", "PA2",
1116 "PA3", "PA4", "PA5", "PA6",
1117 "PA7", "PA8", "PA9", "PA10",
1118 "PA11", "PA12", "PA13", "PA14",
1119 "PA15", "PA16";
1120 function = "emac";
Maxime Ripard9f229ba2013-07-25 00:09:47 +02001121 };
1122
Aleksei Mamlind130f2e2016-06-10 11:05:19 +03001123 gmac_pins_mii_a: gmac_mii@0 {
Maxime Ripard1edcd362016-09-23 14:28:10 +03001124 pins = "PA0", "PA1", "PA2",
1125 "PA3", "PA4", "PA5", "PA6",
1126 "PA7", "PA8", "PA9", "PA10",
1127 "PA11", "PA12", "PA13", "PA14",
1128 "PA15", "PA16";
1129 function = "gmac";
Chen-Yu Tsai4261ec42014-01-14 22:49:50 +08001130 };
1131
Aleksei Mamlind130f2e2016-06-10 11:05:19 +03001132 gmac_pins_rgmii_a: gmac_rgmii@0 {
Maxime Ripard1edcd362016-09-23 14:28:10 +03001133 pins = "PA0", "PA1", "PA2",
1134 "PA3", "PA4", "PA5", "PA6",
1135 "PA7", "PA8", "PA10",
1136 "PA11", "PA12", "PA13",
1137 "PA15", "PA16";
1138 function = "gmac";
Aleksei Mamlind130f2e2016-06-10 11:05:19 +03001139 /*
1140 * data lines in RGMII mode use DDR mode
1141 * and need a higher signal drive strength
1142 */
Maxime Ripard1edcd362016-09-23 14:28:10 +03001143 drive-strength = <40>;
Maxime Ripard9f229ba2013-07-25 00:09:47 +02001144 };
Maxime Ripard756084c2013-09-11 11:10:07 +02001145
Maxime Riparde5496a32013-08-31 23:08:49 +02001146 i2c0_pins_a: i2c0@0 {
Maxime Ripard1edcd362016-09-23 14:28:10 +03001147 pins = "PB0", "PB1";
1148 function = "i2c0";
Maxime Riparde5496a32013-08-31 23:08:49 +02001149 };
1150
1151 i2c1_pins_a: i2c1@0 {
Maxime Ripard1edcd362016-09-23 14:28:10 +03001152 pins = "PB18", "PB19";
1153 function = "i2c1";
Maxime Riparde5496a32013-08-31 23:08:49 +02001154 };
1155
1156 i2c2_pins_a: i2c2@0 {
Maxime Ripard1edcd362016-09-23 14:28:10 +03001157 pins = "PB20", "PB21";
1158 function = "i2c2";
Maxime Riparde5496a32013-08-31 23:08:49 +02001159 };
1160
Wills Wang7b5bace2014-08-19 15:33:00 +08001161 i2c3_pins_a: i2c3@0 {
Maxime Ripard1edcd362016-09-23 14:28:10 +03001162 pins = "PI0", "PI1";
1163 function = "i2c3";
Wills Wang7b5bace2014-08-19 15:33:00 +08001164 };
1165
Aleksei Mamlind130f2e2016-06-10 11:05:19 +03001166 ir0_rx_pins_a: ir0@0 {
Maxime Ripard1edcd362016-09-23 14:28:10 +03001167 pins = "PB4";
1168 function = "ir0";
Aleksei Mamlind130f2e2016-06-10 11:05:19 +03001169 };
1170
1171 ir0_tx_pins_a: ir0@1 {
Maxime Ripard1edcd362016-09-23 14:28:10 +03001172 pins = "PB3";
1173 function = "ir0";
Aleksei Mamlind130f2e2016-06-10 11:05:19 +03001174 };
1175
1176 ir1_rx_pins_a: ir1@0 {
Maxime Ripard1edcd362016-09-23 14:28:10 +03001177 pins = "PB23";
1178 function = "ir1";
Aleksei Mamlind130f2e2016-06-10 11:05:19 +03001179 };
1180
1181 ir1_tx_pins_a: ir1@1 {
Maxime Ripard1edcd362016-09-23 14:28:10 +03001182 pins = "PB22";
1183 function = "ir1";
Aleksei Mamlind130f2e2016-06-10 11:05:19 +03001184 };
1185
1186 mmc0_pins_a: mmc0@0 {
Maxime Ripard1edcd362016-09-23 14:28:10 +03001187 pins = "PF0", "PF1", "PF2",
1188 "PF3", "PF4", "PF5";
1189 function = "mmc0";
1190 drive-strength = <30>;
Chen-Yu Tsai80ee72e2016-11-17 17:34:38 +08001191 bias-pull-up;
Aleksei Mamlind130f2e2016-06-10 11:05:19 +03001192 };
1193
Aleksei Mamlind130f2e2016-06-10 11:05:19 +03001194 mmc2_pins_a: mmc2@0 {
Maxime Ripard1edcd362016-09-23 14:28:10 +03001195 pins = "PC6", "PC7", "PC8",
1196 "PC9", "PC10", "PC11";
1197 function = "mmc2";
1198 drive-strength = <30>;
1199 bias-pull-up;
Aleksei Mamlind130f2e2016-06-10 11:05:19 +03001200 };
1201
1202 mmc3_pins_a: mmc3@0 {
Maxime Ripard1edcd362016-09-23 14:28:10 +03001203 pins = "PI4", "PI5", "PI6",
1204 "PI7", "PI8", "PI9";
1205 function = "mmc3";
1206 drive-strength = <30>;
Chen-Yu Tsai80ee72e2016-11-17 17:34:38 +08001207 bias-pull-up;
Aleksei Mamlind130f2e2016-06-10 11:05:19 +03001208 };
1209
1210 ps20_pins_a: ps20@0 {
Maxime Ripard1edcd362016-09-23 14:28:10 +03001211 pins = "PI20", "PI21";
1212 function = "ps2";
Maxime Ripard756084c2013-09-11 11:10:07 +02001213 };
Chen-Yu Tsaif2e07592014-01-01 10:30:50 +08001214
Aleksei Mamlind130f2e2016-06-10 11:05:19 +03001215 ps21_pins_a: ps21@0 {
Maxime Ripard1edcd362016-09-23 14:28:10 +03001216 pins = "PH12", "PH13";
1217 function = "ps2";
Chen-Yu Tsaif2e07592014-01-01 10:30:50 +08001218 };
1219
Aleksei Mamlind130f2e2016-06-10 11:05:19 +03001220 pwm0_pins_a: pwm0@0 {
Maxime Ripard1edcd362016-09-23 14:28:10 +03001221 pins = "PB2";
1222 function = "pwm";
Chen-Yu Tsaif2e07592014-01-01 10:30:50 +08001223 };
Chen-Yu Tsai129ccbc2014-02-10 18:35:50 +08001224
Aleksei Mamlind130f2e2016-06-10 11:05:19 +03001225 pwm1_pins_a: pwm1@0 {
Maxime Ripard1edcd362016-09-23 14:28:10 +03001226 pins = "PI3";
1227 function = "pwm";
Chen-Yu Tsai129ccbc2014-02-10 18:35:50 +08001228 };
1229
Aleksei Mamlind130f2e2016-06-10 11:05:19 +03001230 spdif_tx_pins_a: spdif@0 {
Maxime Ripard1edcd362016-09-23 14:28:10 +03001231 pins = "PB13";
1232 function = "spdif";
1233 bias-pull-up;
Chen-Yu Tsai129ccbc2014-02-10 18:35:50 +08001234 };
Maxime Ripard412f2c62014-02-22 22:35:58 +01001235
Hans de Goede2dad53b2014-10-01 09:26:04 +02001236 spi0_pins_a: spi0@0 {
Maxime Ripard1edcd362016-09-23 14:28:10 +03001237 pins = "PI11", "PI12", "PI13";
1238 function = "spi0";
Maxime Ripardf3022c62015-05-03 09:25:41 +02001239 };
1240
1241 spi0_cs0_pins_a: spi0_cs0@0 {
Maxime Ripard1edcd362016-09-23 14:28:10 +03001242 pins = "PI10";
1243 function = "spi0";
Maxime Ripardf3022c62015-05-03 09:25:41 +02001244 };
1245
1246 spi0_cs1_pins_a: spi0_cs1@0 {
Maxime Ripard1edcd362016-09-23 14:28:10 +03001247 pins = "PI14";
1248 function = "spi0";
Hans de Goede2dad53b2014-10-01 09:26:04 +02001249 };
1250
Maxime Ripard412f2c62014-02-22 22:35:58 +01001251 spi1_pins_a: spi1@0 {
Maxime Ripard1edcd362016-09-23 14:28:10 +03001252 pins = "PI17", "PI18", "PI19";
1253 function = "spi1";
Maxime Ripardf3022c62015-05-03 09:25:41 +02001254 };
1255
1256 spi1_cs0_pins_a: spi1_cs0@0 {
Maxime Ripard1edcd362016-09-23 14:28:10 +03001257 pins = "PI16";
1258 function = "spi1";
Maxime Ripard412f2c62014-02-22 22:35:58 +01001259 };
1260
1261 spi2_pins_a: spi2@0 {
Maxime Ripard1edcd362016-09-23 14:28:10 +03001262 pins = "PC20", "PC21", "PC22";
1263 function = "spi2";
Maxime Ripard412f2c62014-02-22 22:35:58 +01001264 };
Hans de Goede11fbedf2014-05-02 17:57:27 +02001265
Wills Wang7b5bace2014-08-19 15:33:00 +08001266 spi2_pins_b: spi2@1 {
Maxime Ripard1edcd362016-09-23 14:28:10 +03001267 pins = "PB15", "PB16", "PB17";
1268 function = "spi2";
Maxime Ripardf3022c62015-05-03 09:25:41 +02001269 };
1270
1271 spi2_cs0_pins_a: spi2_cs0@0 {
Maxime Ripard1edcd362016-09-23 14:28:10 +03001272 pins = "PC19";
1273 function = "spi2";
Maxime Ripardf3022c62015-05-03 09:25:41 +02001274 };
1275
1276 spi2_cs0_pins_b: spi2_cs0@1 {
Maxime Ripard1edcd362016-09-23 14:28:10 +03001277 pins = "PB14";
1278 function = "spi2";
Wills Wang7b5bace2014-08-19 15:33:00 +08001279 };
1280
Aleksei Mamlind130f2e2016-06-10 11:05:19 +03001281 uart0_pins_a: uart0@0 {
Maxime Ripard1edcd362016-09-23 14:28:10 +03001282 pins = "PB22", "PB23";
1283 function = "uart0";
Hans de Goede11fbedf2014-05-02 17:57:27 +02001284 };
Alexander Bersenev0fc2b7a2014-06-09 00:08:11 +06001285
Aleksei Mamlind130f2e2016-06-10 11:05:19 +03001286 uart2_pins_a: uart2@0 {
Maxime Ripard1edcd362016-09-23 14:28:10 +03001287 pins = "PI16", "PI17", "PI18", "PI19";
1288 function = "uart2";
Alexander Bersenev0fc2b7a2014-06-09 00:08:11 +06001289 };
1290
Aleksei Mamlind130f2e2016-06-10 11:05:19 +03001291 uart3_pins_a: uart3@0 {
Maxime Ripard1edcd362016-09-23 14:28:10 +03001292 pins = "PG6", "PG7", "PG8", "PG9";
1293 function = "uart3";
Marcus Cooper469a22e2015-05-02 13:36:20 +02001294 };
1295
Aleksei Mamlind130f2e2016-06-10 11:05:19 +03001296 uart3_pins_b: uart3@1 {
Maxime Ripard1edcd362016-09-23 14:28:10 +03001297 pins = "PH0", "PH1";
1298 function = "uart3";
Marcus Cooper469a22e2015-05-02 13:36:20 +02001299 };
1300
Aleksei Mamlind130f2e2016-06-10 11:05:19 +03001301 uart4_pins_a: uart4@0 {
Maxime Ripard1edcd362016-09-23 14:28:10 +03001302 pins = "PG10", "PG11";
1303 function = "uart4";
Alexander Bersenev0fc2b7a2014-06-09 00:08:11 +06001304 };
Vishnu Patekar1e8d1562015-01-25 19:10:09 +05301305
Aleksei Mamlind130f2e2016-06-10 11:05:19 +03001306 uart4_pins_b: uart4@1 {
Maxime Ripard1edcd362016-09-23 14:28:10 +03001307 pins = "PH4", "PH5";
1308 function = "uart4";
Aleksei Mamlind130f2e2016-06-10 11:05:19 +03001309 };
1310
1311 uart5_pins_a: uart5@0 {
Maxime Ripard1edcd362016-09-23 14:28:10 +03001312 pins = "PI10", "PI11";
1313 function = "uart5";
Aleksei Mamlind130f2e2016-06-10 11:05:19 +03001314 };
1315
1316 uart6_pins_a: uart6@0 {
Maxime Ripard1edcd362016-09-23 14:28:10 +03001317 pins = "PI12", "PI13";
1318 function = "uart6";
Aleksei Mamlind130f2e2016-06-10 11:05:19 +03001319 };
1320
1321 uart7_pins_a: uart7@0 {
Maxime Ripard1edcd362016-09-23 14:28:10 +03001322 pins = "PI20", "PI21";
1323 function = "uart7";
Vishnu Patekar1e8d1562015-01-25 19:10:09 +05301324 };
Maxime Ripard17eac032013-07-24 23:46:11 +02001325 };
1326
Maxime Ripard4790ecf2013-07-17 10:07:10 +02001327 timer@01c20c00 {
Maxime Ripardb4f26442014-02-06 10:40:32 +01001328 compatible = "allwinner,sun4i-a10-timer";
Maxime Ripard4790ecf2013-07-17 10:07:10 +02001329 reg = <0x01c20c00 0x90>;
Maxime Ripard19882b82014-12-16 22:59:58 +01001330 interrupts = <GIC_SPI 22 IRQ_TYPE_LEVEL_HIGH>,
1331 <GIC_SPI 23 IRQ_TYPE_LEVEL_HIGH>,
1332 <GIC_SPI 24 IRQ_TYPE_LEVEL_HIGH>,
1333 <GIC_SPI 25 IRQ_TYPE_LEVEL_HIGH>,
1334 <GIC_SPI 67 IRQ_TYPE_LEVEL_HIGH>,
1335 <GIC_SPI 68 IRQ_TYPE_LEVEL_HIGH>;
Maxime Ripard4790ecf2013-07-17 10:07:10 +02001336 clocks = <&osc24M>;
1337 };
1338
1339 wdt: watchdog@01c20c90 {
Maxime Ripardca5d04d2014-02-07 22:29:26 +01001340 compatible = "allwinner,sun4i-a10-wdt";
Maxime Ripard4790ecf2013-07-17 10:07:10 +02001341 reg = <0x01c20c90 0x10>;
1342 };
1343
Carlo Caioneb5d905c2013-10-16 20:30:26 +02001344 rtc: rtc@01c20d00 {
1345 compatible = "allwinner,sun7i-a20-rtc";
1346 reg = <0x01c20d00 0x20>;
Maxime Ripard19882b82014-12-16 22:59:58 +01001347 interrupts = <GIC_SPI 24 IRQ_TYPE_LEVEL_HIGH>;
Carlo Caioneb5d905c2013-10-16 20:30:26 +02001348 };
1349
Alexandre Belloni8ec40c22014-04-28 18:17:13 +02001350 pwm: pwm@01c20e00 {
1351 compatible = "allwinner,sun7i-a20-pwm";
1352 reg = <0x01c20e00 0xc>;
1353 clocks = <&osc24M>;
1354 #pwm-cells = <3>;
1355 status = "disabled";
1356 };
1357
Marcus Coopera34d6ce2016-03-21 21:01:04 +01001358 spdif: spdif@01c21000 {
1359 #sound-dai-cells = <0>;
1360 compatible = "allwinner,sun4i-a10-spdif";
1361 reg = <0x01c21000 0x400>;
1362 interrupts = <GIC_SPI 13 IRQ_TYPE_LEVEL_HIGH>;
1363 clocks = <&apb0_gates 1>, <&spdif_clk>;
1364 clock-names = "apb", "spdif";
1365 dmas = <&dma SUN4I_DMA_NORMAL 2>,
1366 <&dma SUN4I_DMA_NORMAL 2>;
1367 dma-names = "rx", "tx";
1368 status = "disabled";
1369 };
1370
Alexander Bersenevc1a0ee32014-06-21 17:04:05 +06001371 ir0: ir@01c21800 {
Hans de Goede1715a382014-06-30 23:57:54 +02001372 compatible = "allwinner,sun4i-a10-ir";
Alexander Bersenevc1a0ee32014-06-21 17:04:05 +06001373 clocks = <&apb0_gates 6>, <&ir0_clk>;
1374 clock-names = "apb", "ir";
Maxime Ripard19882b82014-12-16 22:59:58 +01001375 interrupts = <GIC_SPI 5 IRQ_TYPE_LEVEL_HIGH>;
Alexander Bersenevc1a0ee32014-06-21 17:04:05 +06001376 reg = <0x01c21800 0x40>;
1377 status = "disabled";
1378 };
1379
1380 ir1: ir@01c21c00 {
Hans de Goede1715a382014-06-30 23:57:54 +02001381 compatible = "allwinner,sun4i-a10-ir";
Alexander Bersenevc1a0ee32014-06-21 17:04:05 +06001382 clocks = <&apb0_gates 7>, <&ir1_clk>;
1383 clock-names = "apb", "ir";
Maxime Ripard19882b82014-12-16 22:59:58 +01001384 interrupts = <GIC_SPI 6 IRQ_TYPE_LEVEL_HIGH>;
Alexander Bersenevc1a0ee32014-06-21 17:04:05 +06001385 reg = <0x01c21c00 0x40>;
1386 status = "disabled";
1387 };
1388
Maxime Ripard6a706352015-09-19 16:48:00 +02001389 i2s1: i2s@01c22000 {
1390 #sound-dai-cells = <0>;
1391 compatible = "allwinner,sun4i-a10-i2s";
1392 reg = <0x01c22000 0x400>;
1393 interrupts = <GIC_SPI 87 IRQ_TYPE_LEVEL_HIGH>;
1394 clocks = <&apb0_gates 4>, <&i2s1_clk>;
1395 clock-names = "apb", "mod";
1396 dmas = <&dma SUN4I_DMA_NORMAL 4>,
1397 <&dma SUN4I_DMA_NORMAL 4>;
1398 dma-names = "rx", "tx";
1399 status = "disabled";
1400 };
1401
1402 i2s0: i2s@01c22400 {
1403 #sound-dai-cells = <0>;
1404 compatible = "allwinner,sun4i-a10-i2s";
1405 reg = <0x01c22400 0x400>;
1406 interrupts = <GIC_SPI 16 IRQ_TYPE_LEVEL_HIGH>;
1407 clocks = <&apb0_gates 3>, <&i2s0_clk>;
1408 clock-names = "apb", "mod";
1409 dmas = <&dma SUN4I_DMA_NORMAL 3>,
1410 <&dma SUN4I_DMA_NORMAL 3>;
1411 dma-names = "rx", "tx";
1412 status = "disabled";
1413 };
1414
Hans de Goedea6a2d642014-12-23 11:13:22 +01001415 lradc: lradc@01c22800 {
1416 compatible = "allwinner,sun4i-a10-lradc-keys";
1417 reg = <0x01c22800 0x100>;
Maxime Ripard19882b82014-12-16 22:59:58 +01001418 interrupts = <GIC_SPI 31 IRQ_TYPE_LEVEL_HIGH>;
Hans de Goedea6a2d642014-12-23 11:13:22 +01001419 status = "disabled";
1420 };
1421
Emilio Lópezd5ce1072014-08-18 01:07:55 -03001422 codec: codec@01c22c00 {
1423 #sound-dai-cells = <0>;
1424 compatible = "allwinner,sun7i-a20-codec";
1425 reg = <0x01c22c00 0x40>;
1426 interrupts = <GIC_SPI 30 IRQ_TYPE_LEVEL_HIGH>;
1427 clocks = <&apb0_gates 0>, <&codec_clk>;
1428 clock-names = "apb", "codec";
1429 dmas = <&dma SUN4I_DMA_NORMAL 19>,
1430 <&dma SUN4I_DMA_NORMAL 19>;
1431 dma-names = "rx", "tx";
1432 status = "disabled";
1433 };
1434
Oliver Schinagl2bad9692013-09-03 12:33:28 +02001435 sid: eeprom@01c23800 {
1436 compatible = "allwinner,sun7i-a20-sid";
1437 reg = <0x01c23800 0x200>;
1438 };
1439
Maxime Ripard6a706352015-09-19 16:48:00 +02001440 i2s2: i2s@01c24400 {
1441 #sound-dai-cells = <0>;
1442 compatible = "allwinner,sun4i-a10-i2s";
1443 reg = <0x01c24400 0x400>;
1444 interrupts = <GIC_SPI 90 IRQ_TYPE_LEVEL_HIGH>;
1445 clocks = <&apb0_gates 8>, <&i2s2_clk>;
1446 clock-names = "apb", "mod";
1447 dmas = <&dma SUN4I_DMA_NORMAL 6>,
1448 <&dma SUN4I_DMA_NORMAL 6>;
1449 dma-names = "rx", "tx";
1450 status = "disabled";
1451 };
1452
Hans de Goede00f7ed82013-12-31 17:20:52 +01001453 rtp: rtp@01c25000 {
Hans de Goede8bf1b9b2015-03-08 21:53:42 +01001454 compatible = "allwinner,sun5i-a13-ts";
Hans de Goede00f7ed82013-12-31 17:20:52 +01001455 reg = <0x01c25000 0x100>;
Maxime Ripard19882b82014-12-16 22:59:58 +01001456 interrupts = <GIC_SPI 29 IRQ_TYPE_LEVEL_HIGH>;
Chen-Yu Tsai41e7afb2015-01-06 10:35:15 +08001457 #thermal-sensor-cells = <0>;
Hans de Goede00f7ed82013-12-31 17:20:52 +01001458 };
1459
Maxime Ripard4790ecf2013-07-17 10:07:10 +02001460 uart0: serial@01c28000 {
1461 compatible = "snps,dw-apb-uart";
1462 reg = <0x01c28000 0x400>;
Maxime Ripard19882b82014-12-16 22:59:58 +01001463 interrupts = <GIC_SPI 1 IRQ_TYPE_LEVEL_HIGH>;
Maxime Ripard4790ecf2013-07-17 10:07:10 +02001464 reg-shift = <2>;
1465 reg-io-width = <4>;
Maxime Ripardde7dc932013-07-25 21:12:52 +02001466 clocks = <&apb1_gates 16>;
Maxime Ripard4790ecf2013-07-17 10:07:10 +02001467 status = "disabled";
1468 };
1469
1470 uart1: serial@01c28400 {
1471 compatible = "snps,dw-apb-uart";
1472 reg = <0x01c28400 0x400>;
Maxime Ripard19882b82014-12-16 22:59:58 +01001473 interrupts = <GIC_SPI 2 IRQ_TYPE_LEVEL_HIGH>;
Maxime Ripard4790ecf2013-07-17 10:07:10 +02001474 reg-shift = <2>;
1475 reg-io-width = <4>;
Maxime Ripardde7dc932013-07-25 21:12:52 +02001476 clocks = <&apb1_gates 17>;
Maxime Ripard4790ecf2013-07-17 10:07:10 +02001477 status = "disabled";
1478 };
1479
1480 uart2: serial@01c28800 {
1481 compatible = "snps,dw-apb-uart";
1482 reg = <0x01c28800 0x400>;
Maxime Ripard19882b82014-12-16 22:59:58 +01001483 interrupts = <GIC_SPI 3 IRQ_TYPE_LEVEL_HIGH>;
Maxime Ripard4790ecf2013-07-17 10:07:10 +02001484 reg-shift = <2>;
1485 reg-io-width = <4>;
Maxime Ripardde7dc932013-07-25 21:12:52 +02001486 clocks = <&apb1_gates 18>;
Maxime Ripard4790ecf2013-07-17 10:07:10 +02001487 status = "disabled";
1488 };
1489
1490 uart3: serial@01c28c00 {
1491 compatible = "snps,dw-apb-uart";
1492 reg = <0x01c28c00 0x400>;
Maxime Ripard19882b82014-12-16 22:59:58 +01001493 interrupts = <GIC_SPI 4 IRQ_TYPE_LEVEL_HIGH>;
Maxime Ripard4790ecf2013-07-17 10:07:10 +02001494 reg-shift = <2>;
1495 reg-io-width = <4>;
Maxime Ripardde7dc932013-07-25 21:12:52 +02001496 clocks = <&apb1_gates 19>;
Maxime Ripard4790ecf2013-07-17 10:07:10 +02001497 status = "disabled";
1498 };
1499
1500 uart4: serial@01c29000 {
1501 compatible = "snps,dw-apb-uart";
1502 reg = <0x01c29000 0x400>;
Maxime Ripard19882b82014-12-16 22:59:58 +01001503 interrupts = <GIC_SPI 17 IRQ_TYPE_LEVEL_HIGH>;
Maxime Ripard4790ecf2013-07-17 10:07:10 +02001504 reg-shift = <2>;
1505 reg-io-width = <4>;
Maxime Ripardde7dc932013-07-25 21:12:52 +02001506 clocks = <&apb1_gates 20>;
Maxime Ripard4790ecf2013-07-17 10:07:10 +02001507 status = "disabled";
1508 };
1509
1510 uart5: serial@01c29400 {
1511 compatible = "snps,dw-apb-uart";
1512 reg = <0x01c29400 0x400>;
Maxime Ripard19882b82014-12-16 22:59:58 +01001513 interrupts = <GIC_SPI 18 IRQ_TYPE_LEVEL_HIGH>;
Maxime Ripard4790ecf2013-07-17 10:07:10 +02001514 reg-shift = <2>;
1515 reg-io-width = <4>;
Maxime Ripardde7dc932013-07-25 21:12:52 +02001516 clocks = <&apb1_gates 21>;
Maxime Ripard4790ecf2013-07-17 10:07:10 +02001517 status = "disabled";
1518 };
1519
1520 uart6: serial@01c29800 {
1521 compatible = "snps,dw-apb-uart";
1522 reg = <0x01c29800 0x400>;
Maxime Ripard19882b82014-12-16 22:59:58 +01001523 interrupts = <GIC_SPI 19 IRQ_TYPE_LEVEL_HIGH>;
Maxime Ripard4790ecf2013-07-17 10:07:10 +02001524 reg-shift = <2>;
1525 reg-io-width = <4>;
Maxime Ripardde7dc932013-07-25 21:12:52 +02001526 clocks = <&apb1_gates 22>;
Maxime Ripard4790ecf2013-07-17 10:07:10 +02001527 status = "disabled";
1528 };
1529
1530 uart7: serial@01c29c00 {
1531 compatible = "snps,dw-apb-uart";
1532 reg = <0x01c29c00 0x400>;
Maxime Ripard19882b82014-12-16 22:59:58 +01001533 interrupts = <GIC_SPI 20 IRQ_TYPE_LEVEL_HIGH>;
Maxime Ripard4790ecf2013-07-17 10:07:10 +02001534 reg-shift = <2>;
1535 reg-io-width = <4>;
Maxime Ripardde7dc932013-07-25 21:12:52 +02001536 clocks = <&apb1_gates 23>;
Maxime Ripard4790ecf2013-07-17 10:07:10 +02001537 status = "disabled";
1538 };
1539
Patrick Menschelcb44b462017-04-04 20:36:30 +02001540 ps20: ps2@01c2a000 {
1541 compatible = "allwinner,sun4i-a10-ps2";
1542 reg = <0x01c2a000 0x400>;
1543 interrupts = <GIC_SPI 62 IRQ_TYPE_LEVEL_HIGH>;
1544 clocks = <&apb1_gates 6>;
1545 status = "disabled";
1546 };
1547
1548 ps21: ps2@01c2a400 {
1549 compatible = "allwinner,sun4i-a10-ps2";
1550 reg = <0x01c2a400 0x400>;
1551 interrupts = <GIC_SPI 63 IRQ_TYPE_LEVEL_HIGH>;
1552 clocks = <&apb1_gates 7>;
1553 status = "disabled";
1554 };
1555
Maxime Ripard428abbb2013-08-31 23:07:24 +02001556 i2c0: i2c@01c2ac00 {
Maxime Ripardd8cacaa2015-05-03 11:53:07 +02001557 compatible = "allwinner,sun7i-a20-i2c",
1558 "allwinner,sun4i-a10-i2c";
Maxime Ripard428abbb2013-08-31 23:07:24 +02001559 reg = <0x01c2ac00 0x400>;
Maxime Ripard19882b82014-12-16 22:59:58 +01001560 interrupts = <GIC_SPI 7 IRQ_TYPE_LEVEL_HIGH>;
Maxime Ripard428abbb2013-08-31 23:07:24 +02001561 clocks = <&apb1_gates 0>;
Maxime Ripard428abbb2013-08-31 23:07:24 +02001562 status = "disabled";
Hans de Goeded1412ae2014-04-13 13:41:05 +02001563 #address-cells = <1>;
1564 #size-cells = <0>;
Maxime Ripard428abbb2013-08-31 23:07:24 +02001565 };
1566
1567 i2c1: i2c@01c2b000 {
Maxime Ripardd8cacaa2015-05-03 11:53:07 +02001568 compatible = "allwinner,sun7i-a20-i2c",
1569 "allwinner,sun4i-a10-i2c";
Maxime Ripard428abbb2013-08-31 23:07:24 +02001570 reg = <0x01c2b000 0x400>;
Maxime Ripard19882b82014-12-16 22:59:58 +01001571 interrupts = <GIC_SPI 8 IRQ_TYPE_LEVEL_HIGH>;
Maxime Ripard428abbb2013-08-31 23:07:24 +02001572 clocks = <&apb1_gates 1>;
Maxime Ripard428abbb2013-08-31 23:07:24 +02001573 status = "disabled";
Hans de Goeded1412ae2014-04-13 13:41:05 +02001574 #address-cells = <1>;
1575 #size-cells = <0>;
Maxime Ripard428abbb2013-08-31 23:07:24 +02001576 };
1577
1578 i2c2: i2c@01c2b400 {
Maxime Ripardd8cacaa2015-05-03 11:53:07 +02001579 compatible = "allwinner,sun7i-a20-i2c",
1580 "allwinner,sun4i-a10-i2c";
Maxime Ripard428abbb2013-08-31 23:07:24 +02001581 reg = <0x01c2b400 0x400>;
Maxime Ripard19882b82014-12-16 22:59:58 +01001582 interrupts = <GIC_SPI 9 IRQ_TYPE_LEVEL_HIGH>;
Maxime Ripard428abbb2013-08-31 23:07:24 +02001583 clocks = <&apb1_gates 2>;
Maxime Ripard428abbb2013-08-31 23:07:24 +02001584 status = "disabled";
Hans de Goeded1412ae2014-04-13 13:41:05 +02001585 #address-cells = <1>;
1586 #size-cells = <0>;
Maxime Ripard428abbb2013-08-31 23:07:24 +02001587 };
1588
1589 i2c3: i2c@01c2b800 {
Maxime Ripardd8cacaa2015-05-03 11:53:07 +02001590 compatible = "allwinner,sun7i-a20-i2c",
1591 "allwinner,sun4i-a10-i2c";
Maxime Ripard428abbb2013-08-31 23:07:24 +02001592 reg = <0x01c2b800 0x400>;
Maxime Ripard19882b82014-12-16 22:59:58 +01001593 interrupts = <GIC_SPI 88 IRQ_TYPE_LEVEL_HIGH>;
Maxime Ripard428abbb2013-08-31 23:07:24 +02001594 clocks = <&apb1_gates 3>;
Maxime Ripard428abbb2013-08-31 23:07:24 +02001595 status = "disabled";
Hans de Goeded1412ae2014-04-13 13:41:05 +02001596 #address-cells = <1>;
1597 #size-cells = <0>;
Maxime Ripard428abbb2013-08-31 23:07:24 +02001598 };
1599
Patrick Menscheld2a20ef2017-04-03 19:00:13 +02001600 can0: can@01c2bc00 {
1601 compatible = "allwinner,sun7i-a20-can",
1602 "allwinner,sun4i-a10-can";
1603 reg = <0x01c2bc00 0x400>;
1604 interrupts = <GIC_SPI 26 IRQ_TYPE_LEVEL_HIGH>;
1605 clocks = <&apb1_gates 4>;
1606 status = "disabled";
1607 };
1608
Maxime Riparda3867042014-04-18 21:13:08 +02001609 i2c4: i2c@01c2c000 {
Maxime Ripardd8cacaa2015-05-03 11:53:07 +02001610 compatible = "allwinner,sun7i-a20-i2c",
1611 "allwinner,sun4i-a10-i2c";
Maxime Riparda3867042014-04-18 21:13:08 +02001612 reg = <0x01c2c000 0x400>;
Maxime Ripard19882b82014-12-16 22:59:58 +01001613 interrupts = <GIC_SPI 89 IRQ_TYPE_LEVEL_HIGH>;
Maxime Ripard428abbb2013-08-31 23:07:24 +02001614 clocks = <&apb1_gates 15>;
Maxime Ripard428abbb2013-08-31 23:07:24 +02001615 status = "disabled";
Hans de Goeded1412ae2014-04-13 13:41:05 +02001616 #address-cells = <1>;
1617 #size-cells = <0>;
Maxime Ripard428abbb2013-08-31 23:07:24 +02001618 };
1619
Chen-Yu Tsaic40b8d52014-02-10 18:35:49 +08001620 gmac: ethernet@01c50000 {
1621 compatible = "allwinner,sun7i-a20-gmac";
1622 reg = <0x01c50000 0x10000>;
Maxime Ripard19882b82014-12-16 22:59:58 +01001623 interrupts = <GIC_SPI 85 IRQ_TYPE_LEVEL_HIGH>;
Chen-Yu Tsaic40b8d52014-02-10 18:35:49 +08001624 interrupt-names = "macirq";
1625 clocks = <&ahb_gates 49>, <&gmac_tx_clk>;
1626 clock-names = "stmmaceth", "allwinner_gmac_tx";
1627 snps,pbl = <2>;
1628 snps,fixed-burst;
1629 snps,force_sf_dma_mode;
1630 status = "disabled";
1631 #address-cells = <1>;
1632 #size-cells = <0>;
1633 };
1634
Maxime Ripard31f8ad32013-11-07 12:01:48 +01001635 hstimer@01c60000 {
1636 compatible = "allwinner,sun7i-a20-hstimer";
1637 reg = <0x01c60000 0x1000>;
Maxime Ripard19882b82014-12-16 22:59:58 +01001638 interrupts = <GIC_SPI 81 IRQ_TYPE_LEVEL_HIGH>,
1639 <GIC_SPI 82 IRQ_TYPE_LEVEL_HIGH>,
1640 <GIC_SPI 83 IRQ_TYPE_LEVEL_HIGH>,
1641 <GIC_SPI 84 IRQ_TYPE_LEVEL_HIGH>;
Maxime Ripard31f8ad32013-11-07 12:01:48 +01001642 clocks = <&ahb_gates 28>;
1643 };
1644
Maxime Ripard4790ecf2013-07-17 10:07:10 +02001645 gic: interrupt-controller@01c81000 {
Marc Zyngier387720c2017-01-18 09:27:28 +00001646 compatible = "arm,gic-400", "arm,cortex-a7-gic", "arm,cortex-a15-gic";
Maxime Ripard4790ecf2013-07-17 10:07:10 +02001647 reg = <0x01c81000 0x1000>,
Marc Zyngier387720c2017-01-18 09:27:28 +00001648 <0x01c82000 0x2000>,
Maxime Ripard4790ecf2013-07-17 10:07:10 +02001649 <0x01c84000 0x2000>,
1650 <0x01c86000 0x2000>;
1651 interrupt-controller;
1652 #interrupt-cells = <3>;
Maxime Ripard19882b82014-12-16 22:59:58 +01001653 interrupts = <GIC_PPI 9 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>;
Maxime Ripard4790ecf2013-07-17 10:07:10 +02001654 };
Vishnu Patekar196654a2015-01-25 19:10:08 +05301655
Maxime Ripard4790ecf2013-07-17 10:07:10 +02001656 };
1657};