blob: bf5d05685d7db3c828678a7904335821869d4234 [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>,
Chen-Yu Tsai0b4bf5a2015-12-05 21:16:46 +080071 <&ahb_gates 44>, <&dram_gates 26>;
Hans de Goede8efc5c22014-11-14 16:34:37 +010072 status = "disabled";
73 };
Hans de Goedefd18c7e2015-01-19 14:05:12 +010074
75 framebuffer@1 {
76 compatible = "allwinner,simple-framebuffer",
77 "simple-framebuffer";
78 allwinner,pipeline = "de_be0-lcd0";
Chen-Yu Tsai0b4bf5a2015-12-05 21:16:46 +080079 clocks = <&pll5 1>, <&ahb_gates 36>, <&ahb_gates 44>,
80 <&dram_gates 26>;
Hans de Goedefd18c7e2015-01-19 14:05:12 +010081 status = "disabled";
82 };
83
84 framebuffer@2 {
85 compatible = "allwinner,simple-framebuffer",
86 "simple-framebuffer";
87 allwinner,pipeline = "de_be0-lcd0-tve0";
Priit Laes4b8ccef2016-03-24 21:52:17 +020088 clocks = <&pll5 1>,
89 <&ahb_gates 34>, <&ahb_gates 36>, <&ahb_gates 44>,
90 <&dram_gates 5>, <&dram_gates 26>;
Hans de Goedefd18c7e2015-01-19 14:05:12 +010091 status = "disabled";
92 };
Hans de Goede8efc5c22014-11-14 16:34:37 +010093 };
94
Maxime Ripard4790ecf2013-07-17 10:07:10 +020095 cpus {
96 #address-cells = <1>;
97 #size-cells = <0>;
98
Chen-Yu Tsaid96b7162015-01-06 10:35:16 +080099 cpu0: cpu@0 {
Maxime Ripard4790ecf2013-07-17 10:07:10 +0200100 compatible = "arm,cortex-a7";
101 device_type = "cpu";
102 reg = <0>;
Chen-Yu Tsaid96b7162015-01-06 10:35:16 +0800103 clocks = <&cpu>;
104 clock-latency = <244144>; /* 8 32k periods */
105 operating-points = <
Maxime Ripard8358aad2015-05-03 11:54:35 +0200106 /* kHz uV */
107 960000 1400000
108 912000 1400000
109 864000 1300000
110 720000 1200000
111 528000 1100000
112 312000 1000000
Timo Sigurdssoneaeef1a2015-08-04 23:08:01 +0200113 144000 1000000
Chen-Yu Tsaid96b7162015-01-06 10:35:16 +0800114 >;
115 #cooling-cells = <2>;
116 cooling-min-level = <0>;
Chen-Yu Tsai370a9b52015-03-25 00:53:27 +0800117 cooling-max-level = <6>;
Maxime Ripard4790ecf2013-07-17 10:07:10 +0200118 };
119
120 cpu@1 {
121 compatible = "arm,cortex-a7";
122 device_type = "cpu";
123 reg = <1>;
124 };
125 };
126
Chen-Yu Tsaib6d34242015-01-12 12:34:03 +0800127 thermal-zones {
128 cpu_thermal {
129 /* milliseconds */
130 polling-delay-passive = <250>;
131 polling-delay = <1000>;
132 thermal-sensors = <&rtp>;
133
134 cooling-maps {
135 map0 {
136 trip = <&cpu_alert0>;
137 cooling-device = <&cpu0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
138 };
139 };
140
141 trips {
142 cpu_alert0: cpu_alert0 {
143 /* milliCelsius */
144 temperature = <75000>;
145 hysteresis = <2000>;
146 type = "passive";
147 };
148
149 cpu_crit: cpu_crit {
150 /* milliCelsius */
151 temperature = <100000>;
152 hysteresis = <2000>;
153 type = "critical";
154 };
155 };
156 };
157 };
158
Maxime Ripard4790ecf2013-07-17 10:07:10 +0200159 memory {
160 reg = <0x40000000 0x80000000>;
161 };
162
Marc Zyngier79027632014-02-18 14:04:44 +0000163 timer {
164 compatible = "arm,armv7-timer";
Maxime Ripard19882b82014-12-16 22:59:58 +0100165 interrupts = <GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
166 <GIC_PPI 14 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
167 <GIC_PPI 11 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
168 <GIC_PPI 10 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>;
Marc Zyngier79027632014-02-18 14:04:44 +0000169 };
170
Maxime Riparde29ea4d2014-04-17 21:54:41 +0200171 pmu {
172 compatible = "arm,cortex-a7-pmu", "arm,cortex-a15-pmu";
Maxime Ripard19882b82014-12-16 22:59:58 +0100173 interrupts = <GIC_SPI 120 IRQ_TYPE_LEVEL_HIGH>,
174 <GIC_SPI 121 IRQ_TYPE_LEVEL_HIGH>;
Maxime Riparde29ea4d2014-04-17 21:54:41 +0200175 };
176
Maxime Ripard4790ecf2013-07-17 10:07:10 +0200177 clocks {
178 #address-cells = <1>;
179 #size-cells = <1>;
180 ranges;
181
Chen-Yu Tsai06067a22014-02-03 09:51:44 +0800182 osc24M: clk@01c20050 {
Maxime Ripard4790ecf2013-07-17 10:07:10 +0200183 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100184 compatible = "allwinner,sun4i-a10-osc-clk";
Maxime Ripardde7dc932013-07-25 21:12:52 +0200185 reg = <0x01c20050 0x4>;
Maxime Ripard4790ecf2013-07-17 10:07:10 +0200186 clock-frequency = <24000000>;
Chen-Yu Tsai06067a22014-02-03 09:51:44 +0800187 clock-output-names = "osc24M";
Maxime Ripard4790ecf2013-07-17 10:07:10 +0200188 };
189
Chen-Yu Tsai673fac72014-01-01 10:30:47 +0800190 osc32k: clk@0 {
Maxime Ripard4790ecf2013-07-17 10:07:10 +0200191 #clock-cells = <0>;
192 compatible = "fixed-clock";
193 clock-frequency = <32768>;
Chen-Yu Tsai673fac72014-01-01 10:30:47 +0800194 clock-output-names = "osc32k";
Maxime Ripard4790ecf2013-07-17 10:07:10 +0200195 };
Maxime Ripardde7dc932013-07-25 21:12:52 +0200196
Chen-Yu Tsai06067a22014-02-03 09:51:44 +0800197 pll1: clk@01c20000 {
Maxime Ripardde7dc932013-07-25 21:12:52 +0200198 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100199 compatible = "allwinner,sun4i-a10-pll1-clk";
Maxime Ripardde7dc932013-07-25 21:12:52 +0200200 reg = <0x01c20000 0x4>;
201 clocks = <&osc24M>;
Chen-Yu Tsai06067a22014-02-03 09:51:44 +0800202 clock-output-names = "pll1";
Maxime Ripardde7dc932013-07-25 21:12:52 +0200203 };
204
Maxime Ripard88a86aa2015-10-12 22:21:49 +0200205 pll2: clk@01c20008 {
206 #clock-cells = <1>;
207 compatible = "allwinner,sun4i-a10-pll2-clk";
208 reg = <0x01c20008 0x8>;
209 clocks = <&osc24M>;
210 clock-output-names = "pll2-1x", "pll2-2x",
211 "pll2-4x", "pll2-8x";
212 };
213
Chen-Yu Tsai06067a22014-02-03 09:51:44 +0800214 pll4: clk@01c20018 {
Maxime Ripardde7dc932013-07-25 21:12:52 +0200215 #clock-cells = <0>;
Emilio López04ebcb52014-03-19 15:19:31 -0300216 compatible = "allwinner,sun7i-a20-pll4-clk";
Emilio Lópezec5589f2013-12-23 00:32:35 -0300217 reg = <0x01c20018 0x4>;
218 clocks = <&osc24M>;
Chen-Yu Tsai06067a22014-02-03 09:51:44 +0800219 clock-output-names = "pll4";
Emilio Lópezec5589f2013-12-23 00:32:35 -0300220 };
221
Chen-Yu Tsai06067a22014-02-03 09:51:44 +0800222 pll5: clk@01c20020 {
Emilio Lópezc3e5e662013-12-23 00:32:38 -0300223 #clock-cells = <1>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100224 compatible = "allwinner,sun4i-a10-pll5-clk";
Emilio Lópezc3e5e662013-12-23 00:32:38 -0300225 reg = <0x01c20020 0x4>;
226 clocks = <&osc24M>;
227 clock-output-names = "pll5_ddr", "pll5_other";
228 };
229
Chen-Yu Tsai06067a22014-02-03 09:51:44 +0800230 pll6: clk@01c20028 {
Emilio Lópezc3e5e662013-12-23 00:32:38 -0300231 #clock-cells = <1>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100232 compatible = "allwinner,sun4i-a10-pll6-clk";
Emilio Lópezc3e5e662013-12-23 00:32:38 -0300233 reg = <0x01c20028 0x4>;
234 clocks = <&osc24M>;
Chen-Yu Tsai2186df32015-03-25 01:22:09 +0800235 clock-output-names = "pll6_sata", "pll6_other", "pll6",
236 "pll6_div_4";
Maxime Ripardde7dc932013-07-25 21:12:52 +0200237 };
238
Emilio López04ebcb52014-03-19 15:19:31 -0300239 pll8: clk@01c20040 {
240 #clock-cells = <0>;
241 compatible = "allwinner,sun7i-a20-pll4-clk";
242 reg = <0x01c20040 0x4>;
243 clocks = <&osc24M>;
244 clock-output-names = "pll8";
245 };
246
Maxime Ripardde7dc932013-07-25 21:12:52 +0200247 cpu: cpu@01c20054 {
248 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100249 compatible = "allwinner,sun4i-a10-cpu-clk";
Maxime Ripardde7dc932013-07-25 21:12:52 +0200250 reg = <0x01c20054 0x4>;
Emilio Lópezc3e5e662013-12-23 00:32:38 -0300251 clocks = <&osc32k>, <&osc24M>, <&pll1>, <&pll6 1>;
Chen-Yu Tsai06067a22014-02-03 09:51:44 +0800252 clock-output-names = "cpu";
Maxime Ripardde7dc932013-07-25 21:12:52 +0200253 };
254
255 axi: axi@01c20054 {
256 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100257 compatible = "allwinner,sun4i-a10-axi-clk";
Maxime Ripardde7dc932013-07-25 21:12:52 +0200258 reg = <0x01c20054 0x4>;
259 clocks = <&cpu>;
Chen-Yu Tsai06067a22014-02-03 09:51:44 +0800260 clock-output-names = "axi";
Maxime Ripardde7dc932013-07-25 21:12:52 +0200261 };
262
263 ahb: ahb@01c20054 {
264 #clock-cells = <0>;
Chen-Yu Tsai2186df32015-03-25 01:22:09 +0800265 compatible = "allwinner,sun5i-a13-ahb-clk";
Maxime Ripardde7dc932013-07-25 21:12:52 +0200266 reg = <0x01c20054 0x4>;
Chen-Yu Tsai2186df32015-03-25 01:22:09 +0800267 clocks = <&axi>, <&pll6 3>, <&pll6 1>;
Chen-Yu Tsai06067a22014-02-03 09:51:44 +0800268 clock-output-names = "ahb";
Chen-Yu Tsai2186df32015-03-25 01:22:09 +0800269 /*
270 * Use PLL6 as parent, instead of CPU/AXI
271 * which has rate changes due to cpufreq
272 */
273 assigned-clocks = <&ahb>;
274 assigned-clock-parents = <&pll6 3>;
Maxime Ripardde7dc932013-07-25 21:12:52 +0200275 };
276
Chen-Yu Tsai06067a22014-02-03 09:51:44 +0800277 ahb_gates: clk@01c20060 {
Maxime Ripardde7dc932013-07-25 21:12:52 +0200278 #clock-cells = <1>;
279 compatible = "allwinner,sun7i-a20-ahb-gates-clk";
280 reg = <0x01c20060 0x8>;
281 clocks = <&ahb>;
Maxime Ripard6bfe30b2015-07-31 19:46:19 +0200282 clock-indices = <0>, <1>,
283 <2>, <3>, <4>,
284 <5>, <6>, <7>, <8>,
285 <9>, <10>, <11>, <12>,
286 <13>, <14>, <16>,
287 <17>, <18>, <20>, <21>,
288 <22>, <23>, <25>,
289 <28>, <32>, <33>, <34>,
290 <35>, <36>, <37>, <40>,
291 <41>, <42>, <43>,
292 <44>, <45>, <46>,
293 <47>, <49>, <50>,
294 <52>;
Maxime Ripardde7dc932013-07-25 21:12:52 +0200295 clock-output-names = "ahb_usb0", "ahb_ehci0",
296 "ahb_ohci0", "ahb_ehci1", "ahb_ohci1",
297 "ahb_ss", "ahb_dma", "ahb_bist", "ahb_mmc0",
298 "ahb_mmc1", "ahb_mmc2", "ahb_mmc3", "ahb_ms",
299 "ahb_nand", "ahb_sdram", "ahb_ace",
300 "ahb_emac", "ahb_ts", "ahb_spi0", "ahb_spi1",
301 "ahb_spi2", "ahb_spi3", "ahb_sata",
302 "ahb_hstimer", "ahb_ve", "ahb_tvd", "ahb_tve0",
303 "ahb_tve1", "ahb_lcd0", "ahb_lcd1", "ahb_csi0",
304 "ahb_csi1", "ahb_hdmi1", "ahb_hdmi0",
305 "ahb_de_be0", "ahb_de_be1", "ahb_de_fe0",
306 "ahb_de_fe1", "ahb_gmac", "ahb_mp",
307 "ahb_mali";
308 };
309
310 apb0: apb0@01c20054 {
311 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100312 compatible = "allwinner,sun4i-a10-apb0-clk";
Maxime Ripardde7dc932013-07-25 21:12:52 +0200313 reg = <0x01c20054 0x4>;
314 clocks = <&ahb>;
Chen-Yu Tsai06067a22014-02-03 09:51:44 +0800315 clock-output-names = "apb0";
Maxime Ripardde7dc932013-07-25 21:12:52 +0200316 };
317
Chen-Yu Tsai06067a22014-02-03 09:51:44 +0800318 apb0_gates: clk@01c20068 {
Maxime Ripardde7dc932013-07-25 21:12:52 +0200319 #clock-cells = <1>;
320 compatible = "allwinner,sun7i-a20-apb0-gates-clk";
321 reg = <0x01c20068 0x4>;
322 clocks = <&apb0>;
Maxime Ripard6bfe30b2015-07-31 19:46:19 +0200323 clock-indices = <0>, <1>,
324 <2>, <3>, <4>,
325 <5>, <6>, <7>,
326 <8>, <10>;
Maxime Ripardde7dc932013-07-25 21:12:52 +0200327 clock-output-names = "apb0_codec", "apb0_spdif",
328 "apb0_ac97", "apb0_iis0", "apb0_iis1",
329 "apb0_pio", "apb0_ir0", "apb0_ir1",
330 "apb0_iis2", "apb0_keypad";
331 };
332
Emilio Lópezacbcc0f2014-11-06 11:40:30 +0800333 apb1: clk@01c20058 {
Maxime Ripardde7dc932013-07-25 21:12:52 +0200334 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100335 compatible = "allwinner,sun4i-a10-apb1-clk";
Maxime Ripardde7dc932013-07-25 21:12:52 +0200336 reg = <0x01c20058 0x4>;
Emilio Lópezacbcc0f2014-11-06 11:40:30 +0800337 clocks = <&osc24M>, <&pll6 1>, <&osc32k>;
Chen-Yu Tsai06067a22014-02-03 09:51:44 +0800338 clock-output-names = "apb1";
Maxime Ripardde7dc932013-07-25 21:12:52 +0200339 };
340
Chen-Yu Tsai06067a22014-02-03 09:51:44 +0800341 apb1_gates: clk@01c2006c {
Maxime Ripardde7dc932013-07-25 21:12:52 +0200342 #clock-cells = <1>;
343 compatible = "allwinner,sun7i-a20-apb1-gates-clk";
344 reg = <0x01c2006c 0x4>;
345 clocks = <&apb1>;
Maxime Ripard6bfe30b2015-07-31 19:46:19 +0200346 clock-indices = <0>, <1>,
347 <2>, <3>, <4>,
348 <5>, <6>, <7>,
349 <15>, <16>, <17>,
350 <18>, <19>, <20>,
351 <21>, <22>, <23>;
Maxime Ripardde7dc932013-07-25 21:12:52 +0200352 clock-output-names = "apb1_i2c0", "apb1_i2c1",
353 "apb1_i2c2", "apb1_i2c3", "apb1_can",
354 "apb1_scr", "apb1_ps20", "apb1_ps21",
355 "apb1_i2c4", "apb1_uart0", "apb1_uart1",
356 "apb1_uart2", "apb1_uart3", "apb1_uart4",
357 "apb1_uart5", "apb1_uart6", "apb1_uart7";
358 };
Emilio López1c92b952013-12-23 00:32:43 -0300359
360 nand_clk: clk@01c20080 {
361 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100362 compatible = "allwinner,sun4i-a10-mod0-clk";
Emilio López1c92b952013-12-23 00:32:43 -0300363 reg = <0x01c20080 0x4>;
364 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
365 clock-output-names = "nand";
366 };
367
368 ms_clk: clk@01c20084 {
369 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100370 compatible = "allwinner,sun4i-a10-mod0-clk";
Emilio López1c92b952013-12-23 00:32:43 -0300371 reg = <0x01c20084 0x4>;
372 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
373 clock-output-names = "ms";
374 };
375
376 mmc0_clk: clk@01c20088 {
Maxime Ripardd8c3a392014-07-11 19:39:06 +0200377 #clock-cells = <1>;
378 compatible = "allwinner,sun4i-a10-mmc-clk";
Emilio López1c92b952013-12-23 00:32:43 -0300379 reg = <0x01c20088 0x4>;
380 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
Maxime Ripardd8c3a392014-07-11 19:39:06 +0200381 clock-output-names = "mmc0",
382 "mmc0_output",
383 "mmc0_sample";
Emilio López1c92b952013-12-23 00:32:43 -0300384 };
385
386 mmc1_clk: clk@01c2008c {
Maxime Ripardd8c3a392014-07-11 19:39:06 +0200387 #clock-cells = <1>;
388 compatible = "allwinner,sun4i-a10-mmc-clk";
Emilio López1c92b952013-12-23 00:32:43 -0300389 reg = <0x01c2008c 0x4>;
390 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
Maxime Ripardd8c3a392014-07-11 19:39:06 +0200391 clock-output-names = "mmc1",
392 "mmc1_output",
393 "mmc1_sample";
Emilio López1c92b952013-12-23 00:32:43 -0300394 };
395
396 mmc2_clk: clk@01c20090 {
Maxime Ripardd8c3a392014-07-11 19:39:06 +0200397 #clock-cells = <1>;
398 compatible = "allwinner,sun4i-a10-mmc-clk";
Emilio López1c92b952013-12-23 00:32:43 -0300399 reg = <0x01c20090 0x4>;
400 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
Maxime Ripardd8c3a392014-07-11 19:39:06 +0200401 clock-output-names = "mmc2",
402 "mmc2_output",
403 "mmc2_sample";
Emilio López1c92b952013-12-23 00:32:43 -0300404 };
405
406 mmc3_clk: clk@01c20094 {
Maxime Ripardd8c3a392014-07-11 19:39:06 +0200407 #clock-cells = <1>;
408 compatible = "allwinner,sun4i-a10-mmc-clk";
Emilio López1c92b952013-12-23 00:32:43 -0300409 reg = <0x01c20094 0x4>;
410 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
Maxime Ripardd8c3a392014-07-11 19:39:06 +0200411 clock-output-names = "mmc3",
412 "mmc3_output",
413 "mmc3_sample";
Emilio López1c92b952013-12-23 00:32:43 -0300414 };
415
416 ts_clk: clk@01c20098 {
417 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100418 compatible = "allwinner,sun4i-a10-mod0-clk";
Emilio López1c92b952013-12-23 00:32:43 -0300419 reg = <0x01c20098 0x4>;
420 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
421 clock-output-names = "ts";
422 };
423
424 ss_clk: clk@01c2009c {
425 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100426 compatible = "allwinner,sun4i-a10-mod0-clk";
Emilio López1c92b952013-12-23 00:32:43 -0300427 reg = <0x01c2009c 0x4>;
428 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
429 clock-output-names = "ss";
430 };
431
432 spi0_clk: clk@01c200a0 {
433 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100434 compatible = "allwinner,sun4i-a10-mod0-clk";
Emilio López1c92b952013-12-23 00:32:43 -0300435 reg = <0x01c200a0 0x4>;
436 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
437 clock-output-names = "spi0";
438 };
439
440 spi1_clk: clk@01c200a4 {
441 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100442 compatible = "allwinner,sun4i-a10-mod0-clk";
Emilio López1c92b952013-12-23 00:32:43 -0300443 reg = <0x01c200a4 0x4>;
444 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
445 clock-output-names = "spi1";
446 };
447
448 spi2_clk: clk@01c200a8 {
449 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100450 compatible = "allwinner,sun4i-a10-mod0-clk";
Emilio López1c92b952013-12-23 00:32:43 -0300451 reg = <0x01c200a8 0x4>;
452 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
453 clock-output-names = "spi2";
454 };
455
456 pata_clk: clk@01c200ac {
457 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100458 compatible = "allwinner,sun4i-a10-mod0-clk";
Emilio López1c92b952013-12-23 00:32:43 -0300459 reg = <0x01c200ac 0x4>;
460 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
461 clock-output-names = "pata";
462 };
463
464 ir0_clk: clk@01c200b0 {
465 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100466 compatible = "allwinner,sun4i-a10-mod0-clk";
Emilio López1c92b952013-12-23 00:32:43 -0300467 reg = <0x01c200b0 0x4>;
468 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
469 clock-output-names = "ir0";
470 };
471
472 ir1_clk: clk@01c200b4 {
473 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100474 compatible = "allwinner,sun4i-a10-mod0-clk";
Emilio López1c92b952013-12-23 00:32:43 -0300475 reg = <0x01c200b4 0x4>;
476 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
477 clock-output-names = "ir1";
478 };
479
Marcus Cooper90b7a482016-03-21 21:01:02 +0100480 spdif_clk: clk@01c200c0 {
481 #clock-cells = <0>;
482 compatible = "allwinner,sun4i-a10-mod1-clk";
483 reg = <0x01c200c0 0x4>;
484 clocks = <&pll2 SUN4I_A10_PLL2_8X>,
485 <&pll2 SUN4I_A10_PLL2_4X>,
486 <&pll2 SUN4I_A10_PLL2_2X>,
487 <&pll2 SUN4I_A10_PLL2_1X>;
488 clock-output-names = "spdif";
489 };
490
Yassin Jaffer6f1606b2015-09-16 00:05:54 +1000491 keypad_clk: clk@01c200c4 {
492 #clock-cells = <0>;
493 compatible = "allwinner,sun4i-a10-mod0-clk";
494 reg = <0x01c200c4 0x4>;
495 clocks = <&osc24M>;
496 clock-output-names = "keypad";
497 };
498
Roman Byshko434e41b2014-02-07 16:21:53 +0100499 usb_clk: clk@01c200cc {
500 #clock-cells = <1>;
Maxime Ripard8358aad2015-05-03 11:54:35 +0200501 #reset-cells = <1>;
Roman Byshko434e41b2014-02-07 16:21:53 +0100502 compatible = "allwinner,sun4i-a10-usb-clk";
503 reg = <0x01c200cc 0x4>;
504 clocks = <&pll6 1>;
Maxime Ripardd8cacaa2015-05-03 11:53:07 +0200505 clock-output-names = "usb_ohci0", "usb_ohci1",
506 "usb_phy";
Roman Byshko434e41b2014-02-07 16:21:53 +0100507 };
508
Emilio López1c92b952013-12-23 00:32:43 -0300509 spi3_clk: clk@01c200d4 {
510 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100511 compatible = "allwinner,sun4i-a10-mod0-clk";
Emilio López1c92b952013-12-23 00:32:43 -0300512 reg = <0x01c200d4 0x4>;
513 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
514 clock-output-names = "spi3";
515 };
Emilio López118c07a2013-12-23 00:32:44 -0300516
Chen-Yu Tsai0b4bf5a2015-12-05 21:16:46 +0800517 dram_gates: clk@01c20100 {
518 #clock-cells = <1>;
519 compatible = "allwinner,sun4i-a10-dram-gates-clk";
520 reg = <0x01c20100 0x4>;
521 clocks = <&pll5 0>;
522 clock-indices = <0>,
523 <1>, <2>,
524 <3>,
525 <4>,
526 <5>, <6>,
527 <15>,
528 <24>, <25>,
529 <26>, <27>,
530 <28>, <29>;
531 clock-output-names = "dram_ve",
532 "dram_csi0", "dram_csi1",
533 "dram_ts",
534 "dram_tvd",
535 "dram_tve0", "dram_tve1",
536 "dram_output",
537 "dram_de_fe1", "dram_de_fe0",
538 "dram_de_be0", "dram_de_be1",
539 "dram_de_mp", "dram_ace";
540 };
541
Chen-Yu Tsaif0571ab2015-12-05 21:16:47 +0800542 ve_clk: clk@01c2013c {
543 #clock-cells = <0>;
544 #reset-cells = <0>;
545 compatible = "allwinner,sun4i-a10-ve-clk";
546 reg = <0x01c2013c 0x4>;
547 clocks = <&pll4>;
548 clock-output-names = "ve";
549 };
550
Maxime Riparddbe4dd12015-10-12 22:28:46 +0200551 codec_clk: clk@01c20140 {
552 #clock-cells = <0>;
553 compatible = "allwinner,sun4i-a10-codec-clk";
554 reg = <0x01c20140 0x4>;
555 clocks = <&pll2 SUN4I_A10_PLL2_1X>;
556 clock-output-names = "codec";
557 };
558
Emilio López118c07a2013-12-23 00:32:44 -0300559 mbus_clk: clk@01c2015c {
560 #clock-cells = <0>;
Maxime Ripard7868c5e2014-07-16 23:45:48 +0200561 compatible = "allwinner,sun5i-a13-mbus-clk";
Emilio López118c07a2013-12-23 00:32:44 -0300562 reg = <0x01c2015c 0x4>;
563 clocks = <&osc24M>, <&pll6 2>, <&pll5 1>;
564 clock-output-names = "mbus";
565 };
Chen-Yu Tsai0aff0372014-01-01 10:30:48 +0800566
567 /*
Maxime Ripardd8cacaa2015-05-03 11:53:07 +0200568 * The following two are dummy clocks, placeholders
569 * used in the gmac_tx clock. The gmac driver will
570 * choose one parent depending on the PHY interface
571 * mode, using clk_set_rate auto-reparenting.
572 *
573 * The actual TX clock rate is not controlled by the
574 * gmac_tx clock.
Chen-Yu Tsaidaed5a82014-02-10 18:35:48 +0800575 */
576 mii_phy_tx_clk: clk@2 {
577 #clock-cells = <0>;
578 compatible = "fixed-clock";
579 clock-frequency = <25000000>;
580 clock-output-names = "mii_phy_tx";
581 };
582
583 gmac_int_tx_clk: clk@3 {
584 #clock-cells = <0>;
585 compatible = "fixed-clock";
586 clock-frequency = <125000000>;
587 clock-output-names = "gmac_int_tx";
588 };
589
590 gmac_tx_clk: clk@01c20164 {
591 #clock-cells = <0>;
592 compatible = "allwinner,sun7i-a20-gmac-clk";
593 reg = <0x01c20164 0x4>;
594 clocks = <&mii_phy_tx_clk>, <&gmac_int_tx_clk>;
595 clock-output-names = "gmac_tx";
596 };
597
598 /*
Chen-Yu Tsai0aff0372014-01-01 10:30:48 +0800599 * Dummy clock used by output clocks
600 */
601 osc24M_32k: clk@1 {
602 #clock-cells = <0>;
603 compatible = "fixed-factor-clock";
604 clock-div = <750>;
605 clock-mult = <1>;
606 clocks = <&osc24M>;
607 clock-output-names = "osc24M_32k";
608 };
609
610 clk_out_a: clk@01c201f0 {
611 #clock-cells = <0>;
612 compatible = "allwinner,sun7i-a20-out-clk";
613 reg = <0x01c201f0 0x4>;
614 clocks = <&osc24M_32k>, <&osc32k>, <&osc24M>;
615 clock-output-names = "clk_out_a";
616 };
617
618 clk_out_b: clk@01c201f4 {
619 #clock-cells = <0>;
620 compatible = "allwinner,sun7i-a20-out-clk";
621 reg = <0x01c201f4 0x4>;
622 clocks = <&osc24M_32k>, <&osc32k>, <&osc24M>;
623 clock-output-names = "clk_out_b";
624 };
Maxime Ripard4790ecf2013-07-17 10:07:10 +0200625 };
626
627 soc@01c00000 {
628 compatible = "simple-bus";
629 #address-cells = <1>;
630 #size-cells = <1>;
631 ranges;
632
Maxime Ripard0eb14a82015-03-26 15:53:44 +0100633 sram-controller@01c00000 {
634 compatible = "allwinner,sun4i-a10-sram-controller";
635 reg = <0x01c00000 0x30>;
636 #address-cells = <1>;
637 #size-cells = <1>;
638 ranges;
639
640 sram_a: sram@00000000 {
641 compatible = "mmio-sram";
642 reg = <0x00000000 0xc000>;
643 #address-cells = <1>;
644 #size-cells = <1>;
645 ranges = <0 0x00000000 0xc000>;
646
647 emac_sram: sram-section@8000 {
648 compatible = "allwinner,sun4i-a10-sram-a3-a4";
649 reg = <0x8000 0x4000>;
650 status = "disabled";
651 };
652 };
653
654 sram_d: sram@00010000 {
655 compatible = "mmio-sram";
656 reg = <0x00010000 0x1000>;
657 #address-cells = <1>;
658 #size-cells = <1>;
659 ranges = <0 0x00010000 0x1000>;
660
661 otg_sram: sram-section@0000 {
662 compatible = "allwinner,sun4i-a10-sram-d";
663 reg = <0x0000 0x1000>;
664 status = "disabled";
665 };
666 };
667 };
668
Carlo Caione8ff973a2014-03-19 20:21:18 +0100669 nmi_intc: interrupt-controller@01c00030 {
670 compatible = "allwinner,sun7i-a20-sc-nmi";
671 interrupt-controller;
672 #interrupt-cells = <2>;
673 reg = <0x01c00030 0x0c>;
Maxime Ripard19882b82014-12-16 22:59:58 +0100674 interrupts = <GIC_SPI 0 IRQ_TYPE_LEVEL_HIGH>;
Carlo Caione8ff973a2014-03-19 20:21:18 +0100675 };
676
Emilio López316e0b02014-08-04 17:09:59 -0300677 dma: dma-controller@01c02000 {
678 compatible = "allwinner,sun4i-a10-dma";
679 reg = <0x01c02000 0x1000>;
Maxime Ripard19882b82014-12-16 22:59:58 +0100680 interrupts = <GIC_SPI 27 IRQ_TYPE_LEVEL_HIGH>;
Emilio López316e0b02014-08-04 17:09:59 -0300681 clocks = <&ahb_gates 6>;
682 #dma-cells = <2>;
683 };
684
Maxime Ripard36ab3e72014-02-22 22:35:54 +0100685 spi0: spi@01c05000 {
686 compatible = "allwinner,sun4i-a10-spi";
687 reg = <0x01c05000 0x1000>;
Maxime Ripard19882b82014-12-16 22:59:58 +0100688 interrupts = <GIC_SPI 10 IRQ_TYPE_LEVEL_HIGH>;
Maxime Ripard36ab3e72014-02-22 22:35:54 +0100689 clocks = <&ahb_gates 20>, <&spi0_clk>;
690 clock-names = "ahb", "mod";
Maxime Ripard1f9f6a72014-12-16 22:59:56 +0100691 dmas = <&dma SUN4I_DMA_DEDICATED 27>,
692 <&dma SUN4I_DMA_DEDICATED 26>;
Emilio Lópezffec7212014-08-04 17:10:02 -0300693 dma-names = "rx", "tx";
Maxime Ripard36ab3e72014-02-22 22:35:54 +0100694 status = "disabled";
695 #address-cells = <1>;
696 #size-cells = <0>;
697 };
698
699 spi1: spi@01c06000 {
700 compatible = "allwinner,sun4i-a10-spi";
701 reg = <0x01c06000 0x1000>;
Maxime Ripard19882b82014-12-16 22:59:58 +0100702 interrupts = <GIC_SPI 11 IRQ_TYPE_LEVEL_HIGH>;
Maxime Ripard36ab3e72014-02-22 22:35:54 +0100703 clocks = <&ahb_gates 21>, <&spi1_clk>;
704 clock-names = "ahb", "mod";
Maxime Ripard1f9f6a72014-12-16 22:59:56 +0100705 dmas = <&dma SUN4I_DMA_DEDICATED 9>,
706 <&dma SUN4I_DMA_DEDICATED 8>;
Emilio Lópezffec7212014-08-04 17:10:02 -0300707 dma-names = "rx", "tx";
Maxime Ripard36ab3e72014-02-22 22:35:54 +0100708 status = "disabled";
709 #address-cells = <1>;
710 #size-cells = <0>;
711 };
712
Maxime Ripard2e804d02013-09-11 11:10:06 +0200713 emac: ethernet@01c0b000 {
Maxime Ripard1c70e092014-02-02 14:49:13 +0100714 compatible = "allwinner,sun4i-a10-emac";
Maxime Ripard2e804d02013-09-11 11:10:06 +0200715 reg = <0x01c0b000 0x1000>;
Maxime Ripard19882b82014-12-16 22:59:58 +0100716 interrupts = <GIC_SPI 55 IRQ_TYPE_LEVEL_HIGH>;
Maxime Ripard2e804d02013-09-11 11:10:06 +0200717 clocks = <&ahb_gates 17>;
Maxime Ripard0eb14a82015-03-26 15:53:44 +0100718 allwinner,sram = <&emac_sram 1>;
Maxime Ripard2e804d02013-09-11 11:10:06 +0200719 status = "disabled";
720 };
721
Aleksei Mamlin92395f52015-01-19 22:35:22 +0300722 mdio: mdio@01c0b080 {
Maxime Ripard1c70e092014-02-02 14:49:13 +0100723 compatible = "allwinner,sun4i-a10-mdio";
Maxime Ripard2e804d02013-09-11 11:10:06 +0200724 reg = <0x01c0b080 0x14>;
725 status = "disabled";
726 #address-cells = <1>;
727 #size-cells = <0>;
728 };
729
Hans de Goededd29ce52014-05-02 17:57:26 +0200730 mmc0: mmc@01c0f000 {
731 compatible = "allwinner,sun5i-a13-mmc";
732 reg = <0x01c0f000 0x1000>;
Maxime Ripardd8c3a392014-07-11 19:39:06 +0200733 clocks = <&ahb_gates 8>,
734 <&mmc0_clk 0>,
735 <&mmc0_clk 1>,
736 <&mmc0_clk 2>;
737 clock-names = "ahb",
738 "mmc",
739 "output",
740 "sample";
Maxime Ripard19882b82014-12-16 22:59:58 +0100741 interrupts = <GIC_SPI 32 IRQ_TYPE_LEVEL_HIGH>;
Hans de Goededd29ce52014-05-02 17:57:26 +0200742 status = "disabled";
Hans de Goede4c1bb9c2015-03-10 16:27:09 +0100743 #address-cells = <1>;
744 #size-cells = <0>;
Hans de Goededd29ce52014-05-02 17:57:26 +0200745 };
746
747 mmc1: mmc@01c10000 {
748 compatible = "allwinner,sun5i-a13-mmc";
749 reg = <0x01c10000 0x1000>;
Maxime Ripardd8c3a392014-07-11 19:39:06 +0200750 clocks = <&ahb_gates 9>,
751 <&mmc1_clk 0>,
752 <&mmc1_clk 1>,
753 <&mmc1_clk 2>;
754 clock-names = "ahb",
755 "mmc",
756 "output",
757 "sample";
Maxime Ripard19882b82014-12-16 22:59:58 +0100758 interrupts = <GIC_SPI 33 IRQ_TYPE_LEVEL_HIGH>;
Hans de Goededd29ce52014-05-02 17:57:26 +0200759 status = "disabled";
Hans de Goede4c1bb9c2015-03-10 16:27:09 +0100760 #address-cells = <1>;
761 #size-cells = <0>;
Hans de Goededd29ce52014-05-02 17:57:26 +0200762 };
763
764 mmc2: mmc@01c11000 {
765 compatible = "allwinner,sun5i-a13-mmc";
766 reg = <0x01c11000 0x1000>;
Maxime Ripardd8c3a392014-07-11 19:39:06 +0200767 clocks = <&ahb_gates 10>,
768 <&mmc2_clk 0>,
769 <&mmc2_clk 1>,
770 <&mmc2_clk 2>;
771 clock-names = "ahb",
772 "mmc",
773 "output",
774 "sample";
Maxime Ripard19882b82014-12-16 22:59:58 +0100775 interrupts = <GIC_SPI 34 IRQ_TYPE_LEVEL_HIGH>;
Hans de Goededd29ce52014-05-02 17:57:26 +0200776 status = "disabled";
Hans de Goede4c1bb9c2015-03-10 16:27:09 +0100777 #address-cells = <1>;
778 #size-cells = <0>;
Hans de Goededd29ce52014-05-02 17:57:26 +0200779 };
780
781 mmc3: mmc@01c12000 {
782 compatible = "allwinner,sun5i-a13-mmc";
783 reg = <0x01c12000 0x1000>;
Maxime Ripardd8c3a392014-07-11 19:39:06 +0200784 clocks = <&ahb_gates 11>,
785 <&mmc3_clk 0>,
786 <&mmc3_clk 1>,
787 <&mmc3_clk 2>;
788 clock-names = "ahb",
789 "mmc",
790 "output",
791 "sample";
Maxime Ripard19882b82014-12-16 22:59:58 +0100792 interrupts = <GIC_SPI 35 IRQ_TYPE_LEVEL_HIGH>;
Hans de Goededd29ce52014-05-02 17:57:26 +0200793 status = "disabled";
Hans de Goede4c1bb9c2015-03-10 16:27:09 +0100794 #address-cells = <1>;
795 #size-cells = <0>;
Hans de Goededd29ce52014-05-02 17:57:26 +0200796 };
797
Roman Byshkocbb3ff12014-10-22 00:14:03 +0200798 usb_otg: usb@01c13000 {
799 compatible = "allwinner,sun4i-a10-musb";
800 reg = <0x01c13000 0x0400>;
801 clocks = <&ahb_gates 0>;
802 interrupts = <GIC_SPI 38 IRQ_TYPE_LEVEL_HIGH>;
803 interrupt-names = "mc";
804 phys = <&usbphy 0>;
805 phy-names = "usb";
806 extcon = <&usbphy 0>;
807 allwinner,sram = <&otg_sram 1>;
808 status = "disabled";
809 };
810
Roman Byshko9debd0a2014-03-01 20:26:25 +0100811 usbphy: phy@01c13400 {
812 #phy-cells = <1>;
813 compatible = "allwinner,sun7i-a20-usb-phy";
814 reg = <0x01c13400 0x10 0x01c14800 0x4 0x01c1c800 0x4>;
815 reg-names = "phy_ctrl", "pmu1", "pmu2";
816 clocks = <&usb_clk 8>;
817 clock-names = "usb_phy";
Roman Byshko134c60a2014-11-10 19:55:08 +0100818 resets = <&usb_clk 0>, <&usb_clk 1>, <&usb_clk 2>;
819 reset-names = "usb0_reset", "usb1_reset", "usb2_reset";
Roman Byshko9debd0a2014-03-01 20:26:25 +0100820 status = "disabled";
821 };
822
823 ehci0: usb@01c14000 {
824 compatible = "allwinner,sun7i-a20-ehci", "generic-ehci";
825 reg = <0x01c14000 0x100>;
Maxime Ripard19882b82014-12-16 22:59:58 +0100826 interrupts = <GIC_SPI 39 IRQ_TYPE_LEVEL_HIGH>;
Roman Byshko9debd0a2014-03-01 20:26:25 +0100827 clocks = <&ahb_gates 1>;
828 phys = <&usbphy 1>;
829 phy-names = "usb";
830 status = "disabled";
831 };
832
833 ohci0: usb@01c14400 {
834 compatible = "allwinner,sun7i-a20-ohci", "generic-ohci";
835 reg = <0x01c14400 0x100>;
Maxime Ripard19882b82014-12-16 22:59:58 +0100836 interrupts = <GIC_SPI 64 IRQ_TYPE_LEVEL_HIGH>;
Roman Byshko9debd0a2014-03-01 20:26:25 +0100837 clocks = <&usb_clk 6>, <&ahb_gates 2>;
838 phys = <&usbphy 1>;
839 phy-names = "usb";
840 status = "disabled";
841 };
842
LABBE Corentin110d4e22015-07-17 16:39:39 +0200843 crypto: crypto-engine@01c15000 {
844 compatible = "allwinner,sun4i-a10-crypto";
845 reg = <0x01c15000 0x1000>;
846 interrupts = <GIC_SPI 86 IRQ_TYPE_LEVEL_HIGH>;
847 clocks = <&ahb_gates 5>, <&ss_clk>;
848 clock-names = "ahb", "mod";
849 };
850
Maxime Ripard36ab3e72014-02-22 22:35:54 +0100851 spi2: spi@01c17000 {
852 compatible = "allwinner,sun4i-a10-spi";
853 reg = <0x01c17000 0x1000>;
Maxime Ripard19882b82014-12-16 22:59:58 +0100854 interrupts = <GIC_SPI 12 IRQ_TYPE_LEVEL_HIGH>;
Maxime Ripard36ab3e72014-02-22 22:35:54 +0100855 clocks = <&ahb_gates 22>, <&spi2_clk>;
856 clock-names = "ahb", "mod";
Maxime Ripard1f9f6a72014-12-16 22:59:56 +0100857 dmas = <&dma SUN4I_DMA_DEDICATED 29>,
858 <&dma SUN4I_DMA_DEDICATED 28>;
Emilio Lópezffec7212014-08-04 17:10:02 -0300859 dma-names = "rx", "tx";
Maxime Ripard36ab3e72014-02-22 22:35:54 +0100860 status = "disabled";
861 #address-cells = <1>;
862 #size-cells = <0>;
863 };
864
Hans de Goede902febf2014-03-01 20:26:22 +0100865 ahci: sata@01c18000 {
866 compatible = "allwinner,sun4i-a10-ahci";
867 reg = <0x01c18000 0x1000>;
Maxime Ripard19882b82014-12-16 22:59:58 +0100868 interrupts = <GIC_SPI 56 IRQ_TYPE_LEVEL_HIGH>;
Hans de Goede902febf2014-03-01 20:26:22 +0100869 clocks = <&pll6 0>, <&ahb_gates 25>;
870 status = "disabled";
871 };
872
Roman Byshko9debd0a2014-03-01 20:26:25 +0100873 ehci1: usb@01c1c000 {
874 compatible = "allwinner,sun7i-a20-ehci", "generic-ehci";
875 reg = <0x01c1c000 0x100>;
Maxime Ripard19882b82014-12-16 22:59:58 +0100876 interrupts = <GIC_SPI 40 IRQ_TYPE_LEVEL_HIGH>;
Roman Byshko9debd0a2014-03-01 20:26:25 +0100877 clocks = <&ahb_gates 3>;
878 phys = <&usbphy 2>;
879 phy-names = "usb";
880 status = "disabled";
881 };
882
883 ohci1: usb@01c1c400 {
884 compatible = "allwinner,sun7i-a20-ohci", "generic-ohci";
885 reg = <0x01c1c400 0x100>;
Maxime Ripard19882b82014-12-16 22:59:58 +0100886 interrupts = <GIC_SPI 65 IRQ_TYPE_LEVEL_HIGH>;
Roman Byshko9debd0a2014-03-01 20:26:25 +0100887 clocks = <&usb_clk 7>, <&ahb_gates 4>;
888 phys = <&usbphy 2>;
889 phy-names = "usb";
890 status = "disabled";
891 };
892
Maxime Ripard36ab3e72014-02-22 22:35:54 +0100893 spi3: spi@01c1f000 {
894 compatible = "allwinner,sun4i-a10-spi";
895 reg = <0x01c1f000 0x1000>;
Maxime Ripard19882b82014-12-16 22:59:58 +0100896 interrupts = <GIC_SPI 50 IRQ_TYPE_LEVEL_HIGH>;
Maxime Ripard36ab3e72014-02-22 22:35:54 +0100897 clocks = <&ahb_gates 23>, <&spi3_clk>;
898 clock-names = "ahb", "mod";
Maxime Ripard1f9f6a72014-12-16 22:59:56 +0100899 dmas = <&dma SUN4I_DMA_DEDICATED 31>,
900 <&dma SUN4I_DMA_DEDICATED 30>;
Emilio Lópezffec7212014-08-04 17:10:02 -0300901 dma-names = "rx", "tx";
Maxime Ripard36ab3e72014-02-22 22:35:54 +0100902 status = "disabled";
903 #address-cells = <1>;
904 #size-cells = <0>;
905 };
906
Maxime Ripard17eac032013-07-24 23:46:11 +0200907 pio: pinctrl@01c20800 {
908 compatible = "allwinner,sun7i-a20-pinctrl";
909 reg = <0x01c20800 0x400>;
Maxime Ripard19882b82014-12-16 22:59:58 +0100910 interrupts = <GIC_SPI 28 IRQ_TYPE_LEVEL_HIGH>;
Maxime Ripardde7dc932013-07-25 21:12:52 +0200911 clocks = <&apb0_gates 5>;
Maxime Ripard17eac032013-07-24 23:46:11 +0200912 gpio-controller;
913 interrupt-controller;
Maxime Ripardb03e0812015-06-17 11:44:24 +0200914 #interrupt-cells = <3>;
Maxime Ripard17eac032013-07-24 23:46:11 +0200915 #gpio-cells = <3>;
Maxime Ripard9f229ba2013-07-25 00:09:47 +0200916
Alexandre Bellonifd7898a2014-04-28 18:17:12 +0200917 pwm0_pins_a: pwm0@0 {
918 allwinner,pins = "PB2";
919 allwinner,function = "pwm";
Maxime Ripard092a0c32014-12-16 22:59:57 +0100920 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
921 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Alexandre Bellonifd7898a2014-04-28 18:17:12 +0200922 };
923
924 pwm1_pins_a: pwm1@0 {
925 allwinner,pins = "PI3";
926 allwinner,function = "pwm";
Maxime Ripard092a0c32014-12-16 22:59:57 +0100927 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
928 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Alexandre Bellonifd7898a2014-04-28 18:17:12 +0200929 };
930
Maxime Ripard9f229ba2013-07-25 00:09:47 +0200931 uart0_pins_a: uart0@0 {
932 allwinner,pins = "PB22", "PB23";
933 allwinner,function = "uart0";
Maxime Ripard092a0c32014-12-16 22:59:57 +0100934 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
935 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Maxime Ripard9f229ba2013-07-25 00:09:47 +0200936 };
937
Chen-Yu Tsai4261ec42014-01-14 22:49:50 +0800938 uart2_pins_a: uart2@0 {
939 allwinner,pins = "PI16", "PI17", "PI18", "PI19";
940 allwinner,function = "uart2";
Maxime Ripard092a0c32014-12-16 22:59:57 +0100941 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
942 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Chen-Yu Tsai4261ec42014-01-14 22:49:50 +0800943 };
944
Wills Wang7b5bace2014-08-19 15:33:00 +0800945 uart3_pins_a: uart3@0 {
946 allwinner,pins = "PG6", "PG7", "PG8", "PG9";
947 allwinner,function = "uart3";
Maxime Ripard092a0c32014-12-16 22:59:57 +0100948 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
949 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Wills Wang7b5bace2014-08-19 15:33:00 +0800950 };
951
Hans de Goede0510e4b2014-10-01 09:26:05 +0200952 uart3_pins_b: uart3@1 {
953 allwinner,pins = "PH0", "PH1";
954 allwinner,function = "uart3";
Maxime Ripard092a0c32014-12-16 22:59:57 +0100955 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
956 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Hans de Goede0510e4b2014-10-01 09:26:05 +0200957 };
958
Wills Wang7b5bace2014-08-19 15:33:00 +0800959 uart4_pins_a: uart4@0 {
960 allwinner,pins = "PG10", "PG11";
961 allwinner,function = "uart4";
Maxime Ripard092a0c32014-12-16 22:59:57 +0100962 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
963 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Wills Wang7b5bace2014-08-19 15:33:00 +0800964 };
965
Michael Ring869afa72015-05-21 14:32:33 +0200966 uart4_pins_b: uart4@1 {
967 allwinner,pins = "PH4", "PH5";
968 allwinner,function = "uart4";
969 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
970 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
971 };
972
Wills Wang7b5bace2014-08-19 15:33:00 +0800973 uart5_pins_a: uart5@0 {
974 allwinner,pins = "PI10", "PI11";
975 allwinner,function = "uart5";
Maxime Ripard092a0c32014-12-16 22:59:57 +0100976 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
977 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Wills Wang7b5bace2014-08-19 15:33:00 +0800978 };
979
Maxime Ripard9f229ba2013-07-25 00:09:47 +0200980 uart6_pins_a: uart6@0 {
981 allwinner,pins = "PI12", "PI13";
982 allwinner,function = "uart6";
Maxime Ripard092a0c32014-12-16 22:59:57 +0100983 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
984 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Maxime Ripard9f229ba2013-07-25 00:09:47 +0200985 };
986
987 uart7_pins_a: uart7@0 {
988 allwinner,pins = "PI20", "PI21";
989 allwinner,function = "uart7";
Maxime Ripard092a0c32014-12-16 22:59:57 +0100990 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
991 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Maxime Ripard9f229ba2013-07-25 00:09:47 +0200992 };
Maxime Ripard756084c2013-09-11 11:10:07 +0200993
Maxime Riparde5496a32013-08-31 23:08:49 +0200994 i2c0_pins_a: i2c0@0 {
995 allwinner,pins = "PB0", "PB1";
996 allwinner,function = "i2c0";
Maxime Ripard092a0c32014-12-16 22:59:57 +0100997 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
998 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Maxime Riparde5496a32013-08-31 23:08:49 +0200999 };
1000
1001 i2c1_pins_a: i2c1@0 {
1002 allwinner,pins = "PB18", "PB19";
1003 allwinner,function = "i2c1";
Maxime Ripard092a0c32014-12-16 22:59:57 +01001004 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
1005 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Maxime Riparde5496a32013-08-31 23:08:49 +02001006 };
1007
1008 i2c2_pins_a: i2c2@0 {
1009 allwinner,pins = "PB20", "PB21";
1010 allwinner,function = "i2c2";
Maxime Ripard092a0c32014-12-16 22:59:57 +01001011 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
1012 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Maxime Riparde5496a32013-08-31 23:08:49 +02001013 };
1014
Wills Wang7b5bace2014-08-19 15:33:00 +08001015 i2c3_pins_a: i2c3@0 {
1016 allwinner,pins = "PI0", "PI1";
1017 allwinner,function = "i2c3";
Maxime Ripard092a0c32014-12-16 22:59:57 +01001018 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
1019 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Wills Wang7b5bace2014-08-19 15:33:00 +08001020 };
1021
Maxime Ripard756084c2013-09-11 11:10:07 +02001022 emac_pins_a: emac0@0 {
1023 allwinner,pins = "PA0", "PA1", "PA2",
1024 "PA3", "PA4", "PA5", "PA6",
1025 "PA7", "PA8", "PA9", "PA10",
1026 "PA11", "PA12", "PA13", "PA14",
1027 "PA15", "PA16";
1028 allwinner,function = "emac";
Maxime Ripard092a0c32014-12-16 22:59:57 +01001029 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
1030 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Maxime Ripard756084c2013-09-11 11:10:07 +02001031 };
Chen-Yu Tsaif2e07592014-01-01 10:30:50 +08001032
1033 clk_out_a_pins_a: clk_out_a@0 {
1034 allwinner,pins = "PI12";
1035 allwinner,function = "clk_out_a";
Maxime Ripard092a0c32014-12-16 22:59:57 +01001036 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
1037 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Chen-Yu Tsaif2e07592014-01-01 10:30:50 +08001038 };
1039
1040 clk_out_b_pins_a: clk_out_b@0 {
1041 allwinner,pins = "PI13";
1042 allwinner,function = "clk_out_b";
Maxime Ripard092a0c32014-12-16 22:59:57 +01001043 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
1044 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Chen-Yu Tsaif2e07592014-01-01 10:30:50 +08001045 };
Chen-Yu Tsai129ccbc2014-02-10 18:35:50 +08001046
1047 gmac_pins_mii_a: gmac_mii@0 {
1048 allwinner,pins = "PA0", "PA1", "PA2",
1049 "PA3", "PA4", "PA5", "PA6",
1050 "PA7", "PA8", "PA9", "PA10",
1051 "PA11", "PA12", "PA13", "PA14",
1052 "PA15", "PA16";
1053 allwinner,function = "gmac";
Maxime Ripard092a0c32014-12-16 22:59:57 +01001054 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
1055 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Chen-Yu Tsai129ccbc2014-02-10 18:35:50 +08001056 };
1057
1058 gmac_pins_rgmii_a: gmac_rgmii@0 {
1059 allwinner,pins = "PA0", "PA1", "PA2",
1060 "PA3", "PA4", "PA5", "PA6",
1061 "PA7", "PA8", "PA10",
1062 "PA11", "PA12", "PA13",
1063 "PA15", "PA16";
1064 allwinner,function = "gmac";
1065 /*
1066 * data lines in RGMII mode use DDR mode
1067 * and need a higher signal drive strength
1068 */
Maxime Ripard092a0c32014-12-16 22:59:57 +01001069 allwinner,drive = <SUN4I_PINCTRL_40_MA>;
1070 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Chen-Yu Tsai129ccbc2014-02-10 18:35:50 +08001071 };
Maxime Ripard412f2c62014-02-22 22:35:58 +01001072
Hans de Goede2dad53b2014-10-01 09:26:04 +02001073 spi0_pins_a: spi0@0 {
Maxime Ripardf3022c62015-05-03 09:25:41 +02001074 allwinner,pins = "PI11", "PI12", "PI13";
1075 allwinner,function = "spi0";
1076 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
1077 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
1078 };
1079
1080 spi0_cs0_pins_a: spi0_cs0@0 {
1081 allwinner,pins = "PI10";
1082 allwinner,function = "spi0";
1083 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
1084 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
1085 };
1086
1087 spi0_cs1_pins_a: spi0_cs1@0 {
1088 allwinner,pins = "PI14";
Hans de Goede2dad53b2014-10-01 09:26:04 +02001089 allwinner,function = "spi0";
Maxime Ripard092a0c32014-12-16 22:59:57 +01001090 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
1091 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Hans de Goede2dad53b2014-10-01 09:26:04 +02001092 };
1093
Maxime Ripard412f2c62014-02-22 22:35:58 +01001094 spi1_pins_a: spi1@0 {
Maxime Ripardf3022c62015-05-03 09:25:41 +02001095 allwinner,pins = "PI17", "PI18", "PI19";
1096 allwinner,function = "spi1";
1097 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
1098 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
1099 };
1100
1101 spi1_cs0_pins_a: spi1_cs0@0 {
1102 allwinner,pins = "PI16";
Maxime Ripard412f2c62014-02-22 22:35:58 +01001103 allwinner,function = "spi1";
Maxime Ripard092a0c32014-12-16 22:59:57 +01001104 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
1105 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Maxime Ripard412f2c62014-02-22 22:35:58 +01001106 };
1107
1108 spi2_pins_a: spi2@0 {
Maxime Ripardf3022c62015-05-03 09:25:41 +02001109 allwinner,pins = "PC20", "PC21", "PC22";
Maxime Ripard412f2c62014-02-22 22:35:58 +01001110 allwinner,function = "spi2";
Maxime Ripard092a0c32014-12-16 22:59:57 +01001111 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
1112 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Maxime Ripard412f2c62014-02-22 22:35:58 +01001113 };
Hans de Goede11fbedf2014-05-02 17:57:27 +02001114
Wills Wang7b5bace2014-08-19 15:33:00 +08001115 spi2_pins_b: spi2@1 {
Maxime Ripardf3022c62015-05-03 09:25:41 +02001116 allwinner,pins = "PB15", "PB16", "PB17";
1117 allwinner,function = "spi2";
1118 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
1119 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
1120 };
1121
1122 spi2_cs0_pins_a: spi2_cs0@0 {
1123 allwinner,pins = "PC19";
1124 allwinner,function = "spi2";
1125 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
1126 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
1127 };
1128
1129 spi2_cs0_pins_b: spi2_cs0@1 {
1130 allwinner,pins = "PB14";
Wills Wang7b5bace2014-08-19 15:33:00 +08001131 allwinner,function = "spi2";
Maxime Ripard092a0c32014-12-16 22:59:57 +01001132 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
1133 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Wills Wang7b5bace2014-08-19 15:33:00 +08001134 };
1135
Hans de Goede11fbedf2014-05-02 17:57:27 +02001136 mmc0_pins_a: mmc0@0 {
Maxime Ripardd8cacaa2015-05-03 11:53:07 +02001137 allwinner,pins = "PF0", "PF1", "PF2",
1138 "PF3", "PF4", "PF5";
Hans de Goede11fbedf2014-05-02 17:57:27 +02001139 allwinner,function = "mmc0";
Maxime Ripard092a0c32014-12-16 22:59:57 +01001140 allwinner,drive = <SUN4I_PINCTRL_30_MA>;
1141 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Hans de Goede11fbedf2014-05-02 17:57:27 +02001142 };
1143
1144 mmc0_cd_pin_reference_design: mmc0_cd_pin@0 {
1145 allwinner,pins = "PH1";
1146 allwinner,function = "gpio_in";
Maxime Ripard092a0c32014-12-16 22:59:57 +01001147 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
1148 allwinner,pull = <SUN4I_PINCTRL_PULL_UP>;
Hans de Goede11fbedf2014-05-02 17:57:27 +02001149 };
1150
Hans de Goede8fa82322014-10-01 16:25:36 +02001151 mmc2_pins_a: mmc2@0 {
Maxime Ripardd8cacaa2015-05-03 11:53:07 +02001152 allwinner,pins = "PC6", "PC7", "PC8",
1153 "PC9", "PC10", "PC11";
Hans de Goede8fa82322014-10-01 16:25:36 +02001154 allwinner,function = "mmc2";
Maxime Ripard092a0c32014-12-16 22:59:57 +01001155 allwinner,drive = <SUN4I_PINCTRL_30_MA>;
1156 allwinner,pull = <SUN4I_PINCTRL_PULL_UP>;
Hans de Goede8fa82322014-10-01 16:25:36 +02001157 };
1158
Hans de Goede11fbedf2014-05-02 17:57:27 +02001159 mmc3_pins_a: mmc3@0 {
Maxime Ripardd8cacaa2015-05-03 11:53:07 +02001160 allwinner,pins = "PI4", "PI5", "PI6",
1161 "PI7", "PI8", "PI9";
Hans de Goede11fbedf2014-05-02 17:57:27 +02001162 allwinner,function = "mmc3";
Maxime Ripard092a0c32014-12-16 22:59:57 +01001163 allwinner,drive = <SUN4I_PINCTRL_30_MA>;
1164 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Hans de Goede11fbedf2014-05-02 17:57:27 +02001165 };
Alexander Bersenev0fc2b7a2014-06-09 00:08:11 +06001166
Marcus Cooper469a22e2015-05-02 13:36:20 +02001167 ir0_rx_pins_a: ir0@0 {
1168 allwinner,pins = "PB4";
Alexander Bersenev0fc2b7a2014-06-09 00:08:11 +06001169 allwinner,function = "ir0";
Maxime Ripard092a0c32014-12-16 22:59:57 +01001170 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
1171 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Alexander Bersenev0fc2b7a2014-06-09 00:08:11 +06001172 };
1173
Marcus Cooper469a22e2015-05-02 13:36:20 +02001174 ir0_tx_pins_a: ir0@1 {
1175 allwinner,pins = "PB3";
1176 allwinner,function = "ir0";
1177 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
1178 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
1179 };
1180
1181 ir1_rx_pins_a: ir1@0 {
1182 allwinner,pins = "PB23";
1183 allwinner,function = "ir1";
1184 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
1185 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
1186 };
1187
1188 ir1_tx_pins_a: ir1@1 {
1189 allwinner,pins = "PB22";
Alexander Bersenev0fc2b7a2014-06-09 00:08:11 +06001190 allwinner,function = "ir1";
Maxime Ripard092a0c32014-12-16 22:59:57 +01001191 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
1192 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Alexander Bersenev0fc2b7a2014-06-09 00:08:11 +06001193 };
Vishnu Patekar1e8d1562015-01-25 19:10:09 +05301194
1195 ps20_pins_a: ps20@0 {
1196 allwinner,pins = "PI20", "PI21";
1197 allwinner,function = "ps2";
1198 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
1199 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
1200 };
1201
1202 ps21_pins_a: ps21@0 {
1203 allwinner,pins = "PH12", "PH13";
1204 allwinner,function = "ps2";
1205 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
1206 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Maxime Ripard4790ecf2013-07-17 10:07:10 +02001207 };
Marcus Cooperbdd08a82016-03-21 21:01:00 +01001208
1209 spdif_tx_pins_a: spdif@0 {
1210 allwinner,pins = "PB13";
1211 allwinner,function = "spdif";
1212 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
1213 allwinner,pull = <SUN4I_PINCTRL_PULL_UP>;
1214 };
Maxime Ripard4790ecf2013-07-17 10:07:10 +02001215 };
1216
1217 timer@01c20c00 {
1218 compatible = "allwinner,sun4i-a10-timer";
1219 reg = <0x01c20c00 0x90>;
Maxime Ripard19882b82014-12-16 22:59:58 +01001220 interrupts = <GIC_SPI 22 IRQ_TYPE_LEVEL_HIGH>,
1221 <GIC_SPI 23 IRQ_TYPE_LEVEL_HIGH>,
1222 <GIC_SPI 24 IRQ_TYPE_LEVEL_HIGH>,
1223 <GIC_SPI 25 IRQ_TYPE_LEVEL_HIGH>,
1224 <GIC_SPI 67 IRQ_TYPE_LEVEL_HIGH>,
1225 <GIC_SPI 68 IRQ_TYPE_LEVEL_HIGH>;
Maxime Ripard4790ecf2013-07-17 10:07:10 +02001226 clocks = <&osc24M>;
1227 };
1228
1229 wdt: watchdog@01c20c90 {
Maxime Ripardca5d04d2014-02-07 22:29:26 +01001230 compatible = "allwinner,sun4i-a10-wdt";
Maxime Ripard4790ecf2013-07-17 10:07:10 +02001231 reg = <0x01c20c90 0x10>;
1232 };
1233
Carlo Caioneb5d905c2013-10-16 20:30:26 +02001234 rtc: rtc@01c20d00 {
1235 compatible = "allwinner,sun7i-a20-rtc";
1236 reg = <0x01c20d00 0x20>;
Maxime Ripard19882b82014-12-16 22:59:58 +01001237 interrupts = <GIC_SPI 24 IRQ_TYPE_LEVEL_HIGH>;
Carlo Caioneb5d905c2013-10-16 20:30:26 +02001238 };
1239
Alexandre Belloni8ec40c22014-04-28 18:17:13 +02001240 pwm: pwm@01c20e00 {
1241 compatible = "allwinner,sun7i-a20-pwm";
1242 reg = <0x01c20e00 0xc>;
1243 clocks = <&osc24M>;
1244 #pwm-cells = <3>;
1245 status = "disabled";
1246 };
1247
Marcus Coopera34d6ce2016-03-21 21:01:04 +01001248 spdif: spdif@01c21000 {
1249 #sound-dai-cells = <0>;
1250 compatible = "allwinner,sun4i-a10-spdif";
1251 reg = <0x01c21000 0x400>;
1252 interrupts = <GIC_SPI 13 IRQ_TYPE_LEVEL_HIGH>;
1253 clocks = <&apb0_gates 1>, <&spdif_clk>;
1254 clock-names = "apb", "spdif";
1255 dmas = <&dma SUN4I_DMA_NORMAL 2>,
1256 <&dma SUN4I_DMA_NORMAL 2>;
1257 dma-names = "rx", "tx";
1258 status = "disabled";
1259 };
1260
Alexander Bersenevc1a0ee32014-06-21 17:04:05 +06001261 ir0: ir@01c21800 {
Hans de Goede1715a382014-06-30 23:57:54 +02001262 compatible = "allwinner,sun4i-a10-ir";
Alexander Bersenevc1a0ee32014-06-21 17:04:05 +06001263 clocks = <&apb0_gates 6>, <&ir0_clk>;
1264 clock-names = "apb", "ir";
Maxime Ripard19882b82014-12-16 22:59:58 +01001265 interrupts = <GIC_SPI 5 IRQ_TYPE_LEVEL_HIGH>;
Alexander Bersenevc1a0ee32014-06-21 17:04:05 +06001266 reg = <0x01c21800 0x40>;
1267 status = "disabled";
1268 };
1269
1270 ir1: ir@01c21c00 {
Hans de Goede1715a382014-06-30 23:57:54 +02001271 compatible = "allwinner,sun4i-a10-ir";
Alexander Bersenevc1a0ee32014-06-21 17:04:05 +06001272 clocks = <&apb0_gates 7>, <&ir1_clk>;
1273 clock-names = "apb", "ir";
Maxime Ripard19882b82014-12-16 22:59:58 +01001274 interrupts = <GIC_SPI 6 IRQ_TYPE_LEVEL_HIGH>;
Alexander Bersenevc1a0ee32014-06-21 17:04:05 +06001275 reg = <0x01c21c00 0x40>;
1276 status = "disabled";
1277 };
1278
Hans de Goedea6a2d642014-12-23 11:13:22 +01001279 lradc: lradc@01c22800 {
1280 compatible = "allwinner,sun4i-a10-lradc-keys";
1281 reg = <0x01c22800 0x100>;
Maxime Ripard19882b82014-12-16 22:59:58 +01001282 interrupts = <GIC_SPI 31 IRQ_TYPE_LEVEL_HIGH>;
Hans de Goedea6a2d642014-12-23 11:13:22 +01001283 status = "disabled";
1284 };
1285
Emilio Lópezd5ce1072014-08-18 01:07:55 -03001286 codec: codec@01c22c00 {
1287 #sound-dai-cells = <0>;
1288 compatible = "allwinner,sun7i-a20-codec";
1289 reg = <0x01c22c00 0x40>;
1290 interrupts = <GIC_SPI 30 IRQ_TYPE_LEVEL_HIGH>;
1291 clocks = <&apb0_gates 0>, <&codec_clk>;
1292 clock-names = "apb", "codec";
1293 dmas = <&dma SUN4I_DMA_NORMAL 19>,
1294 <&dma SUN4I_DMA_NORMAL 19>;
1295 dma-names = "rx", "tx";
1296 status = "disabled";
1297 };
1298
Oliver Schinagl2bad9692013-09-03 12:33:28 +02001299 sid: eeprom@01c23800 {
1300 compatible = "allwinner,sun7i-a20-sid";
1301 reg = <0x01c23800 0x200>;
1302 };
1303
Hans de Goede00f7ed82013-12-31 17:20:52 +01001304 rtp: rtp@01c25000 {
Hans de Goede8bf1b9b2015-03-08 21:53:42 +01001305 compatible = "allwinner,sun5i-a13-ts";
Hans de Goede00f7ed82013-12-31 17:20:52 +01001306 reg = <0x01c25000 0x100>;
Maxime Ripard19882b82014-12-16 22:59:58 +01001307 interrupts = <GIC_SPI 29 IRQ_TYPE_LEVEL_HIGH>;
Chen-Yu Tsai41e7afb2015-01-06 10:35:15 +08001308 #thermal-sensor-cells = <0>;
Hans de Goede00f7ed82013-12-31 17:20:52 +01001309 };
1310
Maxime Ripard4790ecf2013-07-17 10:07:10 +02001311 uart0: serial@01c28000 {
1312 compatible = "snps,dw-apb-uart";
1313 reg = <0x01c28000 0x400>;
Maxime Ripard19882b82014-12-16 22:59:58 +01001314 interrupts = <GIC_SPI 1 IRQ_TYPE_LEVEL_HIGH>;
Maxime Ripard4790ecf2013-07-17 10:07:10 +02001315 reg-shift = <2>;
1316 reg-io-width = <4>;
Maxime Ripardde7dc932013-07-25 21:12:52 +02001317 clocks = <&apb1_gates 16>;
Maxime Ripard4790ecf2013-07-17 10:07:10 +02001318 status = "disabled";
1319 };
1320
1321 uart1: serial@01c28400 {
1322 compatible = "snps,dw-apb-uart";
1323 reg = <0x01c28400 0x400>;
Maxime Ripard19882b82014-12-16 22:59:58 +01001324 interrupts = <GIC_SPI 2 IRQ_TYPE_LEVEL_HIGH>;
Maxime Ripard4790ecf2013-07-17 10:07:10 +02001325 reg-shift = <2>;
1326 reg-io-width = <4>;
Maxime Ripardde7dc932013-07-25 21:12:52 +02001327 clocks = <&apb1_gates 17>;
Maxime Ripard4790ecf2013-07-17 10:07:10 +02001328 status = "disabled";
1329 };
1330
1331 uart2: serial@01c28800 {
1332 compatible = "snps,dw-apb-uart";
1333 reg = <0x01c28800 0x400>;
Maxime Ripard19882b82014-12-16 22:59:58 +01001334 interrupts = <GIC_SPI 3 IRQ_TYPE_LEVEL_HIGH>;
Maxime Ripard4790ecf2013-07-17 10:07:10 +02001335 reg-shift = <2>;
1336 reg-io-width = <4>;
Maxime Ripardde7dc932013-07-25 21:12:52 +02001337 clocks = <&apb1_gates 18>;
Maxime Ripard4790ecf2013-07-17 10:07:10 +02001338 status = "disabled";
1339 };
1340
1341 uart3: serial@01c28c00 {
1342 compatible = "snps,dw-apb-uart";
1343 reg = <0x01c28c00 0x400>;
Maxime Ripard19882b82014-12-16 22:59:58 +01001344 interrupts = <GIC_SPI 4 IRQ_TYPE_LEVEL_HIGH>;
Maxime Ripard4790ecf2013-07-17 10:07:10 +02001345 reg-shift = <2>;
1346 reg-io-width = <4>;
Maxime Ripardde7dc932013-07-25 21:12:52 +02001347 clocks = <&apb1_gates 19>;
Maxime Ripard4790ecf2013-07-17 10:07:10 +02001348 status = "disabled";
1349 };
1350
1351 uart4: serial@01c29000 {
1352 compatible = "snps,dw-apb-uart";
1353 reg = <0x01c29000 0x400>;
Maxime Ripard19882b82014-12-16 22:59:58 +01001354 interrupts = <GIC_SPI 17 IRQ_TYPE_LEVEL_HIGH>;
Maxime Ripard4790ecf2013-07-17 10:07:10 +02001355 reg-shift = <2>;
1356 reg-io-width = <4>;
Maxime Ripardde7dc932013-07-25 21:12:52 +02001357 clocks = <&apb1_gates 20>;
Maxime Ripard4790ecf2013-07-17 10:07:10 +02001358 status = "disabled";
1359 };
1360
1361 uart5: serial@01c29400 {
1362 compatible = "snps,dw-apb-uart";
1363 reg = <0x01c29400 0x400>;
Maxime Ripard19882b82014-12-16 22:59:58 +01001364 interrupts = <GIC_SPI 18 IRQ_TYPE_LEVEL_HIGH>;
Maxime Ripard4790ecf2013-07-17 10:07:10 +02001365 reg-shift = <2>;
1366 reg-io-width = <4>;
Maxime Ripardde7dc932013-07-25 21:12:52 +02001367 clocks = <&apb1_gates 21>;
Maxime Ripard4790ecf2013-07-17 10:07:10 +02001368 status = "disabled";
1369 };
1370
1371 uart6: serial@01c29800 {
1372 compatible = "snps,dw-apb-uart";
1373 reg = <0x01c29800 0x400>;
Maxime Ripard19882b82014-12-16 22:59:58 +01001374 interrupts = <GIC_SPI 19 IRQ_TYPE_LEVEL_HIGH>;
Maxime Ripard4790ecf2013-07-17 10:07:10 +02001375 reg-shift = <2>;
1376 reg-io-width = <4>;
Maxime Ripardde7dc932013-07-25 21:12:52 +02001377 clocks = <&apb1_gates 22>;
Maxime Ripard4790ecf2013-07-17 10:07:10 +02001378 status = "disabled";
1379 };
1380
1381 uart7: serial@01c29c00 {
1382 compatible = "snps,dw-apb-uart";
1383 reg = <0x01c29c00 0x400>;
Maxime Ripard19882b82014-12-16 22:59:58 +01001384 interrupts = <GIC_SPI 20 IRQ_TYPE_LEVEL_HIGH>;
Maxime Ripard4790ecf2013-07-17 10:07:10 +02001385 reg-shift = <2>;
1386 reg-io-width = <4>;
Maxime Ripardde7dc932013-07-25 21:12:52 +02001387 clocks = <&apb1_gates 23>;
Maxime Ripard4790ecf2013-07-17 10:07:10 +02001388 status = "disabled";
1389 };
1390
Maxime Ripard428abbb2013-08-31 23:07:24 +02001391 i2c0: i2c@01c2ac00 {
Maxime Ripardd8cacaa2015-05-03 11:53:07 +02001392 compatible = "allwinner,sun7i-a20-i2c",
1393 "allwinner,sun4i-a10-i2c";
Maxime Ripard428abbb2013-08-31 23:07:24 +02001394 reg = <0x01c2ac00 0x400>;
Maxime Ripard19882b82014-12-16 22:59:58 +01001395 interrupts = <GIC_SPI 7 IRQ_TYPE_LEVEL_HIGH>;
Maxime Ripard428abbb2013-08-31 23:07:24 +02001396 clocks = <&apb1_gates 0>;
Maxime Ripard428abbb2013-08-31 23:07:24 +02001397 status = "disabled";
Hans de Goeded1412ae2014-04-13 13:41:05 +02001398 #address-cells = <1>;
1399 #size-cells = <0>;
Maxime Ripard428abbb2013-08-31 23:07:24 +02001400 };
1401
1402 i2c1: i2c@01c2b000 {
Maxime Ripardd8cacaa2015-05-03 11:53:07 +02001403 compatible = "allwinner,sun7i-a20-i2c",
1404 "allwinner,sun4i-a10-i2c";
Maxime Ripard428abbb2013-08-31 23:07:24 +02001405 reg = <0x01c2b000 0x400>;
Maxime Ripard19882b82014-12-16 22:59:58 +01001406 interrupts = <GIC_SPI 8 IRQ_TYPE_LEVEL_HIGH>;
Maxime Ripard428abbb2013-08-31 23:07:24 +02001407 clocks = <&apb1_gates 1>;
Maxime Ripard428abbb2013-08-31 23:07:24 +02001408 status = "disabled";
Hans de Goeded1412ae2014-04-13 13:41:05 +02001409 #address-cells = <1>;
1410 #size-cells = <0>;
Maxime Ripard428abbb2013-08-31 23:07:24 +02001411 };
1412
1413 i2c2: i2c@01c2b400 {
Maxime Ripardd8cacaa2015-05-03 11:53:07 +02001414 compatible = "allwinner,sun7i-a20-i2c",
1415 "allwinner,sun4i-a10-i2c";
Maxime Ripard428abbb2013-08-31 23:07:24 +02001416 reg = <0x01c2b400 0x400>;
Maxime Ripard19882b82014-12-16 22:59:58 +01001417 interrupts = <GIC_SPI 9 IRQ_TYPE_LEVEL_HIGH>;
Maxime Ripard428abbb2013-08-31 23:07:24 +02001418 clocks = <&apb1_gates 2>;
Maxime Ripard428abbb2013-08-31 23:07:24 +02001419 status = "disabled";
Hans de Goeded1412ae2014-04-13 13:41:05 +02001420 #address-cells = <1>;
1421 #size-cells = <0>;
Maxime Ripard428abbb2013-08-31 23:07:24 +02001422 };
1423
1424 i2c3: i2c@01c2b800 {
Maxime Ripardd8cacaa2015-05-03 11:53:07 +02001425 compatible = "allwinner,sun7i-a20-i2c",
1426 "allwinner,sun4i-a10-i2c";
Maxime Ripard428abbb2013-08-31 23:07:24 +02001427 reg = <0x01c2b800 0x400>;
Maxime Ripard19882b82014-12-16 22:59:58 +01001428 interrupts = <GIC_SPI 88 IRQ_TYPE_LEVEL_HIGH>;
Maxime Ripard428abbb2013-08-31 23:07:24 +02001429 clocks = <&apb1_gates 3>;
Maxime Ripard428abbb2013-08-31 23:07:24 +02001430 status = "disabled";
Hans de Goeded1412ae2014-04-13 13:41:05 +02001431 #address-cells = <1>;
1432 #size-cells = <0>;
Maxime Ripard428abbb2013-08-31 23:07:24 +02001433 };
1434
Maxime Riparda3867042014-04-18 21:13:08 +02001435 i2c4: i2c@01c2c000 {
Maxime Ripardd8cacaa2015-05-03 11:53:07 +02001436 compatible = "allwinner,sun7i-a20-i2c",
1437 "allwinner,sun4i-a10-i2c";
Maxime Riparda3867042014-04-18 21:13:08 +02001438 reg = <0x01c2c000 0x400>;
Maxime Ripard19882b82014-12-16 22:59:58 +01001439 interrupts = <GIC_SPI 89 IRQ_TYPE_LEVEL_HIGH>;
Maxime Ripard428abbb2013-08-31 23:07:24 +02001440 clocks = <&apb1_gates 15>;
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
Chen-Yu Tsaic40b8d52014-02-10 18:35:49 +08001446 gmac: ethernet@01c50000 {
1447 compatible = "allwinner,sun7i-a20-gmac";
1448 reg = <0x01c50000 0x10000>;
Maxime Ripard19882b82014-12-16 22:59:58 +01001449 interrupts = <GIC_SPI 85 IRQ_TYPE_LEVEL_HIGH>;
Chen-Yu Tsaic40b8d52014-02-10 18:35:49 +08001450 interrupt-names = "macirq";
1451 clocks = <&ahb_gates 49>, <&gmac_tx_clk>;
1452 clock-names = "stmmaceth", "allwinner_gmac_tx";
1453 snps,pbl = <2>;
1454 snps,fixed-burst;
1455 snps,force_sf_dma_mode;
1456 status = "disabled";
1457 #address-cells = <1>;
1458 #size-cells = <0>;
1459 };
1460
Maxime Ripard31f8ad32013-11-07 12:01:48 +01001461 hstimer@01c60000 {
1462 compatible = "allwinner,sun7i-a20-hstimer";
1463 reg = <0x01c60000 0x1000>;
Maxime Ripard19882b82014-12-16 22:59:58 +01001464 interrupts = <GIC_SPI 81 IRQ_TYPE_LEVEL_HIGH>,
1465 <GIC_SPI 82 IRQ_TYPE_LEVEL_HIGH>,
1466 <GIC_SPI 83 IRQ_TYPE_LEVEL_HIGH>,
1467 <GIC_SPI 84 IRQ_TYPE_LEVEL_HIGH>;
Maxime Ripard31f8ad32013-11-07 12:01:48 +01001468 clocks = <&ahb_gates 28>;
1469 };
1470
Maxime Ripard4790ecf2013-07-17 10:07:10 +02001471 gic: interrupt-controller@01c81000 {
1472 compatible = "arm,cortex-a7-gic", "arm,cortex-a15-gic";
1473 reg = <0x01c81000 0x1000>,
1474 <0x01c82000 0x1000>,
1475 <0x01c84000 0x2000>,
1476 <0x01c86000 0x2000>;
1477 interrupt-controller;
1478 #interrupt-cells = <3>;
Maxime Ripard19882b82014-12-16 22:59:58 +01001479 interrupts = <GIC_PPI 9 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>;
Maxime Ripard4790ecf2013-07-17 10:07:10 +02001480 };
Vishnu Patekar196654a2015-01-25 19:10:08 +05301481
1482 ps20: ps2@01c2a000 {
1483 compatible = "allwinner,sun4i-a10-ps2";
1484 reg = <0x01c2a000 0x400>;
1485 interrupts = <GIC_SPI 62 IRQ_TYPE_LEVEL_HIGH>;
1486 clocks = <&apb1_gates 6>;
1487 status = "disabled";
1488 };
1489
1490 ps21: ps2@01c2a400 {
1491 compatible = "allwinner,sun4i-a10-ps2";
1492 reg = <0x01c2a400 0x400>;
1493 interrupts = <GIC_SPI 63 IRQ_TYPE_LEVEL_HIGH>;
1494 clocks = <&apb1_gates 7>;
1495 status = "disabled";
Maxime Ripard4790ecf2013-07-17 10:07:10 +02001496 };
1497 };
1498};