blob: 929630aee29971c57f509861ad575c4d6fd751ca [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 *
21 * You should have received a copy of the GNU General Public
Maxime Ripard5186d832014-10-17 11:38:23 +020022 * License along with this file; if not, write to the Free
Maxime Ripard394c56c2014-09-02 19:25:26 +020023 * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,
24 * MA 02110-1301 USA
25 *
26 * Or, alternatively,
27 *
28 * b) Permission is hereby granted, free of charge, to any person
29 * obtaining a copy of this software and associated documentation
30 * files (the "Software"), to deal in the Software without
31 * restriction, including without limitation the rights to use,
32 * copy, modify, merge, publish, distribute, sublicense, and/or
33 * sell copies of the Software, and to permit persons to whom the
34 * Software is furnished to do so, subject to the following
35 * conditions:
36 *
37 * The above copyright notice and this permission notice shall be
38 * included in all copies or substantial portions of the Software.
39 *
40 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
41 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
42 * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
43 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
44 * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
45 * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
46 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
47 * OTHER DEALINGS IN THE SOFTWARE.
Maxime Ripard4790ecf2013-07-17 10:07:10 +020048 */
49
Maxime Ripard71455702014-12-16 22:59:54 +010050#include "skeleton.dtsi"
Maxime Ripard4790ecf2013-07-17 10:07:10 +020051
Maxime Ripard19882b82014-12-16 22:59:58 +010052#include <dt-bindings/interrupt-controller/arm-gic.h>
Chen-Yu Tsaib6d34242015-01-12 12:34:03 +080053#include <dt-bindings/thermal/thermal.h>
Maxime Ripard19882b82014-12-16 22:59:58 +010054
Maxime Ripard1f9f6a72014-12-16 22:59:56 +010055#include <dt-bindings/dma/sun4i-a10.h>
Maxime Ripard092a0c32014-12-16 22:59:57 +010056#include <dt-bindings/pinctrl/sun4i-a10.h>
Maxime Ripard1f9f6a72014-12-16 22:59:56 +010057
Maxime Ripard4790ecf2013-07-17 10:07:10 +020058/ {
59 interrupt-parent = <&gic>;
60
Emilio Lópeze751cce2013-11-16 15:17:29 -030061 aliases {
Chen-Yu Tsai18428f72014-02-10 18:35:54 +080062 ethernet0 = &gmac;
Maxime Ripard4566b4b2014-01-02 22:05:04 +010063 serial0 = &uart0;
64 serial1 = &uart1;
65 serial2 = &uart2;
66 serial3 = &uart3;
67 serial4 = &uart4;
68 serial5 = &uart5;
69 serial6 = &uart6;
70 serial7 = &uart7;
Emilio Lópeze751cce2013-11-16 15:17:29 -030071 };
72
Hans de Goede8efc5c22014-11-14 16:34:37 +010073 chosen {
74 #address-cells = <1>;
75 #size-cells = <1>;
76 ranges;
77
Hans de Goedea9f8cda2014-11-18 12:07:13 +010078 framebuffer@0 {
79 compatible = "allwinner,simple-framebuffer", "simple-framebuffer";
80 allwinner,pipeline = "de_be0-lcd0-hdmi";
Hans de Goede678e75d2014-11-16 17:09:32 +010081 clocks = <&pll5 1>, <&ahb_gates 36>, <&ahb_gates 43>,
82 <&ahb_gates 44>;
Hans de Goede8efc5c22014-11-14 16:34:37 +010083 status = "disabled";
84 };
Hans de Goedefd18c7e2015-01-19 14:05:12 +010085
86 framebuffer@1 {
87 compatible = "allwinner,simple-framebuffer",
88 "simple-framebuffer";
89 allwinner,pipeline = "de_be0-lcd0";
90 clocks = <&pll5 1>, <&ahb_gates 36>, <&ahb_gates 44>;
91 status = "disabled";
92 };
93
94 framebuffer@2 {
95 compatible = "allwinner,simple-framebuffer",
96 "simple-framebuffer";
97 allwinner,pipeline = "de_be0-lcd0-tve0";
98 clocks = <&pll5 1>, <&ahb_gates 34>, <&ahb_gates 36>,
99 <&ahb_gates 44>;
100 status = "disabled";
101 };
Hans de Goede8efc5c22014-11-14 16:34:37 +0100102 };
103
Maxime Ripard4790ecf2013-07-17 10:07:10 +0200104 cpus {
105 #address-cells = <1>;
106 #size-cells = <0>;
107
Chen-Yu Tsaid96b7162015-01-06 10:35:16 +0800108 cpu0: cpu@0 {
Maxime Ripard4790ecf2013-07-17 10:07:10 +0200109 compatible = "arm,cortex-a7";
110 device_type = "cpu";
111 reg = <0>;
Chen-Yu Tsaid96b7162015-01-06 10:35:16 +0800112 clocks = <&cpu>;
113 clock-latency = <244144>; /* 8 32k periods */
114 operating-points = <
115 /* kHz uV */
116 1008000 1450000
117 960000 1400000
118 912000 1400000
119 864000 1300000
120 720000 1200000
121 528000 1100000
122 312000 1000000
123 144000 900000
124 >;
125 #cooling-cells = <2>;
126 cooling-min-level = <0>;
127 cooling-max-level = <7>;
Maxime Ripard4790ecf2013-07-17 10:07:10 +0200128 };
129
130 cpu@1 {
131 compatible = "arm,cortex-a7";
132 device_type = "cpu";
133 reg = <1>;
134 };
135 };
136
Chen-Yu Tsaib6d34242015-01-12 12:34:03 +0800137 thermal-zones {
138 cpu_thermal {
139 /* milliseconds */
140 polling-delay-passive = <250>;
141 polling-delay = <1000>;
142 thermal-sensors = <&rtp>;
143
144 cooling-maps {
145 map0 {
146 trip = <&cpu_alert0>;
147 cooling-device = <&cpu0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
148 };
149 };
150
151 trips {
152 cpu_alert0: cpu_alert0 {
153 /* milliCelsius */
154 temperature = <75000>;
155 hysteresis = <2000>;
156 type = "passive";
157 };
158
159 cpu_crit: cpu_crit {
160 /* milliCelsius */
161 temperature = <100000>;
162 hysteresis = <2000>;
163 type = "critical";
164 };
165 };
166 };
167 };
168
Maxime Ripard4790ecf2013-07-17 10:07:10 +0200169 memory {
170 reg = <0x40000000 0x80000000>;
171 };
172
Marc Zyngier79027632014-02-18 14:04:44 +0000173 timer {
174 compatible = "arm,armv7-timer";
Maxime Ripard19882b82014-12-16 22:59:58 +0100175 interrupts = <GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
176 <GIC_PPI 14 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
177 <GIC_PPI 11 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
178 <GIC_PPI 10 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>;
Marc Zyngier79027632014-02-18 14:04:44 +0000179 };
180
Maxime Riparde29ea4d2014-04-17 21:54:41 +0200181 pmu {
182 compatible = "arm,cortex-a7-pmu", "arm,cortex-a15-pmu";
Maxime Ripard19882b82014-12-16 22:59:58 +0100183 interrupts = <GIC_SPI 120 IRQ_TYPE_LEVEL_HIGH>,
184 <GIC_SPI 121 IRQ_TYPE_LEVEL_HIGH>;
Maxime Riparde29ea4d2014-04-17 21:54:41 +0200185 };
186
Maxime Ripard4790ecf2013-07-17 10:07:10 +0200187 clocks {
188 #address-cells = <1>;
189 #size-cells = <1>;
190 ranges;
191
Chen-Yu Tsai06067a22014-02-03 09:51:44 +0800192 osc24M: clk@01c20050 {
Maxime Ripard4790ecf2013-07-17 10:07:10 +0200193 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100194 compatible = "allwinner,sun4i-a10-osc-clk";
Maxime Ripardde7dc932013-07-25 21:12:52 +0200195 reg = <0x01c20050 0x4>;
Maxime Ripard4790ecf2013-07-17 10:07:10 +0200196 clock-frequency = <24000000>;
Chen-Yu Tsai06067a22014-02-03 09:51:44 +0800197 clock-output-names = "osc24M";
Maxime Ripard4790ecf2013-07-17 10:07:10 +0200198 };
199
Chen-Yu Tsai673fac72014-01-01 10:30:47 +0800200 osc32k: clk@0 {
Maxime Ripard4790ecf2013-07-17 10:07:10 +0200201 #clock-cells = <0>;
202 compatible = "fixed-clock";
203 clock-frequency = <32768>;
Chen-Yu Tsai673fac72014-01-01 10:30:47 +0800204 clock-output-names = "osc32k";
Maxime Ripard4790ecf2013-07-17 10:07:10 +0200205 };
Maxime Ripardde7dc932013-07-25 21:12:52 +0200206
Chen-Yu Tsai06067a22014-02-03 09:51:44 +0800207 pll1: clk@01c20000 {
Maxime Ripardde7dc932013-07-25 21:12:52 +0200208 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100209 compatible = "allwinner,sun4i-a10-pll1-clk";
Maxime Ripardde7dc932013-07-25 21:12:52 +0200210 reg = <0x01c20000 0x4>;
211 clocks = <&osc24M>;
Chen-Yu Tsai06067a22014-02-03 09:51:44 +0800212 clock-output-names = "pll1";
Maxime Ripardde7dc932013-07-25 21:12:52 +0200213 };
214
Chen-Yu Tsai06067a22014-02-03 09:51:44 +0800215 pll4: clk@01c20018 {
Maxime Ripardde7dc932013-07-25 21:12:52 +0200216 #clock-cells = <0>;
Emilio López04ebcb52014-03-19 15:19:31 -0300217 compatible = "allwinner,sun7i-a20-pll4-clk";
Emilio Lópezec5589f2013-12-23 00:32:35 -0300218 reg = <0x01c20018 0x4>;
219 clocks = <&osc24M>;
Chen-Yu Tsai06067a22014-02-03 09:51:44 +0800220 clock-output-names = "pll4";
Emilio Lópezec5589f2013-12-23 00:32:35 -0300221 };
222
Chen-Yu Tsai06067a22014-02-03 09:51:44 +0800223 pll5: clk@01c20020 {
Emilio Lópezc3e5e662013-12-23 00:32:38 -0300224 #clock-cells = <1>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100225 compatible = "allwinner,sun4i-a10-pll5-clk";
Emilio Lópezc3e5e662013-12-23 00:32:38 -0300226 reg = <0x01c20020 0x4>;
227 clocks = <&osc24M>;
228 clock-output-names = "pll5_ddr", "pll5_other";
229 };
230
Chen-Yu Tsai06067a22014-02-03 09:51:44 +0800231 pll6: clk@01c20028 {
Emilio Lópezc3e5e662013-12-23 00:32:38 -0300232 #clock-cells = <1>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100233 compatible = "allwinner,sun4i-a10-pll6-clk";
Emilio Lópezc3e5e662013-12-23 00:32:38 -0300234 reg = <0x01c20028 0x4>;
235 clocks = <&osc24M>;
236 clock-output-names = "pll6_sata", "pll6_other", "pll6";
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>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100265 compatible = "allwinner,sun4i-a10-ahb-clk";
Maxime Ripardde7dc932013-07-25 21:12:52 +0200266 reg = <0x01c20054 0x4>;
267 clocks = <&axi>;
Chen-Yu Tsai06067a22014-02-03 09:51:44 +0800268 clock-output-names = "ahb";
Maxime Ripardde7dc932013-07-25 21:12:52 +0200269 };
270
Chen-Yu Tsai06067a22014-02-03 09:51:44 +0800271 ahb_gates: clk@01c20060 {
Maxime Ripardde7dc932013-07-25 21:12:52 +0200272 #clock-cells = <1>;
273 compatible = "allwinner,sun7i-a20-ahb-gates-clk";
274 reg = <0x01c20060 0x8>;
275 clocks = <&ahb>;
276 clock-output-names = "ahb_usb0", "ahb_ehci0",
277 "ahb_ohci0", "ahb_ehci1", "ahb_ohci1",
278 "ahb_ss", "ahb_dma", "ahb_bist", "ahb_mmc0",
279 "ahb_mmc1", "ahb_mmc2", "ahb_mmc3", "ahb_ms",
280 "ahb_nand", "ahb_sdram", "ahb_ace",
281 "ahb_emac", "ahb_ts", "ahb_spi0", "ahb_spi1",
282 "ahb_spi2", "ahb_spi3", "ahb_sata",
283 "ahb_hstimer", "ahb_ve", "ahb_tvd", "ahb_tve0",
284 "ahb_tve1", "ahb_lcd0", "ahb_lcd1", "ahb_csi0",
285 "ahb_csi1", "ahb_hdmi1", "ahb_hdmi0",
286 "ahb_de_be0", "ahb_de_be1", "ahb_de_fe0",
287 "ahb_de_fe1", "ahb_gmac", "ahb_mp",
288 "ahb_mali";
289 };
290
291 apb0: apb0@01c20054 {
292 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100293 compatible = "allwinner,sun4i-a10-apb0-clk";
Maxime Ripardde7dc932013-07-25 21:12:52 +0200294 reg = <0x01c20054 0x4>;
295 clocks = <&ahb>;
Chen-Yu Tsai06067a22014-02-03 09:51:44 +0800296 clock-output-names = "apb0";
Maxime Ripardde7dc932013-07-25 21:12:52 +0200297 };
298
Chen-Yu Tsai06067a22014-02-03 09:51:44 +0800299 apb0_gates: clk@01c20068 {
Maxime Ripardde7dc932013-07-25 21:12:52 +0200300 #clock-cells = <1>;
301 compatible = "allwinner,sun7i-a20-apb0-gates-clk";
302 reg = <0x01c20068 0x4>;
303 clocks = <&apb0>;
304 clock-output-names = "apb0_codec", "apb0_spdif",
305 "apb0_ac97", "apb0_iis0", "apb0_iis1",
306 "apb0_pio", "apb0_ir0", "apb0_ir1",
307 "apb0_iis2", "apb0_keypad";
308 };
309
Emilio Lópezacbcc0f2014-11-06 11:40:30 +0800310 apb1: clk@01c20058 {
Maxime Ripardde7dc932013-07-25 21:12:52 +0200311 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100312 compatible = "allwinner,sun4i-a10-apb1-clk";
Maxime Ripardde7dc932013-07-25 21:12:52 +0200313 reg = <0x01c20058 0x4>;
Emilio Lópezacbcc0f2014-11-06 11:40:30 +0800314 clocks = <&osc24M>, <&pll6 1>, <&osc32k>;
Chen-Yu Tsai06067a22014-02-03 09:51:44 +0800315 clock-output-names = "apb1";
Maxime Ripardde7dc932013-07-25 21:12:52 +0200316 };
317
Chen-Yu Tsai06067a22014-02-03 09:51:44 +0800318 apb1_gates: clk@01c2006c {
Maxime Ripardde7dc932013-07-25 21:12:52 +0200319 #clock-cells = <1>;
320 compatible = "allwinner,sun7i-a20-apb1-gates-clk";
321 reg = <0x01c2006c 0x4>;
322 clocks = <&apb1>;
323 clock-output-names = "apb1_i2c0", "apb1_i2c1",
324 "apb1_i2c2", "apb1_i2c3", "apb1_can",
325 "apb1_scr", "apb1_ps20", "apb1_ps21",
326 "apb1_i2c4", "apb1_uart0", "apb1_uart1",
327 "apb1_uart2", "apb1_uart3", "apb1_uart4",
328 "apb1_uart5", "apb1_uart6", "apb1_uart7";
329 };
Emilio López1c92b952013-12-23 00:32:43 -0300330
331 nand_clk: clk@01c20080 {
332 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100333 compatible = "allwinner,sun4i-a10-mod0-clk";
Emilio López1c92b952013-12-23 00:32:43 -0300334 reg = <0x01c20080 0x4>;
335 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
336 clock-output-names = "nand";
337 };
338
339 ms_clk: clk@01c20084 {
340 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100341 compatible = "allwinner,sun4i-a10-mod0-clk";
Emilio López1c92b952013-12-23 00:32:43 -0300342 reg = <0x01c20084 0x4>;
343 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
344 clock-output-names = "ms";
345 };
346
347 mmc0_clk: clk@01c20088 {
348 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100349 compatible = "allwinner,sun4i-a10-mod0-clk";
Emilio López1c92b952013-12-23 00:32:43 -0300350 reg = <0x01c20088 0x4>;
351 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
352 clock-output-names = "mmc0";
353 };
354
355 mmc1_clk: clk@01c2008c {
356 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100357 compatible = "allwinner,sun4i-a10-mod0-clk";
Emilio López1c92b952013-12-23 00:32:43 -0300358 reg = <0x01c2008c 0x4>;
359 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
360 clock-output-names = "mmc1";
361 };
362
363 mmc2_clk: clk@01c20090 {
364 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100365 compatible = "allwinner,sun4i-a10-mod0-clk";
Emilio López1c92b952013-12-23 00:32:43 -0300366 reg = <0x01c20090 0x4>;
367 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
368 clock-output-names = "mmc2";
369 };
370
371 mmc3_clk: clk@01c20094 {
372 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100373 compatible = "allwinner,sun4i-a10-mod0-clk";
Emilio López1c92b952013-12-23 00:32:43 -0300374 reg = <0x01c20094 0x4>;
375 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
376 clock-output-names = "mmc3";
377 };
378
379 ts_clk: clk@01c20098 {
380 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100381 compatible = "allwinner,sun4i-a10-mod0-clk";
Emilio López1c92b952013-12-23 00:32:43 -0300382 reg = <0x01c20098 0x4>;
383 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
384 clock-output-names = "ts";
385 };
386
387 ss_clk: clk@01c2009c {
388 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100389 compatible = "allwinner,sun4i-a10-mod0-clk";
Emilio López1c92b952013-12-23 00:32:43 -0300390 reg = <0x01c2009c 0x4>;
391 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
392 clock-output-names = "ss";
393 };
394
395 spi0_clk: clk@01c200a0 {
396 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100397 compatible = "allwinner,sun4i-a10-mod0-clk";
Emilio López1c92b952013-12-23 00:32:43 -0300398 reg = <0x01c200a0 0x4>;
399 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
400 clock-output-names = "spi0";
401 };
402
403 spi1_clk: clk@01c200a4 {
404 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100405 compatible = "allwinner,sun4i-a10-mod0-clk";
Emilio López1c92b952013-12-23 00:32:43 -0300406 reg = <0x01c200a4 0x4>;
407 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
408 clock-output-names = "spi1";
409 };
410
411 spi2_clk: clk@01c200a8 {
412 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100413 compatible = "allwinner,sun4i-a10-mod0-clk";
Emilio López1c92b952013-12-23 00:32:43 -0300414 reg = <0x01c200a8 0x4>;
415 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
416 clock-output-names = "spi2";
417 };
418
419 pata_clk: clk@01c200ac {
420 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100421 compatible = "allwinner,sun4i-a10-mod0-clk";
Emilio López1c92b952013-12-23 00:32:43 -0300422 reg = <0x01c200ac 0x4>;
423 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
424 clock-output-names = "pata";
425 };
426
427 ir0_clk: clk@01c200b0 {
428 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100429 compatible = "allwinner,sun4i-a10-mod0-clk";
Emilio López1c92b952013-12-23 00:32:43 -0300430 reg = <0x01c200b0 0x4>;
431 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
432 clock-output-names = "ir0";
433 };
434
435 ir1_clk: clk@01c200b4 {
436 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100437 compatible = "allwinner,sun4i-a10-mod0-clk";
Emilio López1c92b952013-12-23 00:32:43 -0300438 reg = <0x01c200b4 0x4>;
439 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
440 clock-output-names = "ir1";
441 };
442
Roman Byshko434e41b2014-02-07 16:21:53 +0100443 usb_clk: clk@01c200cc {
444 #clock-cells = <1>;
445 #reset-cells = <1>;
446 compatible = "allwinner,sun4i-a10-usb-clk";
447 reg = <0x01c200cc 0x4>;
448 clocks = <&pll6 1>;
449 clock-output-names = "usb_ohci0", "usb_ohci1", "usb_phy";
450 };
451
Emilio López1c92b952013-12-23 00:32:43 -0300452 spi3_clk: clk@01c200d4 {
453 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100454 compatible = "allwinner,sun4i-a10-mod0-clk";
Emilio López1c92b952013-12-23 00:32:43 -0300455 reg = <0x01c200d4 0x4>;
456 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
457 clock-output-names = "spi3";
458 };
Emilio López118c07a2013-12-23 00:32:44 -0300459
460 mbus_clk: clk@01c2015c {
461 #clock-cells = <0>;
Maxime Ripard7868c5e2014-07-16 23:45:48 +0200462 compatible = "allwinner,sun5i-a13-mbus-clk";
Emilio López118c07a2013-12-23 00:32:44 -0300463 reg = <0x01c2015c 0x4>;
464 clocks = <&osc24M>, <&pll6 2>, <&pll5 1>;
465 clock-output-names = "mbus";
466 };
Chen-Yu Tsai0aff0372014-01-01 10:30:48 +0800467
468 /*
Chen-Yu Tsaidaed5a82014-02-10 18:35:48 +0800469 * The following two are dummy clocks, placeholders used in the gmac_tx
470 * clock. The gmac driver will choose one parent depending on the PHY
471 * interface mode, using clk_set_rate auto-reparenting.
472 * The actual TX clock rate is not controlled by the gmac_tx clock.
473 */
474 mii_phy_tx_clk: clk@2 {
475 #clock-cells = <0>;
476 compatible = "fixed-clock";
477 clock-frequency = <25000000>;
478 clock-output-names = "mii_phy_tx";
479 };
480
481 gmac_int_tx_clk: clk@3 {
482 #clock-cells = <0>;
483 compatible = "fixed-clock";
484 clock-frequency = <125000000>;
485 clock-output-names = "gmac_int_tx";
486 };
487
488 gmac_tx_clk: clk@01c20164 {
489 #clock-cells = <0>;
490 compatible = "allwinner,sun7i-a20-gmac-clk";
491 reg = <0x01c20164 0x4>;
492 clocks = <&mii_phy_tx_clk>, <&gmac_int_tx_clk>;
493 clock-output-names = "gmac_tx";
494 };
495
496 /*
Chen-Yu Tsai0aff0372014-01-01 10:30:48 +0800497 * Dummy clock used by output clocks
498 */
499 osc24M_32k: clk@1 {
500 #clock-cells = <0>;
501 compatible = "fixed-factor-clock";
502 clock-div = <750>;
503 clock-mult = <1>;
504 clocks = <&osc24M>;
505 clock-output-names = "osc24M_32k";
506 };
507
508 clk_out_a: clk@01c201f0 {
509 #clock-cells = <0>;
510 compatible = "allwinner,sun7i-a20-out-clk";
511 reg = <0x01c201f0 0x4>;
512 clocks = <&osc24M_32k>, <&osc32k>, <&osc24M>;
513 clock-output-names = "clk_out_a";
514 };
515
516 clk_out_b: clk@01c201f4 {
517 #clock-cells = <0>;
518 compatible = "allwinner,sun7i-a20-out-clk";
519 reg = <0x01c201f4 0x4>;
520 clocks = <&osc24M_32k>, <&osc32k>, <&osc24M>;
521 clock-output-names = "clk_out_b";
522 };
Maxime Ripard4790ecf2013-07-17 10:07:10 +0200523 };
524
525 soc@01c00000 {
526 compatible = "simple-bus";
527 #address-cells = <1>;
528 #size-cells = <1>;
529 ranges;
530
Carlo Caione8ff973a2014-03-19 20:21:18 +0100531 nmi_intc: interrupt-controller@01c00030 {
532 compatible = "allwinner,sun7i-a20-sc-nmi";
533 interrupt-controller;
534 #interrupt-cells = <2>;
535 reg = <0x01c00030 0x0c>;
Maxime Ripard19882b82014-12-16 22:59:58 +0100536 interrupts = <GIC_SPI 0 IRQ_TYPE_LEVEL_HIGH>;
Carlo Caione8ff973a2014-03-19 20:21:18 +0100537 };
538
Emilio López316e0b02014-08-04 17:09:59 -0300539 dma: dma-controller@01c02000 {
540 compatible = "allwinner,sun4i-a10-dma";
541 reg = <0x01c02000 0x1000>;
Maxime Ripard19882b82014-12-16 22:59:58 +0100542 interrupts = <GIC_SPI 27 IRQ_TYPE_LEVEL_HIGH>;
Emilio López316e0b02014-08-04 17:09:59 -0300543 clocks = <&ahb_gates 6>;
544 #dma-cells = <2>;
545 };
546
Maxime Ripard36ab3e72014-02-22 22:35:54 +0100547 spi0: spi@01c05000 {
548 compatible = "allwinner,sun4i-a10-spi";
549 reg = <0x01c05000 0x1000>;
Maxime Ripard19882b82014-12-16 22:59:58 +0100550 interrupts = <GIC_SPI 10 IRQ_TYPE_LEVEL_HIGH>;
Maxime Ripard36ab3e72014-02-22 22:35:54 +0100551 clocks = <&ahb_gates 20>, <&spi0_clk>;
552 clock-names = "ahb", "mod";
Maxime Ripard1f9f6a72014-12-16 22:59:56 +0100553 dmas = <&dma SUN4I_DMA_DEDICATED 27>,
554 <&dma SUN4I_DMA_DEDICATED 26>;
Emilio Lópezffec7212014-08-04 17:10:02 -0300555 dma-names = "rx", "tx";
Maxime Ripard36ab3e72014-02-22 22:35:54 +0100556 status = "disabled";
557 #address-cells = <1>;
558 #size-cells = <0>;
559 };
560
561 spi1: spi@01c06000 {
562 compatible = "allwinner,sun4i-a10-spi";
563 reg = <0x01c06000 0x1000>;
Maxime Ripard19882b82014-12-16 22:59:58 +0100564 interrupts = <GIC_SPI 11 IRQ_TYPE_LEVEL_HIGH>;
Maxime Ripard36ab3e72014-02-22 22:35:54 +0100565 clocks = <&ahb_gates 21>, <&spi1_clk>;
566 clock-names = "ahb", "mod";
Maxime Ripard1f9f6a72014-12-16 22:59:56 +0100567 dmas = <&dma SUN4I_DMA_DEDICATED 9>,
568 <&dma SUN4I_DMA_DEDICATED 8>;
Emilio Lópezffec7212014-08-04 17:10:02 -0300569 dma-names = "rx", "tx";
Maxime Ripard36ab3e72014-02-22 22:35:54 +0100570 status = "disabled";
571 #address-cells = <1>;
572 #size-cells = <0>;
573 };
574
Maxime Ripard2e804d02013-09-11 11:10:06 +0200575 emac: ethernet@01c0b000 {
Maxime Ripard1c70e092014-02-02 14:49:13 +0100576 compatible = "allwinner,sun4i-a10-emac";
Maxime Ripard2e804d02013-09-11 11:10:06 +0200577 reg = <0x01c0b000 0x1000>;
Maxime Ripard19882b82014-12-16 22:59:58 +0100578 interrupts = <GIC_SPI 55 IRQ_TYPE_LEVEL_HIGH>;
Maxime Ripard2e804d02013-09-11 11:10:06 +0200579 clocks = <&ahb_gates 17>;
580 status = "disabled";
581 };
582
583 mdio@01c0b080 {
Maxime Ripard1c70e092014-02-02 14:49:13 +0100584 compatible = "allwinner,sun4i-a10-mdio";
Maxime Ripard2e804d02013-09-11 11:10:06 +0200585 reg = <0x01c0b080 0x14>;
586 status = "disabled";
587 #address-cells = <1>;
588 #size-cells = <0>;
589 };
590
Hans de Goededd29ce52014-05-02 17:57:26 +0200591 mmc0: mmc@01c0f000 {
592 compatible = "allwinner,sun5i-a13-mmc";
593 reg = <0x01c0f000 0x1000>;
594 clocks = <&ahb_gates 8>, <&mmc0_clk>;
595 clock-names = "ahb", "mmc";
Maxime Ripard19882b82014-12-16 22:59:58 +0100596 interrupts = <GIC_SPI 32 IRQ_TYPE_LEVEL_HIGH>;
Hans de Goededd29ce52014-05-02 17:57:26 +0200597 status = "disabled";
598 };
599
600 mmc1: mmc@01c10000 {
601 compatible = "allwinner,sun5i-a13-mmc";
602 reg = <0x01c10000 0x1000>;
603 clocks = <&ahb_gates 9>, <&mmc1_clk>;
604 clock-names = "ahb", "mmc";
Maxime Ripard19882b82014-12-16 22:59:58 +0100605 interrupts = <GIC_SPI 33 IRQ_TYPE_LEVEL_HIGH>;
Hans de Goededd29ce52014-05-02 17:57:26 +0200606 status = "disabled";
607 };
608
609 mmc2: mmc@01c11000 {
610 compatible = "allwinner,sun5i-a13-mmc";
611 reg = <0x01c11000 0x1000>;
612 clocks = <&ahb_gates 10>, <&mmc2_clk>;
613 clock-names = "ahb", "mmc";
Maxime Ripard19882b82014-12-16 22:59:58 +0100614 interrupts = <GIC_SPI 34 IRQ_TYPE_LEVEL_HIGH>;
Hans de Goededd29ce52014-05-02 17:57:26 +0200615 status = "disabled";
616 };
617
618 mmc3: mmc@01c12000 {
619 compatible = "allwinner,sun5i-a13-mmc";
620 reg = <0x01c12000 0x1000>;
621 clocks = <&ahb_gates 11>, <&mmc3_clk>;
622 clock-names = "ahb", "mmc";
Maxime Ripard19882b82014-12-16 22:59:58 +0100623 interrupts = <GIC_SPI 35 IRQ_TYPE_LEVEL_HIGH>;
Hans de Goededd29ce52014-05-02 17:57:26 +0200624 status = "disabled";
625 };
626
Roman Byshko9debd0a2014-03-01 20:26:25 +0100627 usbphy: phy@01c13400 {
628 #phy-cells = <1>;
629 compatible = "allwinner,sun7i-a20-usb-phy";
630 reg = <0x01c13400 0x10 0x01c14800 0x4 0x01c1c800 0x4>;
631 reg-names = "phy_ctrl", "pmu1", "pmu2";
632 clocks = <&usb_clk 8>;
633 clock-names = "usb_phy";
Roman Byshko134c60a2014-11-10 19:55:08 +0100634 resets = <&usb_clk 0>, <&usb_clk 1>, <&usb_clk 2>;
635 reset-names = "usb0_reset", "usb1_reset", "usb2_reset";
Roman Byshko9debd0a2014-03-01 20:26:25 +0100636 status = "disabled";
637 };
638
639 ehci0: usb@01c14000 {
640 compatible = "allwinner,sun7i-a20-ehci", "generic-ehci";
641 reg = <0x01c14000 0x100>;
Maxime Ripard19882b82014-12-16 22:59:58 +0100642 interrupts = <GIC_SPI 39 IRQ_TYPE_LEVEL_HIGH>;
Roman Byshko9debd0a2014-03-01 20:26:25 +0100643 clocks = <&ahb_gates 1>;
644 phys = <&usbphy 1>;
645 phy-names = "usb";
646 status = "disabled";
647 };
648
649 ohci0: usb@01c14400 {
650 compatible = "allwinner,sun7i-a20-ohci", "generic-ohci";
651 reg = <0x01c14400 0x100>;
Maxime Ripard19882b82014-12-16 22:59:58 +0100652 interrupts = <GIC_SPI 64 IRQ_TYPE_LEVEL_HIGH>;
Roman Byshko9debd0a2014-03-01 20:26:25 +0100653 clocks = <&usb_clk 6>, <&ahb_gates 2>;
654 phys = <&usbphy 1>;
655 phy-names = "usb";
656 status = "disabled";
657 };
658
Maxime Ripard36ab3e72014-02-22 22:35:54 +0100659 spi2: spi@01c17000 {
660 compatible = "allwinner,sun4i-a10-spi";
661 reg = <0x01c17000 0x1000>;
Maxime Ripard19882b82014-12-16 22:59:58 +0100662 interrupts = <GIC_SPI 12 IRQ_TYPE_LEVEL_HIGH>;
Maxime Ripard36ab3e72014-02-22 22:35:54 +0100663 clocks = <&ahb_gates 22>, <&spi2_clk>;
664 clock-names = "ahb", "mod";
Maxime Ripard1f9f6a72014-12-16 22:59:56 +0100665 dmas = <&dma SUN4I_DMA_DEDICATED 29>,
666 <&dma SUN4I_DMA_DEDICATED 28>;
Emilio Lópezffec7212014-08-04 17:10:02 -0300667 dma-names = "rx", "tx";
Maxime Ripard36ab3e72014-02-22 22:35:54 +0100668 status = "disabled";
669 #address-cells = <1>;
670 #size-cells = <0>;
671 };
672
Hans de Goede902febf2014-03-01 20:26:22 +0100673 ahci: sata@01c18000 {
674 compatible = "allwinner,sun4i-a10-ahci";
675 reg = <0x01c18000 0x1000>;
Maxime Ripard19882b82014-12-16 22:59:58 +0100676 interrupts = <GIC_SPI 56 IRQ_TYPE_LEVEL_HIGH>;
Hans de Goede902febf2014-03-01 20:26:22 +0100677 clocks = <&pll6 0>, <&ahb_gates 25>;
678 status = "disabled";
679 };
680
Roman Byshko9debd0a2014-03-01 20:26:25 +0100681 ehci1: usb@01c1c000 {
682 compatible = "allwinner,sun7i-a20-ehci", "generic-ehci";
683 reg = <0x01c1c000 0x100>;
Maxime Ripard19882b82014-12-16 22:59:58 +0100684 interrupts = <GIC_SPI 40 IRQ_TYPE_LEVEL_HIGH>;
Roman Byshko9debd0a2014-03-01 20:26:25 +0100685 clocks = <&ahb_gates 3>;
686 phys = <&usbphy 2>;
687 phy-names = "usb";
688 status = "disabled";
689 };
690
691 ohci1: usb@01c1c400 {
692 compatible = "allwinner,sun7i-a20-ohci", "generic-ohci";
693 reg = <0x01c1c400 0x100>;
Maxime Ripard19882b82014-12-16 22:59:58 +0100694 interrupts = <GIC_SPI 65 IRQ_TYPE_LEVEL_HIGH>;
Roman Byshko9debd0a2014-03-01 20:26:25 +0100695 clocks = <&usb_clk 7>, <&ahb_gates 4>;
696 phys = <&usbphy 2>;
697 phy-names = "usb";
698 status = "disabled";
699 };
700
Maxime Ripard36ab3e72014-02-22 22:35:54 +0100701 spi3: spi@01c1f000 {
702 compatible = "allwinner,sun4i-a10-spi";
703 reg = <0x01c1f000 0x1000>;
Maxime Ripard19882b82014-12-16 22:59:58 +0100704 interrupts = <GIC_SPI 50 IRQ_TYPE_LEVEL_HIGH>;
Maxime Ripard36ab3e72014-02-22 22:35:54 +0100705 clocks = <&ahb_gates 23>, <&spi3_clk>;
706 clock-names = "ahb", "mod";
Maxime Ripard1f9f6a72014-12-16 22:59:56 +0100707 dmas = <&dma SUN4I_DMA_DEDICATED 31>,
708 <&dma SUN4I_DMA_DEDICATED 30>;
Emilio Lópezffec7212014-08-04 17:10:02 -0300709 dma-names = "rx", "tx";
Maxime Ripard36ab3e72014-02-22 22:35:54 +0100710 status = "disabled";
711 #address-cells = <1>;
712 #size-cells = <0>;
713 };
714
Maxime Ripard17eac032013-07-24 23:46:11 +0200715 pio: pinctrl@01c20800 {
716 compatible = "allwinner,sun7i-a20-pinctrl";
717 reg = <0x01c20800 0x400>;
Maxime Ripard19882b82014-12-16 22:59:58 +0100718 interrupts = <GIC_SPI 28 IRQ_TYPE_LEVEL_HIGH>;
Maxime Ripardde7dc932013-07-25 21:12:52 +0200719 clocks = <&apb0_gates 5>;
Maxime Ripard17eac032013-07-24 23:46:11 +0200720 gpio-controller;
721 interrupt-controller;
Chen-Yu Tsai7d4ff962014-06-30 23:57:51 +0200722 #interrupt-cells = <2>;
Maxime Ripard17eac032013-07-24 23:46:11 +0200723 #size-cells = <0>;
724 #gpio-cells = <3>;
Maxime Ripard9f229ba2013-07-25 00:09:47 +0200725
Alexandre Bellonifd7898a2014-04-28 18:17:12 +0200726 pwm0_pins_a: pwm0@0 {
727 allwinner,pins = "PB2";
728 allwinner,function = "pwm";
Maxime Ripard092a0c32014-12-16 22:59:57 +0100729 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
730 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Alexandre Bellonifd7898a2014-04-28 18:17:12 +0200731 };
732
733 pwm1_pins_a: pwm1@0 {
734 allwinner,pins = "PI3";
735 allwinner,function = "pwm";
Maxime Ripard092a0c32014-12-16 22:59:57 +0100736 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
737 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Alexandre Bellonifd7898a2014-04-28 18:17:12 +0200738 };
739
Maxime Ripard9f229ba2013-07-25 00:09:47 +0200740 uart0_pins_a: uart0@0 {
741 allwinner,pins = "PB22", "PB23";
742 allwinner,function = "uart0";
Maxime Ripard092a0c32014-12-16 22:59:57 +0100743 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
744 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Maxime Ripard9f229ba2013-07-25 00:09:47 +0200745 };
746
Chen-Yu Tsai4261ec42014-01-14 22:49:50 +0800747 uart2_pins_a: uart2@0 {
748 allwinner,pins = "PI16", "PI17", "PI18", "PI19";
749 allwinner,function = "uart2";
Maxime Ripard092a0c32014-12-16 22:59:57 +0100750 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
751 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Chen-Yu Tsai4261ec42014-01-14 22:49:50 +0800752 };
753
Wills Wang7b5bace2014-08-19 15:33:00 +0800754 uart3_pins_a: uart3@0 {
755 allwinner,pins = "PG6", "PG7", "PG8", "PG9";
756 allwinner,function = "uart3";
Maxime Ripard092a0c32014-12-16 22:59:57 +0100757 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
758 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Wills Wang7b5bace2014-08-19 15:33:00 +0800759 };
760
Hans de Goede0510e4b2014-10-01 09:26:05 +0200761 uart3_pins_b: uart3@1 {
762 allwinner,pins = "PH0", "PH1";
763 allwinner,function = "uart3";
Maxime Ripard092a0c32014-12-16 22:59:57 +0100764 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
765 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Hans de Goede0510e4b2014-10-01 09:26:05 +0200766 };
767
Wills Wang7b5bace2014-08-19 15:33:00 +0800768 uart4_pins_a: uart4@0 {
769 allwinner,pins = "PG10", "PG11";
770 allwinner,function = "uart4";
Maxime Ripard092a0c32014-12-16 22:59:57 +0100771 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
772 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Wills Wang7b5bace2014-08-19 15:33:00 +0800773 };
774
775 uart5_pins_a: uart5@0 {
776 allwinner,pins = "PI10", "PI11";
777 allwinner,function = "uart5";
Maxime Ripard092a0c32014-12-16 22:59:57 +0100778 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
779 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Wills Wang7b5bace2014-08-19 15:33:00 +0800780 };
781
Maxime Ripard9f229ba2013-07-25 00:09:47 +0200782 uart6_pins_a: uart6@0 {
783 allwinner,pins = "PI12", "PI13";
784 allwinner,function = "uart6";
Maxime Ripard092a0c32014-12-16 22:59:57 +0100785 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
786 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Maxime Ripard9f229ba2013-07-25 00:09:47 +0200787 };
788
789 uart7_pins_a: uart7@0 {
790 allwinner,pins = "PI20", "PI21";
791 allwinner,function = "uart7";
Maxime Ripard092a0c32014-12-16 22:59:57 +0100792 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
793 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Maxime Ripard9f229ba2013-07-25 00:09:47 +0200794 };
Maxime Ripard756084c2013-09-11 11:10:07 +0200795
Maxime Riparde5496a32013-08-31 23:08:49 +0200796 i2c0_pins_a: i2c0@0 {
797 allwinner,pins = "PB0", "PB1";
798 allwinner,function = "i2c0";
Maxime Ripard092a0c32014-12-16 22:59:57 +0100799 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
800 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Maxime Riparde5496a32013-08-31 23:08:49 +0200801 };
802
803 i2c1_pins_a: i2c1@0 {
804 allwinner,pins = "PB18", "PB19";
805 allwinner,function = "i2c1";
Maxime Ripard092a0c32014-12-16 22:59:57 +0100806 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
807 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Maxime Riparde5496a32013-08-31 23:08:49 +0200808 };
809
810 i2c2_pins_a: i2c2@0 {
811 allwinner,pins = "PB20", "PB21";
812 allwinner,function = "i2c2";
Maxime Ripard092a0c32014-12-16 22:59:57 +0100813 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
814 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Maxime Riparde5496a32013-08-31 23:08:49 +0200815 };
816
Wills Wang7b5bace2014-08-19 15:33:00 +0800817 i2c3_pins_a: i2c3@0 {
818 allwinner,pins = "PI0", "PI1";
819 allwinner,function = "i2c3";
Maxime Ripard092a0c32014-12-16 22:59:57 +0100820 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
821 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Wills Wang7b5bace2014-08-19 15:33:00 +0800822 };
823
Maxime Ripard756084c2013-09-11 11:10:07 +0200824 emac_pins_a: emac0@0 {
825 allwinner,pins = "PA0", "PA1", "PA2",
826 "PA3", "PA4", "PA5", "PA6",
827 "PA7", "PA8", "PA9", "PA10",
828 "PA11", "PA12", "PA13", "PA14",
829 "PA15", "PA16";
830 allwinner,function = "emac";
Maxime Ripard092a0c32014-12-16 22:59:57 +0100831 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
832 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Maxime Ripard756084c2013-09-11 11:10:07 +0200833 };
Chen-Yu Tsaif2e07592014-01-01 10:30:50 +0800834
835 clk_out_a_pins_a: clk_out_a@0 {
836 allwinner,pins = "PI12";
837 allwinner,function = "clk_out_a";
Maxime Ripard092a0c32014-12-16 22:59:57 +0100838 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
839 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Chen-Yu Tsaif2e07592014-01-01 10:30:50 +0800840 };
841
842 clk_out_b_pins_a: clk_out_b@0 {
843 allwinner,pins = "PI13";
844 allwinner,function = "clk_out_b";
Maxime Ripard092a0c32014-12-16 22:59:57 +0100845 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
846 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Chen-Yu Tsaif2e07592014-01-01 10:30:50 +0800847 };
Chen-Yu Tsai129ccbc2014-02-10 18:35:50 +0800848
849 gmac_pins_mii_a: gmac_mii@0 {
850 allwinner,pins = "PA0", "PA1", "PA2",
851 "PA3", "PA4", "PA5", "PA6",
852 "PA7", "PA8", "PA9", "PA10",
853 "PA11", "PA12", "PA13", "PA14",
854 "PA15", "PA16";
855 allwinner,function = "gmac";
Maxime Ripard092a0c32014-12-16 22:59:57 +0100856 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
857 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Chen-Yu Tsai129ccbc2014-02-10 18:35:50 +0800858 };
859
860 gmac_pins_rgmii_a: gmac_rgmii@0 {
861 allwinner,pins = "PA0", "PA1", "PA2",
862 "PA3", "PA4", "PA5", "PA6",
863 "PA7", "PA8", "PA10",
864 "PA11", "PA12", "PA13",
865 "PA15", "PA16";
866 allwinner,function = "gmac";
867 /*
868 * data lines in RGMII mode use DDR mode
869 * and need a higher signal drive strength
870 */
Maxime Ripard092a0c32014-12-16 22:59:57 +0100871 allwinner,drive = <SUN4I_PINCTRL_40_MA>;
872 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Chen-Yu Tsai129ccbc2014-02-10 18:35:50 +0800873 };
Maxime Ripard412f2c62014-02-22 22:35:58 +0100874
Hans de Goede2dad53b2014-10-01 09:26:04 +0200875 spi0_pins_a: spi0@0 {
876 allwinner,pins = "PI10", "PI11", "PI12", "PI13", "PI14";
877 allwinner,function = "spi0";
Maxime Ripard092a0c32014-12-16 22:59:57 +0100878 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
879 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Hans de Goede2dad53b2014-10-01 09:26:04 +0200880 };
881
Maxime Ripard412f2c62014-02-22 22:35:58 +0100882 spi1_pins_a: spi1@0 {
883 allwinner,pins = "PI16", "PI17", "PI18", "PI19";
884 allwinner,function = "spi1";
Maxime Ripard092a0c32014-12-16 22:59:57 +0100885 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
886 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Maxime Ripard412f2c62014-02-22 22:35:58 +0100887 };
888
889 spi2_pins_a: spi2@0 {
890 allwinner,pins = "PC19", "PC20", "PC21", "PC22";
891 allwinner,function = "spi2";
Maxime Ripard092a0c32014-12-16 22:59:57 +0100892 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
893 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Maxime Ripard412f2c62014-02-22 22:35:58 +0100894 };
Hans de Goede11fbedf2014-05-02 17:57:27 +0200895
Wills Wang7b5bace2014-08-19 15:33:00 +0800896 spi2_pins_b: spi2@1 {
897 allwinner,pins = "PB14", "PB15", "PB16", "PB17";
898 allwinner,function = "spi2";
Maxime Ripard092a0c32014-12-16 22:59:57 +0100899 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
900 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Wills Wang7b5bace2014-08-19 15:33:00 +0800901 };
902
Hans de Goede11fbedf2014-05-02 17:57:27 +0200903 mmc0_pins_a: mmc0@0 {
904 allwinner,pins = "PF0","PF1","PF2","PF3","PF4","PF5";
905 allwinner,function = "mmc0";
Maxime Ripard092a0c32014-12-16 22:59:57 +0100906 allwinner,drive = <SUN4I_PINCTRL_30_MA>;
907 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Hans de Goede11fbedf2014-05-02 17:57:27 +0200908 };
909
910 mmc0_cd_pin_reference_design: mmc0_cd_pin@0 {
911 allwinner,pins = "PH1";
912 allwinner,function = "gpio_in";
Maxime Ripard092a0c32014-12-16 22:59:57 +0100913 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
914 allwinner,pull = <SUN4I_PINCTRL_PULL_UP>;
Hans de Goede11fbedf2014-05-02 17:57:27 +0200915 };
916
Hans de Goede8fa82322014-10-01 16:25:36 +0200917 mmc2_pins_a: mmc2@0 {
918 allwinner,pins = "PC6","PC7","PC8","PC9","PC10","PC11";
919 allwinner,function = "mmc2";
Maxime Ripard092a0c32014-12-16 22:59:57 +0100920 allwinner,drive = <SUN4I_PINCTRL_30_MA>;
921 allwinner,pull = <SUN4I_PINCTRL_PULL_UP>;
Hans de Goede8fa82322014-10-01 16:25:36 +0200922 };
923
Hans de Goede11fbedf2014-05-02 17:57:27 +0200924 mmc3_pins_a: mmc3@0 {
925 allwinner,pins = "PI4","PI5","PI6","PI7","PI8","PI9";
926 allwinner,function = "mmc3";
Maxime Ripard092a0c32014-12-16 22:59:57 +0100927 allwinner,drive = <SUN4I_PINCTRL_30_MA>;
928 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Hans de Goede11fbedf2014-05-02 17:57:27 +0200929 };
Alexander Bersenev0fc2b7a2014-06-09 00:08:11 +0600930
931 ir0_pins_a: ir0@0 {
932 allwinner,pins = "PB3","PB4";
933 allwinner,function = "ir0";
Maxime Ripard092a0c32014-12-16 22:59:57 +0100934 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
935 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Alexander Bersenev0fc2b7a2014-06-09 00:08:11 +0600936 };
937
938 ir1_pins_a: ir1@0 {
939 allwinner,pins = "PB22","PB23";
940 allwinner,function = "ir1";
Maxime Ripard092a0c32014-12-16 22:59:57 +0100941 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
942 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Alexander Bersenev0fc2b7a2014-06-09 00:08:11 +0600943 };
Maxime Ripard17eac032013-07-24 23:46:11 +0200944 };
945
Maxime Ripard4790ecf2013-07-17 10:07:10 +0200946 timer@01c20c00 {
Maxime Ripardb4f26442014-02-06 10:40:32 +0100947 compatible = "allwinner,sun4i-a10-timer";
Maxime Ripard4790ecf2013-07-17 10:07:10 +0200948 reg = <0x01c20c00 0x90>;
Maxime Ripard19882b82014-12-16 22:59:58 +0100949 interrupts = <GIC_SPI 22 IRQ_TYPE_LEVEL_HIGH>,
950 <GIC_SPI 23 IRQ_TYPE_LEVEL_HIGH>,
951 <GIC_SPI 24 IRQ_TYPE_LEVEL_HIGH>,
952 <GIC_SPI 25 IRQ_TYPE_LEVEL_HIGH>,
953 <GIC_SPI 67 IRQ_TYPE_LEVEL_HIGH>,
954 <GIC_SPI 68 IRQ_TYPE_LEVEL_HIGH>;
Maxime Ripard4790ecf2013-07-17 10:07:10 +0200955 clocks = <&osc24M>;
956 };
957
958 wdt: watchdog@01c20c90 {
Maxime Ripardca5d04d2014-02-07 22:29:26 +0100959 compatible = "allwinner,sun4i-a10-wdt";
Maxime Ripard4790ecf2013-07-17 10:07:10 +0200960 reg = <0x01c20c90 0x10>;
961 };
962
Carlo Caioneb5d905c2013-10-16 20:30:26 +0200963 rtc: rtc@01c20d00 {
964 compatible = "allwinner,sun7i-a20-rtc";
965 reg = <0x01c20d00 0x20>;
Maxime Ripard19882b82014-12-16 22:59:58 +0100966 interrupts = <GIC_SPI 24 IRQ_TYPE_LEVEL_HIGH>;
Carlo Caioneb5d905c2013-10-16 20:30:26 +0200967 };
968
Alexandre Belloni8ec40c22014-04-28 18:17:13 +0200969 pwm: pwm@01c20e00 {
970 compatible = "allwinner,sun7i-a20-pwm";
971 reg = <0x01c20e00 0xc>;
972 clocks = <&osc24M>;
973 #pwm-cells = <3>;
974 status = "disabled";
975 };
976
Alexander Bersenevc1a0ee32014-06-21 17:04:05 +0600977 ir0: ir@01c21800 {
Hans de Goede1715a382014-06-30 23:57:54 +0200978 compatible = "allwinner,sun4i-a10-ir";
Alexander Bersenevc1a0ee32014-06-21 17:04:05 +0600979 clocks = <&apb0_gates 6>, <&ir0_clk>;
980 clock-names = "apb", "ir";
Maxime Ripard19882b82014-12-16 22:59:58 +0100981 interrupts = <GIC_SPI 5 IRQ_TYPE_LEVEL_HIGH>;
Alexander Bersenevc1a0ee32014-06-21 17:04:05 +0600982 reg = <0x01c21800 0x40>;
983 status = "disabled";
984 };
985
986 ir1: ir@01c21c00 {
Hans de Goede1715a382014-06-30 23:57:54 +0200987 compatible = "allwinner,sun4i-a10-ir";
Alexander Bersenevc1a0ee32014-06-21 17:04:05 +0600988 clocks = <&apb0_gates 7>, <&ir1_clk>;
989 clock-names = "apb", "ir";
Maxime Ripard19882b82014-12-16 22:59:58 +0100990 interrupts = <GIC_SPI 6 IRQ_TYPE_LEVEL_HIGH>;
Alexander Bersenevc1a0ee32014-06-21 17:04:05 +0600991 reg = <0x01c21c00 0x40>;
992 status = "disabled";
993 };
994
Hans de Goedea6a2d642014-12-23 11:13:22 +0100995 lradc: lradc@01c22800 {
996 compatible = "allwinner,sun4i-a10-lradc-keys";
997 reg = <0x01c22800 0x100>;
Maxime Ripard19882b82014-12-16 22:59:58 +0100998 interrupts = <GIC_SPI 31 IRQ_TYPE_LEVEL_HIGH>;
Hans de Goedea6a2d642014-12-23 11:13:22 +0100999 status = "disabled";
1000 };
1001
Oliver Schinagl2bad9692013-09-03 12:33:28 +02001002 sid: eeprom@01c23800 {
1003 compatible = "allwinner,sun7i-a20-sid";
1004 reg = <0x01c23800 0x200>;
1005 };
1006
Hans de Goede00f7ed82013-12-31 17:20:52 +01001007 rtp: rtp@01c25000 {
Maxime Ripard40dd8f32014-02-02 14:52:40 +01001008 compatible = "allwinner,sun4i-a10-ts";
Hans de Goede00f7ed82013-12-31 17:20:52 +01001009 reg = <0x01c25000 0x100>;
Maxime Ripard19882b82014-12-16 22:59:58 +01001010 interrupts = <GIC_SPI 29 IRQ_TYPE_LEVEL_HIGH>;
Chen-Yu Tsai41e7afb2015-01-06 10:35:15 +08001011 #thermal-sensor-cells = <0>;
Hans de Goede00f7ed82013-12-31 17:20:52 +01001012 };
1013
Maxime Ripard4790ecf2013-07-17 10:07:10 +02001014 uart0: serial@01c28000 {
1015 compatible = "snps,dw-apb-uart";
1016 reg = <0x01c28000 0x400>;
Maxime Ripard19882b82014-12-16 22:59:58 +01001017 interrupts = <GIC_SPI 1 IRQ_TYPE_LEVEL_HIGH>;
Maxime Ripard4790ecf2013-07-17 10:07:10 +02001018 reg-shift = <2>;
1019 reg-io-width = <4>;
Maxime Ripardde7dc932013-07-25 21:12:52 +02001020 clocks = <&apb1_gates 16>;
Maxime Ripard4790ecf2013-07-17 10:07:10 +02001021 status = "disabled";
1022 };
1023
1024 uart1: serial@01c28400 {
1025 compatible = "snps,dw-apb-uart";
1026 reg = <0x01c28400 0x400>;
Maxime Ripard19882b82014-12-16 22:59:58 +01001027 interrupts = <GIC_SPI 2 IRQ_TYPE_LEVEL_HIGH>;
Maxime Ripard4790ecf2013-07-17 10:07:10 +02001028 reg-shift = <2>;
1029 reg-io-width = <4>;
Maxime Ripardde7dc932013-07-25 21:12:52 +02001030 clocks = <&apb1_gates 17>;
Maxime Ripard4790ecf2013-07-17 10:07:10 +02001031 status = "disabled";
1032 };
1033
1034 uart2: serial@01c28800 {
1035 compatible = "snps,dw-apb-uart";
1036 reg = <0x01c28800 0x400>;
Maxime Ripard19882b82014-12-16 22:59:58 +01001037 interrupts = <GIC_SPI 3 IRQ_TYPE_LEVEL_HIGH>;
Maxime Ripard4790ecf2013-07-17 10:07:10 +02001038 reg-shift = <2>;
1039 reg-io-width = <4>;
Maxime Ripardde7dc932013-07-25 21:12:52 +02001040 clocks = <&apb1_gates 18>;
Maxime Ripard4790ecf2013-07-17 10:07:10 +02001041 status = "disabled";
1042 };
1043
1044 uart3: serial@01c28c00 {
1045 compatible = "snps,dw-apb-uart";
1046 reg = <0x01c28c00 0x400>;
Maxime Ripard19882b82014-12-16 22:59:58 +01001047 interrupts = <GIC_SPI 4 IRQ_TYPE_LEVEL_HIGH>;
Maxime Ripard4790ecf2013-07-17 10:07:10 +02001048 reg-shift = <2>;
1049 reg-io-width = <4>;
Maxime Ripardde7dc932013-07-25 21:12:52 +02001050 clocks = <&apb1_gates 19>;
Maxime Ripard4790ecf2013-07-17 10:07:10 +02001051 status = "disabled";
1052 };
1053
1054 uart4: serial@01c29000 {
1055 compatible = "snps,dw-apb-uart";
1056 reg = <0x01c29000 0x400>;
Maxime Ripard19882b82014-12-16 22:59:58 +01001057 interrupts = <GIC_SPI 17 IRQ_TYPE_LEVEL_HIGH>;
Maxime Ripard4790ecf2013-07-17 10:07:10 +02001058 reg-shift = <2>;
1059 reg-io-width = <4>;
Maxime Ripardde7dc932013-07-25 21:12:52 +02001060 clocks = <&apb1_gates 20>;
Maxime Ripard4790ecf2013-07-17 10:07:10 +02001061 status = "disabled";
1062 };
1063
1064 uart5: serial@01c29400 {
1065 compatible = "snps,dw-apb-uart";
1066 reg = <0x01c29400 0x400>;
Maxime Ripard19882b82014-12-16 22:59:58 +01001067 interrupts = <GIC_SPI 18 IRQ_TYPE_LEVEL_HIGH>;
Maxime Ripard4790ecf2013-07-17 10:07:10 +02001068 reg-shift = <2>;
1069 reg-io-width = <4>;
Maxime Ripardde7dc932013-07-25 21:12:52 +02001070 clocks = <&apb1_gates 21>;
Maxime Ripard4790ecf2013-07-17 10:07:10 +02001071 status = "disabled";
1072 };
1073
1074 uart6: serial@01c29800 {
1075 compatible = "snps,dw-apb-uart";
1076 reg = <0x01c29800 0x400>;
Maxime Ripard19882b82014-12-16 22:59:58 +01001077 interrupts = <GIC_SPI 19 IRQ_TYPE_LEVEL_HIGH>;
Maxime Ripard4790ecf2013-07-17 10:07:10 +02001078 reg-shift = <2>;
1079 reg-io-width = <4>;
Maxime Ripardde7dc932013-07-25 21:12:52 +02001080 clocks = <&apb1_gates 22>;
Maxime Ripard4790ecf2013-07-17 10:07:10 +02001081 status = "disabled";
1082 };
1083
1084 uart7: serial@01c29c00 {
1085 compatible = "snps,dw-apb-uart";
1086 reg = <0x01c29c00 0x400>;
Maxime Ripard19882b82014-12-16 22:59:58 +01001087 interrupts = <GIC_SPI 20 IRQ_TYPE_LEVEL_HIGH>;
Maxime Ripard4790ecf2013-07-17 10:07:10 +02001088 reg-shift = <2>;
1089 reg-io-width = <4>;
Maxime Ripardde7dc932013-07-25 21:12:52 +02001090 clocks = <&apb1_gates 23>;
Maxime Ripard4790ecf2013-07-17 10:07:10 +02001091 status = "disabled";
1092 };
1093
Maxime Ripard428abbb2013-08-31 23:07:24 +02001094 i2c0: i2c@01c2ac00 {
Maxime Ripardd2755452014-03-31 14:54:58 +02001095 compatible = "allwinner,sun7i-a20-i2c", "allwinner,sun4i-a10-i2c";
Maxime Ripard428abbb2013-08-31 23:07:24 +02001096 reg = <0x01c2ac00 0x400>;
Maxime Ripard19882b82014-12-16 22:59:58 +01001097 interrupts = <GIC_SPI 7 IRQ_TYPE_LEVEL_HIGH>;
Maxime Ripard428abbb2013-08-31 23:07:24 +02001098 clocks = <&apb1_gates 0>;
Maxime Ripard428abbb2013-08-31 23:07:24 +02001099 status = "disabled";
Hans de Goeded1412ae2014-04-13 13:41:05 +02001100 #address-cells = <1>;
1101 #size-cells = <0>;
Maxime Ripard428abbb2013-08-31 23:07:24 +02001102 };
1103
1104 i2c1: i2c@01c2b000 {
Maxime Ripardd2755452014-03-31 14:54:58 +02001105 compatible = "allwinner,sun7i-a20-i2c", "allwinner,sun4i-a10-i2c";
Maxime Ripard428abbb2013-08-31 23:07:24 +02001106 reg = <0x01c2b000 0x400>;
Maxime Ripard19882b82014-12-16 22:59:58 +01001107 interrupts = <GIC_SPI 8 IRQ_TYPE_LEVEL_HIGH>;
Maxime Ripard428abbb2013-08-31 23:07:24 +02001108 clocks = <&apb1_gates 1>;
Maxime Ripard428abbb2013-08-31 23:07:24 +02001109 status = "disabled";
Hans de Goeded1412ae2014-04-13 13:41:05 +02001110 #address-cells = <1>;
1111 #size-cells = <0>;
Maxime Ripard428abbb2013-08-31 23:07:24 +02001112 };
1113
1114 i2c2: i2c@01c2b400 {
Maxime Ripardd2755452014-03-31 14:54:58 +02001115 compatible = "allwinner,sun7i-a20-i2c", "allwinner,sun4i-a10-i2c";
Maxime Ripard428abbb2013-08-31 23:07:24 +02001116 reg = <0x01c2b400 0x400>;
Maxime Ripard19882b82014-12-16 22:59:58 +01001117 interrupts = <GIC_SPI 9 IRQ_TYPE_LEVEL_HIGH>;
Maxime Ripard428abbb2013-08-31 23:07:24 +02001118 clocks = <&apb1_gates 2>;
Maxime Ripard428abbb2013-08-31 23:07:24 +02001119 status = "disabled";
Hans de Goeded1412ae2014-04-13 13:41:05 +02001120 #address-cells = <1>;
1121 #size-cells = <0>;
Maxime Ripard428abbb2013-08-31 23:07:24 +02001122 };
1123
1124 i2c3: i2c@01c2b800 {
Maxime Ripardd2755452014-03-31 14:54:58 +02001125 compatible = "allwinner,sun7i-a20-i2c", "allwinner,sun4i-a10-i2c";
Maxime Ripard428abbb2013-08-31 23:07:24 +02001126 reg = <0x01c2b800 0x400>;
Maxime Ripard19882b82014-12-16 22:59:58 +01001127 interrupts = <GIC_SPI 88 IRQ_TYPE_LEVEL_HIGH>;
Maxime Ripard428abbb2013-08-31 23:07:24 +02001128 clocks = <&apb1_gates 3>;
Maxime Ripard428abbb2013-08-31 23:07:24 +02001129 status = "disabled";
Hans de Goeded1412ae2014-04-13 13:41:05 +02001130 #address-cells = <1>;
1131 #size-cells = <0>;
Maxime Ripard428abbb2013-08-31 23:07:24 +02001132 };
1133
Maxime Riparda3867042014-04-18 21:13:08 +02001134 i2c4: i2c@01c2c000 {
Maxime Ripardd2755452014-03-31 14:54:58 +02001135 compatible = "allwinner,sun7i-a20-i2c", "allwinner,sun4i-a10-i2c";
Maxime Riparda3867042014-04-18 21:13:08 +02001136 reg = <0x01c2c000 0x400>;
Maxime Ripard19882b82014-12-16 22:59:58 +01001137 interrupts = <GIC_SPI 89 IRQ_TYPE_LEVEL_HIGH>;
Maxime Ripard428abbb2013-08-31 23:07:24 +02001138 clocks = <&apb1_gates 15>;
Maxime Ripard428abbb2013-08-31 23:07:24 +02001139 status = "disabled";
Hans de Goeded1412ae2014-04-13 13:41:05 +02001140 #address-cells = <1>;
1141 #size-cells = <0>;
Maxime Ripard428abbb2013-08-31 23:07:24 +02001142 };
1143
Chen-Yu Tsaic40b8d52014-02-10 18:35:49 +08001144 gmac: ethernet@01c50000 {
1145 compatible = "allwinner,sun7i-a20-gmac";
1146 reg = <0x01c50000 0x10000>;
Maxime Ripard19882b82014-12-16 22:59:58 +01001147 interrupts = <GIC_SPI 85 IRQ_TYPE_LEVEL_HIGH>;
Chen-Yu Tsaic40b8d52014-02-10 18:35:49 +08001148 interrupt-names = "macirq";
1149 clocks = <&ahb_gates 49>, <&gmac_tx_clk>;
1150 clock-names = "stmmaceth", "allwinner_gmac_tx";
1151 snps,pbl = <2>;
1152 snps,fixed-burst;
1153 snps,force_sf_dma_mode;
1154 status = "disabled";
1155 #address-cells = <1>;
1156 #size-cells = <0>;
1157 };
1158
Maxime Ripard31f8ad32013-11-07 12:01:48 +01001159 hstimer@01c60000 {
1160 compatible = "allwinner,sun7i-a20-hstimer";
1161 reg = <0x01c60000 0x1000>;
Maxime Ripard19882b82014-12-16 22:59:58 +01001162 interrupts = <GIC_SPI 81 IRQ_TYPE_LEVEL_HIGH>,
1163 <GIC_SPI 82 IRQ_TYPE_LEVEL_HIGH>,
1164 <GIC_SPI 83 IRQ_TYPE_LEVEL_HIGH>,
1165 <GIC_SPI 84 IRQ_TYPE_LEVEL_HIGH>;
Maxime Ripard31f8ad32013-11-07 12:01:48 +01001166 clocks = <&ahb_gates 28>;
1167 };
1168
Maxime Ripard4790ecf2013-07-17 10:07:10 +02001169 gic: interrupt-controller@01c81000 {
1170 compatible = "arm,cortex-a7-gic", "arm,cortex-a15-gic";
1171 reg = <0x01c81000 0x1000>,
1172 <0x01c82000 0x1000>,
1173 <0x01c84000 0x2000>,
1174 <0x01c86000 0x2000>;
1175 interrupt-controller;
1176 #interrupt-cells = <3>;
Maxime Ripard19882b82014-12-16 22:59:58 +01001177 interrupts = <GIC_PPI 9 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>;
Maxime Ripard4790ecf2013-07-17 10:07:10 +02001178 };
1179 };
1180};