blob: e02eb720c4fc1ab192bd76ba0aab0893282ee553 [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 Goede678e75d2014-11-16 17:09:32 +010070 clocks = <&pll5 1>, <&ahb_gates 36>, <&ahb_gates 43>,
71 <&ahb_gates 44>;
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";
79 clocks = <&pll5 1>, <&ahb_gates 36>, <&ahb_gates 44>;
80 status = "disabled";
81 };
82
83 framebuffer@2 {
84 compatible = "allwinner,simple-framebuffer",
85 "simple-framebuffer";
86 allwinner,pipeline = "de_be0-lcd0-tve0";
87 clocks = <&pll5 1>, <&ahb_gates 34>, <&ahb_gates 36>,
88 <&ahb_gates 44>;
89 status = "disabled";
90 };
Hans de Goede8efc5c22014-11-14 16:34:37 +010091 };
92
Maxime Ripard4790ecf2013-07-17 10:07:10 +020093 cpus {
94 #address-cells = <1>;
95 #size-cells = <0>;
96
Chen-Yu Tsaid96b7162015-01-06 10:35:16 +080097 cpu0: cpu@0 {
Maxime Ripard4790ecf2013-07-17 10:07:10 +020098 compatible = "arm,cortex-a7";
99 device_type = "cpu";
100 reg = <0>;
Chen-Yu Tsaid96b7162015-01-06 10:35:16 +0800101 clocks = <&cpu>;
102 clock-latency = <244144>; /* 8 32k periods */
103 operating-points = <
Maxime Ripard8358aad2015-05-03 11:54:35 +0200104 /* kHz uV */
105 960000 1400000
106 912000 1400000
107 864000 1300000
108 720000 1200000
109 528000 1100000
110 312000 1000000
Timo Sigurdssoneaeef1a2015-08-04 23:08:01 +0200111 144000 1000000
Chen-Yu Tsaid96b7162015-01-06 10:35:16 +0800112 >;
113 #cooling-cells = <2>;
114 cooling-min-level = <0>;
Chen-Yu Tsai370a9b52015-03-25 00:53:27 +0800115 cooling-max-level = <6>;
Maxime Ripard4790ecf2013-07-17 10:07:10 +0200116 };
117
118 cpu@1 {
119 compatible = "arm,cortex-a7";
120 device_type = "cpu";
121 reg = <1>;
122 };
123 };
124
Chen-Yu Tsaib6d34242015-01-12 12:34:03 +0800125 thermal-zones {
126 cpu_thermal {
127 /* milliseconds */
128 polling-delay-passive = <250>;
129 polling-delay = <1000>;
130 thermal-sensors = <&rtp>;
131
132 cooling-maps {
133 map0 {
134 trip = <&cpu_alert0>;
135 cooling-device = <&cpu0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
136 };
137 };
138
139 trips {
140 cpu_alert0: cpu_alert0 {
141 /* milliCelsius */
142 temperature = <75000>;
143 hysteresis = <2000>;
144 type = "passive";
145 };
146
147 cpu_crit: cpu_crit {
148 /* milliCelsius */
149 temperature = <100000>;
150 hysteresis = <2000>;
151 type = "critical";
152 };
153 };
154 };
155 };
156
Maxime Ripard4790ecf2013-07-17 10:07:10 +0200157 memory {
158 reg = <0x40000000 0x80000000>;
159 };
160
Marc Zyngier79027632014-02-18 14:04:44 +0000161 timer {
162 compatible = "arm,armv7-timer";
Maxime Ripard19882b82014-12-16 22:59:58 +0100163 interrupts = <GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
164 <GIC_PPI 14 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
165 <GIC_PPI 11 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
166 <GIC_PPI 10 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>;
Marc Zyngier79027632014-02-18 14:04:44 +0000167 };
168
Maxime Riparde29ea4d2014-04-17 21:54:41 +0200169 pmu {
170 compatible = "arm,cortex-a7-pmu", "arm,cortex-a15-pmu";
Maxime Ripard19882b82014-12-16 22:59:58 +0100171 interrupts = <GIC_SPI 120 IRQ_TYPE_LEVEL_HIGH>,
172 <GIC_SPI 121 IRQ_TYPE_LEVEL_HIGH>;
Maxime Riparde29ea4d2014-04-17 21:54:41 +0200173 };
174
Maxime Ripard4790ecf2013-07-17 10:07:10 +0200175 clocks {
176 #address-cells = <1>;
177 #size-cells = <1>;
178 ranges;
179
Chen-Yu Tsai06067a22014-02-03 09:51:44 +0800180 osc24M: clk@01c20050 {
Maxime Ripard4790ecf2013-07-17 10:07:10 +0200181 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100182 compatible = "allwinner,sun4i-a10-osc-clk";
Maxime Ripardde7dc932013-07-25 21:12:52 +0200183 reg = <0x01c20050 0x4>;
Maxime Ripard4790ecf2013-07-17 10:07:10 +0200184 clock-frequency = <24000000>;
Chen-Yu Tsai06067a22014-02-03 09:51:44 +0800185 clock-output-names = "osc24M";
Maxime Ripard4790ecf2013-07-17 10:07:10 +0200186 };
187
Chen-Yu Tsai673fac72014-01-01 10:30:47 +0800188 osc32k: clk@0 {
Maxime Ripard4790ecf2013-07-17 10:07:10 +0200189 #clock-cells = <0>;
190 compatible = "fixed-clock";
191 clock-frequency = <32768>;
Chen-Yu Tsai673fac72014-01-01 10:30:47 +0800192 clock-output-names = "osc32k";
Maxime Ripard4790ecf2013-07-17 10:07:10 +0200193 };
Maxime Ripardde7dc932013-07-25 21:12:52 +0200194
Chen-Yu Tsai06067a22014-02-03 09:51:44 +0800195 pll1: clk@01c20000 {
Maxime Ripardde7dc932013-07-25 21:12:52 +0200196 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100197 compatible = "allwinner,sun4i-a10-pll1-clk";
Maxime Ripardde7dc932013-07-25 21:12:52 +0200198 reg = <0x01c20000 0x4>;
199 clocks = <&osc24M>;
Chen-Yu Tsai06067a22014-02-03 09:51:44 +0800200 clock-output-names = "pll1";
Maxime Ripardde7dc932013-07-25 21:12:52 +0200201 };
202
Maxime Ripard88a86aa2015-10-12 22:21:49 +0200203 pll2: clk@01c20008 {
204 #clock-cells = <1>;
205 compatible = "allwinner,sun4i-a10-pll2-clk";
206 reg = <0x01c20008 0x8>;
207 clocks = <&osc24M>;
208 clock-output-names = "pll2-1x", "pll2-2x",
209 "pll2-4x", "pll2-8x";
210 };
211
Chen-Yu Tsai06067a22014-02-03 09:51:44 +0800212 pll4: clk@01c20018 {
Maxime Ripardde7dc932013-07-25 21:12:52 +0200213 #clock-cells = <0>;
Emilio López04ebcb52014-03-19 15:19:31 -0300214 compatible = "allwinner,sun7i-a20-pll4-clk";
Emilio Lópezec5589f2013-12-23 00:32:35 -0300215 reg = <0x01c20018 0x4>;
216 clocks = <&osc24M>;
Chen-Yu Tsai06067a22014-02-03 09:51:44 +0800217 clock-output-names = "pll4";
Emilio Lópezec5589f2013-12-23 00:32:35 -0300218 };
219
Chen-Yu Tsai06067a22014-02-03 09:51:44 +0800220 pll5: clk@01c20020 {
Emilio Lópezc3e5e662013-12-23 00:32:38 -0300221 #clock-cells = <1>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100222 compatible = "allwinner,sun4i-a10-pll5-clk";
Emilio Lópezc3e5e662013-12-23 00:32:38 -0300223 reg = <0x01c20020 0x4>;
224 clocks = <&osc24M>;
225 clock-output-names = "pll5_ddr", "pll5_other";
226 };
227
Chen-Yu Tsai06067a22014-02-03 09:51:44 +0800228 pll6: clk@01c20028 {
Emilio Lópezc3e5e662013-12-23 00:32:38 -0300229 #clock-cells = <1>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100230 compatible = "allwinner,sun4i-a10-pll6-clk";
Emilio Lópezc3e5e662013-12-23 00:32:38 -0300231 reg = <0x01c20028 0x4>;
232 clocks = <&osc24M>;
Chen-Yu Tsai2186df32015-03-25 01:22:09 +0800233 clock-output-names = "pll6_sata", "pll6_other", "pll6",
234 "pll6_div_4";
Maxime Ripardde7dc932013-07-25 21:12:52 +0200235 };
236
Emilio López04ebcb52014-03-19 15:19:31 -0300237 pll8: clk@01c20040 {
238 #clock-cells = <0>;
239 compatible = "allwinner,sun7i-a20-pll4-clk";
240 reg = <0x01c20040 0x4>;
241 clocks = <&osc24M>;
242 clock-output-names = "pll8";
243 };
244
Maxime Ripardde7dc932013-07-25 21:12:52 +0200245 cpu: cpu@01c20054 {
246 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100247 compatible = "allwinner,sun4i-a10-cpu-clk";
Maxime Ripardde7dc932013-07-25 21:12:52 +0200248 reg = <0x01c20054 0x4>;
Emilio Lópezc3e5e662013-12-23 00:32:38 -0300249 clocks = <&osc32k>, <&osc24M>, <&pll1>, <&pll6 1>;
Chen-Yu Tsai06067a22014-02-03 09:51:44 +0800250 clock-output-names = "cpu";
Maxime Ripardde7dc932013-07-25 21:12:52 +0200251 };
252
253 axi: axi@01c20054 {
254 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100255 compatible = "allwinner,sun4i-a10-axi-clk";
Maxime Ripardde7dc932013-07-25 21:12:52 +0200256 reg = <0x01c20054 0x4>;
257 clocks = <&cpu>;
Chen-Yu Tsai06067a22014-02-03 09:51:44 +0800258 clock-output-names = "axi";
Maxime Ripardde7dc932013-07-25 21:12:52 +0200259 };
260
261 ahb: ahb@01c20054 {
262 #clock-cells = <0>;
Chen-Yu Tsai2186df32015-03-25 01:22:09 +0800263 compatible = "allwinner,sun5i-a13-ahb-clk";
Maxime Ripardde7dc932013-07-25 21:12:52 +0200264 reg = <0x01c20054 0x4>;
Chen-Yu Tsai2186df32015-03-25 01:22:09 +0800265 clocks = <&axi>, <&pll6 3>, <&pll6 1>;
Chen-Yu Tsai06067a22014-02-03 09:51:44 +0800266 clock-output-names = "ahb";
Chen-Yu Tsai2186df32015-03-25 01:22:09 +0800267 /*
268 * Use PLL6 as parent, instead of CPU/AXI
269 * which has rate changes due to cpufreq
270 */
271 assigned-clocks = <&ahb>;
272 assigned-clock-parents = <&pll6 3>;
Maxime Ripardde7dc932013-07-25 21:12:52 +0200273 };
274
Chen-Yu Tsai06067a22014-02-03 09:51:44 +0800275 ahb_gates: clk@01c20060 {
Maxime Ripardde7dc932013-07-25 21:12:52 +0200276 #clock-cells = <1>;
277 compatible = "allwinner,sun7i-a20-ahb-gates-clk";
278 reg = <0x01c20060 0x8>;
279 clocks = <&ahb>;
Maxime Ripard6bfe30b2015-07-31 19:46:19 +0200280 clock-indices = <0>, <1>,
281 <2>, <3>, <4>,
282 <5>, <6>, <7>, <8>,
283 <9>, <10>, <11>, <12>,
284 <13>, <14>, <16>,
285 <17>, <18>, <20>, <21>,
286 <22>, <23>, <25>,
287 <28>, <32>, <33>, <34>,
288 <35>, <36>, <37>, <40>,
289 <41>, <42>, <43>,
290 <44>, <45>, <46>,
291 <47>, <49>, <50>,
292 <52>;
Maxime Ripardde7dc932013-07-25 21:12:52 +0200293 clock-output-names = "ahb_usb0", "ahb_ehci0",
294 "ahb_ohci0", "ahb_ehci1", "ahb_ohci1",
295 "ahb_ss", "ahb_dma", "ahb_bist", "ahb_mmc0",
296 "ahb_mmc1", "ahb_mmc2", "ahb_mmc3", "ahb_ms",
297 "ahb_nand", "ahb_sdram", "ahb_ace",
298 "ahb_emac", "ahb_ts", "ahb_spi0", "ahb_spi1",
299 "ahb_spi2", "ahb_spi3", "ahb_sata",
300 "ahb_hstimer", "ahb_ve", "ahb_tvd", "ahb_tve0",
301 "ahb_tve1", "ahb_lcd0", "ahb_lcd1", "ahb_csi0",
302 "ahb_csi1", "ahb_hdmi1", "ahb_hdmi0",
303 "ahb_de_be0", "ahb_de_be1", "ahb_de_fe0",
304 "ahb_de_fe1", "ahb_gmac", "ahb_mp",
305 "ahb_mali";
306 };
307
308 apb0: apb0@01c20054 {
309 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100310 compatible = "allwinner,sun4i-a10-apb0-clk";
Maxime Ripardde7dc932013-07-25 21:12:52 +0200311 reg = <0x01c20054 0x4>;
312 clocks = <&ahb>;
Chen-Yu Tsai06067a22014-02-03 09:51:44 +0800313 clock-output-names = "apb0";
Maxime Ripardde7dc932013-07-25 21:12:52 +0200314 };
315
Chen-Yu Tsai06067a22014-02-03 09:51:44 +0800316 apb0_gates: clk@01c20068 {
Maxime Ripardde7dc932013-07-25 21:12:52 +0200317 #clock-cells = <1>;
318 compatible = "allwinner,sun7i-a20-apb0-gates-clk";
319 reg = <0x01c20068 0x4>;
320 clocks = <&apb0>;
Maxime Ripard6bfe30b2015-07-31 19:46:19 +0200321 clock-indices = <0>, <1>,
322 <2>, <3>, <4>,
323 <5>, <6>, <7>,
324 <8>, <10>;
Maxime Ripardde7dc932013-07-25 21:12:52 +0200325 clock-output-names = "apb0_codec", "apb0_spdif",
326 "apb0_ac97", "apb0_iis0", "apb0_iis1",
327 "apb0_pio", "apb0_ir0", "apb0_ir1",
328 "apb0_iis2", "apb0_keypad";
329 };
330
Emilio Lópezacbcc0f2014-11-06 11:40:30 +0800331 apb1: clk@01c20058 {
Maxime Ripardde7dc932013-07-25 21:12:52 +0200332 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100333 compatible = "allwinner,sun4i-a10-apb1-clk";
Maxime Ripardde7dc932013-07-25 21:12:52 +0200334 reg = <0x01c20058 0x4>;
Emilio Lópezacbcc0f2014-11-06 11:40:30 +0800335 clocks = <&osc24M>, <&pll6 1>, <&osc32k>;
Chen-Yu Tsai06067a22014-02-03 09:51:44 +0800336 clock-output-names = "apb1";
Maxime Ripardde7dc932013-07-25 21:12:52 +0200337 };
338
Chen-Yu Tsai06067a22014-02-03 09:51:44 +0800339 apb1_gates: clk@01c2006c {
Maxime Ripardde7dc932013-07-25 21:12:52 +0200340 #clock-cells = <1>;
341 compatible = "allwinner,sun7i-a20-apb1-gates-clk";
342 reg = <0x01c2006c 0x4>;
343 clocks = <&apb1>;
Maxime Ripard6bfe30b2015-07-31 19:46:19 +0200344 clock-indices = <0>, <1>,
345 <2>, <3>, <4>,
346 <5>, <6>, <7>,
347 <15>, <16>, <17>,
348 <18>, <19>, <20>,
349 <21>, <22>, <23>;
Maxime Ripardde7dc932013-07-25 21:12:52 +0200350 clock-output-names = "apb1_i2c0", "apb1_i2c1",
351 "apb1_i2c2", "apb1_i2c3", "apb1_can",
352 "apb1_scr", "apb1_ps20", "apb1_ps21",
353 "apb1_i2c4", "apb1_uart0", "apb1_uart1",
354 "apb1_uart2", "apb1_uart3", "apb1_uart4",
355 "apb1_uart5", "apb1_uart6", "apb1_uart7";
356 };
Emilio López1c92b952013-12-23 00:32:43 -0300357
358 nand_clk: clk@01c20080 {
359 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100360 compatible = "allwinner,sun4i-a10-mod0-clk";
Emilio López1c92b952013-12-23 00:32:43 -0300361 reg = <0x01c20080 0x4>;
362 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
363 clock-output-names = "nand";
364 };
365
366 ms_clk: clk@01c20084 {
367 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100368 compatible = "allwinner,sun4i-a10-mod0-clk";
Emilio López1c92b952013-12-23 00:32:43 -0300369 reg = <0x01c20084 0x4>;
370 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
371 clock-output-names = "ms";
372 };
373
374 mmc0_clk: clk@01c20088 {
Maxime Ripardd8c3a392014-07-11 19:39:06 +0200375 #clock-cells = <1>;
376 compatible = "allwinner,sun4i-a10-mmc-clk";
Emilio López1c92b952013-12-23 00:32:43 -0300377 reg = <0x01c20088 0x4>;
378 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
Maxime Ripardd8c3a392014-07-11 19:39:06 +0200379 clock-output-names = "mmc0",
380 "mmc0_output",
381 "mmc0_sample";
Emilio López1c92b952013-12-23 00:32:43 -0300382 };
383
384 mmc1_clk: clk@01c2008c {
Maxime Ripardd8c3a392014-07-11 19:39:06 +0200385 #clock-cells = <1>;
386 compatible = "allwinner,sun4i-a10-mmc-clk";
Emilio López1c92b952013-12-23 00:32:43 -0300387 reg = <0x01c2008c 0x4>;
388 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
Maxime Ripardd8c3a392014-07-11 19:39:06 +0200389 clock-output-names = "mmc1",
390 "mmc1_output",
391 "mmc1_sample";
Emilio López1c92b952013-12-23 00:32:43 -0300392 };
393
394 mmc2_clk: clk@01c20090 {
Maxime Ripardd8c3a392014-07-11 19:39:06 +0200395 #clock-cells = <1>;
396 compatible = "allwinner,sun4i-a10-mmc-clk";
Emilio López1c92b952013-12-23 00:32:43 -0300397 reg = <0x01c20090 0x4>;
398 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
Maxime Ripardd8c3a392014-07-11 19:39:06 +0200399 clock-output-names = "mmc2",
400 "mmc2_output",
401 "mmc2_sample";
Emilio López1c92b952013-12-23 00:32:43 -0300402 };
403
404 mmc3_clk: clk@01c20094 {
Maxime Ripardd8c3a392014-07-11 19:39:06 +0200405 #clock-cells = <1>;
406 compatible = "allwinner,sun4i-a10-mmc-clk";
Emilio López1c92b952013-12-23 00:32:43 -0300407 reg = <0x01c20094 0x4>;
408 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
Maxime Ripardd8c3a392014-07-11 19:39:06 +0200409 clock-output-names = "mmc3",
410 "mmc3_output",
411 "mmc3_sample";
Emilio López1c92b952013-12-23 00:32:43 -0300412 };
413
414 ts_clk: clk@01c20098 {
415 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100416 compatible = "allwinner,sun4i-a10-mod0-clk";
Emilio López1c92b952013-12-23 00:32:43 -0300417 reg = <0x01c20098 0x4>;
418 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
419 clock-output-names = "ts";
420 };
421
422 ss_clk: clk@01c2009c {
423 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100424 compatible = "allwinner,sun4i-a10-mod0-clk";
Emilio López1c92b952013-12-23 00:32:43 -0300425 reg = <0x01c2009c 0x4>;
426 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
427 clock-output-names = "ss";
428 };
429
430 spi0_clk: clk@01c200a0 {
431 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100432 compatible = "allwinner,sun4i-a10-mod0-clk";
Emilio López1c92b952013-12-23 00:32:43 -0300433 reg = <0x01c200a0 0x4>;
434 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
435 clock-output-names = "spi0";
436 };
437
438 spi1_clk: clk@01c200a4 {
439 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100440 compatible = "allwinner,sun4i-a10-mod0-clk";
Emilio López1c92b952013-12-23 00:32:43 -0300441 reg = <0x01c200a4 0x4>;
442 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
443 clock-output-names = "spi1";
444 };
445
446 spi2_clk: clk@01c200a8 {
447 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100448 compatible = "allwinner,sun4i-a10-mod0-clk";
Emilio López1c92b952013-12-23 00:32:43 -0300449 reg = <0x01c200a8 0x4>;
450 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
451 clock-output-names = "spi2";
452 };
453
454 pata_clk: clk@01c200ac {
455 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100456 compatible = "allwinner,sun4i-a10-mod0-clk";
Emilio López1c92b952013-12-23 00:32:43 -0300457 reg = <0x01c200ac 0x4>;
458 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
459 clock-output-names = "pata";
460 };
461
462 ir0_clk: clk@01c200b0 {
463 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100464 compatible = "allwinner,sun4i-a10-mod0-clk";
Emilio López1c92b952013-12-23 00:32:43 -0300465 reg = <0x01c200b0 0x4>;
466 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
467 clock-output-names = "ir0";
468 };
469
470 ir1_clk: clk@01c200b4 {
471 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100472 compatible = "allwinner,sun4i-a10-mod0-clk";
Emilio López1c92b952013-12-23 00:32:43 -0300473 reg = <0x01c200b4 0x4>;
474 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
475 clock-output-names = "ir1";
476 };
477
Yassin Jaffer6f1606b2015-09-16 00:05:54 +1000478 keypad_clk: clk@01c200c4 {
479 #clock-cells = <0>;
480 compatible = "allwinner,sun4i-a10-mod0-clk";
481 reg = <0x01c200c4 0x4>;
482 clocks = <&osc24M>;
483 clock-output-names = "keypad";
484 };
485
Roman Byshko434e41b2014-02-07 16:21:53 +0100486 usb_clk: clk@01c200cc {
487 #clock-cells = <1>;
Maxime Ripard8358aad2015-05-03 11:54:35 +0200488 #reset-cells = <1>;
Roman Byshko434e41b2014-02-07 16:21:53 +0100489 compatible = "allwinner,sun4i-a10-usb-clk";
490 reg = <0x01c200cc 0x4>;
491 clocks = <&pll6 1>;
Maxime Ripardd8cacaa2015-05-03 11:53:07 +0200492 clock-output-names = "usb_ohci0", "usb_ohci1",
493 "usb_phy";
Roman Byshko434e41b2014-02-07 16:21:53 +0100494 };
495
Emilio López1c92b952013-12-23 00:32:43 -0300496 spi3_clk: clk@01c200d4 {
497 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100498 compatible = "allwinner,sun4i-a10-mod0-clk";
Emilio López1c92b952013-12-23 00:32:43 -0300499 reg = <0x01c200d4 0x4>;
500 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
501 clock-output-names = "spi3";
502 };
Emilio López118c07a2013-12-23 00:32:44 -0300503
Maxime Riparddbe4dd12015-10-12 22:28:46 +0200504 codec_clk: clk@01c20140 {
505 #clock-cells = <0>;
506 compatible = "allwinner,sun4i-a10-codec-clk";
507 reg = <0x01c20140 0x4>;
508 clocks = <&pll2 SUN4I_A10_PLL2_1X>;
509 clock-output-names = "codec";
510 };
511
Emilio López118c07a2013-12-23 00:32:44 -0300512 mbus_clk: clk@01c2015c {
513 #clock-cells = <0>;
Maxime Ripard7868c5e2014-07-16 23:45:48 +0200514 compatible = "allwinner,sun5i-a13-mbus-clk";
Emilio López118c07a2013-12-23 00:32:44 -0300515 reg = <0x01c2015c 0x4>;
516 clocks = <&osc24M>, <&pll6 2>, <&pll5 1>;
517 clock-output-names = "mbus";
518 };
Chen-Yu Tsai0aff0372014-01-01 10:30:48 +0800519
520 /*
Maxime Ripardd8cacaa2015-05-03 11:53:07 +0200521 * The following two are dummy clocks, placeholders
522 * used in the gmac_tx clock. The gmac driver will
523 * choose one parent depending on the PHY interface
524 * mode, using clk_set_rate auto-reparenting.
525 *
526 * The actual TX clock rate is not controlled by the
527 * gmac_tx clock.
Chen-Yu Tsaidaed5a82014-02-10 18:35:48 +0800528 */
529 mii_phy_tx_clk: clk@2 {
530 #clock-cells = <0>;
531 compatible = "fixed-clock";
532 clock-frequency = <25000000>;
533 clock-output-names = "mii_phy_tx";
534 };
535
536 gmac_int_tx_clk: clk@3 {
537 #clock-cells = <0>;
538 compatible = "fixed-clock";
539 clock-frequency = <125000000>;
540 clock-output-names = "gmac_int_tx";
541 };
542
543 gmac_tx_clk: clk@01c20164 {
544 #clock-cells = <0>;
545 compatible = "allwinner,sun7i-a20-gmac-clk";
546 reg = <0x01c20164 0x4>;
547 clocks = <&mii_phy_tx_clk>, <&gmac_int_tx_clk>;
548 clock-output-names = "gmac_tx";
549 };
550
551 /*
Chen-Yu Tsai0aff0372014-01-01 10:30:48 +0800552 * Dummy clock used by output clocks
553 */
554 osc24M_32k: clk@1 {
555 #clock-cells = <0>;
556 compatible = "fixed-factor-clock";
557 clock-div = <750>;
558 clock-mult = <1>;
559 clocks = <&osc24M>;
560 clock-output-names = "osc24M_32k";
561 };
562
563 clk_out_a: clk@01c201f0 {
564 #clock-cells = <0>;
565 compatible = "allwinner,sun7i-a20-out-clk";
566 reg = <0x01c201f0 0x4>;
567 clocks = <&osc24M_32k>, <&osc32k>, <&osc24M>;
568 clock-output-names = "clk_out_a";
569 };
570
571 clk_out_b: clk@01c201f4 {
572 #clock-cells = <0>;
573 compatible = "allwinner,sun7i-a20-out-clk";
574 reg = <0x01c201f4 0x4>;
575 clocks = <&osc24M_32k>, <&osc32k>, <&osc24M>;
576 clock-output-names = "clk_out_b";
577 };
Maxime Ripard4790ecf2013-07-17 10:07:10 +0200578 };
579
580 soc@01c00000 {
581 compatible = "simple-bus";
582 #address-cells = <1>;
583 #size-cells = <1>;
584 ranges;
585
Maxime Ripard0eb14a82015-03-26 15:53:44 +0100586 sram-controller@01c00000 {
587 compatible = "allwinner,sun4i-a10-sram-controller";
588 reg = <0x01c00000 0x30>;
589 #address-cells = <1>;
590 #size-cells = <1>;
591 ranges;
592
593 sram_a: sram@00000000 {
594 compatible = "mmio-sram";
595 reg = <0x00000000 0xc000>;
596 #address-cells = <1>;
597 #size-cells = <1>;
598 ranges = <0 0x00000000 0xc000>;
599
600 emac_sram: sram-section@8000 {
601 compatible = "allwinner,sun4i-a10-sram-a3-a4";
602 reg = <0x8000 0x4000>;
603 status = "disabled";
604 };
605 };
606
607 sram_d: sram@00010000 {
608 compatible = "mmio-sram";
609 reg = <0x00010000 0x1000>;
610 #address-cells = <1>;
611 #size-cells = <1>;
612 ranges = <0 0x00010000 0x1000>;
613
614 otg_sram: sram-section@0000 {
615 compatible = "allwinner,sun4i-a10-sram-d";
616 reg = <0x0000 0x1000>;
617 status = "disabled";
618 };
619 };
620 };
621
Carlo Caione8ff973a2014-03-19 20:21:18 +0100622 nmi_intc: interrupt-controller@01c00030 {
623 compatible = "allwinner,sun7i-a20-sc-nmi";
624 interrupt-controller;
625 #interrupt-cells = <2>;
626 reg = <0x01c00030 0x0c>;
Maxime Ripard19882b82014-12-16 22:59:58 +0100627 interrupts = <GIC_SPI 0 IRQ_TYPE_LEVEL_HIGH>;
Carlo Caione8ff973a2014-03-19 20:21:18 +0100628 };
629
Emilio López316e0b02014-08-04 17:09:59 -0300630 dma: dma-controller@01c02000 {
631 compatible = "allwinner,sun4i-a10-dma";
632 reg = <0x01c02000 0x1000>;
Maxime Ripard19882b82014-12-16 22:59:58 +0100633 interrupts = <GIC_SPI 27 IRQ_TYPE_LEVEL_HIGH>;
Emilio López316e0b02014-08-04 17:09:59 -0300634 clocks = <&ahb_gates 6>;
635 #dma-cells = <2>;
636 };
637
Maxime Ripard36ab3e72014-02-22 22:35:54 +0100638 spi0: spi@01c05000 {
639 compatible = "allwinner,sun4i-a10-spi";
640 reg = <0x01c05000 0x1000>;
Maxime Ripard19882b82014-12-16 22:59:58 +0100641 interrupts = <GIC_SPI 10 IRQ_TYPE_LEVEL_HIGH>;
Maxime Ripard36ab3e72014-02-22 22:35:54 +0100642 clocks = <&ahb_gates 20>, <&spi0_clk>;
643 clock-names = "ahb", "mod";
Maxime Ripard1f9f6a72014-12-16 22:59:56 +0100644 dmas = <&dma SUN4I_DMA_DEDICATED 27>,
645 <&dma SUN4I_DMA_DEDICATED 26>;
Emilio Lópezffec7212014-08-04 17:10:02 -0300646 dma-names = "rx", "tx";
Maxime Ripard36ab3e72014-02-22 22:35:54 +0100647 status = "disabled";
648 #address-cells = <1>;
649 #size-cells = <0>;
650 };
651
652 spi1: spi@01c06000 {
653 compatible = "allwinner,sun4i-a10-spi";
654 reg = <0x01c06000 0x1000>;
Maxime Ripard19882b82014-12-16 22:59:58 +0100655 interrupts = <GIC_SPI 11 IRQ_TYPE_LEVEL_HIGH>;
Maxime Ripard36ab3e72014-02-22 22:35:54 +0100656 clocks = <&ahb_gates 21>, <&spi1_clk>;
657 clock-names = "ahb", "mod";
Maxime Ripard1f9f6a72014-12-16 22:59:56 +0100658 dmas = <&dma SUN4I_DMA_DEDICATED 9>,
659 <&dma SUN4I_DMA_DEDICATED 8>;
Emilio Lópezffec7212014-08-04 17:10:02 -0300660 dma-names = "rx", "tx";
Maxime Ripard36ab3e72014-02-22 22:35:54 +0100661 status = "disabled";
662 #address-cells = <1>;
663 #size-cells = <0>;
664 };
665
Maxime Ripard2e804d02013-09-11 11:10:06 +0200666 emac: ethernet@01c0b000 {
Maxime Ripard1c70e092014-02-02 14:49:13 +0100667 compatible = "allwinner,sun4i-a10-emac";
Maxime Ripard2e804d02013-09-11 11:10:06 +0200668 reg = <0x01c0b000 0x1000>;
Maxime Ripard19882b82014-12-16 22:59:58 +0100669 interrupts = <GIC_SPI 55 IRQ_TYPE_LEVEL_HIGH>;
Maxime Ripard2e804d02013-09-11 11:10:06 +0200670 clocks = <&ahb_gates 17>;
Maxime Ripard0eb14a82015-03-26 15:53:44 +0100671 allwinner,sram = <&emac_sram 1>;
Maxime Ripard2e804d02013-09-11 11:10:06 +0200672 status = "disabled";
673 };
674
Aleksei Mamlin92395f52015-01-19 22:35:22 +0300675 mdio: mdio@01c0b080 {
Maxime Ripard1c70e092014-02-02 14:49:13 +0100676 compatible = "allwinner,sun4i-a10-mdio";
Maxime Ripard2e804d02013-09-11 11:10:06 +0200677 reg = <0x01c0b080 0x14>;
678 status = "disabled";
679 #address-cells = <1>;
680 #size-cells = <0>;
681 };
682
Hans de Goededd29ce52014-05-02 17:57:26 +0200683 mmc0: mmc@01c0f000 {
684 compatible = "allwinner,sun5i-a13-mmc";
685 reg = <0x01c0f000 0x1000>;
Maxime Ripardd8c3a392014-07-11 19:39:06 +0200686 clocks = <&ahb_gates 8>,
687 <&mmc0_clk 0>,
688 <&mmc0_clk 1>,
689 <&mmc0_clk 2>;
690 clock-names = "ahb",
691 "mmc",
692 "output",
693 "sample";
Maxime Ripard19882b82014-12-16 22:59:58 +0100694 interrupts = <GIC_SPI 32 IRQ_TYPE_LEVEL_HIGH>;
Hans de Goededd29ce52014-05-02 17:57:26 +0200695 status = "disabled";
Hans de Goede4c1bb9c2015-03-10 16:27:09 +0100696 #address-cells = <1>;
697 #size-cells = <0>;
Hans de Goededd29ce52014-05-02 17:57:26 +0200698 };
699
700 mmc1: mmc@01c10000 {
701 compatible = "allwinner,sun5i-a13-mmc";
702 reg = <0x01c10000 0x1000>;
Maxime Ripardd8c3a392014-07-11 19:39:06 +0200703 clocks = <&ahb_gates 9>,
704 <&mmc1_clk 0>,
705 <&mmc1_clk 1>,
706 <&mmc1_clk 2>;
707 clock-names = "ahb",
708 "mmc",
709 "output",
710 "sample";
Maxime Ripard19882b82014-12-16 22:59:58 +0100711 interrupts = <GIC_SPI 33 IRQ_TYPE_LEVEL_HIGH>;
Hans de Goededd29ce52014-05-02 17:57:26 +0200712 status = "disabled";
Hans de Goede4c1bb9c2015-03-10 16:27:09 +0100713 #address-cells = <1>;
714 #size-cells = <0>;
Hans de Goededd29ce52014-05-02 17:57:26 +0200715 };
716
717 mmc2: mmc@01c11000 {
718 compatible = "allwinner,sun5i-a13-mmc";
719 reg = <0x01c11000 0x1000>;
Maxime Ripardd8c3a392014-07-11 19:39:06 +0200720 clocks = <&ahb_gates 10>,
721 <&mmc2_clk 0>,
722 <&mmc2_clk 1>,
723 <&mmc2_clk 2>;
724 clock-names = "ahb",
725 "mmc",
726 "output",
727 "sample";
Maxime Ripard19882b82014-12-16 22:59:58 +0100728 interrupts = <GIC_SPI 34 IRQ_TYPE_LEVEL_HIGH>;
Hans de Goededd29ce52014-05-02 17:57:26 +0200729 status = "disabled";
Hans de Goede4c1bb9c2015-03-10 16:27:09 +0100730 #address-cells = <1>;
731 #size-cells = <0>;
Hans de Goededd29ce52014-05-02 17:57:26 +0200732 };
733
734 mmc3: mmc@01c12000 {
735 compatible = "allwinner,sun5i-a13-mmc";
736 reg = <0x01c12000 0x1000>;
Maxime Ripardd8c3a392014-07-11 19:39:06 +0200737 clocks = <&ahb_gates 11>,
738 <&mmc3_clk 0>,
739 <&mmc3_clk 1>,
740 <&mmc3_clk 2>;
741 clock-names = "ahb",
742 "mmc",
743 "output",
744 "sample";
Maxime Ripard19882b82014-12-16 22:59:58 +0100745 interrupts = <GIC_SPI 35 IRQ_TYPE_LEVEL_HIGH>;
Hans de Goededd29ce52014-05-02 17:57:26 +0200746 status = "disabled";
Hans de Goede4c1bb9c2015-03-10 16:27:09 +0100747 #address-cells = <1>;
748 #size-cells = <0>;
Hans de Goededd29ce52014-05-02 17:57:26 +0200749 };
750
Roman Byshkocbb3ff12014-10-22 00:14:03 +0200751 usb_otg: usb@01c13000 {
752 compatible = "allwinner,sun4i-a10-musb";
753 reg = <0x01c13000 0x0400>;
754 clocks = <&ahb_gates 0>;
755 interrupts = <GIC_SPI 38 IRQ_TYPE_LEVEL_HIGH>;
756 interrupt-names = "mc";
757 phys = <&usbphy 0>;
758 phy-names = "usb";
759 extcon = <&usbphy 0>;
760 allwinner,sram = <&otg_sram 1>;
761 status = "disabled";
762 };
763
Roman Byshko9debd0a2014-03-01 20:26:25 +0100764 usbphy: phy@01c13400 {
765 #phy-cells = <1>;
766 compatible = "allwinner,sun7i-a20-usb-phy";
767 reg = <0x01c13400 0x10 0x01c14800 0x4 0x01c1c800 0x4>;
768 reg-names = "phy_ctrl", "pmu1", "pmu2";
769 clocks = <&usb_clk 8>;
770 clock-names = "usb_phy";
Roman Byshko134c60a2014-11-10 19:55:08 +0100771 resets = <&usb_clk 0>, <&usb_clk 1>, <&usb_clk 2>;
772 reset-names = "usb0_reset", "usb1_reset", "usb2_reset";
Roman Byshko9debd0a2014-03-01 20:26:25 +0100773 status = "disabled";
774 };
775
776 ehci0: usb@01c14000 {
777 compatible = "allwinner,sun7i-a20-ehci", "generic-ehci";
778 reg = <0x01c14000 0x100>;
Maxime Ripard19882b82014-12-16 22:59:58 +0100779 interrupts = <GIC_SPI 39 IRQ_TYPE_LEVEL_HIGH>;
Roman Byshko9debd0a2014-03-01 20:26:25 +0100780 clocks = <&ahb_gates 1>;
781 phys = <&usbphy 1>;
782 phy-names = "usb";
783 status = "disabled";
784 };
785
786 ohci0: usb@01c14400 {
787 compatible = "allwinner,sun7i-a20-ohci", "generic-ohci";
788 reg = <0x01c14400 0x100>;
Maxime Ripard19882b82014-12-16 22:59:58 +0100789 interrupts = <GIC_SPI 64 IRQ_TYPE_LEVEL_HIGH>;
Roman Byshko9debd0a2014-03-01 20:26:25 +0100790 clocks = <&usb_clk 6>, <&ahb_gates 2>;
791 phys = <&usbphy 1>;
792 phy-names = "usb";
793 status = "disabled";
794 };
795
LABBE Corentin110d4e22015-07-17 16:39:39 +0200796 crypto: crypto-engine@01c15000 {
797 compatible = "allwinner,sun4i-a10-crypto";
798 reg = <0x01c15000 0x1000>;
799 interrupts = <GIC_SPI 86 IRQ_TYPE_LEVEL_HIGH>;
800 clocks = <&ahb_gates 5>, <&ss_clk>;
801 clock-names = "ahb", "mod";
802 };
803
Maxime Ripard36ab3e72014-02-22 22:35:54 +0100804 spi2: spi@01c17000 {
805 compatible = "allwinner,sun4i-a10-spi";
806 reg = <0x01c17000 0x1000>;
Maxime Ripard19882b82014-12-16 22:59:58 +0100807 interrupts = <GIC_SPI 12 IRQ_TYPE_LEVEL_HIGH>;
Maxime Ripard36ab3e72014-02-22 22:35:54 +0100808 clocks = <&ahb_gates 22>, <&spi2_clk>;
809 clock-names = "ahb", "mod";
Maxime Ripard1f9f6a72014-12-16 22:59:56 +0100810 dmas = <&dma SUN4I_DMA_DEDICATED 29>,
811 <&dma SUN4I_DMA_DEDICATED 28>;
Emilio Lópezffec7212014-08-04 17:10:02 -0300812 dma-names = "rx", "tx";
Maxime Ripard36ab3e72014-02-22 22:35:54 +0100813 status = "disabled";
814 #address-cells = <1>;
815 #size-cells = <0>;
816 };
817
Hans de Goede902febf2014-03-01 20:26:22 +0100818 ahci: sata@01c18000 {
819 compatible = "allwinner,sun4i-a10-ahci";
820 reg = <0x01c18000 0x1000>;
Maxime Ripard19882b82014-12-16 22:59:58 +0100821 interrupts = <GIC_SPI 56 IRQ_TYPE_LEVEL_HIGH>;
Hans de Goede902febf2014-03-01 20:26:22 +0100822 clocks = <&pll6 0>, <&ahb_gates 25>;
823 status = "disabled";
824 };
825
Roman Byshko9debd0a2014-03-01 20:26:25 +0100826 ehci1: usb@01c1c000 {
827 compatible = "allwinner,sun7i-a20-ehci", "generic-ehci";
828 reg = <0x01c1c000 0x100>;
Maxime Ripard19882b82014-12-16 22:59:58 +0100829 interrupts = <GIC_SPI 40 IRQ_TYPE_LEVEL_HIGH>;
Roman Byshko9debd0a2014-03-01 20:26:25 +0100830 clocks = <&ahb_gates 3>;
831 phys = <&usbphy 2>;
832 phy-names = "usb";
833 status = "disabled";
834 };
835
836 ohci1: usb@01c1c400 {
837 compatible = "allwinner,sun7i-a20-ohci", "generic-ohci";
838 reg = <0x01c1c400 0x100>;
Maxime Ripard19882b82014-12-16 22:59:58 +0100839 interrupts = <GIC_SPI 65 IRQ_TYPE_LEVEL_HIGH>;
Roman Byshko9debd0a2014-03-01 20:26:25 +0100840 clocks = <&usb_clk 7>, <&ahb_gates 4>;
841 phys = <&usbphy 2>;
842 phy-names = "usb";
843 status = "disabled";
844 };
845
Maxime Ripard36ab3e72014-02-22 22:35:54 +0100846 spi3: spi@01c1f000 {
847 compatible = "allwinner,sun4i-a10-spi";
848 reg = <0x01c1f000 0x1000>;
Maxime Ripard19882b82014-12-16 22:59:58 +0100849 interrupts = <GIC_SPI 50 IRQ_TYPE_LEVEL_HIGH>;
Maxime Ripard36ab3e72014-02-22 22:35:54 +0100850 clocks = <&ahb_gates 23>, <&spi3_clk>;
851 clock-names = "ahb", "mod";
Maxime Ripard1f9f6a72014-12-16 22:59:56 +0100852 dmas = <&dma SUN4I_DMA_DEDICATED 31>,
853 <&dma SUN4I_DMA_DEDICATED 30>;
Emilio Lópezffec7212014-08-04 17:10:02 -0300854 dma-names = "rx", "tx";
Maxime Ripard36ab3e72014-02-22 22:35:54 +0100855 status = "disabled";
856 #address-cells = <1>;
857 #size-cells = <0>;
858 };
859
Maxime Ripard17eac032013-07-24 23:46:11 +0200860 pio: pinctrl@01c20800 {
861 compatible = "allwinner,sun7i-a20-pinctrl";
862 reg = <0x01c20800 0x400>;
Maxime Ripard19882b82014-12-16 22:59:58 +0100863 interrupts = <GIC_SPI 28 IRQ_TYPE_LEVEL_HIGH>;
Maxime Ripardde7dc932013-07-25 21:12:52 +0200864 clocks = <&apb0_gates 5>;
Maxime Ripard17eac032013-07-24 23:46:11 +0200865 gpio-controller;
866 interrupt-controller;
Maxime Ripardb03e0812015-06-17 11:44:24 +0200867 #interrupt-cells = <3>;
Maxime Ripard17eac032013-07-24 23:46:11 +0200868 #gpio-cells = <3>;
Maxime Ripard9f229ba2013-07-25 00:09:47 +0200869
Alexandre Bellonifd7898a2014-04-28 18:17:12 +0200870 pwm0_pins_a: pwm0@0 {
871 allwinner,pins = "PB2";
872 allwinner,function = "pwm";
Maxime Ripard092a0c32014-12-16 22:59:57 +0100873 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
874 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Alexandre Bellonifd7898a2014-04-28 18:17:12 +0200875 };
876
877 pwm1_pins_a: pwm1@0 {
878 allwinner,pins = "PI3";
879 allwinner,function = "pwm";
Maxime Ripard092a0c32014-12-16 22:59:57 +0100880 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
881 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Alexandre Bellonifd7898a2014-04-28 18:17:12 +0200882 };
883
Maxime Ripard9f229ba2013-07-25 00:09:47 +0200884 uart0_pins_a: uart0@0 {
885 allwinner,pins = "PB22", "PB23";
886 allwinner,function = "uart0";
Maxime Ripard092a0c32014-12-16 22:59:57 +0100887 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
888 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Maxime Ripard9f229ba2013-07-25 00:09:47 +0200889 };
890
Chen-Yu Tsai4261ec42014-01-14 22:49:50 +0800891 uart2_pins_a: uart2@0 {
892 allwinner,pins = "PI16", "PI17", "PI18", "PI19";
893 allwinner,function = "uart2";
Maxime Ripard092a0c32014-12-16 22:59:57 +0100894 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
895 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Chen-Yu Tsai4261ec42014-01-14 22:49:50 +0800896 };
897
Wills Wang7b5bace2014-08-19 15:33:00 +0800898 uart3_pins_a: uart3@0 {
899 allwinner,pins = "PG6", "PG7", "PG8", "PG9";
900 allwinner,function = "uart3";
Maxime Ripard092a0c32014-12-16 22:59:57 +0100901 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
902 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Wills Wang7b5bace2014-08-19 15:33:00 +0800903 };
904
Hans de Goede0510e4b2014-10-01 09:26:05 +0200905 uart3_pins_b: uart3@1 {
906 allwinner,pins = "PH0", "PH1";
907 allwinner,function = "uart3";
Maxime Ripard092a0c32014-12-16 22:59:57 +0100908 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
909 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Hans de Goede0510e4b2014-10-01 09:26:05 +0200910 };
911
Wills Wang7b5bace2014-08-19 15:33:00 +0800912 uart4_pins_a: uart4@0 {
913 allwinner,pins = "PG10", "PG11";
914 allwinner,function = "uart4";
Maxime Ripard092a0c32014-12-16 22:59:57 +0100915 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
916 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Wills Wang7b5bace2014-08-19 15:33:00 +0800917 };
918
Michael Ring869afa72015-05-21 14:32:33 +0200919 uart4_pins_b: uart4@1 {
920 allwinner,pins = "PH4", "PH5";
921 allwinner,function = "uart4";
922 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
923 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
924 };
925
Wills Wang7b5bace2014-08-19 15:33:00 +0800926 uart5_pins_a: uart5@0 {
927 allwinner,pins = "PI10", "PI11";
928 allwinner,function = "uart5";
Maxime Ripard092a0c32014-12-16 22:59:57 +0100929 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
930 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Wills Wang7b5bace2014-08-19 15:33:00 +0800931 };
932
Maxime Ripard9f229ba2013-07-25 00:09:47 +0200933 uart6_pins_a: uart6@0 {
934 allwinner,pins = "PI12", "PI13";
935 allwinner,function = "uart6";
Maxime Ripard092a0c32014-12-16 22:59:57 +0100936 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
937 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Maxime Ripard9f229ba2013-07-25 00:09:47 +0200938 };
939
940 uart7_pins_a: uart7@0 {
941 allwinner,pins = "PI20", "PI21";
942 allwinner,function = "uart7";
Maxime Ripard092a0c32014-12-16 22:59:57 +0100943 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
944 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Maxime Ripard9f229ba2013-07-25 00:09:47 +0200945 };
Maxime Ripard756084c2013-09-11 11:10:07 +0200946
Maxime Riparde5496a32013-08-31 23:08:49 +0200947 i2c0_pins_a: i2c0@0 {
948 allwinner,pins = "PB0", "PB1";
949 allwinner,function = "i2c0";
Maxime Ripard092a0c32014-12-16 22:59:57 +0100950 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
951 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Maxime Riparde5496a32013-08-31 23:08:49 +0200952 };
953
954 i2c1_pins_a: i2c1@0 {
955 allwinner,pins = "PB18", "PB19";
956 allwinner,function = "i2c1";
Maxime Ripard092a0c32014-12-16 22:59:57 +0100957 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
958 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Maxime Riparde5496a32013-08-31 23:08:49 +0200959 };
960
961 i2c2_pins_a: i2c2@0 {
962 allwinner,pins = "PB20", "PB21";
963 allwinner,function = "i2c2";
Maxime Ripard092a0c32014-12-16 22:59:57 +0100964 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
965 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Maxime Riparde5496a32013-08-31 23:08:49 +0200966 };
967
Wills Wang7b5bace2014-08-19 15:33:00 +0800968 i2c3_pins_a: i2c3@0 {
969 allwinner,pins = "PI0", "PI1";
970 allwinner,function = "i2c3";
Maxime Ripard092a0c32014-12-16 22:59:57 +0100971 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
972 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Wills Wang7b5bace2014-08-19 15:33:00 +0800973 };
974
Maxime Ripard756084c2013-09-11 11:10:07 +0200975 emac_pins_a: emac0@0 {
976 allwinner,pins = "PA0", "PA1", "PA2",
977 "PA3", "PA4", "PA5", "PA6",
978 "PA7", "PA8", "PA9", "PA10",
979 "PA11", "PA12", "PA13", "PA14",
980 "PA15", "PA16";
981 allwinner,function = "emac";
Maxime Ripard092a0c32014-12-16 22:59:57 +0100982 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
983 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Maxime Ripard756084c2013-09-11 11:10:07 +0200984 };
Chen-Yu Tsaif2e07592014-01-01 10:30:50 +0800985
986 clk_out_a_pins_a: clk_out_a@0 {
987 allwinner,pins = "PI12";
988 allwinner,function = "clk_out_a";
Maxime Ripard092a0c32014-12-16 22:59:57 +0100989 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
990 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Chen-Yu Tsaif2e07592014-01-01 10:30:50 +0800991 };
992
993 clk_out_b_pins_a: clk_out_b@0 {
994 allwinner,pins = "PI13";
995 allwinner,function = "clk_out_b";
Maxime Ripard092a0c32014-12-16 22:59:57 +0100996 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
997 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Chen-Yu Tsaif2e07592014-01-01 10:30:50 +0800998 };
Chen-Yu Tsai129ccbc2014-02-10 18:35:50 +0800999
1000 gmac_pins_mii_a: gmac_mii@0 {
1001 allwinner,pins = "PA0", "PA1", "PA2",
1002 "PA3", "PA4", "PA5", "PA6",
1003 "PA7", "PA8", "PA9", "PA10",
1004 "PA11", "PA12", "PA13", "PA14",
1005 "PA15", "PA16";
1006 allwinner,function = "gmac";
Maxime Ripard092a0c32014-12-16 22:59:57 +01001007 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
1008 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Chen-Yu Tsai129ccbc2014-02-10 18:35:50 +08001009 };
1010
1011 gmac_pins_rgmii_a: gmac_rgmii@0 {
1012 allwinner,pins = "PA0", "PA1", "PA2",
1013 "PA3", "PA4", "PA5", "PA6",
1014 "PA7", "PA8", "PA10",
1015 "PA11", "PA12", "PA13",
1016 "PA15", "PA16";
1017 allwinner,function = "gmac";
1018 /*
1019 * data lines in RGMII mode use DDR mode
1020 * and need a higher signal drive strength
1021 */
Maxime Ripard092a0c32014-12-16 22:59:57 +01001022 allwinner,drive = <SUN4I_PINCTRL_40_MA>;
1023 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Chen-Yu Tsai129ccbc2014-02-10 18:35:50 +08001024 };
Maxime Ripard412f2c62014-02-22 22:35:58 +01001025
Hans de Goede2dad53b2014-10-01 09:26:04 +02001026 spi0_pins_a: spi0@0 {
Maxime Ripardf3022c62015-05-03 09:25:41 +02001027 allwinner,pins = "PI11", "PI12", "PI13";
1028 allwinner,function = "spi0";
1029 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
1030 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
1031 };
1032
1033 spi0_cs0_pins_a: spi0_cs0@0 {
1034 allwinner,pins = "PI10";
1035 allwinner,function = "spi0";
1036 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
1037 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
1038 };
1039
1040 spi0_cs1_pins_a: spi0_cs1@0 {
1041 allwinner,pins = "PI14";
Hans de Goede2dad53b2014-10-01 09:26:04 +02001042 allwinner,function = "spi0";
Maxime Ripard092a0c32014-12-16 22:59:57 +01001043 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
1044 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Hans de Goede2dad53b2014-10-01 09:26:04 +02001045 };
1046
Maxime Ripard412f2c62014-02-22 22:35:58 +01001047 spi1_pins_a: spi1@0 {
Maxime Ripardf3022c62015-05-03 09:25:41 +02001048 allwinner,pins = "PI17", "PI18", "PI19";
1049 allwinner,function = "spi1";
1050 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
1051 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
1052 };
1053
1054 spi1_cs0_pins_a: spi1_cs0@0 {
1055 allwinner,pins = "PI16";
Maxime Ripard412f2c62014-02-22 22:35:58 +01001056 allwinner,function = "spi1";
Maxime Ripard092a0c32014-12-16 22:59:57 +01001057 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
1058 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Maxime Ripard412f2c62014-02-22 22:35:58 +01001059 };
1060
1061 spi2_pins_a: spi2@0 {
Maxime Ripardf3022c62015-05-03 09:25:41 +02001062 allwinner,pins = "PC20", "PC21", "PC22";
Maxime Ripard412f2c62014-02-22 22:35:58 +01001063 allwinner,function = "spi2";
Maxime Ripard092a0c32014-12-16 22:59:57 +01001064 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
1065 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Maxime Ripard412f2c62014-02-22 22:35:58 +01001066 };
Hans de Goede11fbedf2014-05-02 17:57:27 +02001067
Wills Wang7b5bace2014-08-19 15:33:00 +08001068 spi2_pins_b: spi2@1 {
Maxime Ripardf3022c62015-05-03 09:25:41 +02001069 allwinner,pins = "PB15", "PB16", "PB17";
1070 allwinner,function = "spi2";
1071 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
1072 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
1073 };
1074
1075 spi2_cs0_pins_a: spi2_cs0@0 {
1076 allwinner,pins = "PC19";
1077 allwinner,function = "spi2";
1078 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
1079 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
1080 };
1081
1082 spi2_cs0_pins_b: spi2_cs0@1 {
1083 allwinner,pins = "PB14";
Wills Wang7b5bace2014-08-19 15:33:00 +08001084 allwinner,function = "spi2";
Maxime Ripard092a0c32014-12-16 22:59:57 +01001085 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
1086 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Wills Wang7b5bace2014-08-19 15:33:00 +08001087 };
1088
Hans de Goede11fbedf2014-05-02 17:57:27 +02001089 mmc0_pins_a: mmc0@0 {
Maxime Ripardd8cacaa2015-05-03 11:53:07 +02001090 allwinner,pins = "PF0", "PF1", "PF2",
1091 "PF3", "PF4", "PF5";
Hans de Goede11fbedf2014-05-02 17:57:27 +02001092 allwinner,function = "mmc0";
Maxime Ripard092a0c32014-12-16 22:59:57 +01001093 allwinner,drive = <SUN4I_PINCTRL_30_MA>;
1094 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Hans de Goede11fbedf2014-05-02 17:57:27 +02001095 };
1096
1097 mmc0_cd_pin_reference_design: mmc0_cd_pin@0 {
1098 allwinner,pins = "PH1";
1099 allwinner,function = "gpio_in";
Maxime Ripard092a0c32014-12-16 22:59:57 +01001100 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
1101 allwinner,pull = <SUN4I_PINCTRL_PULL_UP>;
Hans de Goede11fbedf2014-05-02 17:57:27 +02001102 };
1103
Hans de Goede8fa82322014-10-01 16:25:36 +02001104 mmc2_pins_a: mmc2@0 {
Maxime Ripardd8cacaa2015-05-03 11:53:07 +02001105 allwinner,pins = "PC6", "PC7", "PC8",
1106 "PC9", "PC10", "PC11";
Hans de Goede8fa82322014-10-01 16:25:36 +02001107 allwinner,function = "mmc2";
Maxime Ripard092a0c32014-12-16 22:59:57 +01001108 allwinner,drive = <SUN4I_PINCTRL_30_MA>;
1109 allwinner,pull = <SUN4I_PINCTRL_PULL_UP>;
Hans de Goede8fa82322014-10-01 16:25:36 +02001110 };
1111
Hans de Goede11fbedf2014-05-02 17:57:27 +02001112 mmc3_pins_a: mmc3@0 {
Maxime Ripardd8cacaa2015-05-03 11:53:07 +02001113 allwinner,pins = "PI4", "PI5", "PI6",
1114 "PI7", "PI8", "PI9";
Hans de Goede11fbedf2014-05-02 17:57:27 +02001115 allwinner,function = "mmc3";
Maxime Ripard092a0c32014-12-16 22:59:57 +01001116 allwinner,drive = <SUN4I_PINCTRL_30_MA>;
1117 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Hans de Goede11fbedf2014-05-02 17:57:27 +02001118 };
Alexander Bersenev0fc2b7a2014-06-09 00:08:11 +06001119
Marcus Cooper469a22e2015-05-02 13:36:20 +02001120 ir0_rx_pins_a: ir0@0 {
1121 allwinner,pins = "PB4";
Alexander Bersenev0fc2b7a2014-06-09 00:08:11 +06001122 allwinner,function = "ir0";
Maxime Ripard092a0c32014-12-16 22:59:57 +01001123 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
1124 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Alexander Bersenev0fc2b7a2014-06-09 00:08:11 +06001125 };
1126
Marcus Cooper469a22e2015-05-02 13:36:20 +02001127 ir0_tx_pins_a: ir0@1 {
1128 allwinner,pins = "PB3";
1129 allwinner,function = "ir0";
1130 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
1131 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
1132 };
1133
1134 ir1_rx_pins_a: ir1@0 {
1135 allwinner,pins = "PB23";
1136 allwinner,function = "ir1";
1137 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
1138 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
1139 };
1140
1141 ir1_tx_pins_a: ir1@1 {
1142 allwinner,pins = "PB22";
Alexander Bersenev0fc2b7a2014-06-09 00:08:11 +06001143 allwinner,function = "ir1";
Maxime Ripard092a0c32014-12-16 22:59:57 +01001144 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
1145 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Alexander Bersenev0fc2b7a2014-06-09 00:08:11 +06001146 };
Vishnu Patekar1e8d1562015-01-25 19:10:09 +05301147
1148 ps20_pins_a: ps20@0 {
1149 allwinner,pins = "PI20", "PI21";
1150 allwinner,function = "ps2";
1151 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
1152 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
1153 };
1154
1155 ps21_pins_a: ps21@0 {
1156 allwinner,pins = "PH12", "PH13";
1157 allwinner,function = "ps2";
1158 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
1159 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Maxime Ripard4790ecf2013-07-17 10:07:10 +02001160 };
1161 };
Maxime Ripardca5d04d2014-02-07 22:29:26 +01001162
Maxime Ripard4790ecf2013-07-17 10:07:10 +02001163 timer@01c20c00 {
1164 compatible = "allwinner,sun4i-a10-timer";
1165 reg = <0x01c20c00 0x90>;
Maxime Ripard19882b82014-12-16 22:59:58 +01001166 interrupts = <GIC_SPI 22 IRQ_TYPE_LEVEL_HIGH>,
1167 <GIC_SPI 23 IRQ_TYPE_LEVEL_HIGH>,
1168 <GIC_SPI 24 IRQ_TYPE_LEVEL_HIGH>,
1169 <GIC_SPI 25 IRQ_TYPE_LEVEL_HIGH>,
1170 <GIC_SPI 67 IRQ_TYPE_LEVEL_HIGH>,
1171 <GIC_SPI 68 IRQ_TYPE_LEVEL_HIGH>;
Maxime Ripard4790ecf2013-07-17 10:07:10 +02001172 clocks = <&osc24M>;
1173 };
1174
1175 wdt: watchdog@01c20c90 {
1176 compatible = "allwinner,sun4i-a10-wdt";
1177 reg = <0x01c20c90 0x10>;
1178 };
1179
Carlo Caioneb5d905c2013-10-16 20:30:26 +02001180 rtc: rtc@01c20d00 {
1181 compatible = "allwinner,sun7i-a20-rtc";
1182 reg = <0x01c20d00 0x20>;
Maxime Ripard19882b82014-12-16 22:59:58 +01001183 interrupts = <GIC_SPI 24 IRQ_TYPE_LEVEL_HIGH>;
Carlo Caioneb5d905c2013-10-16 20:30:26 +02001184 };
1185
Alexandre Belloni8ec40c22014-04-28 18:17:13 +02001186 pwm: pwm@01c20e00 {
1187 compatible = "allwinner,sun7i-a20-pwm";
1188 reg = <0x01c20e00 0xc>;
1189 clocks = <&osc24M>;
1190 #pwm-cells = <3>;
1191 status = "disabled";
1192 };
1193
Alexander Bersenevc1a0ee32014-06-21 17:04:05 +06001194 ir0: ir@01c21800 {
Hans de Goede1715a382014-06-30 23:57:54 +02001195 compatible = "allwinner,sun4i-a10-ir";
Alexander Bersenevc1a0ee32014-06-21 17:04:05 +06001196 clocks = <&apb0_gates 6>, <&ir0_clk>;
1197 clock-names = "apb", "ir";
Maxime Ripard19882b82014-12-16 22:59:58 +01001198 interrupts = <GIC_SPI 5 IRQ_TYPE_LEVEL_HIGH>;
Alexander Bersenevc1a0ee32014-06-21 17:04:05 +06001199 reg = <0x01c21800 0x40>;
1200 status = "disabled";
1201 };
1202
1203 ir1: ir@01c21c00 {
Hans de Goede1715a382014-06-30 23:57:54 +02001204 compatible = "allwinner,sun4i-a10-ir";
Alexander Bersenevc1a0ee32014-06-21 17:04:05 +06001205 clocks = <&apb0_gates 7>, <&ir1_clk>;
1206 clock-names = "apb", "ir";
Maxime Ripard19882b82014-12-16 22:59:58 +01001207 interrupts = <GIC_SPI 6 IRQ_TYPE_LEVEL_HIGH>;
Alexander Bersenevc1a0ee32014-06-21 17:04:05 +06001208 reg = <0x01c21c00 0x40>;
1209 status = "disabled";
1210 };
1211
Hans de Goedea6a2d642014-12-23 11:13:22 +01001212 lradc: lradc@01c22800 {
1213 compatible = "allwinner,sun4i-a10-lradc-keys";
1214 reg = <0x01c22800 0x100>;
Maxime Ripard19882b82014-12-16 22:59:58 +01001215 interrupts = <GIC_SPI 31 IRQ_TYPE_LEVEL_HIGH>;
Hans de Goedea6a2d642014-12-23 11:13:22 +01001216 status = "disabled";
1217 };
1218
Emilio Lópezd5ce1072014-08-18 01:07:55 -03001219 codec: codec@01c22c00 {
1220 #sound-dai-cells = <0>;
1221 compatible = "allwinner,sun7i-a20-codec";
1222 reg = <0x01c22c00 0x40>;
1223 interrupts = <GIC_SPI 30 IRQ_TYPE_LEVEL_HIGH>;
1224 clocks = <&apb0_gates 0>, <&codec_clk>;
1225 clock-names = "apb", "codec";
1226 dmas = <&dma SUN4I_DMA_NORMAL 19>,
1227 <&dma SUN4I_DMA_NORMAL 19>;
1228 dma-names = "rx", "tx";
1229 status = "disabled";
1230 };
1231
Oliver Schinagl2bad9692013-09-03 12:33:28 +02001232 sid: eeprom@01c23800 {
1233 compatible = "allwinner,sun7i-a20-sid";
1234 reg = <0x01c23800 0x200>;
1235 };
1236
Hans de Goede00f7ed82013-12-31 17:20:52 +01001237 rtp: rtp@01c25000 {
Hans de Goede8bf1b9b2015-03-08 21:53:42 +01001238 compatible = "allwinner,sun5i-a13-ts";
Hans de Goede00f7ed82013-12-31 17:20:52 +01001239 reg = <0x01c25000 0x100>;
Maxime Ripard19882b82014-12-16 22:59:58 +01001240 interrupts = <GIC_SPI 29 IRQ_TYPE_LEVEL_HIGH>;
Chen-Yu Tsai41e7afb2015-01-06 10:35:15 +08001241 #thermal-sensor-cells = <0>;
Hans de Goede00f7ed82013-12-31 17:20:52 +01001242 };
1243
Maxime Ripard4790ecf2013-07-17 10:07:10 +02001244 uart0: serial@01c28000 {
1245 compatible = "snps,dw-apb-uart";
1246 reg = <0x01c28000 0x400>;
Maxime Ripard19882b82014-12-16 22:59:58 +01001247 interrupts = <GIC_SPI 1 IRQ_TYPE_LEVEL_HIGH>;
Maxime Ripard4790ecf2013-07-17 10:07:10 +02001248 reg-shift = <2>;
1249 reg-io-width = <4>;
Maxime Ripardde7dc932013-07-25 21:12:52 +02001250 clocks = <&apb1_gates 16>;
Maxime Ripard4790ecf2013-07-17 10:07:10 +02001251 status = "disabled";
1252 };
1253
1254 uart1: serial@01c28400 {
1255 compatible = "snps,dw-apb-uart";
1256 reg = <0x01c28400 0x400>;
Maxime Ripard19882b82014-12-16 22:59:58 +01001257 interrupts = <GIC_SPI 2 IRQ_TYPE_LEVEL_HIGH>;
Maxime Ripard4790ecf2013-07-17 10:07:10 +02001258 reg-shift = <2>;
1259 reg-io-width = <4>;
Maxime Ripardde7dc932013-07-25 21:12:52 +02001260 clocks = <&apb1_gates 17>;
Maxime Ripard4790ecf2013-07-17 10:07:10 +02001261 status = "disabled";
1262 };
1263
1264 uart2: serial@01c28800 {
1265 compatible = "snps,dw-apb-uart";
1266 reg = <0x01c28800 0x400>;
Maxime Ripard19882b82014-12-16 22:59:58 +01001267 interrupts = <GIC_SPI 3 IRQ_TYPE_LEVEL_HIGH>;
Maxime Ripard4790ecf2013-07-17 10:07:10 +02001268 reg-shift = <2>;
1269 reg-io-width = <4>;
Maxime Ripardde7dc932013-07-25 21:12:52 +02001270 clocks = <&apb1_gates 18>;
Maxime Ripard4790ecf2013-07-17 10:07:10 +02001271 status = "disabled";
1272 };
1273
1274 uart3: serial@01c28c00 {
1275 compatible = "snps,dw-apb-uart";
1276 reg = <0x01c28c00 0x400>;
Maxime Ripard19882b82014-12-16 22:59:58 +01001277 interrupts = <GIC_SPI 4 IRQ_TYPE_LEVEL_HIGH>;
Maxime Ripard4790ecf2013-07-17 10:07:10 +02001278 reg-shift = <2>;
1279 reg-io-width = <4>;
Maxime Ripardde7dc932013-07-25 21:12:52 +02001280 clocks = <&apb1_gates 19>;
Maxime Ripard4790ecf2013-07-17 10:07:10 +02001281 status = "disabled";
1282 };
1283
1284 uart4: serial@01c29000 {
1285 compatible = "snps,dw-apb-uart";
1286 reg = <0x01c29000 0x400>;
Maxime Ripard19882b82014-12-16 22:59:58 +01001287 interrupts = <GIC_SPI 17 IRQ_TYPE_LEVEL_HIGH>;
Maxime Ripard4790ecf2013-07-17 10:07:10 +02001288 reg-shift = <2>;
1289 reg-io-width = <4>;
Maxime Ripardde7dc932013-07-25 21:12:52 +02001290 clocks = <&apb1_gates 20>;
Maxime Ripard4790ecf2013-07-17 10:07:10 +02001291 status = "disabled";
1292 };
1293
1294 uart5: serial@01c29400 {
1295 compatible = "snps,dw-apb-uart";
1296 reg = <0x01c29400 0x400>;
Maxime Ripard19882b82014-12-16 22:59:58 +01001297 interrupts = <GIC_SPI 18 IRQ_TYPE_LEVEL_HIGH>;
Maxime Ripard4790ecf2013-07-17 10:07:10 +02001298 reg-shift = <2>;
1299 reg-io-width = <4>;
Maxime Ripardde7dc932013-07-25 21:12:52 +02001300 clocks = <&apb1_gates 21>;
Maxime Ripard4790ecf2013-07-17 10:07:10 +02001301 status = "disabled";
1302 };
1303
1304 uart6: serial@01c29800 {
1305 compatible = "snps,dw-apb-uart";
1306 reg = <0x01c29800 0x400>;
Maxime Ripard19882b82014-12-16 22:59:58 +01001307 interrupts = <GIC_SPI 19 IRQ_TYPE_LEVEL_HIGH>;
Maxime Ripard4790ecf2013-07-17 10:07:10 +02001308 reg-shift = <2>;
1309 reg-io-width = <4>;
Maxime Ripardde7dc932013-07-25 21:12:52 +02001310 clocks = <&apb1_gates 22>;
Maxime Ripard4790ecf2013-07-17 10:07:10 +02001311 status = "disabled";
1312 };
1313
1314 uart7: serial@01c29c00 {
1315 compatible = "snps,dw-apb-uart";
1316 reg = <0x01c29c00 0x400>;
Maxime Ripard19882b82014-12-16 22:59:58 +01001317 interrupts = <GIC_SPI 20 IRQ_TYPE_LEVEL_HIGH>;
Maxime Ripard4790ecf2013-07-17 10:07:10 +02001318 reg-shift = <2>;
1319 reg-io-width = <4>;
Maxime Ripardde7dc932013-07-25 21:12:52 +02001320 clocks = <&apb1_gates 23>;
Maxime Ripard4790ecf2013-07-17 10:07:10 +02001321 status = "disabled";
1322 };
1323
Maxime Ripard428abbb2013-08-31 23:07:24 +02001324 i2c0: i2c@01c2ac00 {
Maxime Ripardd8cacaa2015-05-03 11:53:07 +02001325 compatible = "allwinner,sun7i-a20-i2c",
1326 "allwinner,sun4i-a10-i2c";
Maxime Ripard428abbb2013-08-31 23:07:24 +02001327 reg = <0x01c2ac00 0x400>;
Maxime Ripard19882b82014-12-16 22:59:58 +01001328 interrupts = <GIC_SPI 7 IRQ_TYPE_LEVEL_HIGH>;
Maxime Ripard428abbb2013-08-31 23:07:24 +02001329 clocks = <&apb1_gates 0>;
Maxime Ripard428abbb2013-08-31 23:07:24 +02001330 status = "disabled";
Hans de Goeded1412ae2014-04-13 13:41:05 +02001331 #address-cells = <1>;
1332 #size-cells = <0>;
Maxime Ripard428abbb2013-08-31 23:07:24 +02001333 };
1334
1335 i2c1: i2c@01c2b000 {
Maxime Ripardd8cacaa2015-05-03 11:53:07 +02001336 compatible = "allwinner,sun7i-a20-i2c",
1337 "allwinner,sun4i-a10-i2c";
Maxime Ripard428abbb2013-08-31 23:07:24 +02001338 reg = <0x01c2b000 0x400>;
Maxime Ripard19882b82014-12-16 22:59:58 +01001339 interrupts = <GIC_SPI 8 IRQ_TYPE_LEVEL_HIGH>;
Maxime Ripard428abbb2013-08-31 23:07:24 +02001340 clocks = <&apb1_gates 1>;
Maxime Ripard428abbb2013-08-31 23:07:24 +02001341 status = "disabled";
Hans de Goeded1412ae2014-04-13 13:41:05 +02001342 #address-cells = <1>;
1343 #size-cells = <0>;
Maxime Ripard428abbb2013-08-31 23:07:24 +02001344 };
1345
1346 i2c2: i2c@01c2b400 {
Maxime Ripardd8cacaa2015-05-03 11:53:07 +02001347 compatible = "allwinner,sun7i-a20-i2c",
1348 "allwinner,sun4i-a10-i2c";
Maxime Ripard428abbb2013-08-31 23:07:24 +02001349 reg = <0x01c2b400 0x400>;
Maxime Ripard19882b82014-12-16 22:59:58 +01001350 interrupts = <GIC_SPI 9 IRQ_TYPE_LEVEL_HIGH>;
Maxime Ripard428abbb2013-08-31 23:07:24 +02001351 clocks = <&apb1_gates 2>;
Maxime Ripard428abbb2013-08-31 23:07:24 +02001352 status = "disabled";
Hans de Goeded1412ae2014-04-13 13:41:05 +02001353 #address-cells = <1>;
1354 #size-cells = <0>;
Maxime Ripard428abbb2013-08-31 23:07:24 +02001355 };
1356
1357 i2c3: i2c@01c2b800 {
Maxime Ripardd8cacaa2015-05-03 11:53:07 +02001358 compatible = "allwinner,sun7i-a20-i2c",
1359 "allwinner,sun4i-a10-i2c";
Maxime Ripard428abbb2013-08-31 23:07:24 +02001360 reg = <0x01c2b800 0x400>;
Maxime Ripard19882b82014-12-16 22:59:58 +01001361 interrupts = <GIC_SPI 88 IRQ_TYPE_LEVEL_HIGH>;
Maxime Ripard428abbb2013-08-31 23:07:24 +02001362 clocks = <&apb1_gates 3>;
Maxime Ripard428abbb2013-08-31 23:07:24 +02001363 status = "disabled";
Hans de Goeded1412ae2014-04-13 13:41:05 +02001364 #address-cells = <1>;
1365 #size-cells = <0>;
Maxime Ripard428abbb2013-08-31 23:07:24 +02001366 };
1367
Maxime Riparda3867042014-04-18 21:13:08 +02001368 i2c4: i2c@01c2c000 {
Maxime Ripardd8cacaa2015-05-03 11:53:07 +02001369 compatible = "allwinner,sun7i-a20-i2c",
1370 "allwinner,sun4i-a10-i2c";
Maxime Riparda3867042014-04-18 21:13:08 +02001371 reg = <0x01c2c000 0x400>;
Maxime Ripard19882b82014-12-16 22:59:58 +01001372 interrupts = <GIC_SPI 89 IRQ_TYPE_LEVEL_HIGH>;
Maxime Ripard428abbb2013-08-31 23:07:24 +02001373 clocks = <&apb1_gates 15>;
Maxime Ripard428abbb2013-08-31 23:07:24 +02001374 status = "disabled";
Hans de Goeded1412ae2014-04-13 13:41:05 +02001375 #address-cells = <1>;
1376 #size-cells = <0>;
Maxime Ripard428abbb2013-08-31 23:07:24 +02001377 };
1378
Chen-Yu Tsaic40b8d52014-02-10 18:35:49 +08001379 gmac: ethernet@01c50000 {
1380 compatible = "allwinner,sun7i-a20-gmac";
1381 reg = <0x01c50000 0x10000>;
Maxime Ripard19882b82014-12-16 22:59:58 +01001382 interrupts = <GIC_SPI 85 IRQ_TYPE_LEVEL_HIGH>;
Chen-Yu Tsaic40b8d52014-02-10 18:35:49 +08001383 interrupt-names = "macirq";
1384 clocks = <&ahb_gates 49>, <&gmac_tx_clk>;
1385 clock-names = "stmmaceth", "allwinner_gmac_tx";
1386 snps,pbl = <2>;
1387 snps,fixed-burst;
1388 snps,force_sf_dma_mode;
1389 status = "disabled";
1390 #address-cells = <1>;
1391 #size-cells = <0>;
1392 };
1393
Maxime Ripard31f8ad32013-11-07 12:01:48 +01001394 hstimer@01c60000 {
1395 compatible = "allwinner,sun7i-a20-hstimer";
1396 reg = <0x01c60000 0x1000>;
Maxime Ripard19882b82014-12-16 22:59:58 +01001397 interrupts = <GIC_SPI 81 IRQ_TYPE_LEVEL_HIGH>,
1398 <GIC_SPI 82 IRQ_TYPE_LEVEL_HIGH>,
1399 <GIC_SPI 83 IRQ_TYPE_LEVEL_HIGH>,
1400 <GIC_SPI 84 IRQ_TYPE_LEVEL_HIGH>;
Maxime Ripard31f8ad32013-11-07 12:01:48 +01001401 clocks = <&ahb_gates 28>;
1402 };
1403
Maxime Ripard4790ecf2013-07-17 10:07:10 +02001404 gic: interrupt-controller@01c81000 {
1405 compatible = "arm,cortex-a7-gic", "arm,cortex-a15-gic";
1406 reg = <0x01c81000 0x1000>,
1407 <0x01c82000 0x1000>,
1408 <0x01c84000 0x2000>,
1409 <0x01c86000 0x2000>;
1410 interrupt-controller;
1411 #interrupt-cells = <3>;
Maxime Ripard19882b82014-12-16 22:59:58 +01001412 interrupts = <GIC_PPI 9 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>;
Maxime Ripard4790ecf2013-07-17 10:07:10 +02001413 };
Vishnu Patekar196654a2015-01-25 19:10:08 +05301414
1415 ps20: ps2@01c2a000 {
1416 compatible = "allwinner,sun4i-a10-ps2";
1417 reg = <0x01c2a000 0x400>;
1418 interrupts = <GIC_SPI 62 IRQ_TYPE_LEVEL_HIGH>;
1419 clocks = <&apb1_gates 6>;
1420 status = "disabled";
1421 };
1422
1423 ps21: ps2@01c2a400 {
1424 compatible = "allwinner,sun4i-a10-ps2";
1425 reg = <0x01c2a400 0x400>;
1426 interrupts = <GIC_SPI 63 IRQ_TYPE_LEVEL_HIGH>;
1427 clocks = <&apb1_gates 7>;
1428 status = "disabled";
Maxime Ripard4790ecf2013-07-17 10:07:10 +02001429 };
1430 };
1431};