blob: 2c34bbbb95700a4c1af75ffb44d92a312b927dea [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 Goedeb3b630b2016-06-20 22:57:22 +020070 clocks = <&pll3>, <&pll5 1>, <&ahb_gates 36>,
71 <&ahb_gates 43>, <&ahb_gates 44>,
72 <&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";
Hans de Goedeb3b630b2016-06-20 22:57:22 +020080 clocks = <&pll3>, <&pll5 1>, <&ahb_gates 36>,
81 <&ahb_gates 44>, <&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 Goedeb3b630b2016-06-20 22:57:22 +020089 clocks = <&pll3>, <&pll5 1>,
Priit Laes4b8ccef2016-03-24 21:52:17 +020090 <&ahb_gates 34>, <&ahb_gates 36>, <&ahb_gates 44>,
91 <&dram_gates 5>, <&dram_gates 26>;
Hans de Goedefd18c7e2015-01-19 14:05:12 +010092 status = "disabled";
93 };
Hans de Goede8efc5c22014-11-14 16:34:37 +010094 };
95
Maxime Ripard4790ecf2013-07-17 10:07:10 +020096 cpus {
97 #address-cells = <1>;
98 #size-cells = <0>;
99
Chen-Yu Tsaid96b7162015-01-06 10:35:16 +0800100 cpu0: cpu@0 {
Maxime Ripard4790ecf2013-07-17 10:07:10 +0200101 compatible = "arm,cortex-a7";
102 device_type = "cpu";
103 reg = <0>;
Chen-Yu Tsaid96b7162015-01-06 10:35:16 +0800104 clocks = <&cpu>;
105 clock-latency = <244144>; /* 8 32k periods */
106 operating-points = <
Maxime Ripard8358aad2015-05-03 11:54:35 +0200107 /* kHz uV */
108 960000 1400000
109 912000 1400000
110 864000 1300000
111 720000 1200000
112 528000 1100000
113 312000 1000000
Timo Sigurdssoneaeef1a2015-08-04 23:08:01 +0200114 144000 1000000
Chen-Yu Tsaid96b7162015-01-06 10:35:16 +0800115 >;
116 #cooling-cells = <2>;
117 cooling-min-level = <0>;
Chen-Yu Tsai370a9b52015-03-25 00:53:27 +0800118 cooling-max-level = <6>;
Maxime Ripard4790ecf2013-07-17 10:07:10 +0200119 };
120
121 cpu@1 {
122 compatible = "arm,cortex-a7";
123 device_type = "cpu";
124 reg = <1>;
125 };
126 };
127
Chen-Yu Tsaib6d34242015-01-12 12:34:03 +0800128 thermal-zones {
129 cpu_thermal {
130 /* milliseconds */
131 polling-delay-passive = <250>;
132 polling-delay = <1000>;
133 thermal-sensors = <&rtp>;
134
135 cooling-maps {
136 map0 {
137 trip = <&cpu_alert0>;
138 cooling-device = <&cpu0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
139 };
140 };
141
142 trips {
143 cpu_alert0: cpu_alert0 {
144 /* milliCelsius */
145 temperature = <75000>;
146 hysteresis = <2000>;
147 type = "passive";
148 };
149
150 cpu_crit: cpu_crit {
151 /* milliCelsius */
152 temperature = <100000>;
153 hysteresis = <2000>;
154 type = "critical";
155 };
156 };
157 };
158 };
159
Maxime Ripard4790ecf2013-07-17 10:07:10 +0200160 memory {
161 reg = <0x40000000 0x80000000>;
162 };
163
Marc Zyngier79027632014-02-18 14:04:44 +0000164 timer {
165 compatible = "arm,armv7-timer";
Maxime Ripard19882b82014-12-16 22:59:58 +0100166 interrupts = <GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
167 <GIC_PPI 14 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
168 <GIC_PPI 11 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
169 <GIC_PPI 10 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>;
Marc Zyngier79027632014-02-18 14:04:44 +0000170 };
171
Maxime Riparde29ea4d2014-04-17 21:54:41 +0200172 pmu {
173 compatible = "arm,cortex-a7-pmu", "arm,cortex-a15-pmu";
Maxime Ripard19882b82014-12-16 22:59:58 +0100174 interrupts = <GIC_SPI 120 IRQ_TYPE_LEVEL_HIGH>,
175 <GIC_SPI 121 IRQ_TYPE_LEVEL_HIGH>;
Maxime Riparde29ea4d2014-04-17 21:54:41 +0200176 };
177
Maxime Ripard4790ecf2013-07-17 10:07:10 +0200178 clocks {
179 #address-cells = <1>;
180 #size-cells = <1>;
181 ranges;
182
Chen-Yu Tsai06067a22014-02-03 09:51:44 +0800183 osc24M: clk@01c20050 {
Maxime Ripard4790ecf2013-07-17 10:07:10 +0200184 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100185 compatible = "allwinner,sun4i-a10-osc-clk";
Maxime Ripardde7dc932013-07-25 21:12:52 +0200186 reg = <0x01c20050 0x4>;
Maxime Ripard4790ecf2013-07-17 10:07:10 +0200187 clock-frequency = <24000000>;
Chen-Yu Tsai06067a22014-02-03 09:51:44 +0800188 clock-output-names = "osc24M";
Maxime Ripard4790ecf2013-07-17 10:07:10 +0200189 };
190
Priit Laes068655dc2016-05-05 20:39:04 +0300191 osc3M: osc3M_clk {
192 #clock-cells = <0>;
193 compatible = "fixed-factor-clock";
194 clock-div = <8>;
195 clock-mult = <1>;
196 clocks = <&osc24M>;
197 clock-output-names = "osc3M";
198 };
199
Chen-Yu Tsai673fac72014-01-01 10:30:47 +0800200 osc32k: clk@0 {
Maxime Ripard4790ecf2013-07-17 10:07:10 +0200201 #clock-cells = <0>;
202 compatible = "fixed-clock";
203 clock-frequency = <32768>;
Chen-Yu Tsai673fac72014-01-01 10:30:47 +0800204 clock-output-names = "osc32k";
Maxime Ripard4790ecf2013-07-17 10:07:10 +0200205 };
Maxime Ripardde7dc932013-07-25 21:12:52 +0200206
Chen-Yu Tsai06067a22014-02-03 09:51:44 +0800207 pll1: clk@01c20000 {
Maxime Ripardde7dc932013-07-25 21:12:52 +0200208 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100209 compatible = "allwinner,sun4i-a10-pll1-clk";
Maxime Ripardde7dc932013-07-25 21:12:52 +0200210 reg = <0x01c20000 0x4>;
211 clocks = <&osc24M>;
Chen-Yu Tsai06067a22014-02-03 09:51:44 +0800212 clock-output-names = "pll1";
Maxime Ripardde7dc932013-07-25 21:12:52 +0200213 };
214
Maxime Ripard88a86aa2015-10-12 22:21:49 +0200215 pll2: clk@01c20008 {
216 #clock-cells = <1>;
217 compatible = "allwinner,sun4i-a10-pll2-clk";
218 reg = <0x01c20008 0x8>;
219 clocks = <&osc24M>;
220 clock-output-names = "pll2-1x", "pll2-2x",
221 "pll2-4x", "pll2-8x";
222 };
223
Priit Laes068655dc2016-05-05 20:39:04 +0300224 pll3: clk@01c20010 {
225 #clock-cells = <0>;
226 compatible = "allwinner,sun4i-a10-pll3-clk";
227 reg = <0x01c20010 0x4>;
228 clocks = <&osc3M>;
229 clock-output-names = "pll3";
230 };
231
232 pll3x2: pll3x2_clk {
233 #clock-cells = <0>;
234 compatible = "fixed-factor-clock";
Hans de Goedeeee25ab2016-06-28 22:11:14 +0200235 clocks = <&pll3>;
Priit Laes068655dc2016-05-05 20:39:04 +0300236 clock-div = <1>;
237 clock-mult = <2>;
238 clock-output-names = "pll3-2x";
239 };
240
Chen-Yu Tsai06067a22014-02-03 09:51:44 +0800241 pll4: clk@01c20018 {
Maxime Ripardde7dc932013-07-25 21:12:52 +0200242 #clock-cells = <0>;
Emilio López04ebcb52014-03-19 15:19:31 -0300243 compatible = "allwinner,sun7i-a20-pll4-clk";
Emilio Lópezec5589f2013-12-23 00:32:35 -0300244 reg = <0x01c20018 0x4>;
245 clocks = <&osc24M>;
Chen-Yu Tsai06067a22014-02-03 09:51:44 +0800246 clock-output-names = "pll4";
Emilio Lópezec5589f2013-12-23 00:32:35 -0300247 };
248
Chen-Yu Tsai06067a22014-02-03 09:51:44 +0800249 pll5: clk@01c20020 {
Emilio Lópezc3e5e662013-12-23 00:32:38 -0300250 #clock-cells = <1>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100251 compatible = "allwinner,sun4i-a10-pll5-clk";
Emilio Lópezc3e5e662013-12-23 00:32:38 -0300252 reg = <0x01c20020 0x4>;
253 clocks = <&osc24M>;
254 clock-output-names = "pll5_ddr", "pll5_other";
255 };
256
Chen-Yu Tsai06067a22014-02-03 09:51:44 +0800257 pll6: clk@01c20028 {
Emilio Lópezc3e5e662013-12-23 00:32:38 -0300258 #clock-cells = <1>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100259 compatible = "allwinner,sun4i-a10-pll6-clk";
Emilio Lópezc3e5e662013-12-23 00:32:38 -0300260 reg = <0x01c20028 0x4>;
261 clocks = <&osc24M>;
Chen-Yu Tsai2186df32015-03-25 01:22:09 +0800262 clock-output-names = "pll6_sata", "pll6_other", "pll6",
263 "pll6_div_4";
Maxime Ripardde7dc932013-07-25 21:12:52 +0200264 };
265
Priit Laes068655dc2016-05-05 20:39:04 +0300266 pll7: clk@01c20030 {
267 #clock-cells = <0>;
268 compatible = "allwinner,sun4i-a10-pll3-clk";
269 reg = <0x01c20030 0x4>;
270 clocks = <&osc3M>;
271 clock-output-names = "pll7";
272 };
273
274 pll7x2: pll7x2_clk {
275 #clock-cells = <0>;
276 compatible = "fixed-factor-clock";
Hans de Goedeeee25ab2016-06-28 22:11:14 +0200277 clocks = <&pll7>;
Priit Laes068655dc2016-05-05 20:39:04 +0300278 clock-div = <1>;
279 clock-mult = <2>;
280 clock-output-names = "pll7-2x";
281 };
282
Emilio López04ebcb52014-03-19 15:19:31 -0300283 pll8: clk@01c20040 {
284 #clock-cells = <0>;
285 compatible = "allwinner,sun7i-a20-pll4-clk";
286 reg = <0x01c20040 0x4>;
287 clocks = <&osc24M>;
288 clock-output-names = "pll8";
289 };
290
Maxime Ripardde7dc932013-07-25 21:12:52 +0200291 cpu: cpu@01c20054 {
292 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100293 compatible = "allwinner,sun4i-a10-cpu-clk";
Maxime Ripardde7dc932013-07-25 21:12:52 +0200294 reg = <0x01c20054 0x4>;
Emilio Lópezc3e5e662013-12-23 00:32:38 -0300295 clocks = <&osc32k>, <&osc24M>, <&pll1>, <&pll6 1>;
Chen-Yu Tsai06067a22014-02-03 09:51:44 +0800296 clock-output-names = "cpu";
Maxime Ripardde7dc932013-07-25 21:12:52 +0200297 };
298
299 axi: axi@01c20054 {
300 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100301 compatible = "allwinner,sun4i-a10-axi-clk";
Maxime Ripardde7dc932013-07-25 21:12:52 +0200302 reg = <0x01c20054 0x4>;
303 clocks = <&cpu>;
Chen-Yu Tsai06067a22014-02-03 09:51:44 +0800304 clock-output-names = "axi";
Maxime Ripardde7dc932013-07-25 21:12:52 +0200305 };
306
307 ahb: ahb@01c20054 {
308 #clock-cells = <0>;
Chen-Yu Tsai2186df32015-03-25 01:22:09 +0800309 compatible = "allwinner,sun5i-a13-ahb-clk";
Maxime Ripardde7dc932013-07-25 21:12:52 +0200310 reg = <0x01c20054 0x4>;
Chen-Yu Tsai2186df32015-03-25 01:22:09 +0800311 clocks = <&axi>, <&pll6 3>, <&pll6 1>;
Chen-Yu Tsai06067a22014-02-03 09:51:44 +0800312 clock-output-names = "ahb";
Chen-Yu Tsai2186df32015-03-25 01:22:09 +0800313 /*
314 * Use PLL6 as parent, instead of CPU/AXI
315 * which has rate changes due to cpufreq
316 */
317 assigned-clocks = <&ahb>;
318 assigned-clock-parents = <&pll6 3>;
Maxime Ripardde7dc932013-07-25 21:12:52 +0200319 };
320
Chen-Yu Tsai06067a22014-02-03 09:51:44 +0800321 ahb_gates: clk@01c20060 {
Maxime Ripardde7dc932013-07-25 21:12:52 +0200322 #clock-cells = <1>;
323 compatible = "allwinner,sun7i-a20-ahb-gates-clk";
324 reg = <0x01c20060 0x8>;
325 clocks = <&ahb>;
Maxime Ripard6bfe30b2015-07-31 19:46:19 +0200326 clock-indices = <0>, <1>,
327 <2>, <3>, <4>,
328 <5>, <6>, <7>, <8>,
329 <9>, <10>, <11>, <12>,
330 <13>, <14>, <16>,
331 <17>, <18>, <20>, <21>,
332 <22>, <23>, <25>,
333 <28>, <32>, <33>, <34>,
334 <35>, <36>, <37>, <40>,
335 <41>, <42>, <43>,
336 <44>, <45>, <46>,
337 <47>, <49>, <50>,
338 <52>;
Maxime Ripardde7dc932013-07-25 21:12:52 +0200339 clock-output-names = "ahb_usb0", "ahb_ehci0",
340 "ahb_ohci0", "ahb_ehci1", "ahb_ohci1",
341 "ahb_ss", "ahb_dma", "ahb_bist", "ahb_mmc0",
342 "ahb_mmc1", "ahb_mmc2", "ahb_mmc3", "ahb_ms",
343 "ahb_nand", "ahb_sdram", "ahb_ace",
344 "ahb_emac", "ahb_ts", "ahb_spi0", "ahb_spi1",
345 "ahb_spi2", "ahb_spi3", "ahb_sata",
346 "ahb_hstimer", "ahb_ve", "ahb_tvd", "ahb_tve0",
347 "ahb_tve1", "ahb_lcd0", "ahb_lcd1", "ahb_csi0",
348 "ahb_csi1", "ahb_hdmi1", "ahb_hdmi0",
349 "ahb_de_be0", "ahb_de_be1", "ahb_de_fe0",
350 "ahb_de_fe1", "ahb_gmac", "ahb_mp",
351 "ahb_mali";
352 };
353
354 apb0: apb0@01c20054 {
355 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100356 compatible = "allwinner,sun4i-a10-apb0-clk";
Maxime Ripardde7dc932013-07-25 21:12:52 +0200357 reg = <0x01c20054 0x4>;
358 clocks = <&ahb>;
Chen-Yu Tsai06067a22014-02-03 09:51:44 +0800359 clock-output-names = "apb0";
Maxime Ripardde7dc932013-07-25 21:12:52 +0200360 };
361
Chen-Yu Tsai06067a22014-02-03 09:51:44 +0800362 apb0_gates: clk@01c20068 {
Maxime Ripardde7dc932013-07-25 21:12:52 +0200363 #clock-cells = <1>;
364 compatible = "allwinner,sun7i-a20-apb0-gates-clk";
365 reg = <0x01c20068 0x4>;
366 clocks = <&apb0>;
Maxime Ripard6bfe30b2015-07-31 19:46:19 +0200367 clock-indices = <0>, <1>,
368 <2>, <3>, <4>,
369 <5>, <6>, <7>,
370 <8>, <10>;
Maxime Ripardde7dc932013-07-25 21:12:52 +0200371 clock-output-names = "apb0_codec", "apb0_spdif",
372 "apb0_ac97", "apb0_iis0", "apb0_iis1",
373 "apb0_pio", "apb0_ir0", "apb0_ir1",
374 "apb0_iis2", "apb0_keypad";
375 };
376
Emilio Lópezacbcc0f2014-11-06 11:40:30 +0800377 apb1: clk@01c20058 {
Maxime Ripardde7dc932013-07-25 21:12:52 +0200378 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100379 compatible = "allwinner,sun4i-a10-apb1-clk";
Maxime Ripardde7dc932013-07-25 21:12:52 +0200380 reg = <0x01c20058 0x4>;
Emilio Lópezacbcc0f2014-11-06 11:40:30 +0800381 clocks = <&osc24M>, <&pll6 1>, <&osc32k>;
Chen-Yu Tsai06067a22014-02-03 09:51:44 +0800382 clock-output-names = "apb1";
Maxime Ripardde7dc932013-07-25 21:12:52 +0200383 };
384
Chen-Yu Tsai06067a22014-02-03 09:51:44 +0800385 apb1_gates: clk@01c2006c {
Maxime Ripardde7dc932013-07-25 21:12:52 +0200386 #clock-cells = <1>;
387 compatible = "allwinner,sun7i-a20-apb1-gates-clk";
388 reg = <0x01c2006c 0x4>;
389 clocks = <&apb1>;
Maxime Ripard6bfe30b2015-07-31 19:46:19 +0200390 clock-indices = <0>, <1>,
391 <2>, <3>, <4>,
392 <5>, <6>, <7>,
393 <15>, <16>, <17>,
394 <18>, <19>, <20>,
395 <21>, <22>, <23>;
Maxime Ripardde7dc932013-07-25 21:12:52 +0200396 clock-output-names = "apb1_i2c0", "apb1_i2c1",
397 "apb1_i2c2", "apb1_i2c3", "apb1_can",
398 "apb1_scr", "apb1_ps20", "apb1_ps21",
399 "apb1_i2c4", "apb1_uart0", "apb1_uart1",
400 "apb1_uart2", "apb1_uart3", "apb1_uart4",
401 "apb1_uart5", "apb1_uart6", "apb1_uart7";
402 };
Emilio López1c92b952013-12-23 00:32:43 -0300403
404 nand_clk: clk@01c20080 {
405 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100406 compatible = "allwinner,sun4i-a10-mod0-clk";
Emilio López1c92b952013-12-23 00:32:43 -0300407 reg = <0x01c20080 0x4>;
408 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
409 clock-output-names = "nand";
410 };
411
412 ms_clk: clk@01c20084 {
413 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100414 compatible = "allwinner,sun4i-a10-mod0-clk";
Emilio López1c92b952013-12-23 00:32:43 -0300415 reg = <0x01c20084 0x4>;
416 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
417 clock-output-names = "ms";
418 };
419
420 mmc0_clk: clk@01c20088 {
Maxime Ripardd8c3a392014-07-11 19:39:06 +0200421 #clock-cells = <1>;
422 compatible = "allwinner,sun4i-a10-mmc-clk";
Emilio López1c92b952013-12-23 00:32:43 -0300423 reg = <0x01c20088 0x4>;
424 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
Maxime Ripardd8c3a392014-07-11 19:39:06 +0200425 clock-output-names = "mmc0",
426 "mmc0_output",
427 "mmc0_sample";
Emilio López1c92b952013-12-23 00:32:43 -0300428 };
429
430 mmc1_clk: clk@01c2008c {
Maxime Ripardd8c3a392014-07-11 19:39:06 +0200431 #clock-cells = <1>;
432 compatible = "allwinner,sun4i-a10-mmc-clk";
Emilio López1c92b952013-12-23 00:32:43 -0300433 reg = <0x01c2008c 0x4>;
434 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
Maxime Ripardd8c3a392014-07-11 19:39:06 +0200435 clock-output-names = "mmc1",
436 "mmc1_output",
437 "mmc1_sample";
Emilio López1c92b952013-12-23 00:32:43 -0300438 };
439
440 mmc2_clk: clk@01c20090 {
Maxime Ripardd8c3a392014-07-11 19:39:06 +0200441 #clock-cells = <1>;
442 compatible = "allwinner,sun4i-a10-mmc-clk";
Emilio López1c92b952013-12-23 00:32:43 -0300443 reg = <0x01c20090 0x4>;
444 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
Maxime Ripardd8c3a392014-07-11 19:39:06 +0200445 clock-output-names = "mmc2",
446 "mmc2_output",
447 "mmc2_sample";
Emilio López1c92b952013-12-23 00:32:43 -0300448 };
449
450 mmc3_clk: clk@01c20094 {
Maxime Ripardd8c3a392014-07-11 19:39:06 +0200451 #clock-cells = <1>;
452 compatible = "allwinner,sun4i-a10-mmc-clk";
Emilio López1c92b952013-12-23 00:32:43 -0300453 reg = <0x01c20094 0x4>;
454 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
Maxime Ripardd8c3a392014-07-11 19:39:06 +0200455 clock-output-names = "mmc3",
456 "mmc3_output",
457 "mmc3_sample";
Emilio López1c92b952013-12-23 00:32:43 -0300458 };
459
460 ts_clk: clk@01c20098 {
461 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100462 compatible = "allwinner,sun4i-a10-mod0-clk";
Emilio López1c92b952013-12-23 00:32:43 -0300463 reg = <0x01c20098 0x4>;
464 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
465 clock-output-names = "ts";
466 };
467
468 ss_clk: clk@01c2009c {
469 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100470 compatible = "allwinner,sun4i-a10-mod0-clk";
Emilio López1c92b952013-12-23 00:32:43 -0300471 reg = <0x01c2009c 0x4>;
472 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
473 clock-output-names = "ss";
474 };
475
476 spi0_clk: clk@01c200a0 {
477 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100478 compatible = "allwinner,sun4i-a10-mod0-clk";
Emilio López1c92b952013-12-23 00:32:43 -0300479 reg = <0x01c200a0 0x4>;
480 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
481 clock-output-names = "spi0";
482 };
483
484 spi1_clk: clk@01c200a4 {
485 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100486 compatible = "allwinner,sun4i-a10-mod0-clk";
Emilio López1c92b952013-12-23 00:32:43 -0300487 reg = <0x01c200a4 0x4>;
488 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
489 clock-output-names = "spi1";
490 };
491
492 spi2_clk: clk@01c200a8 {
493 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100494 compatible = "allwinner,sun4i-a10-mod0-clk";
Emilio López1c92b952013-12-23 00:32:43 -0300495 reg = <0x01c200a8 0x4>;
496 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
497 clock-output-names = "spi2";
498 };
499
500 pata_clk: clk@01c200ac {
501 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100502 compatible = "allwinner,sun4i-a10-mod0-clk";
Emilio López1c92b952013-12-23 00:32:43 -0300503 reg = <0x01c200ac 0x4>;
504 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
505 clock-output-names = "pata";
506 };
507
508 ir0_clk: clk@01c200b0 {
509 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100510 compatible = "allwinner,sun4i-a10-mod0-clk";
Emilio López1c92b952013-12-23 00:32:43 -0300511 reg = <0x01c200b0 0x4>;
512 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
513 clock-output-names = "ir0";
514 };
515
516 ir1_clk: clk@01c200b4 {
517 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100518 compatible = "allwinner,sun4i-a10-mod0-clk";
Emilio López1c92b952013-12-23 00:32:43 -0300519 reg = <0x01c200b4 0x4>;
520 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
521 clock-output-names = "ir1";
522 };
523
Marcus Cooper90b7a482016-03-21 21:01:02 +0100524 spdif_clk: clk@01c200c0 {
525 #clock-cells = <0>;
526 compatible = "allwinner,sun4i-a10-mod1-clk";
527 reg = <0x01c200c0 0x4>;
528 clocks = <&pll2 SUN4I_A10_PLL2_8X>,
529 <&pll2 SUN4I_A10_PLL2_4X>,
530 <&pll2 SUN4I_A10_PLL2_2X>,
531 <&pll2 SUN4I_A10_PLL2_1X>;
532 clock-output-names = "spdif";
533 };
534
Yassin Jaffer6f1606b2015-09-16 00:05:54 +1000535 keypad_clk: clk@01c200c4 {
536 #clock-cells = <0>;
537 compatible = "allwinner,sun4i-a10-mod0-clk";
538 reg = <0x01c200c4 0x4>;
539 clocks = <&osc24M>;
540 clock-output-names = "keypad";
541 };
542
Roman Byshko434e41b2014-02-07 16:21:53 +0100543 usb_clk: clk@01c200cc {
544 #clock-cells = <1>;
Maxime Ripard8358aad2015-05-03 11:54:35 +0200545 #reset-cells = <1>;
Roman Byshko434e41b2014-02-07 16:21:53 +0100546 compatible = "allwinner,sun4i-a10-usb-clk";
547 reg = <0x01c200cc 0x4>;
548 clocks = <&pll6 1>;
Maxime Ripardd8cacaa2015-05-03 11:53:07 +0200549 clock-output-names = "usb_ohci0", "usb_ohci1",
550 "usb_phy";
Roman Byshko434e41b2014-02-07 16:21:53 +0100551 };
552
Emilio López1c92b952013-12-23 00:32:43 -0300553 spi3_clk: clk@01c200d4 {
554 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100555 compatible = "allwinner,sun4i-a10-mod0-clk";
Emilio López1c92b952013-12-23 00:32:43 -0300556 reg = <0x01c200d4 0x4>;
557 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
558 clock-output-names = "spi3";
559 };
Emilio López118c07a2013-12-23 00:32:44 -0300560
Chen-Yu Tsai0b4bf5a2015-12-05 21:16:46 +0800561 dram_gates: clk@01c20100 {
562 #clock-cells = <1>;
563 compatible = "allwinner,sun4i-a10-dram-gates-clk";
564 reg = <0x01c20100 0x4>;
565 clocks = <&pll5 0>;
566 clock-indices = <0>,
567 <1>, <2>,
568 <3>,
569 <4>,
570 <5>, <6>,
571 <15>,
572 <24>, <25>,
573 <26>, <27>,
574 <28>, <29>;
575 clock-output-names = "dram_ve",
576 "dram_csi0", "dram_csi1",
577 "dram_ts",
578 "dram_tvd",
579 "dram_tve0", "dram_tve1",
580 "dram_output",
581 "dram_de_fe1", "dram_de_fe0",
582 "dram_de_be0", "dram_de_be1",
583 "dram_de_mp", "dram_ace";
584 };
585
Chen-Yu Tsaif0571ab2015-12-05 21:16:47 +0800586 ve_clk: clk@01c2013c {
587 #clock-cells = <0>;
588 #reset-cells = <0>;
589 compatible = "allwinner,sun4i-a10-ve-clk";
590 reg = <0x01c2013c 0x4>;
591 clocks = <&pll4>;
592 clock-output-names = "ve";
593 };
594
Maxime Riparddbe4dd12015-10-12 22:28:46 +0200595 codec_clk: clk@01c20140 {
596 #clock-cells = <0>;
597 compatible = "allwinner,sun4i-a10-codec-clk";
598 reg = <0x01c20140 0x4>;
599 clocks = <&pll2 SUN4I_A10_PLL2_1X>;
600 clock-output-names = "codec";
601 };
602
Emilio López118c07a2013-12-23 00:32:44 -0300603 mbus_clk: clk@01c2015c {
604 #clock-cells = <0>;
Maxime Ripard7868c5e2014-07-16 23:45:48 +0200605 compatible = "allwinner,sun5i-a13-mbus-clk";
Emilio López118c07a2013-12-23 00:32:44 -0300606 reg = <0x01c2015c 0x4>;
607 clocks = <&osc24M>, <&pll6 2>, <&pll5 1>;
608 clock-output-names = "mbus";
609 };
Chen-Yu Tsai0aff0372014-01-01 10:30:48 +0800610
611 /*
Maxime Ripardd8cacaa2015-05-03 11:53:07 +0200612 * The following two are dummy clocks, placeholders
613 * used in the gmac_tx clock. The gmac driver will
614 * choose one parent depending on the PHY interface
615 * mode, using clk_set_rate auto-reparenting.
616 *
617 * The actual TX clock rate is not controlled by the
618 * gmac_tx clock.
Chen-Yu Tsaidaed5a82014-02-10 18:35:48 +0800619 */
620 mii_phy_tx_clk: clk@2 {
621 #clock-cells = <0>;
622 compatible = "fixed-clock";
623 clock-frequency = <25000000>;
624 clock-output-names = "mii_phy_tx";
625 };
626
627 gmac_int_tx_clk: clk@3 {
628 #clock-cells = <0>;
629 compatible = "fixed-clock";
630 clock-frequency = <125000000>;
631 clock-output-names = "gmac_int_tx";
632 };
633
634 gmac_tx_clk: clk@01c20164 {
635 #clock-cells = <0>;
636 compatible = "allwinner,sun7i-a20-gmac-clk";
637 reg = <0x01c20164 0x4>;
638 clocks = <&mii_phy_tx_clk>, <&gmac_int_tx_clk>;
639 clock-output-names = "gmac_tx";
640 };
641
642 /*
Chen-Yu Tsai0aff0372014-01-01 10:30:48 +0800643 * Dummy clock used by output clocks
644 */
645 osc24M_32k: clk@1 {
646 #clock-cells = <0>;
647 compatible = "fixed-factor-clock";
648 clock-div = <750>;
649 clock-mult = <1>;
650 clocks = <&osc24M>;
651 clock-output-names = "osc24M_32k";
652 };
653
654 clk_out_a: clk@01c201f0 {
655 #clock-cells = <0>;
656 compatible = "allwinner,sun7i-a20-out-clk";
657 reg = <0x01c201f0 0x4>;
658 clocks = <&osc24M_32k>, <&osc32k>, <&osc24M>;
659 clock-output-names = "clk_out_a";
660 };
661
662 clk_out_b: clk@01c201f4 {
663 #clock-cells = <0>;
664 compatible = "allwinner,sun7i-a20-out-clk";
665 reg = <0x01c201f4 0x4>;
666 clocks = <&osc24M_32k>, <&osc32k>, <&osc24M>;
667 clock-output-names = "clk_out_b";
668 };
Maxime Ripard4790ecf2013-07-17 10:07:10 +0200669 };
670
671 soc@01c00000 {
672 compatible = "simple-bus";
673 #address-cells = <1>;
674 #size-cells = <1>;
675 ranges;
676
Maxime Ripard0eb14a82015-03-26 15:53:44 +0100677 sram-controller@01c00000 {
678 compatible = "allwinner,sun4i-a10-sram-controller";
679 reg = <0x01c00000 0x30>;
680 #address-cells = <1>;
681 #size-cells = <1>;
682 ranges;
683
684 sram_a: sram@00000000 {
685 compatible = "mmio-sram";
686 reg = <0x00000000 0xc000>;
687 #address-cells = <1>;
688 #size-cells = <1>;
689 ranges = <0 0x00000000 0xc000>;
690
691 emac_sram: sram-section@8000 {
692 compatible = "allwinner,sun4i-a10-sram-a3-a4";
693 reg = <0x8000 0x4000>;
694 status = "disabled";
695 };
696 };
697
698 sram_d: sram@00010000 {
699 compatible = "mmio-sram";
700 reg = <0x00010000 0x1000>;
701 #address-cells = <1>;
702 #size-cells = <1>;
703 ranges = <0 0x00010000 0x1000>;
704
705 otg_sram: sram-section@0000 {
706 compatible = "allwinner,sun4i-a10-sram-d";
707 reg = <0x0000 0x1000>;
708 status = "disabled";
709 };
710 };
711 };
712
Carlo Caione8ff973a2014-03-19 20:21:18 +0100713 nmi_intc: interrupt-controller@01c00030 {
714 compatible = "allwinner,sun7i-a20-sc-nmi";
715 interrupt-controller;
716 #interrupt-cells = <2>;
717 reg = <0x01c00030 0x0c>;
Maxime Ripard19882b82014-12-16 22:59:58 +0100718 interrupts = <GIC_SPI 0 IRQ_TYPE_LEVEL_HIGH>;
Carlo Caione8ff973a2014-03-19 20:21:18 +0100719 };
720
Emilio López316e0b02014-08-04 17:09:59 -0300721 dma: dma-controller@01c02000 {
722 compatible = "allwinner,sun4i-a10-dma";
723 reg = <0x01c02000 0x1000>;
Maxime Ripard19882b82014-12-16 22:59:58 +0100724 interrupts = <GIC_SPI 27 IRQ_TYPE_LEVEL_HIGH>;
Emilio López316e0b02014-08-04 17:09:59 -0300725 clocks = <&ahb_gates 6>;
726 #dma-cells = <2>;
727 };
728
Maxime Ripard36ab3e72014-02-22 22:35:54 +0100729 spi0: spi@01c05000 {
730 compatible = "allwinner,sun4i-a10-spi";
731 reg = <0x01c05000 0x1000>;
Maxime Ripard19882b82014-12-16 22:59:58 +0100732 interrupts = <GIC_SPI 10 IRQ_TYPE_LEVEL_HIGH>;
Maxime Ripard36ab3e72014-02-22 22:35:54 +0100733 clocks = <&ahb_gates 20>, <&spi0_clk>;
734 clock-names = "ahb", "mod";
Maxime Ripard1f9f6a72014-12-16 22:59:56 +0100735 dmas = <&dma SUN4I_DMA_DEDICATED 27>,
736 <&dma SUN4I_DMA_DEDICATED 26>;
Emilio Lópezffec7212014-08-04 17:10:02 -0300737 dma-names = "rx", "tx";
Maxime Ripard36ab3e72014-02-22 22:35:54 +0100738 status = "disabled";
739 #address-cells = <1>;
740 #size-cells = <0>;
741 };
742
743 spi1: spi@01c06000 {
744 compatible = "allwinner,sun4i-a10-spi";
745 reg = <0x01c06000 0x1000>;
Maxime Ripard19882b82014-12-16 22:59:58 +0100746 interrupts = <GIC_SPI 11 IRQ_TYPE_LEVEL_HIGH>;
Maxime Ripard36ab3e72014-02-22 22:35:54 +0100747 clocks = <&ahb_gates 21>, <&spi1_clk>;
748 clock-names = "ahb", "mod";
Maxime Ripard1f9f6a72014-12-16 22:59:56 +0100749 dmas = <&dma SUN4I_DMA_DEDICATED 9>,
750 <&dma SUN4I_DMA_DEDICATED 8>;
Emilio Lópezffec7212014-08-04 17:10:02 -0300751 dma-names = "rx", "tx";
Maxime Ripard36ab3e72014-02-22 22:35:54 +0100752 status = "disabled";
753 #address-cells = <1>;
754 #size-cells = <0>;
755 };
756
Maxime Ripard2e804d02013-09-11 11:10:06 +0200757 emac: ethernet@01c0b000 {
Maxime Ripard1c70e092014-02-02 14:49:13 +0100758 compatible = "allwinner,sun4i-a10-emac";
Maxime Ripard2e804d02013-09-11 11:10:06 +0200759 reg = <0x01c0b000 0x1000>;
Maxime Ripard19882b82014-12-16 22:59:58 +0100760 interrupts = <GIC_SPI 55 IRQ_TYPE_LEVEL_HIGH>;
Maxime Ripard2e804d02013-09-11 11:10:06 +0200761 clocks = <&ahb_gates 17>;
Maxime Ripard0eb14a82015-03-26 15:53:44 +0100762 allwinner,sram = <&emac_sram 1>;
Maxime Ripard2e804d02013-09-11 11:10:06 +0200763 status = "disabled";
764 };
765
Aleksei Mamlin92395f52015-01-19 22:35:22 +0300766 mdio: mdio@01c0b080 {
Maxime Ripard1c70e092014-02-02 14:49:13 +0100767 compatible = "allwinner,sun4i-a10-mdio";
Maxime Ripard2e804d02013-09-11 11:10:06 +0200768 reg = <0x01c0b080 0x14>;
769 status = "disabled";
770 #address-cells = <1>;
771 #size-cells = <0>;
772 };
773
Hans de Goededd29ce52014-05-02 17:57:26 +0200774 mmc0: mmc@01c0f000 {
775 compatible = "allwinner,sun5i-a13-mmc";
776 reg = <0x01c0f000 0x1000>;
Maxime Ripardd8c3a392014-07-11 19:39:06 +0200777 clocks = <&ahb_gates 8>,
778 <&mmc0_clk 0>,
779 <&mmc0_clk 1>,
780 <&mmc0_clk 2>;
781 clock-names = "ahb",
782 "mmc",
783 "output",
784 "sample";
Maxime Ripard19882b82014-12-16 22:59:58 +0100785 interrupts = <GIC_SPI 32 IRQ_TYPE_LEVEL_HIGH>;
Hans de Goededd29ce52014-05-02 17:57:26 +0200786 status = "disabled";
Hans de Goede4c1bb9c2015-03-10 16:27:09 +0100787 #address-cells = <1>;
788 #size-cells = <0>;
Hans de Goededd29ce52014-05-02 17:57:26 +0200789 };
790
791 mmc1: mmc@01c10000 {
792 compatible = "allwinner,sun5i-a13-mmc";
793 reg = <0x01c10000 0x1000>;
Maxime Ripardd8c3a392014-07-11 19:39:06 +0200794 clocks = <&ahb_gates 9>,
795 <&mmc1_clk 0>,
796 <&mmc1_clk 1>,
797 <&mmc1_clk 2>;
798 clock-names = "ahb",
799 "mmc",
800 "output",
801 "sample";
Maxime Ripard19882b82014-12-16 22:59:58 +0100802 interrupts = <GIC_SPI 33 IRQ_TYPE_LEVEL_HIGH>;
Hans de Goededd29ce52014-05-02 17:57:26 +0200803 status = "disabled";
Hans de Goede4c1bb9c2015-03-10 16:27:09 +0100804 #address-cells = <1>;
805 #size-cells = <0>;
Hans de Goededd29ce52014-05-02 17:57:26 +0200806 };
807
808 mmc2: mmc@01c11000 {
809 compatible = "allwinner,sun5i-a13-mmc";
810 reg = <0x01c11000 0x1000>;
Maxime Ripardd8c3a392014-07-11 19:39:06 +0200811 clocks = <&ahb_gates 10>,
812 <&mmc2_clk 0>,
813 <&mmc2_clk 1>,
814 <&mmc2_clk 2>;
815 clock-names = "ahb",
816 "mmc",
817 "output",
818 "sample";
Maxime Ripard19882b82014-12-16 22:59:58 +0100819 interrupts = <GIC_SPI 34 IRQ_TYPE_LEVEL_HIGH>;
Hans de Goededd29ce52014-05-02 17:57:26 +0200820 status = "disabled";
Hans de Goede4c1bb9c2015-03-10 16:27:09 +0100821 #address-cells = <1>;
822 #size-cells = <0>;
Hans de Goededd29ce52014-05-02 17:57:26 +0200823 };
824
825 mmc3: mmc@01c12000 {
826 compatible = "allwinner,sun5i-a13-mmc";
827 reg = <0x01c12000 0x1000>;
Maxime Ripardd8c3a392014-07-11 19:39:06 +0200828 clocks = <&ahb_gates 11>,
829 <&mmc3_clk 0>,
830 <&mmc3_clk 1>,
831 <&mmc3_clk 2>;
832 clock-names = "ahb",
833 "mmc",
834 "output",
835 "sample";
Maxime Ripard19882b82014-12-16 22:59:58 +0100836 interrupts = <GIC_SPI 35 IRQ_TYPE_LEVEL_HIGH>;
Hans de Goededd29ce52014-05-02 17:57:26 +0200837 status = "disabled";
Hans de Goede4c1bb9c2015-03-10 16:27:09 +0100838 #address-cells = <1>;
839 #size-cells = <0>;
Hans de Goededd29ce52014-05-02 17:57:26 +0200840 };
841
Roman Byshkocbb3ff12014-10-22 00:14:03 +0200842 usb_otg: usb@01c13000 {
843 compatible = "allwinner,sun4i-a10-musb";
844 reg = <0x01c13000 0x0400>;
845 clocks = <&ahb_gates 0>;
846 interrupts = <GIC_SPI 38 IRQ_TYPE_LEVEL_HIGH>;
847 interrupt-names = "mc";
848 phys = <&usbphy 0>;
849 phy-names = "usb";
850 extcon = <&usbphy 0>;
851 allwinner,sram = <&otg_sram 1>;
852 status = "disabled";
853 };
854
Roman Byshko9debd0a2014-03-01 20:26:25 +0100855 usbphy: phy@01c13400 {
856 #phy-cells = <1>;
857 compatible = "allwinner,sun7i-a20-usb-phy";
858 reg = <0x01c13400 0x10 0x01c14800 0x4 0x01c1c800 0x4>;
859 reg-names = "phy_ctrl", "pmu1", "pmu2";
860 clocks = <&usb_clk 8>;
861 clock-names = "usb_phy";
Roman Byshko134c60a2014-11-10 19:55:08 +0100862 resets = <&usb_clk 0>, <&usb_clk 1>, <&usb_clk 2>;
863 reset-names = "usb0_reset", "usb1_reset", "usb2_reset";
Roman Byshko9debd0a2014-03-01 20:26:25 +0100864 status = "disabled";
865 };
866
867 ehci0: usb@01c14000 {
868 compatible = "allwinner,sun7i-a20-ehci", "generic-ehci";
869 reg = <0x01c14000 0x100>;
Maxime Ripard19882b82014-12-16 22:59:58 +0100870 interrupts = <GIC_SPI 39 IRQ_TYPE_LEVEL_HIGH>;
Roman Byshko9debd0a2014-03-01 20:26:25 +0100871 clocks = <&ahb_gates 1>;
872 phys = <&usbphy 1>;
873 phy-names = "usb";
874 status = "disabled";
875 };
876
877 ohci0: usb@01c14400 {
878 compatible = "allwinner,sun7i-a20-ohci", "generic-ohci";
879 reg = <0x01c14400 0x100>;
Maxime Ripard19882b82014-12-16 22:59:58 +0100880 interrupts = <GIC_SPI 64 IRQ_TYPE_LEVEL_HIGH>;
Roman Byshko9debd0a2014-03-01 20:26:25 +0100881 clocks = <&usb_clk 6>, <&ahb_gates 2>;
882 phys = <&usbphy 1>;
883 phy-names = "usb";
884 status = "disabled";
885 };
886
LABBE Corentin110d4e22015-07-17 16:39:39 +0200887 crypto: crypto-engine@01c15000 {
888 compatible = "allwinner,sun4i-a10-crypto";
889 reg = <0x01c15000 0x1000>;
890 interrupts = <GIC_SPI 86 IRQ_TYPE_LEVEL_HIGH>;
891 clocks = <&ahb_gates 5>, <&ss_clk>;
892 clock-names = "ahb", "mod";
893 };
894
Maxime Ripard36ab3e72014-02-22 22:35:54 +0100895 spi2: spi@01c17000 {
896 compatible = "allwinner,sun4i-a10-spi";
897 reg = <0x01c17000 0x1000>;
Maxime Ripard19882b82014-12-16 22:59:58 +0100898 interrupts = <GIC_SPI 12 IRQ_TYPE_LEVEL_HIGH>;
Maxime Ripard36ab3e72014-02-22 22:35:54 +0100899 clocks = <&ahb_gates 22>, <&spi2_clk>;
900 clock-names = "ahb", "mod";
Maxime Ripard1f9f6a72014-12-16 22:59:56 +0100901 dmas = <&dma SUN4I_DMA_DEDICATED 29>,
902 <&dma SUN4I_DMA_DEDICATED 28>;
Emilio Lópezffec7212014-08-04 17:10:02 -0300903 dma-names = "rx", "tx";
Maxime Ripard36ab3e72014-02-22 22:35:54 +0100904 status = "disabled";
905 #address-cells = <1>;
906 #size-cells = <0>;
907 };
908
Hans de Goede902febf2014-03-01 20:26:22 +0100909 ahci: sata@01c18000 {
910 compatible = "allwinner,sun4i-a10-ahci";
911 reg = <0x01c18000 0x1000>;
Maxime Ripard19882b82014-12-16 22:59:58 +0100912 interrupts = <GIC_SPI 56 IRQ_TYPE_LEVEL_HIGH>;
Hans de Goede902febf2014-03-01 20:26:22 +0100913 clocks = <&pll6 0>, <&ahb_gates 25>;
914 status = "disabled";
915 };
916
Roman Byshko9debd0a2014-03-01 20:26:25 +0100917 ehci1: usb@01c1c000 {
918 compatible = "allwinner,sun7i-a20-ehci", "generic-ehci";
919 reg = <0x01c1c000 0x100>;
Maxime Ripard19882b82014-12-16 22:59:58 +0100920 interrupts = <GIC_SPI 40 IRQ_TYPE_LEVEL_HIGH>;
Roman Byshko9debd0a2014-03-01 20:26:25 +0100921 clocks = <&ahb_gates 3>;
922 phys = <&usbphy 2>;
923 phy-names = "usb";
924 status = "disabled";
925 };
926
927 ohci1: usb@01c1c400 {
928 compatible = "allwinner,sun7i-a20-ohci", "generic-ohci";
929 reg = <0x01c1c400 0x100>;
Maxime Ripard19882b82014-12-16 22:59:58 +0100930 interrupts = <GIC_SPI 65 IRQ_TYPE_LEVEL_HIGH>;
Roman Byshko9debd0a2014-03-01 20:26:25 +0100931 clocks = <&usb_clk 7>, <&ahb_gates 4>;
932 phys = <&usbphy 2>;
933 phy-names = "usb";
934 status = "disabled";
935 };
936
Maxime Ripard36ab3e72014-02-22 22:35:54 +0100937 spi3: spi@01c1f000 {
938 compatible = "allwinner,sun4i-a10-spi";
939 reg = <0x01c1f000 0x1000>;
Maxime Ripard19882b82014-12-16 22:59:58 +0100940 interrupts = <GIC_SPI 50 IRQ_TYPE_LEVEL_HIGH>;
Maxime Ripard36ab3e72014-02-22 22:35:54 +0100941 clocks = <&ahb_gates 23>, <&spi3_clk>;
942 clock-names = "ahb", "mod";
Maxime Ripard1f9f6a72014-12-16 22:59:56 +0100943 dmas = <&dma SUN4I_DMA_DEDICATED 31>,
944 <&dma SUN4I_DMA_DEDICATED 30>;
Emilio Lópezffec7212014-08-04 17:10:02 -0300945 dma-names = "rx", "tx";
Maxime Ripard36ab3e72014-02-22 22:35:54 +0100946 status = "disabled";
947 #address-cells = <1>;
948 #size-cells = <0>;
949 };
950
Maxime Ripard17eac032013-07-24 23:46:11 +0200951 pio: pinctrl@01c20800 {
952 compatible = "allwinner,sun7i-a20-pinctrl";
953 reg = <0x01c20800 0x400>;
Maxime Ripard19882b82014-12-16 22:59:58 +0100954 interrupts = <GIC_SPI 28 IRQ_TYPE_LEVEL_HIGH>;
Maxime Ripardde7dc932013-07-25 21:12:52 +0200955 clocks = <&apb0_gates 5>;
Maxime Ripard17eac032013-07-24 23:46:11 +0200956 gpio-controller;
957 interrupt-controller;
Maxime Ripardb03e0812015-06-17 11:44:24 +0200958 #interrupt-cells = <3>;
Maxime Ripard17eac032013-07-24 23:46:11 +0200959 #gpio-cells = <3>;
Maxime Ripard9f229ba2013-07-25 00:09:47 +0200960
Alexandre Bellonifd7898a2014-04-28 18:17:12 +0200961 pwm0_pins_a: pwm0@0 {
962 allwinner,pins = "PB2";
963 allwinner,function = "pwm";
Maxime Ripard092a0c32014-12-16 22:59:57 +0100964 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
965 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Alexandre Bellonifd7898a2014-04-28 18:17:12 +0200966 };
967
968 pwm1_pins_a: pwm1@0 {
969 allwinner,pins = "PI3";
970 allwinner,function = "pwm";
Maxime Ripard092a0c32014-12-16 22:59:57 +0100971 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
972 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Alexandre Bellonifd7898a2014-04-28 18:17:12 +0200973 };
974
Maxime Ripard9f229ba2013-07-25 00:09:47 +0200975 uart0_pins_a: uart0@0 {
976 allwinner,pins = "PB22", "PB23";
977 allwinner,function = "uart0";
Maxime Ripard092a0c32014-12-16 22:59:57 +0100978 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
979 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Maxime Ripard9f229ba2013-07-25 00:09:47 +0200980 };
981
Chen-Yu Tsai4261ec42014-01-14 22:49:50 +0800982 uart2_pins_a: uart2@0 {
983 allwinner,pins = "PI16", "PI17", "PI18", "PI19";
984 allwinner,function = "uart2";
Maxime Ripard092a0c32014-12-16 22:59:57 +0100985 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
986 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Chen-Yu Tsai4261ec42014-01-14 22:49:50 +0800987 };
988
Wills Wang7b5bace2014-08-19 15:33:00 +0800989 uart3_pins_a: uart3@0 {
990 allwinner,pins = "PG6", "PG7", "PG8", "PG9";
991 allwinner,function = "uart3";
Maxime Ripard092a0c32014-12-16 22:59:57 +0100992 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
993 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Wills Wang7b5bace2014-08-19 15:33:00 +0800994 };
995
Hans de Goede0510e4b2014-10-01 09:26:05 +0200996 uart3_pins_b: uart3@1 {
997 allwinner,pins = "PH0", "PH1";
998 allwinner,function = "uart3";
Maxime Ripard092a0c32014-12-16 22:59:57 +0100999 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
1000 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Hans de Goede0510e4b2014-10-01 09:26:05 +02001001 };
1002
Wills Wang7b5bace2014-08-19 15:33:00 +08001003 uart4_pins_a: uart4@0 {
1004 allwinner,pins = "PG10", "PG11";
1005 allwinner,function = "uart4";
Maxime Ripard092a0c32014-12-16 22:59:57 +01001006 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
1007 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Wills Wang7b5bace2014-08-19 15:33:00 +08001008 };
1009
Michael Ring869afa72015-05-21 14:32:33 +02001010 uart4_pins_b: uart4@1 {
1011 allwinner,pins = "PH4", "PH5";
1012 allwinner,function = "uart4";
1013 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
1014 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
1015 };
1016
Wills Wang7b5bace2014-08-19 15:33:00 +08001017 uart5_pins_a: uart5@0 {
1018 allwinner,pins = "PI10", "PI11";
1019 allwinner,function = "uart5";
Maxime Ripard092a0c32014-12-16 22:59:57 +01001020 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
1021 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Wills Wang7b5bace2014-08-19 15:33:00 +08001022 };
1023
Maxime Ripard9f229ba2013-07-25 00:09:47 +02001024 uart6_pins_a: uart6@0 {
1025 allwinner,pins = "PI12", "PI13";
1026 allwinner,function = "uart6";
Maxime Ripard092a0c32014-12-16 22:59:57 +01001027 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
1028 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Maxime Ripard9f229ba2013-07-25 00:09:47 +02001029 };
1030
1031 uart7_pins_a: uart7@0 {
1032 allwinner,pins = "PI20", "PI21";
1033 allwinner,function = "uart7";
Maxime Ripard092a0c32014-12-16 22:59:57 +01001034 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
1035 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Maxime Ripard9f229ba2013-07-25 00:09:47 +02001036 };
Maxime Ripard756084c2013-09-11 11:10:07 +02001037
Maxime Riparde5496a32013-08-31 23:08:49 +02001038 i2c0_pins_a: i2c0@0 {
1039 allwinner,pins = "PB0", "PB1";
1040 allwinner,function = "i2c0";
Maxime Ripard092a0c32014-12-16 22:59:57 +01001041 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
1042 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Maxime Riparde5496a32013-08-31 23:08:49 +02001043 };
1044
1045 i2c1_pins_a: i2c1@0 {
1046 allwinner,pins = "PB18", "PB19";
1047 allwinner,function = "i2c1";
Maxime Ripard092a0c32014-12-16 22:59:57 +01001048 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
1049 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Maxime Riparde5496a32013-08-31 23:08:49 +02001050 };
1051
1052 i2c2_pins_a: i2c2@0 {
1053 allwinner,pins = "PB20", "PB21";
1054 allwinner,function = "i2c2";
Maxime Ripard092a0c32014-12-16 22:59:57 +01001055 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
1056 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Maxime Riparde5496a32013-08-31 23:08:49 +02001057 };
1058
Wills Wang7b5bace2014-08-19 15:33:00 +08001059 i2c3_pins_a: i2c3@0 {
1060 allwinner,pins = "PI0", "PI1";
1061 allwinner,function = "i2c3";
Maxime Ripard092a0c32014-12-16 22:59:57 +01001062 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
1063 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Wills Wang7b5bace2014-08-19 15:33:00 +08001064 };
1065
Maxime Ripard756084c2013-09-11 11:10:07 +02001066 emac_pins_a: emac0@0 {
1067 allwinner,pins = "PA0", "PA1", "PA2",
1068 "PA3", "PA4", "PA5", "PA6",
1069 "PA7", "PA8", "PA9", "PA10",
1070 "PA11", "PA12", "PA13", "PA14",
1071 "PA15", "PA16";
1072 allwinner,function = "emac";
Maxime Ripard092a0c32014-12-16 22:59:57 +01001073 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
1074 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Maxime Ripard756084c2013-09-11 11:10:07 +02001075 };
Chen-Yu Tsaif2e07592014-01-01 10:30:50 +08001076
1077 clk_out_a_pins_a: clk_out_a@0 {
1078 allwinner,pins = "PI12";
1079 allwinner,function = "clk_out_a";
Maxime Ripard092a0c32014-12-16 22:59:57 +01001080 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
1081 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Chen-Yu Tsaif2e07592014-01-01 10:30:50 +08001082 };
1083
1084 clk_out_b_pins_a: clk_out_b@0 {
1085 allwinner,pins = "PI13";
1086 allwinner,function = "clk_out_b";
Maxime Ripard092a0c32014-12-16 22:59:57 +01001087 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
1088 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Chen-Yu Tsaif2e07592014-01-01 10:30:50 +08001089 };
Chen-Yu Tsai129ccbc2014-02-10 18:35:50 +08001090
1091 gmac_pins_mii_a: gmac_mii@0 {
1092 allwinner,pins = "PA0", "PA1", "PA2",
1093 "PA3", "PA4", "PA5", "PA6",
1094 "PA7", "PA8", "PA9", "PA10",
1095 "PA11", "PA12", "PA13", "PA14",
1096 "PA15", "PA16";
1097 allwinner,function = "gmac";
Maxime Ripard092a0c32014-12-16 22:59:57 +01001098 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
1099 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Chen-Yu Tsai129ccbc2014-02-10 18:35:50 +08001100 };
1101
1102 gmac_pins_rgmii_a: gmac_rgmii@0 {
1103 allwinner,pins = "PA0", "PA1", "PA2",
1104 "PA3", "PA4", "PA5", "PA6",
1105 "PA7", "PA8", "PA10",
1106 "PA11", "PA12", "PA13",
1107 "PA15", "PA16";
1108 allwinner,function = "gmac";
1109 /*
1110 * data lines in RGMII mode use DDR mode
1111 * and need a higher signal drive strength
1112 */
Maxime Ripard092a0c32014-12-16 22:59:57 +01001113 allwinner,drive = <SUN4I_PINCTRL_40_MA>;
1114 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Chen-Yu Tsai129ccbc2014-02-10 18:35:50 +08001115 };
Maxime Ripard412f2c62014-02-22 22:35:58 +01001116
Hans de Goede2dad53b2014-10-01 09:26:04 +02001117 spi0_pins_a: spi0@0 {
Maxime Ripardf3022c62015-05-03 09:25:41 +02001118 allwinner,pins = "PI11", "PI12", "PI13";
1119 allwinner,function = "spi0";
1120 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
1121 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
1122 };
1123
1124 spi0_cs0_pins_a: spi0_cs0@0 {
1125 allwinner,pins = "PI10";
1126 allwinner,function = "spi0";
1127 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
1128 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
1129 };
1130
1131 spi0_cs1_pins_a: spi0_cs1@0 {
1132 allwinner,pins = "PI14";
Hans de Goede2dad53b2014-10-01 09:26:04 +02001133 allwinner,function = "spi0";
Maxime Ripard092a0c32014-12-16 22:59:57 +01001134 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
1135 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Hans de Goede2dad53b2014-10-01 09:26:04 +02001136 };
1137
Maxime Ripard412f2c62014-02-22 22:35:58 +01001138 spi1_pins_a: spi1@0 {
Maxime Ripardf3022c62015-05-03 09:25:41 +02001139 allwinner,pins = "PI17", "PI18", "PI19";
1140 allwinner,function = "spi1";
1141 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
1142 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
1143 };
1144
1145 spi1_cs0_pins_a: spi1_cs0@0 {
1146 allwinner,pins = "PI16";
Maxime Ripard412f2c62014-02-22 22:35:58 +01001147 allwinner,function = "spi1";
Maxime Ripard092a0c32014-12-16 22:59:57 +01001148 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
1149 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Maxime Ripard412f2c62014-02-22 22:35:58 +01001150 };
1151
1152 spi2_pins_a: spi2@0 {
Maxime Ripardf3022c62015-05-03 09:25:41 +02001153 allwinner,pins = "PC20", "PC21", "PC22";
Maxime Ripard412f2c62014-02-22 22:35:58 +01001154 allwinner,function = "spi2";
Maxime Ripard092a0c32014-12-16 22:59:57 +01001155 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
1156 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Maxime Ripard412f2c62014-02-22 22:35:58 +01001157 };
Hans de Goede11fbedf2014-05-02 17:57:27 +02001158
Wills Wang7b5bace2014-08-19 15:33:00 +08001159 spi2_pins_b: spi2@1 {
Maxime Ripardf3022c62015-05-03 09:25:41 +02001160 allwinner,pins = "PB15", "PB16", "PB17";
1161 allwinner,function = "spi2";
1162 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
1163 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
1164 };
1165
1166 spi2_cs0_pins_a: spi2_cs0@0 {
1167 allwinner,pins = "PC19";
1168 allwinner,function = "spi2";
1169 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
1170 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
1171 };
1172
1173 spi2_cs0_pins_b: spi2_cs0@1 {
1174 allwinner,pins = "PB14";
Wills Wang7b5bace2014-08-19 15:33:00 +08001175 allwinner,function = "spi2";
Maxime Ripard092a0c32014-12-16 22:59:57 +01001176 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
1177 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Wills Wang7b5bace2014-08-19 15:33:00 +08001178 };
1179
Hans de Goede11fbedf2014-05-02 17:57:27 +02001180 mmc0_pins_a: mmc0@0 {
Maxime Ripardd8cacaa2015-05-03 11:53:07 +02001181 allwinner,pins = "PF0", "PF1", "PF2",
1182 "PF3", "PF4", "PF5";
Hans de Goede11fbedf2014-05-02 17:57:27 +02001183 allwinner,function = "mmc0";
Maxime Ripard092a0c32014-12-16 22:59:57 +01001184 allwinner,drive = <SUN4I_PINCTRL_30_MA>;
1185 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Hans de Goede11fbedf2014-05-02 17:57:27 +02001186 };
1187
1188 mmc0_cd_pin_reference_design: mmc0_cd_pin@0 {
1189 allwinner,pins = "PH1";
1190 allwinner,function = "gpio_in";
Maxime Ripard092a0c32014-12-16 22:59:57 +01001191 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
1192 allwinner,pull = <SUN4I_PINCTRL_PULL_UP>;
Hans de Goede11fbedf2014-05-02 17:57:27 +02001193 };
1194
Hans de Goede8fa82322014-10-01 16:25:36 +02001195 mmc2_pins_a: mmc2@0 {
Maxime Ripardd8cacaa2015-05-03 11:53:07 +02001196 allwinner,pins = "PC6", "PC7", "PC8",
1197 "PC9", "PC10", "PC11";
Hans de Goede8fa82322014-10-01 16:25:36 +02001198 allwinner,function = "mmc2";
Maxime Ripard092a0c32014-12-16 22:59:57 +01001199 allwinner,drive = <SUN4I_PINCTRL_30_MA>;
1200 allwinner,pull = <SUN4I_PINCTRL_PULL_UP>;
Hans de Goede8fa82322014-10-01 16:25:36 +02001201 };
1202
Hans de Goede11fbedf2014-05-02 17:57:27 +02001203 mmc3_pins_a: mmc3@0 {
Maxime Ripardd8cacaa2015-05-03 11:53:07 +02001204 allwinner,pins = "PI4", "PI5", "PI6",
1205 "PI7", "PI8", "PI9";
Hans de Goede11fbedf2014-05-02 17:57:27 +02001206 allwinner,function = "mmc3";
Maxime Ripard092a0c32014-12-16 22:59:57 +01001207 allwinner,drive = <SUN4I_PINCTRL_30_MA>;
1208 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Hans de Goede11fbedf2014-05-02 17:57:27 +02001209 };
Alexander Bersenev0fc2b7a2014-06-09 00:08:11 +06001210
Marcus Cooper469a22e2015-05-02 13:36:20 +02001211 ir0_rx_pins_a: ir0@0 {
1212 allwinner,pins = "PB4";
Alexander Bersenev0fc2b7a2014-06-09 00:08:11 +06001213 allwinner,function = "ir0";
Maxime Ripard092a0c32014-12-16 22:59:57 +01001214 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
1215 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Alexander Bersenev0fc2b7a2014-06-09 00:08:11 +06001216 };
1217
Marcus Cooper469a22e2015-05-02 13:36:20 +02001218 ir0_tx_pins_a: ir0@1 {
1219 allwinner,pins = "PB3";
1220 allwinner,function = "ir0";
1221 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
1222 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
1223 };
1224
1225 ir1_rx_pins_a: ir1@0 {
1226 allwinner,pins = "PB23";
1227 allwinner,function = "ir1";
1228 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
1229 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
1230 };
1231
1232 ir1_tx_pins_a: ir1@1 {
1233 allwinner,pins = "PB22";
Alexander Bersenev0fc2b7a2014-06-09 00:08:11 +06001234 allwinner,function = "ir1";
Maxime Ripard092a0c32014-12-16 22:59:57 +01001235 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
1236 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Alexander Bersenev0fc2b7a2014-06-09 00:08:11 +06001237 };
Vishnu Patekar1e8d1562015-01-25 19:10:09 +05301238
1239 ps20_pins_a: ps20@0 {
1240 allwinner,pins = "PI20", "PI21";
1241 allwinner,function = "ps2";
1242 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
1243 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
1244 };
1245
1246 ps21_pins_a: ps21@0 {
1247 allwinner,pins = "PH12", "PH13";
1248 allwinner,function = "ps2";
1249 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
1250 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Maxime Ripard4790ecf2013-07-17 10:07:10 +02001251 };
Marcus Cooperbdd08a82016-03-21 21:01:00 +01001252
1253 spdif_tx_pins_a: spdif@0 {
1254 allwinner,pins = "PB13";
1255 allwinner,function = "spdif";
1256 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
1257 allwinner,pull = <SUN4I_PINCTRL_PULL_UP>;
1258 };
Maxime Ripard4790ecf2013-07-17 10:07:10 +02001259 };
1260
1261 timer@01c20c00 {
1262 compatible = "allwinner,sun4i-a10-timer";
1263 reg = <0x01c20c00 0x90>;
Maxime Ripard19882b82014-12-16 22:59:58 +01001264 interrupts = <GIC_SPI 22 IRQ_TYPE_LEVEL_HIGH>,
1265 <GIC_SPI 23 IRQ_TYPE_LEVEL_HIGH>,
1266 <GIC_SPI 24 IRQ_TYPE_LEVEL_HIGH>,
1267 <GIC_SPI 25 IRQ_TYPE_LEVEL_HIGH>,
1268 <GIC_SPI 67 IRQ_TYPE_LEVEL_HIGH>,
1269 <GIC_SPI 68 IRQ_TYPE_LEVEL_HIGH>;
Maxime Ripard4790ecf2013-07-17 10:07:10 +02001270 clocks = <&osc24M>;
1271 };
1272
1273 wdt: watchdog@01c20c90 {
Maxime Ripardca5d04d2014-02-07 22:29:26 +01001274 compatible = "allwinner,sun4i-a10-wdt";
Maxime Ripard4790ecf2013-07-17 10:07:10 +02001275 reg = <0x01c20c90 0x10>;
1276 };
1277
Carlo Caioneb5d905c2013-10-16 20:30:26 +02001278 rtc: rtc@01c20d00 {
1279 compatible = "allwinner,sun7i-a20-rtc";
1280 reg = <0x01c20d00 0x20>;
Maxime Ripard19882b82014-12-16 22:59:58 +01001281 interrupts = <GIC_SPI 24 IRQ_TYPE_LEVEL_HIGH>;
Carlo Caioneb5d905c2013-10-16 20:30:26 +02001282 };
1283
Alexandre Belloni8ec40c22014-04-28 18:17:13 +02001284 pwm: pwm@01c20e00 {
1285 compatible = "allwinner,sun7i-a20-pwm";
1286 reg = <0x01c20e00 0xc>;
1287 clocks = <&osc24M>;
1288 #pwm-cells = <3>;
1289 status = "disabled";
1290 };
1291
Marcus Coopera34d6ce2016-03-21 21:01:04 +01001292 spdif: spdif@01c21000 {
1293 #sound-dai-cells = <0>;
1294 compatible = "allwinner,sun4i-a10-spdif";
1295 reg = <0x01c21000 0x400>;
1296 interrupts = <GIC_SPI 13 IRQ_TYPE_LEVEL_HIGH>;
1297 clocks = <&apb0_gates 1>, <&spdif_clk>;
1298 clock-names = "apb", "spdif";
1299 dmas = <&dma SUN4I_DMA_NORMAL 2>,
1300 <&dma SUN4I_DMA_NORMAL 2>;
1301 dma-names = "rx", "tx";
1302 status = "disabled";
1303 };
1304
Alexander Bersenevc1a0ee32014-06-21 17:04:05 +06001305 ir0: ir@01c21800 {
Hans de Goede1715a382014-06-30 23:57:54 +02001306 compatible = "allwinner,sun4i-a10-ir";
Alexander Bersenevc1a0ee32014-06-21 17:04:05 +06001307 clocks = <&apb0_gates 6>, <&ir0_clk>;
1308 clock-names = "apb", "ir";
Maxime Ripard19882b82014-12-16 22:59:58 +01001309 interrupts = <GIC_SPI 5 IRQ_TYPE_LEVEL_HIGH>;
Alexander Bersenevc1a0ee32014-06-21 17:04:05 +06001310 reg = <0x01c21800 0x40>;
1311 status = "disabled";
1312 };
1313
1314 ir1: ir@01c21c00 {
Hans de Goede1715a382014-06-30 23:57:54 +02001315 compatible = "allwinner,sun4i-a10-ir";
Alexander Bersenevc1a0ee32014-06-21 17:04:05 +06001316 clocks = <&apb0_gates 7>, <&ir1_clk>;
1317 clock-names = "apb", "ir";
Maxime Ripard19882b82014-12-16 22:59:58 +01001318 interrupts = <GIC_SPI 6 IRQ_TYPE_LEVEL_HIGH>;
Alexander Bersenevc1a0ee32014-06-21 17:04:05 +06001319 reg = <0x01c21c00 0x40>;
1320 status = "disabled";
1321 };
1322
Hans de Goedea6a2d642014-12-23 11:13:22 +01001323 lradc: lradc@01c22800 {
1324 compatible = "allwinner,sun4i-a10-lradc-keys";
1325 reg = <0x01c22800 0x100>;
Maxime Ripard19882b82014-12-16 22:59:58 +01001326 interrupts = <GIC_SPI 31 IRQ_TYPE_LEVEL_HIGH>;
Hans de Goedea6a2d642014-12-23 11:13:22 +01001327 status = "disabled";
1328 };
1329
Emilio Lópezd5ce1072014-08-18 01:07:55 -03001330 codec: codec@01c22c00 {
1331 #sound-dai-cells = <0>;
1332 compatible = "allwinner,sun7i-a20-codec";
1333 reg = <0x01c22c00 0x40>;
1334 interrupts = <GIC_SPI 30 IRQ_TYPE_LEVEL_HIGH>;
1335 clocks = <&apb0_gates 0>, <&codec_clk>;
1336 clock-names = "apb", "codec";
1337 dmas = <&dma SUN4I_DMA_NORMAL 19>,
1338 <&dma SUN4I_DMA_NORMAL 19>;
1339 dma-names = "rx", "tx";
1340 status = "disabled";
1341 };
1342
Oliver Schinagl2bad9692013-09-03 12:33:28 +02001343 sid: eeprom@01c23800 {
1344 compatible = "allwinner,sun7i-a20-sid";
1345 reg = <0x01c23800 0x200>;
1346 };
1347
Hans de Goede00f7ed82013-12-31 17:20:52 +01001348 rtp: rtp@01c25000 {
Hans de Goede8bf1b9b2015-03-08 21:53:42 +01001349 compatible = "allwinner,sun5i-a13-ts";
Hans de Goede00f7ed82013-12-31 17:20:52 +01001350 reg = <0x01c25000 0x100>;
Maxime Ripard19882b82014-12-16 22:59:58 +01001351 interrupts = <GIC_SPI 29 IRQ_TYPE_LEVEL_HIGH>;
Chen-Yu Tsai41e7afb2015-01-06 10:35:15 +08001352 #thermal-sensor-cells = <0>;
Hans de Goede00f7ed82013-12-31 17:20:52 +01001353 };
1354
Maxime Ripard4790ecf2013-07-17 10:07:10 +02001355 uart0: serial@01c28000 {
1356 compatible = "snps,dw-apb-uart";
1357 reg = <0x01c28000 0x400>;
Maxime Ripard19882b82014-12-16 22:59:58 +01001358 interrupts = <GIC_SPI 1 IRQ_TYPE_LEVEL_HIGH>;
Maxime Ripard4790ecf2013-07-17 10:07:10 +02001359 reg-shift = <2>;
1360 reg-io-width = <4>;
Maxime Ripardde7dc932013-07-25 21:12:52 +02001361 clocks = <&apb1_gates 16>;
Maxime Ripard4790ecf2013-07-17 10:07:10 +02001362 status = "disabled";
1363 };
1364
1365 uart1: serial@01c28400 {
1366 compatible = "snps,dw-apb-uart";
1367 reg = <0x01c28400 0x400>;
Maxime Ripard19882b82014-12-16 22:59:58 +01001368 interrupts = <GIC_SPI 2 IRQ_TYPE_LEVEL_HIGH>;
Maxime Ripard4790ecf2013-07-17 10:07:10 +02001369 reg-shift = <2>;
1370 reg-io-width = <4>;
Maxime Ripardde7dc932013-07-25 21:12:52 +02001371 clocks = <&apb1_gates 17>;
Maxime Ripard4790ecf2013-07-17 10:07:10 +02001372 status = "disabled";
1373 };
1374
1375 uart2: serial@01c28800 {
1376 compatible = "snps,dw-apb-uart";
1377 reg = <0x01c28800 0x400>;
Maxime Ripard19882b82014-12-16 22:59:58 +01001378 interrupts = <GIC_SPI 3 IRQ_TYPE_LEVEL_HIGH>;
Maxime Ripard4790ecf2013-07-17 10:07:10 +02001379 reg-shift = <2>;
1380 reg-io-width = <4>;
Maxime Ripardde7dc932013-07-25 21:12:52 +02001381 clocks = <&apb1_gates 18>;
Maxime Ripard4790ecf2013-07-17 10:07:10 +02001382 status = "disabled";
1383 };
1384
1385 uart3: serial@01c28c00 {
1386 compatible = "snps,dw-apb-uart";
1387 reg = <0x01c28c00 0x400>;
Maxime Ripard19882b82014-12-16 22:59:58 +01001388 interrupts = <GIC_SPI 4 IRQ_TYPE_LEVEL_HIGH>;
Maxime Ripard4790ecf2013-07-17 10:07:10 +02001389 reg-shift = <2>;
1390 reg-io-width = <4>;
Maxime Ripardde7dc932013-07-25 21:12:52 +02001391 clocks = <&apb1_gates 19>;
Maxime Ripard4790ecf2013-07-17 10:07:10 +02001392 status = "disabled";
1393 };
1394
1395 uart4: serial@01c29000 {
1396 compatible = "snps,dw-apb-uart";
1397 reg = <0x01c29000 0x400>;
Maxime Ripard19882b82014-12-16 22:59:58 +01001398 interrupts = <GIC_SPI 17 IRQ_TYPE_LEVEL_HIGH>;
Maxime Ripard4790ecf2013-07-17 10:07:10 +02001399 reg-shift = <2>;
1400 reg-io-width = <4>;
Maxime Ripardde7dc932013-07-25 21:12:52 +02001401 clocks = <&apb1_gates 20>;
Maxime Ripard4790ecf2013-07-17 10:07:10 +02001402 status = "disabled";
1403 };
1404
1405 uart5: serial@01c29400 {
1406 compatible = "snps,dw-apb-uart";
1407 reg = <0x01c29400 0x400>;
Maxime Ripard19882b82014-12-16 22:59:58 +01001408 interrupts = <GIC_SPI 18 IRQ_TYPE_LEVEL_HIGH>;
Maxime Ripard4790ecf2013-07-17 10:07:10 +02001409 reg-shift = <2>;
1410 reg-io-width = <4>;
Maxime Ripardde7dc932013-07-25 21:12:52 +02001411 clocks = <&apb1_gates 21>;
Maxime Ripard4790ecf2013-07-17 10:07:10 +02001412 status = "disabled";
1413 };
1414
1415 uart6: serial@01c29800 {
1416 compatible = "snps,dw-apb-uart";
1417 reg = <0x01c29800 0x400>;
Maxime Ripard19882b82014-12-16 22:59:58 +01001418 interrupts = <GIC_SPI 19 IRQ_TYPE_LEVEL_HIGH>;
Maxime Ripard4790ecf2013-07-17 10:07:10 +02001419 reg-shift = <2>;
1420 reg-io-width = <4>;
Maxime Ripardde7dc932013-07-25 21:12:52 +02001421 clocks = <&apb1_gates 22>;
Maxime Ripard4790ecf2013-07-17 10:07:10 +02001422 status = "disabled";
1423 };
1424
1425 uart7: serial@01c29c00 {
1426 compatible = "snps,dw-apb-uart";
1427 reg = <0x01c29c00 0x400>;
Maxime Ripard19882b82014-12-16 22:59:58 +01001428 interrupts = <GIC_SPI 20 IRQ_TYPE_LEVEL_HIGH>;
Maxime Ripard4790ecf2013-07-17 10:07:10 +02001429 reg-shift = <2>;
1430 reg-io-width = <4>;
Maxime Ripardde7dc932013-07-25 21:12:52 +02001431 clocks = <&apb1_gates 23>;
Maxime Ripard4790ecf2013-07-17 10:07:10 +02001432 status = "disabled";
1433 };
1434
Maxime Ripard428abbb2013-08-31 23:07:24 +02001435 i2c0: i2c@01c2ac00 {
Maxime Ripardd8cacaa2015-05-03 11:53:07 +02001436 compatible = "allwinner,sun7i-a20-i2c",
1437 "allwinner,sun4i-a10-i2c";
Maxime Ripard428abbb2013-08-31 23:07:24 +02001438 reg = <0x01c2ac00 0x400>;
Maxime Ripard19882b82014-12-16 22:59:58 +01001439 interrupts = <GIC_SPI 7 IRQ_TYPE_LEVEL_HIGH>;
Maxime Ripard428abbb2013-08-31 23:07:24 +02001440 clocks = <&apb1_gates 0>;
Maxime Ripard428abbb2013-08-31 23:07:24 +02001441 status = "disabled";
Hans de Goeded1412ae2014-04-13 13:41:05 +02001442 #address-cells = <1>;
1443 #size-cells = <0>;
Maxime Ripard428abbb2013-08-31 23:07:24 +02001444 };
1445
1446 i2c1: i2c@01c2b000 {
Maxime Ripardd8cacaa2015-05-03 11:53:07 +02001447 compatible = "allwinner,sun7i-a20-i2c",
1448 "allwinner,sun4i-a10-i2c";
Maxime Ripard428abbb2013-08-31 23:07:24 +02001449 reg = <0x01c2b000 0x400>;
Maxime Ripard19882b82014-12-16 22:59:58 +01001450 interrupts = <GIC_SPI 8 IRQ_TYPE_LEVEL_HIGH>;
Maxime Ripard428abbb2013-08-31 23:07:24 +02001451 clocks = <&apb1_gates 1>;
Maxime Ripard428abbb2013-08-31 23:07:24 +02001452 status = "disabled";
Hans de Goeded1412ae2014-04-13 13:41:05 +02001453 #address-cells = <1>;
1454 #size-cells = <0>;
Maxime Ripard428abbb2013-08-31 23:07:24 +02001455 };
1456
1457 i2c2: i2c@01c2b400 {
Maxime Ripardd8cacaa2015-05-03 11:53:07 +02001458 compatible = "allwinner,sun7i-a20-i2c",
1459 "allwinner,sun4i-a10-i2c";
Maxime Ripard428abbb2013-08-31 23:07:24 +02001460 reg = <0x01c2b400 0x400>;
Maxime Ripard19882b82014-12-16 22:59:58 +01001461 interrupts = <GIC_SPI 9 IRQ_TYPE_LEVEL_HIGH>;
Maxime Ripard428abbb2013-08-31 23:07:24 +02001462 clocks = <&apb1_gates 2>;
Maxime Ripard428abbb2013-08-31 23:07:24 +02001463 status = "disabled";
Hans de Goeded1412ae2014-04-13 13:41:05 +02001464 #address-cells = <1>;
1465 #size-cells = <0>;
Maxime Ripard428abbb2013-08-31 23:07:24 +02001466 };
1467
1468 i2c3: i2c@01c2b800 {
Maxime Ripardd8cacaa2015-05-03 11:53:07 +02001469 compatible = "allwinner,sun7i-a20-i2c",
1470 "allwinner,sun4i-a10-i2c";
Maxime Ripard428abbb2013-08-31 23:07:24 +02001471 reg = <0x01c2b800 0x400>;
Maxime Ripard19882b82014-12-16 22:59:58 +01001472 interrupts = <GIC_SPI 88 IRQ_TYPE_LEVEL_HIGH>;
Maxime Ripard428abbb2013-08-31 23:07:24 +02001473 clocks = <&apb1_gates 3>;
Maxime Ripard428abbb2013-08-31 23:07:24 +02001474 status = "disabled";
Hans de Goeded1412ae2014-04-13 13:41:05 +02001475 #address-cells = <1>;
1476 #size-cells = <0>;
Maxime Ripard428abbb2013-08-31 23:07:24 +02001477 };
1478
Maxime Riparda3867042014-04-18 21:13:08 +02001479 i2c4: i2c@01c2c000 {
Maxime Ripardd8cacaa2015-05-03 11:53:07 +02001480 compatible = "allwinner,sun7i-a20-i2c",
1481 "allwinner,sun4i-a10-i2c";
Maxime Riparda3867042014-04-18 21:13:08 +02001482 reg = <0x01c2c000 0x400>;
Maxime Ripard19882b82014-12-16 22:59:58 +01001483 interrupts = <GIC_SPI 89 IRQ_TYPE_LEVEL_HIGH>;
Maxime Ripard428abbb2013-08-31 23:07:24 +02001484 clocks = <&apb1_gates 15>;
Maxime Ripard428abbb2013-08-31 23:07:24 +02001485 status = "disabled";
Hans de Goeded1412ae2014-04-13 13:41:05 +02001486 #address-cells = <1>;
1487 #size-cells = <0>;
Maxime Ripard428abbb2013-08-31 23:07:24 +02001488 };
1489
Chen-Yu Tsaic40b8d52014-02-10 18:35:49 +08001490 gmac: ethernet@01c50000 {
1491 compatible = "allwinner,sun7i-a20-gmac";
1492 reg = <0x01c50000 0x10000>;
Maxime Ripard19882b82014-12-16 22:59:58 +01001493 interrupts = <GIC_SPI 85 IRQ_TYPE_LEVEL_HIGH>;
Chen-Yu Tsaic40b8d52014-02-10 18:35:49 +08001494 interrupt-names = "macirq";
1495 clocks = <&ahb_gates 49>, <&gmac_tx_clk>;
1496 clock-names = "stmmaceth", "allwinner_gmac_tx";
1497 snps,pbl = <2>;
1498 snps,fixed-burst;
1499 snps,force_sf_dma_mode;
1500 status = "disabled";
1501 #address-cells = <1>;
1502 #size-cells = <0>;
1503 };
1504
Maxime Ripard31f8ad32013-11-07 12:01:48 +01001505 hstimer@01c60000 {
1506 compatible = "allwinner,sun7i-a20-hstimer";
1507 reg = <0x01c60000 0x1000>;
Maxime Ripard19882b82014-12-16 22:59:58 +01001508 interrupts = <GIC_SPI 81 IRQ_TYPE_LEVEL_HIGH>,
1509 <GIC_SPI 82 IRQ_TYPE_LEVEL_HIGH>,
1510 <GIC_SPI 83 IRQ_TYPE_LEVEL_HIGH>,
1511 <GIC_SPI 84 IRQ_TYPE_LEVEL_HIGH>;
Maxime Ripard31f8ad32013-11-07 12:01:48 +01001512 clocks = <&ahb_gates 28>;
1513 };
1514
Maxime Ripard4790ecf2013-07-17 10:07:10 +02001515 gic: interrupt-controller@01c81000 {
1516 compatible = "arm,cortex-a7-gic", "arm,cortex-a15-gic";
1517 reg = <0x01c81000 0x1000>,
1518 <0x01c82000 0x1000>,
1519 <0x01c84000 0x2000>,
1520 <0x01c86000 0x2000>;
1521 interrupt-controller;
1522 #interrupt-cells = <3>;
Maxime Ripard19882b82014-12-16 22:59:58 +01001523 interrupts = <GIC_PPI 9 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>;
Maxime Ripard4790ecf2013-07-17 10:07:10 +02001524 };
Vishnu Patekar196654a2015-01-25 19:10:08 +05301525
1526 ps20: ps2@01c2a000 {
1527 compatible = "allwinner,sun4i-a10-ps2";
1528 reg = <0x01c2a000 0x400>;
1529 interrupts = <GIC_SPI 62 IRQ_TYPE_LEVEL_HIGH>;
1530 clocks = <&apb1_gates 6>;
1531 status = "disabled";
1532 };
1533
1534 ps21: ps2@01c2a400 {
1535 compatible = "allwinner,sun4i-a10-ps2";
1536 reg = <0x01c2a400 0x400>;
1537 interrupts = <GIC_SPI 63 IRQ_TYPE_LEVEL_HIGH>;
1538 clocks = <&apb1_gates 7>;
1539 status = "disabled";
Maxime Ripard4790ecf2013-07-17 10:07:10 +02001540 };
1541 };
1542};