blob: 734f07b06b3ecdb1f1c0441790930451e8c0ee42 [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";
Priit Laesf1afc132016-05-10 22:24:07 +030070 clocks = <&ahb_gates 36>, <&ahb_gates 43>, <&ahb_gates 44>,
71 <&de_be0_clk>, <&tcon0_ch0_clk>, <&dram_gates 26>;
Hans de Goede8efc5c22014-11-14 16:34:37 +010072 status = "disabled";
73 };
Hans de Goedefd18c7e2015-01-19 14:05:12 +010074
75 framebuffer@1 {
76 compatible = "allwinner,simple-framebuffer",
77 "simple-framebuffer";
78 allwinner,pipeline = "de_be0-lcd0";
Priit Laesf1afc132016-05-10 22:24:07 +030079 clocks = <&ahb_gates 36>, <&ahb_gates 44>,
80 <&de_be0_clk>, <&tcon0_ch0_clk>,
81 <&dram_gates 26>;
Hans de Goedefd18c7e2015-01-19 14:05:12 +010082 status = "disabled";
83 };
84
85 framebuffer@2 {
86 compatible = "allwinner,simple-framebuffer",
87 "simple-framebuffer";
88 allwinner,pipeline = "de_be0-lcd0-tve0";
Priit Laesf1afc132016-05-10 22:24:07 +030089 clocks = <&ahb_gates 34>, <&ahb_gates 36>, <&ahb_gates 44>,
90 <&de_be0_clk>, <&tcon0_ch0_clk>,
Priit Laes4b8ccef2016-03-24 21:52:17 +020091 <&dram_gates 5>, <&dram_gates 26>;
Hans de Goedefd18c7e2015-01-19 14:05:12 +010092 status = "disabled";
93 };
Hans de Goede8efc5c22014-11-14 16:34:37 +010094 };
95
Maxime Ripard4790ecf2013-07-17 10:07:10 +020096 cpus {
97 #address-cells = <1>;
98 #size-cells = <0>;
99
Chen-Yu Tsaid96b7162015-01-06 10:35:16 +0800100 cpu0: cpu@0 {
Maxime Ripard4790ecf2013-07-17 10:07:10 +0200101 compatible = "arm,cortex-a7";
102 device_type = "cpu";
103 reg = <0>;
Chen-Yu Tsaid96b7162015-01-06 10:35:16 +0800104 clocks = <&cpu>;
105 clock-latency = <244144>; /* 8 32k periods */
106 operating-points = <
Maxime Ripard8358aad2015-05-03 11:54:35 +0200107 /* kHz uV */
108 960000 1400000
109 912000 1400000
110 864000 1300000
111 720000 1200000
112 528000 1100000
113 312000 1000000
Timo Sigurdssoneaeef1a2015-08-04 23:08:01 +0200114 144000 1000000
Chen-Yu Tsaid96b7162015-01-06 10:35:16 +0800115 >;
116 #cooling-cells = <2>;
117 cooling-min-level = <0>;
Chen-Yu Tsai370a9b52015-03-25 00:53:27 +0800118 cooling-max-level = <6>;
Maxime Ripard4790ecf2013-07-17 10:07:10 +0200119 };
120
121 cpu@1 {
122 compatible = "arm,cortex-a7";
123 device_type = "cpu";
124 reg = <1>;
125 };
126 };
127
Chen-Yu Tsaib6d34242015-01-12 12:34:03 +0800128 thermal-zones {
129 cpu_thermal {
130 /* milliseconds */
131 polling-delay-passive = <250>;
132 polling-delay = <1000>;
133 thermal-sensors = <&rtp>;
134
135 cooling-maps {
136 map0 {
137 trip = <&cpu_alert0>;
138 cooling-device = <&cpu0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
139 };
140 };
141
142 trips {
143 cpu_alert0: cpu_alert0 {
144 /* milliCelsius */
145 temperature = <75000>;
146 hysteresis = <2000>;
147 type = "passive";
148 };
149
150 cpu_crit: cpu_crit {
151 /* milliCelsius */
152 temperature = <100000>;
153 hysteresis = <2000>;
154 type = "critical";
155 };
156 };
157 };
158 };
159
Maxime Ripard4790ecf2013-07-17 10:07:10 +0200160 memory {
161 reg = <0x40000000 0x80000000>;
162 };
163
Marc Zyngier79027632014-02-18 14:04:44 +0000164 timer {
165 compatible = "arm,armv7-timer";
Maxime Ripard19882b82014-12-16 22:59:58 +0100166 interrupts = <GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
167 <GIC_PPI 14 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
168 <GIC_PPI 11 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
169 <GIC_PPI 10 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>;
Marc Zyngier79027632014-02-18 14:04:44 +0000170 };
171
Maxime Riparde29ea4d2014-04-17 21:54:41 +0200172 pmu {
173 compatible = "arm,cortex-a7-pmu", "arm,cortex-a15-pmu";
Maxime Ripard19882b82014-12-16 22:59:58 +0100174 interrupts = <GIC_SPI 120 IRQ_TYPE_LEVEL_HIGH>,
175 <GIC_SPI 121 IRQ_TYPE_LEVEL_HIGH>;
Maxime Riparde29ea4d2014-04-17 21:54:41 +0200176 };
177
Maxime Ripard4790ecf2013-07-17 10:07:10 +0200178 clocks {
179 #address-cells = <1>;
180 #size-cells = <1>;
181 ranges;
182
Chen-Yu Tsai06067a22014-02-03 09:51:44 +0800183 osc24M: clk@01c20050 {
Maxime Ripard4790ecf2013-07-17 10:07:10 +0200184 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100185 compatible = "allwinner,sun4i-a10-osc-clk";
Maxime Ripardde7dc932013-07-25 21:12:52 +0200186 reg = <0x01c20050 0x4>;
Maxime Ripard4790ecf2013-07-17 10:07:10 +0200187 clock-frequency = <24000000>;
Chen-Yu Tsai06067a22014-02-03 09:51:44 +0800188 clock-output-names = "osc24M";
Maxime Ripard4790ecf2013-07-17 10:07:10 +0200189 };
190
Priit Laes068655dc2016-05-05 20:39:04 +0300191 osc3M: osc3M_clk {
192 #clock-cells = <0>;
193 compatible = "fixed-factor-clock";
194 clock-div = <8>;
195 clock-mult = <1>;
196 clocks = <&osc24M>;
197 clock-output-names = "osc3M";
198 };
199
Chen-Yu Tsai673fac72014-01-01 10:30:47 +0800200 osc32k: clk@0 {
Maxime Ripard4790ecf2013-07-17 10:07:10 +0200201 #clock-cells = <0>;
202 compatible = "fixed-clock";
203 clock-frequency = <32768>;
Chen-Yu Tsai673fac72014-01-01 10:30:47 +0800204 clock-output-names = "osc32k";
Maxime Ripard4790ecf2013-07-17 10:07:10 +0200205 };
Maxime Ripardde7dc932013-07-25 21:12:52 +0200206
Chen-Yu Tsai06067a22014-02-03 09:51:44 +0800207 pll1: clk@01c20000 {
Maxime Ripardde7dc932013-07-25 21:12:52 +0200208 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100209 compatible = "allwinner,sun4i-a10-pll1-clk";
Maxime Ripardde7dc932013-07-25 21:12:52 +0200210 reg = <0x01c20000 0x4>;
211 clocks = <&osc24M>;
Chen-Yu Tsai06067a22014-02-03 09:51:44 +0800212 clock-output-names = "pll1";
Maxime Ripardde7dc932013-07-25 21:12:52 +0200213 };
214
Maxime Ripard88a86aa2015-10-12 22:21:49 +0200215 pll2: clk@01c20008 {
216 #clock-cells = <1>;
217 compatible = "allwinner,sun4i-a10-pll2-clk";
218 reg = <0x01c20008 0x8>;
219 clocks = <&osc24M>;
220 clock-output-names = "pll2-1x", "pll2-2x",
221 "pll2-4x", "pll2-8x";
222 };
223
Priit Laes068655dc2016-05-05 20:39:04 +0300224 pll3: clk@01c20010 {
225 #clock-cells = <0>;
226 compatible = "allwinner,sun4i-a10-pll3-clk";
227 reg = <0x01c20010 0x4>;
228 clocks = <&osc3M>;
229 clock-output-names = "pll3";
230 };
231
232 pll3x2: pll3x2_clk {
233 #clock-cells = <0>;
234 compatible = "fixed-factor-clock";
Hans de Goedeeee25ab2016-06-28 22:11:14 +0200235 clocks = <&pll3>;
Priit Laes068655dc2016-05-05 20:39:04 +0300236 clock-div = <1>;
237 clock-mult = <2>;
238 clock-output-names = "pll3-2x";
239 };
240
Chen-Yu Tsai06067a22014-02-03 09:51:44 +0800241 pll4: clk@01c20018 {
Maxime Ripardde7dc932013-07-25 21:12:52 +0200242 #clock-cells = <0>;
Emilio López04ebcb52014-03-19 15:19:31 -0300243 compatible = "allwinner,sun7i-a20-pll4-clk";
Emilio Lópezec5589f2013-12-23 00:32:35 -0300244 reg = <0x01c20018 0x4>;
245 clocks = <&osc24M>;
Chen-Yu Tsai06067a22014-02-03 09:51:44 +0800246 clock-output-names = "pll4";
Emilio Lópezec5589f2013-12-23 00:32:35 -0300247 };
248
Chen-Yu Tsai06067a22014-02-03 09:51:44 +0800249 pll5: clk@01c20020 {
Emilio Lópezc3e5e662013-12-23 00:32:38 -0300250 #clock-cells = <1>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100251 compatible = "allwinner,sun4i-a10-pll5-clk";
Emilio Lópezc3e5e662013-12-23 00:32:38 -0300252 reg = <0x01c20020 0x4>;
253 clocks = <&osc24M>;
254 clock-output-names = "pll5_ddr", "pll5_other";
255 };
256
Chen-Yu Tsai06067a22014-02-03 09:51:44 +0800257 pll6: clk@01c20028 {
Emilio Lópezc3e5e662013-12-23 00:32:38 -0300258 #clock-cells = <1>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100259 compatible = "allwinner,sun4i-a10-pll6-clk";
Emilio Lópezc3e5e662013-12-23 00:32:38 -0300260 reg = <0x01c20028 0x4>;
261 clocks = <&osc24M>;
Chen-Yu Tsai2186df32015-03-25 01:22:09 +0800262 clock-output-names = "pll6_sata", "pll6_other", "pll6",
263 "pll6_div_4";
Maxime Ripardde7dc932013-07-25 21:12:52 +0200264 };
265
Priit Laes068655dc2016-05-05 20:39:04 +0300266 pll7: clk@01c20030 {
267 #clock-cells = <0>;
268 compatible = "allwinner,sun4i-a10-pll3-clk";
269 reg = <0x01c20030 0x4>;
270 clocks = <&osc3M>;
271 clock-output-names = "pll7";
272 };
273
274 pll7x2: pll7x2_clk {
275 #clock-cells = <0>;
276 compatible = "fixed-factor-clock";
Hans de Goedeeee25ab2016-06-28 22:11:14 +0200277 clocks = <&pll7>;
Priit Laes068655dc2016-05-05 20:39:04 +0300278 clock-div = <1>;
279 clock-mult = <2>;
280 clock-output-names = "pll7-2x";
281 };
282
Emilio López04ebcb52014-03-19 15:19:31 -0300283 pll8: clk@01c20040 {
284 #clock-cells = <0>;
285 compatible = "allwinner,sun7i-a20-pll4-clk";
286 reg = <0x01c20040 0x4>;
287 clocks = <&osc24M>;
288 clock-output-names = "pll8";
289 };
290
Maxime Ripardde7dc932013-07-25 21:12:52 +0200291 cpu: cpu@01c20054 {
292 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100293 compatible = "allwinner,sun4i-a10-cpu-clk";
Maxime Ripardde7dc932013-07-25 21:12:52 +0200294 reg = <0x01c20054 0x4>;
Emilio Lópezc3e5e662013-12-23 00:32:38 -0300295 clocks = <&osc32k>, <&osc24M>, <&pll1>, <&pll6 1>;
Chen-Yu Tsai06067a22014-02-03 09:51:44 +0800296 clock-output-names = "cpu";
Maxime Ripardde7dc932013-07-25 21:12:52 +0200297 };
298
299 axi: axi@01c20054 {
300 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100301 compatible = "allwinner,sun4i-a10-axi-clk";
Maxime Ripardde7dc932013-07-25 21:12:52 +0200302 reg = <0x01c20054 0x4>;
303 clocks = <&cpu>;
Chen-Yu Tsai06067a22014-02-03 09:51:44 +0800304 clock-output-names = "axi";
Maxime Ripardde7dc932013-07-25 21:12:52 +0200305 };
306
307 ahb: ahb@01c20054 {
308 #clock-cells = <0>;
Chen-Yu Tsai2186df32015-03-25 01:22:09 +0800309 compatible = "allwinner,sun5i-a13-ahb-clk";
Maxime Ripardde7dc932013-07-25 21:12:52 +0200310 reg = <0x01c20054 0x4>;
Chen-Yu Tsai2186df32015-03-25 01:22:09 +0800311 clocks = <&axi>, <&pll6 3>, <&pll6 1>;
Chen-Yu Tsai06067a22014-02-03 09:51:44 +0800312 clock-output-names = "ahb";
Chen-Yu Tsai2186df32015-03-25 01:22:09 +0800313 /*
314 * Use PLL6 as parent, instead of CPU/AXI
315 * which has rate changes due to cpufreq
316 */
317 assigned-clocks = <&ahb>;
318 assigned-clock-parents = <&pll6 3>;
Maxime Ripardde7dc932013-07-25 21:12:52 +0200319 };
320
Chen-Yu Tsai06067a22014-02-03 09:51:44 +0800321 ahb_gates: clk@01c20060 {
Maxime Ripardde7dc932013-07-25 21:12:52 +0200322 #clock-cells = <1>;
323 compatible = "allwinner,sun7i-a20-ahb-gates-clk";
324 reg = <0x01c20060 0x8>;
325 clocks = <&ahb>;
Maxime Ripard6bfe30b2015-07-31 19:46:19 +0200326 clock-indices = <0>, <1>,
327 <2>, <3>, <4>,
328 <5>, <6>, <7>, <8>,
329 <9>, <10>, <11>, <12>,
330 <13>, <14>, <16>,
331 <17>, <18>, <20>, <21>,
332 <22>, <23>, <25>,
333 <28>, <32>, <33>, <34>,
334 <35>, <36>, <37>, <40>,
335 <41>, <42>, <43>,
336 <44>, <45>, <46>,
337 <47>, <49>, <50>,
338 <52>;
Maxime Ripardde7dc932013-07-25 21:12:52 +0200339 clock-output-names = "ahb_usb0", "ahb_ehci0",
340 "ahb_ohci0", "ahb_ehci1", "ahb_ohci1",
341 "ahb_ss", "ahb_dma", "ahb_bist", "ahb_mmc0",
342 "ahb_mmc1", "ahb_mmc2", "ahb_mmc3", "ahb_ms",
343 "ahb_nand", "ahb_sdram", "ahb_ace",
344 "ahb_emac", "ahb_ts", "ahb_spi0", "ahb_spi1",
345 "ahb_spi2", "ahb_spi3", "ahb_sata",
346 "ahb_hstimer", "ahb_ve", "ahb_tvd", "ahb_tve0",
347 "ahb_tve1", "ahb_lcd0", "ahb_lcd1", "ahb_csi0",
348 "ahb_csi1", "ahb_hdmi1", "ahb_hdmi0",
349 "ahb_de_be0", "ahb_de_be1", "ahb_de_fe0",
350 "ahb_de_fe1", "ahb_gmac", "ahb_mp",
351 "ahb_mali";
352 };
353
354 apb0: apb0@01c20054 {
355 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100356 compatible = "allwinner,sun4i-a10-apb0-clk";
Maxime Ripardde7dc932013-07-25 21:12:52 +0200357 reg = <0x01c20054 0x4>;
358 clocks = <&ahb>;
Chen-Yu Tsai06067a22014-02-03 09:51:44 +0800359 clock-output-names = "apb0";
Maxime Ripardde7dc932013-07-25 21:12:52 +0200360 };
361
Chen-Yu Tsai06067a22014-02-03 09:51:44 +0800362 apb0_gates: clk@01c20068 {
Maxime Ripardde7dc932013-07-25 21:12:52 +0200363 #clock-cells = <1>;
364 compatible = "allwinner,sun7i-a20-apb0-gates-clk";
365 reg = <0x01c20068 0x4>;
366 clocks = <&apb0>;
Maxime Ripard6bfe30b2015-07-31 19:46:19 +0200367 clock-indices = <0>, <1>,
368 <2>, <3>, <4>,
369 <5>, <6>, <7>,
370 <8>, <10>;
Maxime Ripardde7dc932013-07-25 21:12:52 +0200371 clock-output-names = "apb0_codec", "apb0_spdif",
372 "apb0_ac97", "apb0_iis0", "apb0_iis1",
373 "apb0_pio", "apb0_ir0", "apb0_ir1",
374 "apb0_iis2", "apb0_keypad";
375 };
376
Emilio Lópezacbcc0f2014-11-06 11:40:30 +0800377 apb1: clk@01c20058 {
Maxime Ripardde7dc932013-07-25 21:12:52 +0200378 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100379 compatible = "allwinner,sun4i-a10-apb1-clk";
Maxime Ripardde7dc932013-07-25 21:12:52 +0200380 reg = <0x01c20058 0x4>;
Emilio Lópezacbcc0f2014-11-06 11:40:30 +0800381 clocks = <&osc24M>, <&pll6 1>, <&osc32k>;
Chen-Yu Tsai06067a22014-02-03 09:51:44 +0800382 clock-output-names = "apb1";
Maxime Ripardde7dc932013-07-25 21:12:52 +0200383 };
384
Chen-Yu Tsai06067a22014-02-03 09:51:44 +0800385 apb1_gates: clk@01c2006c {
Maxime Ripardde7dc932013-07-25 21:12:52 +0200386 #clock-cells = <1>;
387 compatible = "allwinner,sun7i-a20-apb1-gates-clk";
388 reg = <0x01c2006c 0x4>;
389 clocks = <&apb1>;
Maxime Ripard6bfe30b2015-07-31 19:46:19 +0200390 clock-indices = <0>, <1>,
391 <2>, <3>, <4>,
392 <5>, <6>, <7>,
393 <15>, <16>, <17>,
394 <18>, <19>, <20>,
395 <21>, <22>, <23>;
Maxime Ripardde7dc932013-07-25 21:12:52 +0200396 clock-output-names = "apb1_i2c0", "apb1_i2c1",
397 "apb1_i2c2", "apb1_i2c3", "apb1_can",
398 "apb1_scr", "apb1_ps20", "apb1_ps21",
399 "apb1_i2c4", "apb1_uart0", "apb1_uart1",
400 "apb1_uart2", "apb1_uart3", "apb1_uart4",
401 "apb1_uart5", "apb1_uart6", "apb1_uart7";
402 };
Emilio López1c92b952013-12-23 00:32:43 -0300403
404 nand_clk: clk@01c20080 {
405 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100406 compatible = "allwinner,sun4i-a10-mod0-clk";
Emilio López1c92b952013-12-23 00:32:43 -0300407 reg = <0x01c20080 0x4>;
408 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
409 clock-output-names = "nand";
410 };
411
412 ms_clk: clk@01c20084 {
413 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100414 compatible = "allwinner,sun4i-a10-mod0-clk";
Emilio López1c92b952013-12-23 00:32:43 -0300415 reg = <0x01c20084 0x4>;
416 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
417 clock-output-names = "ms";
418 };
419
420 mmc0_clk: clk@01c20088 {
Maxime Ripardd8c3a392014-07-11 19:39:06 +0200421 #clock-cells = <1>;
422 compatible = "allwinner,sun4i-a10-mmc-clk";
Emilio López1c92b952013-12-23 00:32:43 -0300423 reg = <0x01c20088 0x4>;
424 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
Maxime Ripardd8c3a392014-07-11 19:39:06 +0200425 clock-output-names = "mmc0",
426 "mmc0_output",
427 "mmc0_sample";
Emilio López1c92b952013-12-23 00:32:43 -0300428 };
429
430 mmc1_clk: clk@01c2008c {
Maxime Ripardd8c3a392014-07-11 19:39:06 +0200431 #clock-cells = <1>;
432 compatible = "allwinner,sun4i-a10-mmc-clk";
Emilio López1c92b952013-12-23 00:32:43 -0300433 reg = <0x01c2008c 0x4>;
434 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
Maxime Ripardd8c3a392014-07-11 19:39:06 +0200435 clock-output-names = "mmc1",
436 "mmc1_output",
437 "mmc1_sample";
Emilio López1c92b952013-12-23 00:32:43 -0300438 };
439
440 mmc2_clk: clk@01c20090 {
Maxime Ripardd8c3a392014-07-11 19:39:06 +0200441 #clock-cells = <1>;
442 compatible = "allwinner,sun4i-a10-mmc-clk";
Emilio López1c92b952013-12-23 00:32:43 -0300443 reg = <0x01c20090 0x4>;
444 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
Maxime Ripardd8c3a392014-07-11 19:39:06 +0200445 clock-output-names = "mmc2",
446 "mmc2_output",
447 "mmc2_sample";
Emilio López1c92b952013-12-23 00:32:43 -0300448 };
449
450 mmc3_clk: clk@01c20094 {
Maxime Ripardd8c3a392014-07-11 19:39:06 +0200451 #clock-cells = <1>;
452 compatible = "allwinner,sun4i-a10-mmc-clk";
Emilio López1c92b952013-12-23 00:32:43 -0300453 reg = <0x01c20094 0x4>;
454 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
Maxime Ripardd8c3a392014-07-11 19:39:06 +0200455 clock-output-names = "mmc3",
456 "mmc3_output",
457 "mmc3_sample";
Emilio López1c92b952013-12-23 00:32:43 -0300458 };
459
460 ts_clk: clk@01c20098 {
461 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100462 compatible = "allwinner,sun4i-a10-mod0-clk";
Emilio López1c92b952013-12-23 00:32:43 -0300463 reg = <0x01c20098 0x4>;
464 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
465 clock-output-names = "ts";
466 };
467
468 ss_clk: clk@01c2009c {
469 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100470 compatible = "allwinner,sun4i-a10-mod0-clk";
Emilio López1c92b952013-12-23 00:32:43 -0300471 reg = <0x01c2009c 0x4>;
472 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
473 clock-output-names = "ss";
474 };
475
476 spi0_clk: clk@01c200a0 {
477 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100478 compatible = "allwinner,sun4i-a10-mod0-clk";
Emilio López1c92b952013-12-23 00:32:43 -0300479 reg = <0x01c200a0 0x4>;
480 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
481 clock-output-names = "spi0";
482 };
483
484 spi1_clk: clk@01c200a4 {
485 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100486 compatible = "allwinner,sun4i-a10-mod0-clk";
Emilio López1c92b952013-12-23 00:32:43 -0300487 reg = <0x01c200a4 0x4>;
488 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
489 clock-output-names = "spi1";
490 };
491
492 spi2_clk: clk@01c200a8 {
493 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100494 compatible = "allwinner,sun4i-a10-mod0-clk";
Emilio López1c92b952013-12-23 00:32:43 -0300495 reg = <0x01c200a8 0x4>;
496 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
497 clock-output-names = "spi2";
498 };
499
500 pata_clk: clk@01c200ac {
501 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100502 compatible = "allwinner,sun4i-a10-mod0-clk";
Emilio López1c92b952013-12-23 00:32:43 -0300503 reg = <0x01c200ac 0x4>;
504 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
505 clock-output-names = "pata";
506 };
507
508 ir0_clk: clk@01c200b0 {
509 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100510 compatible = "allwinner,sun4i-a10-mod0-clk";
Emilio López1c92b952013-12-23 00:32:43 -0300511 reg = <0x01c200b0 0x4>;
512 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
513 clock-output-names = "ir0";
514 };
515
516 ir1_clk: clk@01c200b4 {
517 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100518 compatible = "allwinner,sun4i-a10-mod0-clk";
Emilio López1c92b952013-12-23 00:32:43 -0300519 reg = <0x01c200b4 0x4>;
520 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
521 clock-output-names = "ir1";
522 };
523
Marcus Cooper90b7a482016-03-21 21:01:02 +0100524 spdif_clk: clk@01c200c0 {
525 #clock-cells = <0>;
526 compatible = "allwinner,sun4i-a10-mod1-clk";
527 reg = <0x01c200c0 0x4>;
528 clocks = <&pll2 SUN4I_A10_PLL2_8X>,
529 <&pll2 SUN4I_A10_PLL2_4X>,
530 <&pll2 SUN4I_A10_PLL2_2X>,
531 <&pll2 SUN4I_A10_PLL2_1X>;
532 clock-output-names = "spdif";
533 };
534
Yassin Jaffer6f1606b2015-09-16 00:05:54 +1000535 keypad_clk: clk@01c200c4 {
536 #clock-cells = <0>;
537 compatible = "allwinner,sun4i-a10-mod0-clk";
538 reg = <0x01c200c4 0x4>;
539 clocks = <&osc24M>;
540 clock-output-names = "keypad";
541 };
542
Roman Byshko434e41b2014-02-07 16:21:53 +0100543 usb_clk: clk@01c200cc {
544 #clock-cells = <1>;
Maxime Ripard8358aad2015-05-03 11:54:35 +0200545 #reset-cells = <1>;
Roman Byshko434e41b2014-02-07 16:21:53 +0100546 compatible = "allwinner,sun4i-a10-usb-clk";
547 reg = <0x01c200cc 0x4>;
548 clocks = <&pll6 1>;
Maxime Ripardd8cacaa2015-05-03 11:53:07 +0200549 clock-output-names = "usb_ohci0", "usb_ohci1",
550 "usb_phy";
Roman Byshko434e41b2014-02-07 16:21:53 +0100551 };
552
Emilio López1c92b952013-12-23 00:32:43 -0300553 spi3_clk: clk@01c200d4 {
554 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100555 compatible = "allwinner,sun4i-a10-mod0-clk";
Emilio López1c92b952013-12-23 00:32:43 -0300556 reg = <0x01c200d4 0x4>;
557 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
558 clock-output-names = "spi3";
559 };
Emilio López118c07a2013-12-23 00:32:44 -0300560
Chen-Yu Tsai0b4bf5a2015-12-05 21:16:46 +0800561 dram_gates: clk@01c20100 {
562 #clock-cells = <1>;
563 compatible = "allwinner,sun4i-a10-dram-gates-clk";
564 reg = <0x01c20100 0x4>;
565 clocks = <&pll5 0>;
566 clock-indices = <0>,
567 <1>, <2>,
568 <3>,
569 <4>,
570 <5>, <6>,
571 <15>,
572 <24>, <25>,
573 <26>, <27>,
574 <28>, <29>;
575 clock-output-names = "dram_ve",
576 "dram_csi0", "dram_csi1",
577 "dram_ts",
578 "dram_tvd",
579 "dram_tve0", "dram_tve1",
580 "dram_output",
581 "dram_de_fe1", "dram_de_fe0",
582 "dram_de_be0", "dram_de_be1",
583 "dram_de_mp", "dram_ace";
584 };
585
Priit Laesf1afc132016-05-10 22:24:07 +0300586 de_be0_clk: clk@01c20104 {
587 #clock-cells = <0>;
588 #reset-cells = <0>;
589 compatible = "allwinner,sun4i-a10-display-clk";
590 reg = <0x01c20104 0x4>;
591 clocks = <&pll3>, <&pll7>, <&pll5 1>;
592 clock-output-names = "de-be0";
593 };
594
595 de_be1_clk: clk@01c20108 {
596 #clock-cells = <0>;
597 #reset-cells = <0>;
598 compatible = "allwinner,sun4i-a10-display-clk";
599 reg = <0x01c20108 0x4>;
600 clocks = <&pll3>, <&pll7>, <&pll5 1>;
601 clock-output-names = "de-be1";
602 };
603
604 de_fe0_clk: clk@01c2010c {
605 #clock-cells = <0>;
606 #reset-cells = <0>;
607 compatible = "allwinner,sun4i-a10-display-clk";
608 reg = <0x01c2010c 0x4>;
609 clocks = <&pll3>, <&pll7>, <&pll5 1>;
610 clock-output-names = "de-fe0";
611 };
612
613 de_fe1_clk: clk@01c20110 {
614 #clock-cells = <0>;
615 #reset-cells = <0>;
616 compatible = "allwinner,sun4i-a10-display-clk";
617 reg = <0x01c20110 0x4>;
618 clocks = <&pll3>, <&pll7>, <&pll5 1>;
619 clock-output-names = "de-fe1";
620 };
621
622 tcon0_ch0_clk: clk@01c20118 {
623 #clock-cells = <0>;
624 #reset-cells = <1>;
625 compatible = "allwinner,sun4i-a10-tcon-ch0-clk";
626 reg = <0x01c20118 0x4>;
627 clocks = <&pll3>, <&pll7>, <&pll3x2>, <&pll7x2>;
628 clock-output-names = "tcon0-ch0-sclk";
629
630 };
631
632 tcon1_ch0_clk: clk@01c2011c {
633 #clock-cells = <0>;
634 #reset-cells = <1>;
635 compatible = "allwinner,sun4i-a10-tcon-ch1-clk";
636 reg = <0x01c2011c 0x4>;
637 clocks = <&pll3>, <&pll7>, <&pll3x2>, <&pll7x2>;
638 clock-output-names = "tcon1-ch0-sclk";
639
640 };
641
642 tcon0_ch1_clk: clk@01c2012c {
643 #clock-cells = <0>;
644 compatible = "allwinner,sun4i-a10-tcon-ch0-clk";
645 reg = <0x01c2012c 0x4>;
646 clocks = <&pll3>, <&pll7>, <&pll3x2>, <&pll7x2>;
647 clock-output-names = "tcon0-ch1-sclk";
648
649 };
650
651 tcon1_ch1_clk: clk@01c20130 {
652 #clock-cells = <0>;
653 compatible = "allwinner,sun4i-a10-tcon-ch1-clk";
654 reg = <0x01c20130 0x4>;
655 clocks = <&pll3>, <&pll7>, <&pll3x2>, <&pll7x2>;
656 clock-output-names = "tcon1-ch1-sclk";
657
658 };
659
Chen-Yu Tsaif0571ab2015-12-05 21:16:47 +0800660 ve_clk: clk@01c2013c {
661 #clock-cells = <0>;
662 #reset-cells = <0>;
663 compatible = "allwinner,sun4i-a10-ve-clk";
664 reg = <0x01c2013c 0x4>;
665 clocks = <&pll4>;
666 clock-output-names = "ve";
667 };
668
Maxime Riparddbe4dd12015-10-12 22:28:46 +0200669 codec_clk: clk@01c20140 {
670 #clock-cells = <0>;
671 compatible = "allwinner,sun4i-a10-codec-clk";
672 reg = <0x01c20140 0x4>;
673 clocks = <&pll2 SUN4I_A10_PLL2_1X>;
674 clock-output-names = "codec";
675 };
676
Emilio López118c07a2013-12-23 00:32:44 -0300677 mbus_clk: clk@01c2015c {
678 #clock-cells = <0>;
Maxime Ripard7868c5e2014-07-16 23:45:48 +0200679 compatible = "allwinner,sun5i-a13-mbus-clk";
Emilio López118c07a2013-12-23 00:32:44 -0300680 reg = <0x01c2015c 0x4>;
681 clocks = <&osc24M>, <&pll6 2>, <&pll5 1>;
682 clock-output-names = "mbus";
683 };
Chen-Yu Tsai0aff0372014-01-01 10:30:48 +0800684
685 /*
Maxime Ripardd8cacaa2015-05-03 11:53:07 +0200686 * The following two are dummy clocks, placeholders
687 * used in the gmac_tx clock. The gmac driver will
688 * choose one parent depending on the PHY interface
689 * mode, using clk_set_rate auto-reparenting.
690 *
691 * The actual TX clock rate is not controlled by the
692 * gmac_tx clock.
Chen-Yu Tsaidaed5a82014-02-10 18:35:48 +0800693 */
694 mii_phy_tx_clk: clk@2 {
695 #clock-cells = <0>;
696 compatible = "fixed-clock";
697 clock-frequency = <25000000>;
698 clock-output-names = "mii_phy_tx";
699 };
700
701 gmac_int_tx_clk: clk@3 {
702 #clock-cells = <0>;
703 compatible = "fixed-clock";
704 clock-frequency = <125000000>;
705 clock-output-names = "gmac_int_tx";
706 };
707
708 gmac_tx_clk: clk@01c20164 {
709 #clock-cells = <0>;
710 compatible = "allwinner,sun7i-a20-gmac-clk";
711 reg = <0x01c20164 0x4>;
712 clocks = <&mii_phy_tx_clk>, <&gmac_int_tx_clk>;
713 clock-output-names = "gmac_tx";
714 };
715
716 /*
Chen-Yu Tsai0aff0372014-01-01 10:30:48 +0800717 * Dummy clock used by output clocks
718 */
719 osc24M_32k: clk@1 {
720 #clock-cells = <0>;
721 compatible = "fixed-factor-clock";
722 clock-div = <750>;
723 clock-mult = <1>;
724 clocks = <&osc24M>;
725 clock-output-names = "osc24M_32k";
726 };
727
728 clk_out_a: clk@01c201f0 {
729 #clock-cells = <0>;
730 compatible = "allwinner,sun7i-a20-out-clk";
731 reg = <0x01c201f0 0x4>;
732 clocks = <&osc24M_32k>, <&osc32k>, <&osc24M>;
733 clock-output-names = "clk_out_a";
734 };
735
736 clk_out_b: clk@01c201f4 {
737 #clock-cells = <0>;
738 compatible = "allwinner,sun7i-a20-out-clk";
739 reg = <0x01c201f4 0x4>;
740 clocks = <&osc24M_32k>, <&osc32k>, <&osc24M>;
741 clock-output-names = "clk_out_b";
742 };
Maxime Ripard4790ecf2013-07-17 10:07:10 +0200743 };
744
745 soc@01c00000 {
746 compatible = "simple-bus";
747 #address-cells = <1>;
748 #size-cells = <1>;
749 ranges;
750
Maxime Ripard0eb14a82015-03-26 15:53:44 +0100751 sram-controller@01c00000 {
752 compatible = "allwinner,sun4i-a10-sram-controller";
753 reg = <0x01c00000 0x30>;
754 #address-cells = <1>;
755 #size-cells = <1>;
756 ranges;
757
758 sram_a: sram@00000000 {
759 compatible = "mmio-sram";
760 reg = <0x00000000 0xc000>;
761 #address-cells = <1>;
762 #size-cells = <1>;
763 ranges = <0 0x00000000 0xc000>;
764
765 emac_sram: sram-section@8000 {
766 compatible = "allwinner,sun4i-a10-sram-a3-a4";
767 reg = <0x8000 0x4000>;
768 status = "disabled";
769 };
770 };
771
772 sram_d: sram@00010000 {
773 compatible = "mmio-sram";
774 reg = <0x00010000 0x1000>;
775 #address-cells = <1>;
776 #size-cells = <1>;
777 ranges = <0 0x00010000 0x1000>;
778
779 otg_sram: sram-section@0000 {
780 compatible = "allwinner,sun4i-a10-sram-d";
781 reg = <0x0000 0x1000>;
782 status = "disabled";
783 };
784 };
785 };
786
Carlo Caione8ff973a2014-03-19 20:21:18 +0100787 nmi_intc: interrupt-controller@01c00030 {
788 compatible = "allwinner,sun7i-a20-sc-nmi";
789 interrupt-controller;
790 #interrupt-cells = <2>;
791 reg = <0x01c00030 0x0c>;
Maxime Ripard19882b82014-12-16 22:59:58 +0100792 interrupts = <GIC_SPI 0 IRQ_TYPE_LEVEL_HIGH>;
Carlo Caione8ff973a2014-03-19 20:21:18 +0100793 };
794
Emilio López316e0b02014-08-04 17:09:59 -0300795 dma: dma-controller@01c02000 {
796 compatible = "allwinner,sun4i-a10-dma";
797 reg = <0x01c02000 0x1000>;
Maxime Ripard19882b82014-12-16 22:59:58 +0100798 interrupts = <GIC_SPI 27 IRQ_TYPE_LEVEL_HIGH>;
Emilio López316e0b02014-08-04 17:09:59 -0300799 clocks = <&ahb_gates 6>;
800 #dma-cells = <2>;
801 };
802
Maxime Ripard36ab3e72014-02-22 22:35:54 +0100803 spi0: spi@01c05000 {
804 compatible = "allwinner,sun4i-a10-spi";
805 reg = <0x01c05000 0x1000>;
Maxime Ripard19882b82014-12-16 22:59:58 +0100806 interrupts = <GIC_SPI 10 IRQ_TYPE_LEVEL_HIGH>;
Maxime Ripard36ab3e72014-02-22 22:35:54 +0100807 clocks = <&ahb_gates 20>, <&spi0_clk>;
808 clock-names = "ahb", "mod";
Maxime Ripard1f9f6a72014-12-16 22:59:56 +0100809 dmas = <&dma SUN4I_DMA_DEDICATED 27>,
810 <&dma SUN4I_DMA_DEDICATED 26>;
Emilio Lópezffec7212014-08-04 17:10:02 -0300811 dma-names = "rx", "tx";
Maxime Ripard36ab3e72014-02-22 22:35:54 +0100812 status = "disabled";
813 #address-cells = <1>;
814 #size-cells = <0>;
815 };
816
817 spi1: spi@01c06000 {
818 compatible = "allwinner,sun4i-a10-spi";
819 reg = <0x01c06000 0x1000>;
Maxime Ripard19882b82014-12-16 22:59:58 +0100820 interrupts = <GIC_SPI 11 IRQ_TYPE_LEVEL_HIGH>;
Maxime Ripard36ab3e72014-02-22 22:35:54 +0100821 clocks = <&ahb_gates 21>, <&spi1_clk>;
822 clock-names = "ahb", "mod";
Maxime Ripard1f9f6a72014-12-16 22:59:56 +0100823 dmas = <&dma SUN4I_DMA_DEDICATED 9>,
824 <&dma SUN4I_DMA_DEDICATED 8>;
Emilio Lópezffec7212014-08-04 17:10:02 -0300825 dma-names = "rx", "tx";
Maxime Ripard36ab3e72014-02-22 22:35:54 +0100826 status = "disabled";
827 #address-cells = <1>;
828 #size-cells = <0>;
829 };
830
Maxime Ripard2e804d02013-09-11 11:10:06 +0200831 emac: ethernet@01c0b000 {
Maxime Ripard1c70e092014-02-02 14:49:13 +0100832 compatible = "allwinner,sun4i-a10-emac";
Maxime Ripard2e804d02013-09-11 11:10:06 +0200833 reg = <0x01c0b000 0x1000>;
Maxime Ripard19882b82014-12-16 22:59:58 +0100834 interrupts = <GIC_SPI 55 IRQ_TYPE_LEVEL_HIGH>;
Maxime Ripard2e804d02013-09-11 11:10:06 +0200835 clocks = <&ahb_gates 17>;
Maxime Ripard0eb14a82015-03-26 15:53:44 +0100836 allwinner,sram = <&emac_sram 1>;
Maxime Ripard2e804d02013-09-11 11:10:06 +0200837 status = "disabled";
838 };
839
Aleksei Mamlin92395f52015-01-19 22:35:22 +0300840 mdio: mdio@01c0b080 {
Maxime Ripard1c70e092014-02-02 14:49:13 +0100841 compatible = "allwinner,sun4i-a10-mdio";
Maxime Ripard2e804d02013-09-11 11:10:06 +0200842 reg = <0x01c0b080 0x14>;
843 status = "disabled";
844 #address-cells = <1>;
845 #size-cells = <0>;
846 };
847
Hans de Goededd29ce52014-05-02 17:57:26 +0200848 mmc0: mmc@01c0f000 {
849 compatible = "allwinner,sun5i-a13-mmc";
850 reg = <0x01c0f000 0x1000>;
Maxime Ripardd8c3a392014-07-11 19:39:06 +0200851 clocks = <&ahb_gates 8>,
852 <&mmc0_clk 0>,
853 <&mmc0_clk 1>,
854 <&mmc0_clk 2>;
855 clock-names = "ahb",
856 "mmc",
857 "output",
858 "sample";
Maxime Ripard19882b82014-12-16 22:59:58 +0100859 interrupts = <GIC_SPI 32 IRQ_TYPE_LEVEL_HIGH>;
Hans de Goededd29ce52014-05-02 17:57:26 +0200860 status = "disabled";
Hans de Goede4c1bb9c2015-03-10 16:27:09 +0100861 #address-cells = <1>;
862 #size-cells = <0>;
Hans de Goededd29ce52014-05-02 17:57:26 +0200863 };
864
865 mmc1: mmc@01c10000 {
866 compatible = "allwinner,sun5i-a13-mmc";
867 reg = <0x01c10000 0x1000>;
Maxime Ripardd8c3a392014-07-11 19:39:06 +0200868 clocks = <&ahb_gates 9>,
869 <&mmc1_clk 0>,
870 <&mmc1_clk 1>,
871 <&mmc1_clk 2>;
872 clock-names = "ahb",
873 "mmc",
874 "output",
875 "sample";
Maxime Ripard19882b82014-12-16 22:59:58 +0100876 interrupts = <GIC_SPI 33 IRQ_TYPE_LEVEL_HIGH>;
Hans de Goededd29ce52014-05-02 17:57:26 +0200877 status = "disabled";
Hans de Goede4c1bb9c2015-03-10 16:27:09 +0100878 #address-cells = <1>;
879 #size-cells = <0>;
Hans de Goededd29ce52014-05-02 17:57:26 +0200880 };
881
882 mmc2: mmc@01c11000 {
883 compatible = "allwinner,sun5i-a13-mmc";
884 reg = <0x01c11000 0x1000>;
Maxime Ripardd8c3a392014-07-11 19:39:06 +0200885 clocks = <&ahb_gates 10>,
886 <&mmc2_clk 0>,
887 <&mmc2_clk 1>,
888 <&mmc2_clk 2>;
889 clock-names = "ahb",
890 "mmc",
891 "output",
892 "sample";
Maxime Ripard19882b82014-12-16 22:59:58 +0100893 interrupts = <GIC_SPI 34 IRQ_TYPE_LEVEL_HIGH>;
Hans de Goededd29ce52014-05-02 17:57:26 +0200894 status = "disabled";
Hans de Goede4c1bb9c2015-03-10 16:27:09 +0100895 #address-cells = <1>;
896 #size-cells = <0>;
Hans de Goededd29ce52014-05-02 17:57:26 +0200897 };
898
899 mmc3: mmc@01c12000 {
900 compatible = "allwinner,sun5i-a13-mmc";
901 reg = <0x01c12000 0x1000>;
Maxime Ripardd8c3a392014-07-11 19:39:06 +0200902 clocks = <&ahb_gates 11>,
903 <&mmc3_clk 0>,
904 <&mmc3_clk 1>,
905 <&mmc3_clk 2>;
906 clock-names = "ahb",
907 "mmc",
908 "output",
909 "sample";
Maxime Ripard19882b82014-12-16 22:59:58 +0100910 interrupts = <GIC_SPI 35 IRQ_TYPE_LEVEL_HIGH>;
Hans de Goededd29ce52014-05-02 17:57:26 +0200911 status = "disabled";
Hans de Goede4c1bb9c2015-03-10 16:27:09 +0100912 #address-cells = <1>;
913 #size-cells = <0>;
Hans de Goededd29ce52014-05-02 17:57:26 +0200914 };
915
Roman Byshkocbb3ff12014-10-22 00:14:03 +0200916 usb_otg: usb@01c13000 {
917 compatible = "allwinner,sun4i-a10-musb";
918 reg = <0x01c13000 0x0400>;
919 clocks = <&ahb_gates 0>;
920 interrupts = <GIC_SPI 38 IRQ_TYPE_LEVEL_HIGH>;
921 interrupt-names = "mc";
922 phys = <&usbphy 0>;
923 phy-names = "usb";
924 extcon = <&usbphy 0>;
925 allwinner,sram = <&otg_sram 1>;
926 status = "disabled";
927 };
928
Roman Byshko9debd0a2014-03-01 20:26:25 +0100929 usbphy: phy@01c13400 {
930 #phy-cells = <1>;
931 compatible = "allwinner,sun7i-a20-usb-phy";
932 reg = <0x01c13400 0x10 0x01c14800 0x4 0x01c1c800 0x4>;
933 reg-names = "phy_ctrl", "pmu1", "pmu2";
934 clocks = <&usb_clk 8>;
935 clock-names = "usb_phy";
Roman Byshko134c60a2014-11-10 19:55:08 +0100936 resets = <&usb_clk 0>, <&usb_clk 1>, <&usb_clk 2>;
937 reset-names = "usb0_reset", "usb1_reset", "usb2_reset";
Roman Byshko9debd0a2014-03-01 20:26:25 +0100938 status = "disabled";
939 };
940
941 ehci0: usb@01c14000 {
942 compatible = "allwinner,sun7i-a20-ehci", "generic-ehci";
943 reg = <0x01c14000 0x100>;
Maxime Ripard19882b82014-12-16 22:59:58 +0100944 interrupts = <GIC_SPI 39 IRQ_TYPE_LEVEL_HIGH>;
Roman Byshko9debd0a2014-03-01 20:26:25 +0100945 clocks = <&ahb_gates 1>;
946 phys = <&usbphy 1>;
947 phy-names = "usb";
948 status = "disabled";
949 };
950
951 ohci0: usb@01c14400 {
952 compatible = "allwinner,sun7i-a20-ohci", "generic-ohci";
953 reg = <0x01c14400 0x100>;
Maxime Ripard19882b82014-12-16 22:59:58 +0100954 interrupts = <GIC_SPI 64 IRQ_TYPE_LEVEL_HIGH>;
Roman Byshko9debd0a2014-03-01 20:26:25 +0100955 clocks = <&usb_clk 6>, <&ahb_gates 2>;
956 phys = <&usbphy 1>;
957 phy-names = "usb";
958 status = "disabled";
959 };
960
LABBE Corentin110d4e22015-07-17 16:39:39 +0200961 crypto: crypto-engine@01c15000 {
962 compatible = "allwinner,sun4i-a10-crypto";
963 reg = <0x01c15000 0x1000>;
964 interrupts = <GIC_SPI 86 IRQ_TYPE_LEVEL_HIGH>;
965 clocks = <&ahb_gates 5>, <&ss_clk>;
966 clock-names = "ahb", "mod";
967 };
968
Maxime Ripard36ab3e72014-02-22 22:35:54 +0100969 spi2: spi@01c17000 {
970 compatible = "allwinner,sun4i-a10-spi";
971 reg = <0x01c17000 0x1000>;
Maxime Ripard19882b82014-12-16 22:59:58 +0100972 interrupts = <GIC_SPI 12 IRQ_TYPE_LEVEL_HIGH>;
Maxime Ripard36ab3e72014-02-22 22:35:54 +0100973 clocks = <&ahb_gates 22>, <&spi2_clk>;
974 clock-names = "ahb", "mod";
Maxime Ripard1f9f6a72014-12-16 22:59:56 +0100975 dmas = <&dma SUN4I_DMA_DEDICATED 29>,
976 <&dma SUN4I_DMA_DEDICATED 28>;
Emilio Lópezffec7212014-08-04 17:10:02 -0300977 dma-names = "rx", "tx";
Maxime Ripard36ab3e72014-02-22 22:35:54 +0100978 status = "disabled";
979 #address-cells = <1>;
980 #size-cells = <0>;
981 };
982
Hans de Goede902febf2014-03-01 20:26:22 +0100983 ahci: sata@01c18000 {
984 compatible = "allwinner,sun4i-a10-ahci";
985 reg = <0x01c18000 0x1000>;
Maxime Ripard19882b82014-12-16 22:59:58 +0100986 interrupts = <GIC_SPI 56 IRQ_TYPE_LEVEL_HIGH>;
Hans de Goede902febf2014-03-01 20:26:22 +0100987 clocks = <&pll6 0>, <&ahb_gates 25>;
988 status = "disabled";
989 };
990
Roman Byshko9debd0a2014-03-01 20:26:25 +0100991 ehci1: usb@01c1c000 {
992 compatible = "allwinner,sun7i-a20-ehci", "generic-ehci";
993 reg = <0x01c1c000 0x100>;
Maxime Ripard19882b82014-12-16 22:59:58 +0100994 interrupts = <GIC_SPI 40 IRQ_TYPE_LEVEL_HIGH>;
Roman Byshko9debd0a2014-03-01 20:26:25 +0100995 clocks = <&ahb_gates 3>;
996 phys = <&usbphy 2>;
997 phy-names = "usb";
998 status = "disabled";
999 };
1000
1001 ohci1: usb@01c1c400 {
1002 compatible = "allwinner,sun7i-a20-ohci", "generic-ohci";
1003 reg = <0x01c1c400 0x100>;
Maxime Ripard19882b82014-12-16 22:59:58 +01001004 interrupts = <GIC_SPI 65 IRQ_TYPE_LEVEL_HIGH>;
Roman Byshko9debd0a2014-03-01 20:26:25 +01001005 clocks = <&usb_clk 7>, <&ahb_gates 4>;
1006 phys = <&usbphy 2>;
1007 phy-names = "usb";
1008 status = "disabled";
1009 };
1010
Maxime Ripard36ab3e72014-02-22 22:35:54 +01001011 spi3: spi@01c1f000 {
1012 compatible = "allwinner,sun4i-a10-spi";
1013 reg = <0x01c1f000 0x1000>;
Maxime Ripard19882b82014-12-16 22:59:58 +01001014 interrupts = <GIC_SPI 50 IRQ_TYPE_LEVEL_HIGH>;
Maxime Ripard36ab3e72014-02-22 22:35:54 +01001015 clocks = <&ahb_gates 23>, <&spi3_clk>;
1016 clock-names = "ahb", "mod";
Maxime Ripard1f9f6a72014-12-16 22:59:56 +01001017 dmas = <&dma SUN4I_DMA_DEDICATED 31>,
1018 <&dma SUN4I_DMA_DEDICATED 30>;
Emilio Lópezffec7212014-08-04 17:10:02 -03001019 dma-names = "rx", "tx";
Maxime Ripard36ab3e72014-02-22 22:35:54 +01001020 status = "disabled";
1021 #address-cells = <1>;
1022 #size-cells = <0>;
1023 };
1024
Maxime Ripard17eac032013-07-24 23:46:11 +02001025 pio: pinctrl@01c20800 {
1026 compatible = "allwinner,sun7i-a20-pinctrl";
1027 reg = <0x01c20800 0x400>;
Maxime Ripard19882b82014-12-16 22:59:58 +01001028 interrupts = <GIC_SPI 28 IRQ_TYPE_LEVEL_HIGH>;
Maxime Ripardde7dc932013-07-25 21:12:52 +02001029 clocks = <&apb0_gates 5>;
Maxime Ripard17eac032013-07-24 23:46:11 +02001030 gpio-controller;
1031 interrupt-controller;
Maxime Ripardb03e0812015-06-17 11:44:24 +02001032 #interrupt-cells = <3>;
Maxime Ripard17eac032013-07-24 23:46:11 +02001033 #gpio-cells = <3>;
Maxime Ripard9f229ba2013-07-25 00:09:47 +02001034
Alexandre Bellonifd7898a2014-04-28 18:17:12 +02001035 pwm0_pins_a: pwm0@0 {
1036 allwinner,pins = "PB2";
1037 allwinner,function = "pwm";
Maxime Ripard092a0c32014-12-16 22:59:57 +01001038 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
1039 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Alexandre Bellonifd7898a2014-04-28 18:17:12 +02001040 };
1041
1042 pwm1_pins_a: pwm1@0 {
1043 allwinner,pins = "PI3";
1044 allwinner,function = "pwm";
Maxime Ripard092a0c32014-12-16 22:59:57 +01001045 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
1046 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Alexandre Bellonifd7898a2014-04-28 18:17:12 +02001047 };
1048
Maxime Ripard9f229ba2013-07-25 00:09:47 +02001049 uart0_pins_a: uart0@0 {
1050 allwinner,pins = "PB22", "PB23";
1051 allwinner,function = "uart0";
Maxime Ripard092a0c32014-12-16 22:59:57 +01001052 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
1053 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Maxime Ripard9f229ba2013-07-25 00:09:47 +02001054 };
1055
Chen-Yu Tsai4261ec42014-01-14 22:49:50 +08001056 uart2_pins_a: uart2@0 {
1057 allwinner,pins = "PI16", "PI17", "PI18", "PI19";
1058 allwinner,function = "uart2";
Maxime Ripard092a0c32014-12-16 22:59:57 +01001059 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
1060 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Chen-Yu Tsai4261ec42014-01-14 22:49:50 +08001061 };
1062
Wills Wang7b5bace2014-08-19 15:33:00 +08001063 uart3_pins_a: uart3@0 {
1064 allwinner,pins = "PG6", "PG7", "PG8", "PG9";
1065 allwinner,function = "uart3";
Maxime Ripard092a0c32014-12-16 22:59:57 +01001066 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
1067 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Wills Wang7b5bace2014-08-19 15:33:00 +08001068 };
1069
Hans de Goede0510e4b2014-10-01 09:26:05 +02001070 uart3_pins_b: uart3@1 {
1071 allwinner,pins = "PH0", "PH1";
1072 allwinner,function = "uart3";
Maxime Ripard092a0c32014-12-16 22:59:57 +01001073 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
1074 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Hans de Goede0510e4b2014-10-01 09:26:05 +02001075 };
1076
Wills Wang7b5bace2014-08-19 15:33:00 +08001077 uart4_pins_a: uart4@0 {
1078 allwinner,pins = "PG10", "PG11";
1079 allwinner,function = "uart4";
Maxime Ripard092a0c32014-12-16 22:59:57 +01001080 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
1081 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Wills Wang7b5bace2014-08-19 15:33:00 +08001082 };
1083
Michael Ring869afa72015-05-21 14:32:33 +02001084 uart4_pins_b: uart4@1 {
1085 allwinner,pins = "PH4", "PH5";
1086 allwinner,function = "uart4";
1087 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
1088 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
1089 };
1090
Wills Wang7b5bace2014-08-19 15:33:00 +08001091 uart5_pins_a: uart5@0 {
1092 allwinner,pins = "PI10", "PI11";
1093 allwinner,function = "uart5";
Maxime Ripard092a0c32014-12-16 22:59:57 +01001094 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
1095 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Wills Wang7b5bace2014-08-19 15:33:00 +08001096 };
1097
Maxime Ripard9f229ba2013-07-25 00:09:47 +02001098 uart6_pins_a: uart6@0 {
1099 allwinner,pins = "PI12", "PI13";
1100 allwinner,function = "uart6";
Maxime Ripard092a0c32014-12-16 22:59:57 +01001101 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
1102 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Maxime Ripard9f229ba2013-07-25 00:09:47 +02001103 };
1104
1105 uart7_pins_a: uart7@0 {
1106 allwinner,pins = "PI20", "PI21";
1107 allwinner,function = "uart7";
Maxime Ripard092a0c32014-12-16 22:59:57 +01001108 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
1109 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Maxime Ripard9f229ba2013-07-25 00:09:47 +02001110 };
Maxime Ripard756084c2013-09-11 11:10:07 +02001111
Maxime Riparde5496a32013-08-31 23:08:49 +02001112 i2c0_pins_a: i2c0@0 {
1113 allwinner,pins = "PB0", "PB1";
1114 allwinner,function = "i2c0";
Maxime Ripard092a0c32014-12-16 22:59:57 +01001115 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
1116 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Maxime Riparde5496a32013-08-31 23:08:49 +02001117 };
1118
1119 i2c1_pins_a: i2c1@0 {
1120 allwinner,pins = "PB18", "PB19";
1121 allwinner,function = "i2c1";
Maxime Ripard092a0c32014-12-16 22:59:57 +01001122 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
1123 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Maxime Riparde5496a32013-08-31 23:08:49 +02001124 };
1125
1126 i2c2_pins_a: i2c2@0 {
1127 allwinner,pins = "PB20", "PB21";
1128 allwinner,function = "i2c2";
Maxime Ripard092a0c32014-12-16 22:59:57 +01001129 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
1130 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Maxime Riparde5496a32013-08-31 23:08:49 +02001131 };
1132
Wills Wang7b5bace2014-08-19 15:33:00 +08001133 i2c3_pins_a: i2c3@0 {
1134 allwinner,pins = "PI0", "PI1";
1135 allwinner,function = "i2c3";
Maxime Ripard092a0c32014-12-16 22:59:57 +01001136 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
1137 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Wills Wang7b5bace2014-08-19 15:33:00 +08001138 };
1139
Maxime Ripard756084c2013-09-11 11:10:07 +02001140 emac_pins_a: emac0@0 {
1141 allwinner,pins = "PA0", "PA1", "PA2",
1142 "PA3", "PA4", "PA5", "PA6",
1143 "PA7", "PA8", "PA9", "PA10",
1144 "PA11", "PA12", "PA13", "PA14",
1145 "PA15", "PA16";
1146 allwinner,function = "emac";
Maxime Ripard092a0c32014-12-16 22:59:57 +01001147 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
1148 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Maxime Ripard756084c2013-09-11 11:10:07 +02001149 };
Chen-Yu Tsaif2e07592014-01-01 10:30:50 +08001150
1151 clk_out_a_pins_a: clk_out_a@0 {
1152 allwinner,pins = "PI12";
1153 allwinner,function = "clk_out_a";
Maxime Ripard092a0c32014-12-16 22:59:57 +01001154 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
1155 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Chen-Yu Tsaif2e07592014-01-01 10:30:50 +08001156 };
1157
1158 clk_out_b_pins_a: clk_out_b@0 {
1159 allwinner,pins = "PI13";
1160 allwinner,function = "clk_out_b";
Maxime Ripard092a0c32014-12-16 22:59:57 +01001161 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
1162 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Chen-Yu Tsaif2e07592014-01-01 10:30:50 +08001163 };
Chen-Yu Tsai129ccbc2014-02-10 18:35:50 +08001164
1165 gmac_pins_mii_a: gmac_mii@0 {
1166 allwinner,pins = "PA0", "PA1", "PA2",
1167 "PA3", "PA4", "PA5", "PA6",
1168 "PA7", "PA8", "PA9", "PA10",
1169 "PA11", "PA12", "PA13", "PA14",
1170 "PA15", "PA16";
1171 allwinner,function = "gmac";
Maxime Ripard092a0c32014-12-16 22:59:57 +01001172 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
1173 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Chen-Yu Tsai129ccbc2014-02-10 18:35:50 +08001174 };
1175
1176 gmac_pins_rgmii_a: gmac_rgmii@0 {
1177 allwinner,pins = "PA0", "PA1", "PA2",
1178 "PA3", "PA4", "PA5", "PA6",
1179 "PA7", "PA8", "PA10",
1180 "PA11", "PA12", "PA13",
1181 "PA15", "PA16";
1182 allwinner,function = "gmac";
1183 /*
1184 * data lines in RGMII mode use DDR mode
1185 * and need a higher signal drive strength
1186 */
Maxime Ripard092a0c32014-12-16 22:59:57 +01001187 allwinner,drive = <SUN4I_PINCTRL_40_MA>;
1188 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Chen-Yu Tsai129ccbc2014-02-10 18:35:50 +08001189 };
Maxime Ripard412f2c62014-02-22 22:35:58 +01001190
Hans de Goede2dad53b2014-10-01 09:26:04 +02001191 spi0_pins_a: spi0@0 {
Maxime Ripardf3022c62015-05-03 09:25:41 +02001192 allwinner,pins = "PI11", "PI12", "PI13";
1193 allwinner,function = "spi0";
1194 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
1195 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
1196 };
1197
1198 spi0_cs0_pins_a: spi0_cs0@0 {
1199 allwinner,pins = "PI10";
1200 allwinner,function = "spi0";
1201 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
1202 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
1203 };
1204
1205 spi0_cs1_pins_a: spi0_cs1@0 {
1206 allwinner,pins = "PI14";
Hans de Goede2dad53b2014-10-01 09:26:04 +02001207 allwinner,function = "spi0";
Maxime Ripard092a0c32014-12-16 22:59:57 +01001208 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
1209 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Hans de Goede2dad53b2014-10-01 09:26:04 +02001210 };
1211
Maxime Ripard412f2c62014-02-22 22:35:58 +01001212 spi1_pins_a: spi1@0 {
Maxime Ripardf3022c62015-05-03 09:25:41 +02001213 allwinner,pins = "PI17", "PI18", "PI19";
1214 allwinner,function = "spi1";
1215 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
1216 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
1217 };
1218
1219 spi1_cs0_pins_a: spi1_cs0@0 {
1220 allwinner,pins = "PI16";
Maxime Ripard412f2c62014-02-22 22:35:58 +01001221 allwinner,function = "spi1";
Maxime Ripard092a0c32014-12-16 22:59:57 +01001222 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
1223 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Maxime Ripard412f2c62014-02-22 22:35:58 +01001224 };
1225
1226 spi2_pins_a: spi2@0 {
Maxime Ripardf3022c62015-05-03 09:25:41 +02001227 allwinner,pins = "PC20", "PC21", "PC22";
Maxime Ripard412f2c62014-02-22 22:35:58 +01001228 allwinner,function = "spi2";
Maxime Ripard092a0c32014-12-16 22:59:57 +01001229 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
1230 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Maxime Ripard412f2c62014-02-22 22:35:58 +01001231 };
Hans de Goede11fbedf2014-05-02 17:57:27 +02001232
Wills Wang7b5bace2014-08-19 15:33:00 +08001233 spi2_pins_b: spi2@1 {
Maxime Ripardf3022c62015-05-03 09:25:41 +02001234 allwinner,pins = "PB15", "PB16", "PB17";
1235 allwinner,function = "spi2";
1236 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
1237 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
1238 };
1239
1240 spi2_cs0_pins_a: spi2_cs0@0 {
1241 allwinner,pins = "PC19";
1242 allwinner,function = "spi2";
1243 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
1244 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
1245 };
1246
1247 spi2_cs0_pins_b: spi2_cs0@1 {
1248 allwinner,pins = "PB14";
Wills Wang7b5bace2014-08-19 15:33:00 +08001249 allwinner,function = "spi2";
Maxime Ripard092a0c32014-12-16 22:59:57 +01001250 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
1251 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Wills Wang7b5bace2014-08-19 15:33:00 +08001252 };
1253
Hans de Goede11fbedf2014-05-02 17:57:27 +02001254 mmc0_pins_a: mmc0@0 {
Maxime Ripardd8cacaa2015-05-03 11:53:07 +02001255 allwinner,pins = "PF0", "PF1", "PF2",
1256 "PF3", "PF4", "PF5";
Hans de Goede11fbedf2014-05-02 17:57:27 +02001257 allwinner,function = "mmc0";
Maxime Ripard092a0c32014-12-16 22:59:57 +01001258 allwinner,drive = <SUN4I_PINCTRL_30_MA>;
1259 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Hans de Goede11fbedf2014-05-02 17:57:27 +02001260 };
1261
1262 mmc0_cd_pin_reference_design: mmc0_cd_pin@0 {
1263 allwinner,pins = "PH1";
1264 allwinner,function = "gpio_in";
Maxime Ripard092a0c32014-12-16 22:59:57 +01001265 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
1266 allwinner,pull = <SUN4I_PINCTRL_PULL_UP>;
Hans de Goede11fbedf2014-05-02 17:57:27 +02001267 };
1268
Hans de Goede8fa82322014-10-01 16:25:36 +02001269 mmc2_pins_a: mmc2@0 {
Maxime Ripardd8cacaa2015-05-03 11:53:07 +02001270 allwinner,pins = "PC6", "PC7", "PC8",
1271 "PC9", "PC10", "PC11";
Hans de Goede8fa82322014-10-01 16:25:36 +02001272 allwinner,function = "mmc2";
Maxime Ripard092a0c32014-12-16 22:59:57 +01001273 allwinner,drive = <SUN4I_PINCTRL_30_MA>;
1274 allwinner,pull = <SUN4I_PINCTRL_PULL_UP>;
Hans de Goede8fa82322014-10-01 16:25:36 +02001275 };
1276
Hans de Goede11fbedf2014-05-02 17:57:27 +02001277 mmc3_pins_a: mmc3@0 {
Maxime Ripardd8cacaa2015-05-03 11:53:07 +02001278 allwinner,pins = "PI4", "PI5", "PI6",
1279 "PI7", "PI8", "PI9";
Hans de Goede11fbedf2014-05-02 17:57:27 +02001280 allwinner,function = "mmc3";
Maxime Ripard092a0c32014-12-16 22:59:57 +01001281 allwinner,drive = <SUN4I_PINCTRL_30_MA>;
1282 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Hans de Goede11fbedf2014-05-02 17:57:27 +02001283 };
Alexander Bersenev0fc2b7a2014-06-09 00:08:11 +06001284
Marcus Cooper469a22e2015-05-02 13:36:20 +02001285 ir0_rx_pins_a: ir0@0 {
1286 allwinner,pins = "PB4";
Alexander Bersenev0fc2b7a2014-06-09 00:08:11 +06001287 allwinner,function = "ir0";
Maxime Ripard092a0c32014-12-16 22:59:57 +01001288 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
1289 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Alexander Bersenev0fc2b7a2014-06-09 00:08:11 +06001290 };
1291
Marcus Cooper469a22e2015-05-02 13:36:20 +02001292 ir0_tx_pins_a: ir0@1 {
1293 allwinner,pins = "PB3";
1294 allwinner,function = "ir0";
1295 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
1296 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
1297 };
1298
1299 ir1_rx_pins_a: ir1@0 {
1300 allwinner,pins = "PB23";
1301 allwinner,function = "ir1";
1302 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
1303 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
1304 };
1305
1306 ir1_tx_pins_a: ir1@1 {
1307 allwinner,pins = "PB22";
Alexander Bersenev0fc2b7a2014-06-09 00:08:11 +06001308 allwinner,function = "ir1";
Maxime Ripard092a0c32014-12-16 22:59:57 +01001309 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
1310 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Alexander Bersenev0fc2b7a2014-06-09 00:08:11 +06001311 };
Vishnu Patekar1e8d1562015-01-25 19:10:09 +05301312
1313 ps20_pins_a: ps20@0 {
1314 allwinner,pins = "PI20", "PI21";
1315 allwinner,function = "ps2";
1316 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
1317 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
1318 };
1319
1320 ps21_pins_a: ps21@0 {
1321 allwinner,pins = "PH12", "PH13";
1322 allwinner,function = "ps2";
1323 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
1324 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Maxime Ripard4790ecf2013-07-17 10:07:10 +02001325 };
Marcus Cooperbdd08a82016-03-21 21:01:00 +01001326
1327 spdif_tx_pins_a: spdif@0 {
1328 allwinner,pins = "PB13";
1329 allwinner,function = "spdif";
1330 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
1331 allwinner,pull = <SUN4I_PINCTRL_PULL_UP>;
1332 };
Maxime Ripard4790ecf2013-07-17 10:07:10 +02001333 };
1334
1335 timer@01c20c00 {
1336 compatible = "allwinner,sun4i-a10-timer";
1337 reg = <0x01c20c00 0x90>;
Maxime Ripard19882b82014-12-16 22:59:58 +01001338 interrupts = <GIC_SPI 22 IRQ_TYPE_LEVEL_HIGH>,
1339 <GIC_SPI 23 IRQ_TYPE_LEVEL_HIGH>,
1340 <GIC_SPI 24 IRQ_TYPE_LEVEL_HIGH>,
1341 <GIC_SPI 25 IRQ_TYPE_LEVEL_HIGH>,
1342 <GIC_SPI 67 IRQ_TYPE_LEVEL_HIGH>,
1343 <GIC_SPI 68 IRQ_TYPE_LEVEL_HIGH>;
Maxime Ripard4790ecf2013-07-17 10:07:10 +02001344 clocks = <&osc24M>;
1345 };
1346
1347 wdt: watchdog@01c20c90 {
Maxime Ripardca5d04d2014-02-07 22:29:26 +01001348 compatible = "allwinner,sun4i-a10-wdt";
Maxime Ripard4790ecf2013-07-17 10:07:10 +02001349 reg = <0x01c20c90 0x10>;
1350 };
1351
Carlo Caioneb5d905c2013-10-16 20:30:26 +02001352 rtc: rtc@01c20d00 {
1353 compatible = "allwinner,sun7i-a20-rtc";
1354 reg = <0x01c20d00 0x20>;
Maxime Ripard19882b82014-12-16 22:59:58 +01001355 interrupts = <GIC_SPI 24 IRQ_TYPE_LEVEL_HIGH>;
Carlo Caioneb5d905c2013-10-16 20:30:26 +02001356 };
1357
Alexandre Belloni8ec40c22014-04-28 18:17:13 +02001358 pwm: pwm@01c20e00 {
1359 compatible = "allwinner,sun7i-a20-pwm";
1360 reg = <0x01c20e00 0xc>;
1361 clocks = <&osc24M>;
1362 #pwm-cells = <3>;
1363 status = "disabled";
1364 };
1365
Marcus Coopera34d6ce2016-03-21 21:01:04 +01001366 spdif: spdif@01c21000 {
1367 #sound-dai-cells = <0>;
1368 compatible = "allwinner,sun4i-a10-spdif";
1369 reg = <0x01c21000 0x400>;
1370 interrupts = <GIC_SPI 13 IRQ_TYPE_LEVEL_HIGH>;
1371 clocks = <&apb0_gates 1>, <&spdif_clk>;
1372 clock-names = "apb", "spdif";
1373 dmas = <&dma SUN4I_DMA_NORMAL 2>,
1374 <&dma SUN4I_DMA_NORMAL 2>;
1375 dma-names = "rx", "tx";
1376 status = "disabled";
1377 };
1378
Alexander Bersenevc1a0ee32014-06-21 17:04:05 +06001379 ir0: ir@01c21800 {
Hans de Goede1715a382014-06-30 23:57:54 +02001380 compatible = "allwinner,sun4i-a10-ir";
Alexander Bersenevc1a0ee32014-06-21 17:04:05 +06001381 clocks = <&apb0_gates 6>, <&ir0_clk>;
1382 clock-names = "apb", "ir";
Maxime Ripard19882b82014-12-16 22:59:58 +01001383 interrupts = <GIC_SPI 5 IRQ_TYPE_LEVEL_HIGH>;
Alexander Bersenevc1a0ee32014-06-21 17:04:05 +06001384 reg = <0x01c21800 0x40>;
1385 status = "disabled";
1386 };
1387
1388 ir1: ir@01c21c00 {
Hans de Goede1715a382014-06-30 23:57:54 +02001389 compatible = "allwinner,sun4i-a10-ir";
Alexander Bersenevc1a0ee32014-06-21 17:04:05 +06001390 clocks = <&apb0_gates 7>, <&ir1_clk>;
1391 clock-names = "apb", "ir";
Maxime Ripard19882b82014-12-16 22:59:58 +01001392 interrupts = <GIC_SPI 6 IRQ_TYPE_LEVEL_HIGH>;
Alexander Bersenevc1a0ee32014-06-21 17:04:05 +06001393 reg = <0x01c21c00 0x40>;
1394 status = "disabled";
1395 };
1396
Hans de Goedea6a2d642014-12-23 11:13:22 +01001397 lradc: lradc@01c22800 {
1398 compatible = "allwinner,sun4i-a10-lradc-keys";
1399 reg = <0x01c22800 0x100>;
Maxime Ripard19882b82014-12-16 22:59:58 +01001400 interrupts = <GIC_SPI 31 IRQ_TYPE_LEVEL_HIGH>;
Hans de Goedea6a2d642014-12-23 11:13:22 +01001401 status = "disabled";
1402 };
1403
Emilio Lópezd5ce1072014-08-18 01:07:55 -03001404 codec: codec@01c22c00 {
1405 #sound-dai-cells = <0>;
1406 compatible = "allwinner,sun7i-a20-codec";
1407 reg = <0x01c22c00 0x40>;
1408 interrupts = <GIC_SPI 30 IRQ_TYPE_LEVEL_HIGH>;
1409 clocks = <&apb0_gates 0>, <&codec_clk>;
1410 clock-names = "apb", "codec";
1411 dmas = <&dma SUN4I_DMA_NORMAL 19>,
1412 <&dma SUN4I_DMA_NORMAL 19>;
1413 dma-names = "rx", "tx";
1414 status = "disabled";
1415 };
1416
Oliver Schinagl2bad9692013-09-03 12:33:28 +02001417 sid: eeprom@01c23800 {
1418 compatible = "allwinner,sun7i-a20-sid";
1419 reg = <0x01c23800 0x200>;
1420 };
1421
Hans de Goede00f7ed82013-12-31 17:20:52 +01001422 rtp: rtp@01c25000 {
Hans de Goede8bf1b9b2015-03-08 21:53:42 +01001423 compatible = "allwinner,sun5i-a13-ts";
Hans de Goede00f7ed82013-12-31 17:20:52 +01001424 reg = <0x01c25000 0x100>;
Maxime Ripard19882b82014-12-16 22:59:58 +01001425 interrupts = <GIC_SPI 29 IRQ_TYPE_LEVEL_HIGH>;
Chen-Yu Tsai41e7afb2015-01-06 10:35:15 +08001426 #thermal-sensor-cells = <0>;
Hans de Goede00f7ed82013-12-31 17:20:52 +01001427 };
1428
Maxime Ripard4790ecf2013-07-17 10:07:10 +02001429 uart0: serial@01c28000 {
1430 compatible = "snps,dw-apb-uart";
1431 reg = <0x01c28000 0x400>;
Maxime Ripard19882b82014-12-16 22:59:58 +01001432 interrupts = <GIC_SPI 1 IRQ_TYPE_LEVEL_HIGH>;
Maxime Ripard4790ecf2013-07-17 10:07:10 +02001433 reg-shift = <2>;
1434 reg-io-width = <4>;
Maxime Ripardde7dc932013-07-25 21:12:52 +02001435 clocks = <&apb1_gates 16>;
Maxime Ripard4790ecf2013-07-17 10:07:10 +02001436 status = "disabled";
1437 };
1438
1439 uart1: serial@01c28400 {
1440 compatible = "snps,dw-apb-uart";
1441 reg = <0x01c28400 0x400>;
Maxime Ripard19882b82014-12-16 22:59:58 +01001442 interrupts = <GIC_SPI 2 IRQ_TYPE_LEVEL_HIGH>;
Maxime Ripard4790ecf2013-07-17 10:07:10 +02001443 reg-shift = <2>;
1444 reg-io-width = <4>;
Maxime Ripardde7dc932013-07-25 21:12:52 +02001445 clocks = <&apb1_gates 17>;
Maxime Ripard4790ecf2013-07-17 10:07:10 +02001446 status = "disabled";
1447 };
1448
1449 uart2: serial@01c28800 {
1450 compatible = "snps,dw-apb-uart";
1451 reg = <0x01c28800 0x400>;
Maxime Ripard19882b82014-12-16 22:59:58 +01001452 interrupts = <GIC_SPI 3 IRQ_TYPE_LEVEL_HIGH>;
Maxime Ripard4790ecf2013-07-17 10:07:10 +02001453 reg-shift = <2>;
1454 reg-io-width = <4>;
Maxime Ripardde7dc932013-07-25 21:12:52 +02001455 clocks = <&apb1_gates 18>;
Maxime Ripard4790ecf2013-07-17 10:07:10 +02001456 status = "disabled";
1457 };
1458
1459 uart3: serial@01c28c00 {
1460 compatible = "snps,dw-apb-uart";
1461 reg = <0x01c28c00 0x400>;
Maxime Ripard19882b82014-12-16 22:59:58 +01001462 interrupts = <GIC_SPI 4 IRQ_TYPE_LEVEL_HIGH>;
Maxime Ripard4790ecf2013-07-17 10:07:10 +02001463 reg-shift = <2>;
1464 reg-io-width = <4>;
Maxime Ripardde7dc932013-07-25 21:12:52 +02001465 clocks = <&apb1_gates 19>;
Maxime Ripard4790ecf2013-07-17 10:07:10 +02001466 status = "disabled";
1467 };
1468
1469 uart4: serial@01c29000 {
1470 compatible = "snps,dw-apb-uart";
1471 reg = <0x01c29000 0x400>;
Maxime Ripard19882b82014-12-16 22:59:58 +01001472 interrupts = <GIC_SPI 17 IRQ_TYPE_LEVEL_HIGH>;
Maxime Ripard4790ecf2013-07-17 10:07:10 +02001473 reg-shift = <2>;
1474 reg-io-width = <4>;
Maxime Ripardde7dc932013-07-25 21:12:52 +02001475 clocks = <&apb1_gates 20>;
Maxime Ripard4790ecf2013-07-17 10:07:10 +02001476 status = "disabled";
1477 };
1478
1479 uart5: serial@01c29400 {
1480 compatible = "snps,dw-apb-uart";
1481 reg = <0x01c29400 0x400>;
Maxime Ripard19882b82014-12-16 22:59:58 +01001482 interrupts = <GIC_SPI 18 IRQ_TYPE_LEVEL_HIGH>;
Maxime Ripard4790ecf2013-07-17 10:07:10 +02001483 reg-shift = <2>;
1484 reg-io-width = <4>;
Maxime Ripardde7dc932013-07-25 21:12:52 +02001485 clocks = <&apb1_gates 21>;
Maxime Ripard4790ecf2013-07-17 10:07:10 +02001486 status = "disabled";
1487 };
1488
1489 uart6: serial@01c29800 {
1490 compatible = "snps,dw-apb-uart";
1491 reg = <0x01c29800 0x400>;
Maxime Ripard19882b82014-12-16 22:59:58 +01001492 interrupts = <GIC_SPI 19 IRQ_TYPE_LEVEL_HIGH>;
Maxime Ripard4790ecf2013-07-17 10:07:10 +02001493 reg-shift = <2>;
1494 reg-io-width = <4>;
Maxime Ripardde7dc932013-07-25 21:12:52 +02001495 clocks = <&apb1_gates 22>;
Maxime Ripard4790ecf2013-07-17 10:07:10 +02001496 status = "disabled";
1497 };
1498
1499 uart7: serial@01c29c00 {
1500 compatible = "snps,dw-apb-uart";
1501 reg = <0x01c29c00 0x400>;
Maxime Ripard19882b82014-12-16 22:59:58 +01001502 interrupts = <GIC_SPI 20 IRQ_TYPE_LEVEL_HIGH>;
Maxime Ripard4790ecf2013-07-17 10:07:10 +02001503 reg-shift = <2>;
1504 reg-io-width = <4>;
Maxime Ripardde7dc932013-07-25 21:12:52 +02001505 clocks = <&apb1_gates 23>;
Maxime Ripard4790ecf2013-07-17 10:07:10 +02001506 status = "disabled";
1507 };
1508
Maxime Ripard428abbb2013-08-31 23:07:24 +02001509 i2c0: i2c@01c2ac00 {
Maxime Ripardd8cacaa2015-05-03 11:53:07 +02001510 compatible = "allwinner,sun7i-a20-i2c",
1511 "allwinner,sun4i-a10-i2c";
Maxime Ripard428abbb2013-08-31 23:07:24 +02001512 reg = <0x01c2ac00 0x400>;
Maxime Ripard19882b82014-12-16 22:59:58 +01001513 interrupts = <GIC_SPI 7 IRQ_TYPE_LEVEL_HIGH>;
Maxime Ripard428abbb2013-08-31 23:07:24 +02001514 clocks = <&apb1_gates 0>;
Maxime Ripard428abbb2013-08-31 23:07:24 +02001515 status = "disabled";
Hans de Goeded1412ae2014-04-13 13:41:05 +02001516 #address-cells = <1>;
1517 #size-cells = <0>;
Maxime Ripard428abbb2013-08-31 23:07:24 +02001518 };
1519
1520 i2c1: i2c@01c2b000 {
Maxime Ripardd8cacaa2015-05-03 11:53:07 +02001521 compatible = "allwinner,sun7i-a20-i2c",
1522 "allwinner,sun4i-a10-i2c";
Maxime Ripard428abbb2013-08-31 23:07:24 +02001523 reg = <0x01c2b000 0x400>;
Maxime Ripard19882b82014-12-16 22:59:58 +01001524 interrupts = <GIC_SPI 8 IRQ_TYPE_LEVEL_HIGH>;
Maxime Ripard428abbb2013-08-31 23:07:24 +02001525 clocks = <&apb1_gates 1>;
Maxime Ripard428abbb2013-08-31 23:07:24 +02001526 status = "disabled";
Hans de Goeded1412ae2014-04-13 13:41:05 +02001527 #address-cells = <1>;
1528 #size-cells = <0>;
Maxime Ripard428abbb2013-08-31 23:07:24 +02001529 };
1530
1531 i2c2: i2c@01c2b400 {
Maxime Ripardd8cacaa2015-05-03 11:53:07 +02001532 compatible = "allwinner,sun7i-a20-i2c",
1533 "allwinner,sun4i-a10-i2c";
Maxime Ripard428abbb2013-08-31 23:07:24 +02001534 reg = <0x01c2b400 0x400>;
Maxime Ripard19882b82014-12-16 22:59:58 +01001535 interrupts = <GIC_SPI 9 IRQ_TYPE_LEVEL_HIGH>;
Maxime Ripard428abbb2013-08-31 23:07:24 +02001536 clocks = <&apb1_gates 2>;
Maxime Ripard428abbb2013-08-31 23:07:24 +02001537 status = "disabled";
Hans de Goeded1412ae2014-04-13 13:41:05 +02001538 #address-cells = <1>;
1539 #size-cells = <0>;
Maxime Ripard428abbb2013-08-31 23:07:24 +02001540 };
1541
1542 i2c3: i2c@01c2b800 {
Maxime Ripardd8cacaa2015-05-03 11:53:07 +02001543 compatible = "allwinner,sun7i-a20-i2c",
1544 "allwinner,sun4i-a10-i2c";
Maxime Ripard428abbb2013-08-31 23:07:24 +02001545 reg = <0x01c2b800 0x400>;
Maxime Ripard19882b82014-12-16 22:59:58 +01001546 interrupts = <GIC_SPI 88 IRQ_TYPE_LEVEL_HIGH>;
Maxime Ripard428abbb2013-08-31 23:07:24 +02001547 clocks = <&apb1_gates 3>;
Maxime Ripard428abbb2013-08-31 23:07:24 +02001548 status = "disabled";
Hans de Goeded1412ae2014-04-13 13:41:05 +02001549 #address-cells = <1>;
1550 #size-cells = <0>;
Maxime Ripard428abbb2013-08-31 23:07:24 +02001551 };
1552
Maxime Riparda3867042014-04-18 21:13:08 +02001553 i2c4: i2c@01c2c000 {
Maxime Ripardd8cacaa2015-05-03 11:53:07 +02001554 compatible = "allwinner,sun7i-a20-i2c",
1555 "allwinner,sun4i-a10-i2c";
Maxime Riparda3867042014-04-18 21:13:08 +02001556 reg = <0x01c2c000 0x400>;
Maxime Ripard19882b82014-12-16 22:59:58 +01001557 interrupts = <GIC_SPI 89 IRQ_TYPE_LEVEL_HIGH>;
Maxime Ripard428abbb2013-08-31 23:07:24 +02001558 clocks = <&apb1_gates 15>;
Maxime Ripard428abbb2013-08-31 23:07:24 +02001559 status = "disabled";
Hans de Goeded1412ae2014-04-13 13:41:05 +02001560 #address-cells = <1>;
1561 #size-cells = <0>;
Maxime Ripard428abbb2013-08-31 23:07:24 +02001562 };
1563
Chen-Yu Tsaic40b8d52014-02-10 18:35:49 +08001564 gmac: ethernet@01c50000 {
1565 compatible = "allwinner,sun7i-a20-gmac";
1566 reg = <0x01c50000 0x10000>;
Maxime Ripard19882b82014-12-16 22:59:58 +01001567 interrupts = <GIC_SPI 85 IRQ_TYPE_LEVEL_HIGH>;
Chen-Yu Tsaic40b8d52014-02-10 18:35:49 +08001568 interrupt-names = "macirq";
1569 clocks = <&ahb_gates 49>, <&gmac_tx_clk>;
1570 clock-names = "stmmaceth", "allwinner_gmac_tx";
1571 snps,pbl = <2>;
1572 snps,fixed-burst;
1573 snps,force_sf_dma_mode;
1574 status = "disabled";
1575 #address-cells = <1>;
1576 #size-cells = <0>;
1577 };
1578
Maxime Ripard31f8ad32013-11-07 12:01:48 +01001579 hstimer@01c60000 {
1580 compatible = "allwinner,sun7i-a20-hstimer";
1581 reg = <0x01c60000 0x1000>;
Maxime Ripard19882b82014-12-16 22:59:58 +01001582 interrupts = <GIC_SPI 81 IRQ_TYPE_LEVEL_HIGH>,
1583 <GIC_SPI 82 IRQ_TYPE_LEVEL_HIGH>,
1584 <GIC_SPI 83 IRQ_TYPE_LEVEL_HIGH>,
1585 <GIC_SPI 84 IRQ_TYPE_LEVEL_HIGH>;
Maxime Ripard31f8ad32013-11-07 12:01:48 +01001586 clocks = <&ahb_gates 28>;
1587 };
1588
Maxime Ripard4790ecf2013-07-17 10:07:10 +02001589 gic: interrupt-controller@01c81000 {
1590 compatible = "arm,cortex-a7-gic", "arm,cortex-a15-gic";
1591 reg = <0x01c81000 0x1000>,
1592 <0x01c82000 0x1000>,
1593 <0x01c84000 0x2000>,
1594 <0x01c86000 0x2000>;
1595 interrupt-controller;
1596 #interrupt-cells = <3>;
Maxime Ripard19882b82014-12-16 22:59:58 +01001597 interrupts = <GIC_PPI 9 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>;
Maxime Ripard4790ecf2013-07-17 10:07:10 +02001598 };
Vishnu Patekar196654a2015-01-25 19:10:08 +05301599
1600 ps20: ps2@01c2a000 {
1601 compatible = "allwinner,sun4i-a10-ps2";
1602 reg = <0x01c2a000 0x400>;
1603 interrupts = <GIC_SPI 62 IRQ_TYPE_LEVEL_HIGH>;
1604 clocks = <&apb1_gates 6>;
1605 status = "disabled";
1606 };
1607
1608 ps21: ps2@01c2a400 {
1609 compatible = "allwinner,sun4i-a10-ps2";
1610 reg = <0x01c2a400 0x400>;
1611 interrupts = <GIC_SPI 63 IRQ_TYPE_LEVEL_HIGH>;
1612 clocks = <&apb1_gates 7>;
1613 status = "disabled";
Maxime Ripard4790ecf2013-07-17 10:07:10 +02001614 };
1615 };
1616};