blob: 0c17079b4636b34beb3dad15633e02a703f05153 [file] [log] [blame]
Maxime Ripard8aed3b32013-03-10 16:09:06 +01001/*
2 * Copyright 2013 Maxime Ripard
3 *
4 * Maxime Ripard <maxime.ripard@free-electrons.com>
5 *
Maxime Ripard6c3ba722014-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 Ripard8aed3b32013-03-10 16:09:06 +010010 *
Maxime Ripard5186d832014-10-17 11:38:23 +020011 * a) This file is free software; you can redistribute it and/or
Maxime Ripard6c3ba722014-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 Ripard6c3ba722014-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 Ripard6c3ba722014-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 Ripard8aed3b32013-03-10 16:09:06 +010048 */
49
Maxime Ripard71455702014-12-16 22:59:54 +010050#include "skeleton.dtsi"
Maxime Ripard8aed3b32013-03-10 16:09:06 +010051
Maxime Ripard19882b82014-12-16 22:59:58 +010052#include <dt-bindings/interrupt-controller/arm-gic.h>
53
Maxime Ripard092a0c32014-12-16 22:59:57 +010054#include <dt-bindings/pinctrl/sun4i-a10.h>
55
Maxime Ripard8aed3b32013-03-10 16:09:06 +010056/ {
57 interrupt-parent = <&gic>;
58
Maxime Ripard54428d42014-01-02 22:05:04 +010059 aliases {
60 serial0 = &uart0;
61 serial1 = &uart1;
62 serial2 = &uart2;
63 serial3 = &uart3;
64 serial4 = &uart4;
65 serial5 = &uart5;
Chen-Yu Tsaie5073fd2014-07-16 01:15:46 +080066 ethernet0 = &gmac;
Maxime Ripard54428d42014-01-02 22:05:04 +010067 };
68
Hans de Goedee53a8b22014-11-14 16:34:36 +010069 chosen {
70 #address-cells = <1>;
71 #size-cells = <1>;
72 ranges;
73
Hans de Goedea9f8cda2014-11-18 12:07:13 +010074 framebuffer@0 {
75 compatible = "allwinner,simple-framebuffer", "simple-framebuffer";
76 allwinner,pipeline = "de_be0-lcd0-hdmi";
Hans de Goede678e75d2014-11-16 17:09:32 +010077 clocks = <&pll6 0>;
Hans de Goedee53a8b22014-11-14 16:34:36 +010078 status = "disabled";
79 };
Hans de Goedefd18c7e2015-01-19 14:05:12 +010080
81 framebuffer@1 {
82 compatible = "allwinner,simple-framebuffer",
83 "simple-framebuffer";
84 allwinner,pipeline = "de_be0-lcd0";
85 clocks = <&pll6 0>;
86 status = "disabled";
87 };
Hans de Goedee53a8b22014-11-14 16:34:36 +010088 };
Maxime Ripard54428d42014-01-02 22:05:04 +010089
Maxime Ripard121b96c2015-01-11 20:33:44 +010090 timer {
91 compatible = "arm,armv7-timer";
92 interrupts = <GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
93 <GIC_PPI 14 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
94 <GIC_PPI 11 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
95 <GIC_PPI 10 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>;
96 clock-frequency = <24000000>;
97 arm,cpu-registers-not-fw-configured;
98 };
99
Maxime Ripard8aed3b32013-03-10 16:09:06 +0100100 cpus {
Maxime Ripardce78e352014-04-18 21:01:52 +0200101 enable-method = "allwinner,sun6i-a31";
Maxime Ripard8aed3b32013-03-10 16:09:06 +0100102 #address-cells = <1>;
103 #size-cells = <0>;
104
105 cpu@0 {
106 compatible = "arm,cortex-a7";
107 device_type = "cpu";
108 reg = <0>;
109 };
110
111 cpu@1 {
112 compatible = "arm,cortex-a7";
113 device_type = "cpu";
114 reg = <1>;
115 };
116
117 cpu@2 {
118 compatible = "arm,cortex-a7";
119 device_type = "cpu";
120 reg = <2>;
121 };
122
123 cpu@3 {
124 compatible = "arm,cortex-a7";
125 device_type = "cpu";
126 reg = <3>;
127 };
128 };
129
130 memory {
131 reg = <0x40000000 0x80000000>;
132 };
133
Maxime Ripardb5a10b72014-04-17 21:54:41 +0200134 pmu {
135 compatible = "arm,cortex-a7-pmu", "arm,cortex-a15-pmu";
Maxime Ripard19882b82014-12-16 22:59:58 +0100136 interrupts = <GIC_SPI 120 IRQ_TYPE_LEVEL_HIGH>,
137 <GIC_SPI 121 IRQ_TYPE_LEVEL_HIGH>,
138 <GIC_SPI 122 IRQ_TYPE_LEVEL_HIGH>,
139 <GIC_SPI 123 IRQ_TYPE_LEVEL_HIGH>;
Maxime Ripardb5a10b72014-04-17 21:54:41 +0200140 };
141
Maxime Ripard8aed3b32013-03-10 16:09:06 +0100142 clocks {
143 #address-cells = <1>;
Maxime Ripard98096562013-07-23 23:54:19 +0200144 #size-cells = <1>;
145 ranges;
Maxime Ripard8aed3b32013-03-10 16:09:06 +0100146
Maxime Ripard98096562013-07-23 23:54:19 +0200147 osc24M: osc24M {
Maxime Ripard8aed3b32013-03-10 16:09:06 +0100148 #clock-cells = <0>;
149 compatible = "fixed-clock";
150 clock-frequency = <24000000>;
151 };
Maxime Ripard98096562013-07-23 23:54:19 +0200152
Chen-Yu Tsai7b5b2902014-02-03 09:51:43 +0800153 osc32k: clk@0 {
Maxime Ripard98096562013-07-23 23:54:19 +0200154 #clock-cells = <0>;
155 compatible = "fixed-clock";
156 clock-frequency = <32768>;
Chen-Yu Tsai7b5b2902014-02-03 09:51:43 +0800157 clock-output-names = "osc32k";
Maxime Ripard98096562013-07-23 23:54:19 +0200158 };
159
Chen-Yu Tsai7b5b2902014-02-03 09:51:43 +0800160 pll1: clk@01c20000 {
Maxime Ripard98096562013-07-23 23:54:19 +0200161 #clock-cells = <0>;
162 compatible = "allwinner,sun6i-a31-pll1-clk";
163 reg = <0x01c20000 0x4>;
164 clocks = <&osc24M>;
Chen-Yu Tsai7b5b2902014-02-03 09:51:43 +0800165 clock-output-names = "pll1";
Maxime Ripard98096562013-07-23 23:54:19 +0200166 };
167
Maxime Ripardb0a09c72014-02-05 14:05:04 +0100168 pll6: clk@01c20028 {
Chen-Yu Tsaif6c3b042014-11-13 02:08:32 +0800169 #clock-cells = <1>;
Maxime Ripardb0a09c72014-02-05 14:05:04 +0100170 compatible = "allwinner,sun6i-a31-pll6-clk";
171 reg = <0x01c20028 0x4>;
172 clocks = <&osc24M>;
Chen-Yu Tsaif6c3b042014-11-13 02:08:32 +0800173 clock-output-names = "pll6", "pll6x2";
Maxime Ripard98096562013-07-23 23:54:19 +0200174 };
175
176 cpu: cpu@01c20050 {
177 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100178 compatible = "allwinner,sun4i-a10-cpu-clk";
Maxime Ripard98096562013-07-23 23:54:19 +0200179 reg = <0x01c20050 0x4>;
180
181 /*
182 * PLL1 is listed twice here.
183 * While it looks suspicious, it's actually documented
184 * that way both in the datasheet and in the code from
185 * Allwinner.
186 */
187 clocks = <&osc32k>, <&osc24M>, <&pll1>, <&pll1>;
Chen-Yu Tsai7b5b2902014-02-03 09:51:43 +0800188 clock-output-names = "cpu";
Maxime Ripard98096562013-07-23 23:54:19 +0200189 };
190
191 axi: axi@01c20050 {
192 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100193 compatible = "allwinner,sun4i-a10-axi-clk";
Maxime Ripard98096562013-07-23 23:54:19 +0200194 reg = <0x01c20050 0x4>;
195 clocks = <&cpu>;
Chen-Yu Tsai7b5b2902014-02-03 09:51:43 +0800196 clock-output-names = "axi";
Maxime Ripard98096562013-07-23 23:54:19 +0200197 };
198
199 ahb1_mux: ahb1_mux@01c20054 {
200 #clock-cells = <0>;
201 compatible = "allwinner,sun6i-a31-ahb1-mux-clk";
202 reg = <0x01c20054 0x4>;
Chen-Yu Tsaif6c3b042014-11-13 02:08:32 +0800203 clocks = <&osc32k>, <&osc24M>, <&axi>, <&pll6 0>;
Chen-Yu Tsai7b5b2902014-02-03 09:51:43 +0800204 clock-output-names = "ahb1_mux";
Maxime Ripard98096562013-07-23 23:54:19 +0200205 };
206
207 ahb1: ahb1@01c20054 {
208 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100209 compatible = "allwinner,sun4i-a10-ahb-clk";
Maxime Ripard98096562013-07-23 23:54:19 +0200210 reg = <0x01c20054 0x4>;
211 clocks = <&ahb1_mux>;
Chen-Yu Tsai7b5b2902014-02-03 09:51:43 +0800212 clock-output-names = "ahb1";
Maxime Ripard98096562013-07-23 23:54:19 +0200213 };
214
Chen-Yu Tsai7b5b2902014-02-03 09:51:43 +0800215 ahb1_gates: clk@01c20060 {
Maxime Ripard98096562013-07-23 23:54:19 +0200216 #clock-cells = <1>;
217 compatible = "allwinner,sun6i-a31-ahb1-gates-clk";
218 reg = <0x01c20060 0x8>;
219 clocks = <&ahb1>;
220 clock-output-names = "ahb1_mipidsi", "ahb1_ss",
221 "ahb1_dma", "ahb1_mmc0", "ahb1_mmc1",
222 "ahb1_mmc2", "ahb1_mmc3", "ahb1_nand1",
223 "ahb1_nand0", "ahb1_sdram",
224 "ahb1_gmac", "ahb1_ts", "ahb1_hstimer",
225 "ahb1_spi0", "ahb1_spi1", "ahb1_spi2",
226 "ahb1_spi3", "ahb1_otg", "ahb1_ehci0",
227 "ahb1_ehci1", "ahb1_ohci0",
228 "ahb1_ohci1", "ahb1_ohci2", "ahb1_ve",
229 "ahb1_lcd0", "ahb1_lcd1", "ahb1_csi",
230 "ahb1_hdmi", "ahb1_de0", "ahb1_de1",
231 "ahb1_fe0", "ahb1_fe1", "ahb1_mp",
232 "ahb1_gpu", "ahb1_deu0", "ahb1_deu1",
233 "ahb1_drc0", "ahb1_drc1";
234 };
235
236 apb1: apb1@01c20054 {
237 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100238 compatible = "allwinner,sun4i-a10-apb0-clk";
Maxime Ripard98096562013-07-23 23:54:19 +0200239 reg = <0x01c20054 0x4>;
240 clocks = <&ahb1>;
Chen-Yu Tsai7b5b2902014-02-03 09:51:43 +0800241 clock-output-names = "apb1";
Maxime Ripard98096562013-07-23 23:54:19 +0200242 };
243
Chen-Yu Tsai7b5b2902014-02-03 09:51:43 +0800244 apb1_gates: clk@01c20068 {
Maxime Ripard98096562013-07-23 23:54:19 +0200245 #clock-cells = <1>;
246 compatible = "allwinner,sun6i-a31-apb1-gates-clk";
247 reg = <0x01c20068 0x4>;
248 clocks = <&apb1>;
249 clock-output-names = "apb1_codec", "apb1_digital_mic",
250 "apb1_pio", "apb1_daudio0",
251 "apb1_daudio1";
252 };
253
Chen-Yu Tsai74c947a2014-11-06 11:40:31 +0800254 apb2: clk@01c20058 {
Maxime Ripard98096562013-07-23 23:54:19 +0200255 #clock-cells = <0>;
Chen-Yu Tsai74c947a2014-11-06 11:40:31 +0800256 compatible = "allwinner,sun4i-a10-apb1-clk";
Maxime Ripard98096562013-07-23 23:54:19 +0200257 reg = <0x01c20058 0x4>;
Chen-Yu Tsaif6c3b042014-11-13 02:08:32 +0800258 clocks = <&osc32k>, <&osc24M>, <&pll6 0>, <&pll6 0>;
Chen-Yu Tsai7b5b2902014-02-03 09:51:43 +0800259 clock-output-names = "apb2";
Maxime Ripard98096562013-07-23 23:54:19 +0200260 };
261
Chen-Yu Tsai7b5b2902014-02-03 09:51:43 +0800262 apb2_gates: clk@01c2006c {
Maxime Ripard98096562013-07-23 23:54:19 +0200263 #clock-cells = <1>;
264 compatible = "allwinner,sun6i-a31-apb2-gates-clk";
Maxime Ripard439d9f52013-09-24 16:30:05 +0300265 reg = <0x01c2006c 0x4>;
Maxime Ripard98096562013-07-23 23:54:19 +0200266 clocks = <&apb2>;
267 clock-output-names = "apb2_i2c0", "apb2_i2c1",
268 "apb2_i2c2", "apb2_i2c3", "apb2_uart0",
269 "apb2_uart1", "apb2_uart2", "apb2_uart3",
270 "apb2_uart4", "apb2_uart5";
271 };
Maxime Ripardb0a09c72014-02-05 14:05:04 +0100272
Hans de Goedeadc54c82014-05-02 17:57:23 +0200273 mmc0_clk: clk@01c20088 {
274 #clock-cells = <0>;
275 compatible = "allwinner,sun4i-a10-mod0-clk";
276 reg = <0x01c20088 0x4>;
Chen-Yu Tsaif6c3b042014-11-13 02:08:32 +0800277 clocks = <&osc24M>, <&pll6 0>;
Hans de Goedeadc54c82014-05-02 17:57:23 +0200278 clock-output-names = "mmc0";
279 };
280
281 mmc1_clk: clk@01c2008c {
282 #clock-cells = <0>;
283 compatible = "allwinner,sun4i-a10-mod0-clk";
284 reg = <0x01c2008c 0x4>;
Chen-Yu Tsaif6c3b042014-11-13 02:08:32 +0800285 clocks = <&osc24M>, <&pll6 0>;
Hans de Goedeadc54c82014-05-02 17:57:23 +0200286 clock-output-names = "mmc1";
287 };
288
289 mmc2_clk: clk@01c20090 {
290 #clock-cells = <0>;
291 compatible = "allwinner,sun4i-a10-mod0-clk";
292 reg = <0x01c20090 0x4>;
Chen-Yu Tsaif6c3b042014-11-13 02:08:32 +0800293 clocks = <&osc24M>, <&pll6 0>;
Hans de Goedeadc54c82014-05-02 17:57:23 +0200294 clock-output-names = "mmc2";
295 };
296
297 mmc3_clk: clk@01c20094 {
298 #clock-cells = <0>;
299 compatible = "allwinner,sun4i-a10-mod0-clk";
300 reg = <0x01c20094 0x4>;
Chen-Yu Tsaif6c3b042014-11-13 02:08:32 +0800301 clocks = <&osc24M>, <&pll6 0>;
Hans de Goedeadc54c82014-05-02 17:57:23 +0200302 clock-output-names = "mmc3";
303 };
304
Maxime Ripardb0a09c72014-02-05 14:05:04 +0100305 spi0_clk: clk@01c200a0 {
306 #clock-cells = <0>;
Maxime Ripard225b0212014-02-24 17:29:06 +0100307 compatible = "allwinner,sun4i-a10-mod0-clk";
Maxime Ripardb0a09c72014-02-05 14:05:04 +0100308 reg = <0x01c200a0 0x4>;
Chen-Yu Tsaif6c3b042014-11-13 02:08:32 +0800309 clocks = <&osc24M>, <&pll6 0>;
Maxime Ripardb0a09c72014-02-05 14:05:04 +0100310 clock-output-names = "spi0";
311 };
312
313 spi1_clk: clk@01c200a4 {
314 #clock-cells = <0>;
Maxime Ripard225b0212014-02-24 17:29:06 +0100315 compatible = "allwinner,sun4i-a10-mod0-clk";
Maxime Ripardb0a09c72014-02-05 14:05:04 +0100316 reg = <0x01c200a4 0x4>;
Chen-Yu Tsaif6c3b042014-11-13 02:08:32 +0800317 clocks = <&osc24M>, <&pll6 0>;
Maxime Ripardb0a09c72014-02-05 14:05:04 +0100318 clock-output-names = "spi1";
319 };
320
321 spi2_clk: clk@01c200a8 {
322 #clock-cells = <0>;
Maxime Ripard225b0212014-02-24 17:29:06 +0100323 compatible = "allwinner,sun4i-a10-mod0-clk";
Maxime Ripardb0a09c72014-02-05 14:05:04 +0100324 reg = <0x01c200a8 0x4>;
Chen-Yu Tsaif6c3b042014-11-13 02:08:32 +0800325 clocks = <&osc24M>, <&pll6 0>;
Maxime Ripardb0a09c72014-02-05 14:05:04 +0100326 clock-output-names = "spi2";
327 };
328
329 spi3_clk: clk@01c200ac {
330 #clock-cells = <0>;
Maxime Ripard225b0212014-02-24 17:29:06 +0100331 compatible = "allwinner,sun4i-a10-mod0-clk";
Maxime Ripardb0a09c72014-02-05 14:05:04 +0100332 reg = <0x01c200ac 0x4>;
Chen-Yu Tsaif6c3b042014-11-13 02:08:32 +0800333 clocks = <&osc24M>, <&pll6 0>;
Maxime Ripardb0a09c72014-02-05 14:05:04 +0100334 clock-output-names = "spi3";
335 };
Maxime Ripard94a1cd12014-05-13 17:44:16 +0200336
337 usb_clk: clk@01c200cc {
338 #clock-cells = <1>;
339 #reset-cells = <1>;
340 compatible = "allwinner,sun6i-a31-usb-clk";
341 reg = <0x01c200cc 0x4>;
342 clocks = <&osc24M>;
343 clock-output-names = "usb_phy0", "usb_phy1", "usb_phy2",
344 "usb_ohci0", "usb_ohci1",
345 "usb_ohci2";
346 };
Chen-Yu Tsaied298612014-07-16 01:15:44 +0800347
348 /*
349 * The following two are dummy clocks, placeholders used in the gmac_tx
350 * clock. The gmac driver will choose one parent depending on the PHY
351 * interface mode, using clk_set_rate auto-reparenting.
352 * The actual TX clock rate is not controlled by the gmac_tx clock.
353 */
354 mii_phy_tx_clk: clk@1 {
355 #clock-cells = <0>;
356 compatible = "fixed-clock";
357 clock-frequency = <25000000>;
358 clock-output-names = "mii_phy_tx";
359 };
360
361 gmac_int_tx_clk: clk@2 {
362 #clock-cells = <0>;
363 compatible = "fixed-clock";
364 clock-frequency = <125000000>;
365 clock-output-names = "gmac_int_tx";
366 };
367
368 gmac_tx_clk: clk@01c200d0 {
369 #clock-cells = <0>;
370 compatible = "allwinner,sun7i-a20-gmac-clk";
371 reg = <0x01c200d0 0x4>;
372 clocks = <&mii_phy_tx_clk>, <&gmac_int_tx_clk>;
373 clock-output-names = "gmac_tx";
374 };
Maxime Ripard8aed3b32013-03-10 16:09:06 +0100375 };
376
377 soc@01c00000 {
378 compatible = "simple-bus";
379 #address-cells = <1>;
380 #size-cells = <1>;
381 ranges;
382
Maxime Ripardd2d878c2014-01-30 15:41:23 +0100383 dma: dma-controller@01c02000 {
384 compatible = "allwinner,sun6i-a31-dma";
385 reg = <0x01c02000 0x1000>;
Maxime Ripard19882b82014-12-16 22:59:58 +0100386 interrupts = <GIC_SPI 50 IRQ_TYPE_LEVEL_HIGH>;
Maxime Ripardd2d878c2014-01-30 15:41:23 +0100387 clocks = <&ahb1_gates 6>;
388 resets = <&ahb1_rst 6>;
389 #dma-cells = <1>;
Chen-Yu Tsai532425a2014-11-06 19:56:49 +0800390
391 /* DMA controller requires AHB1 clocked from PLL6 */
392 assigned-clocks = <&ahb1_mux>;
Chen-Yu Tsaif6c3b042014-11-13 02:08:32 +0800393 assigned-clock-parents = <&pll6 0>;
Maxime Ripardd2d878c2014-01-30 15:41:23 +0100394 };
395
Hans de Goede5b753f02014-05-02 17:57:24 +0200396 mmc0: mmc@01c0f000 {
397 compatible = "allwinner,sun5i-a13-mmc";
398 reg = <0x01c0f000 0x1000>;
399 clocks = <&ahb1_gates 8>, <&mmc0_clk>;
400 clock-names = "ahb", "mmc";
401 resets = <&ahb1_rst 8>;
402 reset-names = "ahb";
Maxime Ripard19882b82014-12-16 22:59:58 +0100403 interrupts = <GIC_SPI 60 IRQ_TYPE_LEVEL_HIGH>;
Hans de Goede5b753f02014-05-02 17:57:24 +0200404 status = "disabled";
405 };
406
407 mmc1: mmc@01c10000 {
408 compatible = "allwinner,sun5i-a13-mmc";
409 reg = <0x01c10000 0x1000>;
410 clocks = <&ahb1_gates 9>, <&mmc1_clk>;
411 clock-names = "ahb", "mmc";
412 resets = <&ahb1_rst 9>;
413 reset-names = "ahb";
Maxime Ripard19882b82014-12-16 22:59:58 +0100414 interrupts = <GIC_SPI 61 IRQ_TYPE_LEVEL_HIGH>;
Hans de Goede5b753f02014-05-02 17:57:24 +0200415 status = "disabled";
416 };
417
418 mmc2: mmc@01c11000 {
419 compatible = "allwinner,sun5i-a13-mmc";
420 reg = <0x01c11000 0x1000>;
421 clocks = <&ahb1_gates 10>, <&mmc2_clk>;
422 clock-names = "ahb", "mmc";
423 resets = <&ahb1_rst 10>;
424 reset-names = "ahb";
Maxime Ripard19882b82014-12-16 22:59:58 +0100425 interrupts = <GIC_SPI 62 IRQ_TYPE_LEVEL_HIGH>;
Hans de Goede5b753f02014-05-02 17:57:24 +0200426 status = "disabled";
427 };
428
429 mmc3: mmc@01c12000 {
430 compatible = "allwinner,sun5i-a13-mmc";
431 reg = <0x01c12000 0x1000>;
432 clocks = <&ahb1_gates 11>, <&mmc3_clk>;
433 clock-names = "ahb", "mmc";
434 resets = <&ahb1_rst 11>;
435 reset-names = "ahb";
Maxime Ripard19882b82014-12-16 22:59:58 +0100436 interrupts = <GIC_SPI 63 IRQ_TYPE_LEVEL_HIGH>;
Hans de Goede5b753f02014-05-02 17:57:24 +0200437 status = "disabled";
438 };
439
Maxime Ripardef964082014-05-13 17:44:21 +0200440 usbphy: phy@01c19400 {
441 compatible = "allwinner,sun6i-a31-usb-phy";
442 reg = <0x01c19400 0x10>,
443 <0x01c1a800 0x4>,
444 <0x01c1b800 0x4>;
445 reg-names = "phy_ctrl",
446 "pmu1",
447 "pmu2";
448 clocks = <&usb_clk 8>,
449 <&usb_clk 9>,
450 <&usb_clk 10>;
451 clock-names = "usb0_phy",
452 "usb1_phy",
453 "usb2_phy";
454 resets = <&usb_clk 0>,
455 <&usb_clk 1>,
456 <&usb_clk 2>;
457 reset-names = "usb0_reset",
458 "usb1_reset",
459 "usb2_reset";
460 status = "disabled";
461 #phy-cells = <1>;
462 };
463
464 ehci0: usb@01c1a000 {
465 compatible = "allwinner,sun6i-a31-ehci", "generic-ehci";
466 reg = <0x01c1a000 0x100>;
Maxime Ripard19882b82014-12-16 22:59:58 +0100467 interrupts = <GIC_SPI 72 IRQ_TYPE_LEVEL_HIGH>;
Maxime Ripardef964082014-05-13 17:44:21 +0200468 clocks = <&ahb1_gates 26>;
469 resets = <&ahb1_rst 26>;
470 phys = <&usbphy 1>;
471 phy-names = "usb";
472 status = "disabled";
473 };
474
475 ohci0: usb@01c1a400 {
476 compatible = "allwinner,sun6i-a31-ohci", "generic-ohci";
477 reg = <0x01c1a400 0x100>;
Maxime Ripard19882b82014-12-16 22:59:58 +0100478 interrupts = <GIC_SPI 73 IRQ_TYPE_LEVEL_HIGH>;
Maxime Ripardef964082014-05-13 17:44:21 +0200479 clocks = <&ahb1_gates 29>, <&usb_clk 16>;
480 resets = <&ahb1_rst 29>;
481 phys = <&usbphy 1>;
482 phy-names = "usb";
483 status = "disabled";
484 };
485
486 ehci1: usb@01c1b000 {
487 compatible = "allwinner,sun6i-a31-ehci", "generic-ehci";
488 reg = <0x01c1b000 0x100>;
Maxime Ripard19882b82014-12-16 22:59:58 +0100489 interrupts = <GIC_SPI 74 IRQ_TYPE_LEVEL_HIGH>;
Maxime Ripardef964082014-05-13 17:44:21 +0200490 clocks = <&ahb1_gates 27>;
491 resets = <&ahb1_rst 27>;
492 phys = <&usbphy 2>;
493 phy-names = "usb";
494 status = "disabled";
495 };
496
497 ohci1: usb@01c1b400 {
498 compatible = "allwinner,sun6i-a31-ohci", "generic-ohci";
499 reg = <0x01c1b400 0x100>;
Maxime Ripard19882b82014-12-16 22:59:58 +0100500 interrupts = <GIC_SPI 75 IRQ_TYPE_LEVEL_HIGH>;
Maxime Ripardef964082014-05-13 17:44:21 +0200501 clocks = <&ahb1_gates 30>, <&usb_clk 17>;
502 resets = <&ahb1_rst 30>;
503 phys = <&usbphy 2>;
504 phy-names = "usb";
505 status = "disabled";
506 };
507
Maxime Ripardb294ebb2014-05-20 13:59:58 +0200508 ohci2: usb@01c1c400 {
Maxime Ripardef964082014-05-13 17:44:21 +0200509 compatible = "allwinner,sun6i-a31-ohci", "generic-ohci";
510 reg = <0x01c1c400 0x100>;
Maxime Ripard19882b82014-12-16 22:59:58 +0100511 interrupts = <GIC_SPI 77 IRQ_TYPE_LEVEL_HIGH>;
Maxime Ripardef964082014-05-13 17:44:21 +0200512 clocks = <&ahb1_gates 31>, <&usb_clk 18>;
513 resets = <&ahb1_rst 31>;
514 status = "disabled";
515 };
516
Maxime Ripard140e1722013-03-12 22:16:05 +0100517 pio: pinctrl@01c20800 {
518 compatible = "allwinner,sun6i-a31-pinctrl";
519 reg = <0x01c20800 0x400>;
Maxime Ripard19882b82014-12-16 22:59:58 +0100520 interrupts = <GIC_SPI 11 IRQ_TYPE_LEVEL_HIGH>,
521 <GIC_SPI 15 IRQ_TYPE_LEVEL_HIGH>,
522 <GIC_SPI 16 IRQ_TYPE_LEVEL_HIGH>,
523 <GIC_SPI 17 IRQ_TYPE_LEVEL_HIGH>;
Maxime Ripard98096562013-07-23 23:54:19 +0200524 clocks = <&apb1_gates 5>;
Maxime Ripard140e1722013-03-12 22:16:05 +0100525 gpio-controller;
526 interrupt-controller;
Chen-Yu Tsai7d4ff962014-06-30 23:57:51 +0200527 #interrupt-cells = <2>;
Maxime Ripard140e1722013-03-12 22:16:05 +0100528 #size-cells = <0>;
529 #gpio-cells = <3>;
Maxime Ripardab4238c2013-06-22 23:56:40 +0200530
531 uart0_pins_a: uart0@0 {
532 allwinner,pins = "PH20", "PH21";
533 allwinner,function = "uart0";
Maxime Ripard092a0c32014-12-16 22:59:57 +0100534 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
535 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Maxime Ripardab4238c2013-06-22 23:56:40 +0200536 };
Maxime Ripard8be188b2014-03-04 17:28:40 +0100537
538 i2c0_pins_a: i2c0@0 {
539 allwinner,pins = "PH14", "PH15";
540 allwinner,function = "i2c0";
Maxime Ripard092a0c32014-12-16 22:59:57 +0100541 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
542 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Maxime Ripard8be188b2014-03-04 17:28:40 +0100543 };
544
545 i2c1_pins_a: i2c1@0 {
546 allwinner,pins = "PH16", "PH17";
547 allwinner,function = "i2c1";
Maxime Ripard092a0c32014-12-16 22:59:57 +0100548 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
549 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Maxime Ripard8be188b2014-03-04 17:28:40 +0100550 };
551
552 i2c2_pins_a: i2c2@0 {
553 allwinner,pins = "PH18", "PH19";
554 allwinner,function = "i2c2";
Maxime Ripard092a0c32014-12-16 22:59:57 +0100555 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
556 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Maxime Ripard8be188b2014-03-04 17:28:40 +0100557 };
Hans de Goede9797eb82014-04-26 12:16:16 +0200558
559 mmc0_pins_a: mmc0@0 {
560 allwinner,pins = "PF0","PF1","PF2","PF3","PF4","PF5";
561 allwinner,function = "mmc0";
Maxime Ripard092a0c32014-12-16 22:59:57 +0100562 allwinner,drive = <SUN4I_PINCTRL_30_MA>;
563 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Hans de Goede9797eb82014-04-26 12:16:16 +0200564 };
Chen-Yu Tsaiee39a3e2014-07-16 01:15:43 +0800565
566 gmac_pins_mii_a: gmac_mii@0 {
567 allwinner,pins = "PA0", "PA1", "PA2", "PA3",
568 "PA8", "PA9", "PA11",
569 "PA12", "PA13", "PA14", "PA19",
570 "PA20", "PA21", "PA22", "PA23",
571 "PA24", "PA26", "PA27";
572 allwinner,function = "gmac";
Maxime Ripard092a0c32014-12-16 22:59:57 +0100573 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
574 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Chen-Yu Tsaiee39a3e2014-07-16 01:15:43 +0800575 };
576
577 gmac_pins_gmii_a: gmac_gmii@0 {
578 allwinner,pins = "PA0", "PA1", "PA2", "PA3",
579 "PA4", "PA5", "PA6", "PA7",
580 "PA8", "PA9", "PA10", "PA11",
581 "PA12", "PA13", "PA14", "PA15",
582 "PA16", "PA17", "PA18", "PA19",
583 "PA20", "PA21", "PA22", "PA23",
584 "PA24", "PA25", "PA26", "PA27";
585 allwinner,function = "gmac";
586 /*
587 * data lines in GMII mode run at 125MHz and
588 * might need a higher signal drive strength
589 */
Maxime Ripard092a0c32014-12-16 22:59:57 +0100590 allwinner,drive = <SUN4I_PINCTRL_30_MA>;
591 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Chen-Yu Tsaiee39a3e2014-07-16 01:15:43 +0800592 };
593
594 gmac_pins_rgmii_a: gmac_rgmii@0 {
595 allwinner,pins = "PA0", "PA1", "PA2", "PA3",
596 "PA9", "PA10", "PA11",
597 "PA12", "PA13", "PA14", "PA19",
598 "PA20", "PA25", "PA26", "PA27";
599 allwinner,function = "gmac";
600 /*
601 * data lines in RGMII mode use DDR mode
602 * and need a higher signal drive strength
603 */
Maxime Ripard092a0c32014-12-16 22:59:57 +0100604 allwinner,drive = <SUN4I_PINCTRL_40_MA>;
605 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Chen-Yu Tsaiee39a3e2014-07-16 01:15:43 +0800606 };
Maxime Ripard140e1722013-03-12 22:16:05 +0100607 };
608
Maxime Ripard24a661e92013-09-24 11:10:41 +0300609 ahb1_rst: reset@01c202c0 {
610 #reset-cells = <1>;
611 compatible = "allwinner,sun6i-a31-ahb1-reset";
612 reg = <0x01c202c0 0xc>;
613 };
614
615 apb1_rst: reset@01c202d0 {
616 #reset-cells = <1>;
617 compatible = "allwinner,sun6i-a31-clock-reset";
618 reg = <0x01c202d0 0x4>;
619 };
620
621 apb2_rst: reset@01c202d8 {
622 #reset-cells = <1>;
623 compatible = "allwinner,sun6i-a31-clock-reset";
624 reg = <0x01c202d8 0x4>;
625 };
626
Maxime Ripard8aed3b32013-03-10 16:09:06 +0100627 timer@01c20c00 {
Maxime Ripardb4f26442014-02-06 10:40:32 +0100628 compatible = "allwinner,sun4i-a10-timer";
Maxime Ripard8aed3b32013-03-10 16:09:06 +0100629 reg = <0x01c20c00 0xa0>;
Maxime Ripard19882b82014-12-16 22:59:58 +0100630 interrupts = <GIC_SPI 18 IRQ_TYPE_LEVEL_HIGH>,
631 <GIC_SPI 19 IRQ_TYPE_LEVEL_HIGH>,
632 <GIC_SPI 20 IRQ_TYPE_LEVEL_HIGH>,
633 <GIC_SPI 21 IRQ_TYPE_LEVEL_HIGH>,
634 <GIC_SPI 22 IRQ_TYPE_LEVEL_HIGH>;
Maxime Ripard98096562013-07-23 23:54:19 +0200635 clocks = <&osc24M>;
Maxime Ripard8aed3b32013-03-10 16:09:06 +0100636 };
637
638 wdt1: watchdog@01c20ca0 {
Maxime Ripardca5d04d2014-02-07 22:29:26 +0100639 compatible = "allwinner,sun6i-a31-wdt";
Maxime Ripard8aed3b32013-03-10 16:09:06 +0100640 reg = <0x01c20ca0 0x20>;
641 };
642
643 uart0: serial@01c28000 {
644 compatible = "snps,dw-apb-uart";
645 reg = <0x01c28000 0x400>;
Maxime Ripard19882b82014-12-16 22:59:58 +0100646 interrupts = <GIC_SPI 0 IRQ_TYPE_LEVEL_HIGH>;
Maxime Ripard8aed3b32013-03-10 16:09:06 +0100647 reg-shift = <2>;
648 reg-io-width = <4>;
Maxime Ripard98096562013-07-23 23:54:19 +0200649 clocks = <&apb2_gates 16>;
Maxime Ripard24a661e92013-09-24 11:10:41 +0300650 resets = <&apb2_rst 16>;
Maxime Ripardd2d878c2014-01-30 15:41:23 +0100651 dmas = <&dma 6>, <&dma 6>;
652 dma-names = "rx", "tx";
Maxime Ripard8aed3b32013-03-10 16:09:06 +0100653 status = "disabled";
654 };
655
656 uart1: serial@01c28400 {
657 compatible = "snps,dw-apb-uart";
658 reg = <0x01c28400 0x400>;
Maxime Ripard19882b82014-12-16 22:59:58 +0100659 interrupts = <GIC_SPI 1 IRQ_TYPE_LEVEL_HIGH>;
Maxime Ripard8aed3b32013-03-10 16:09:06 +0100660 reg-shift = <2>;
661 reg-io-width = <4>;
Maxime Ripard98096562013-07-23 23:54:19 +0200662 clocks = <&apb2_gates 17>;
Maxime Ripard24a661e92013-09-24 11:10:41 +0300663 resets = <&apb2_rst 17>;
Maxime Ripardd2d878c2014-01-30 15:41:23 +0100664 dmas = <&dma 7>, <&dma 7>;
665 dma-names = "rx", "tx";
Maxime Ripard8aed3b32013-03-10 16:09:06 +0100666 status = "disabled";
667 };
668
669 uart2: serial@01c28800 {
670 compatible = "snps,dw-apb-uart";
671 reg = <0x01c28800 0x400>;
Maxime Ripard19882b82014-12-16 22:59:58 +0100672 interrupts = <GIC_SPI 2 IRQ_TYPE_LEVEL_HIGH>;
Maxime Ripard8aed3b32013-03-10 16:09:06 +0100673 reg-shift = <2>;
674 reg-io-width = <4>;
Maxime Ripard98096562013-07-23 23:54:19 +0200675 clocks = <&apb2_gates 18>;
Maxime Ripard24a661e92013-09-24 11:10:41 +0300676 resets = <&apb2_rst 18>;
Maxime Ripardd2d878c2014-01-30 15:41:23 +0100677 dmas = <&dma 8>, <&dma 8>;
678 dma-names = "rx", "tx";
Maxime Ripard8aed3b32013-03-10 16:09:06 +0100679 status = "disabled";
680 };
681
682 uart3: serial@01c28c00 {
683 compatible = "snps,dw-apb-uart";
684 reg = <0x01c28c00 0x400>;
Maxime Ripard19882b82014-12-16 22:59:58 +0100685 interrupts = <GIC_SPI 3 IRQ_TYPE_LEVEL_HIGH>;
Maxime Ripard8aed3b32013-03-10 16:09:06 +0100686 reg-shift = <2>;
687 reg-io-width = <4>;
Maxime Ripard98096562013-07-23 23:54:19 +0200688 clocks = <&apb2_gates 19>;
Maxime Ripard24a661e92013-09-24 11:10:41 +0300689 resets = <&apb2_rst 19>;
Maxime Ripardd2d878c2014-01-30 15:41:23 +0100690 dmas = <&dma 9>, <&dma 9>;
691 dma-names = "rx", "tx";
Maxime Ripard8aed3b32013-03-10 16:09:06 +0100692 status = "disabled";
693 };
694
695 uart4: serial@01c29000 {
696 compatible = "snps,dw-apb-uart";
697 reg = <0x01c29000 0x400>;
Maxime Ripard19882b82014-12-16 22:59:58 +0100698 interrupts = <GIC_SPI 4 IRQ_TYPE_LEVEL_HIGH>;
Maxime Ripard8aed3b32013-03-10 16:09:06 +0100699 reg-shift = <2>;
700 reg-io-width = <4>;
Maxime Ripard98096562013-07-23 23:54:19 +0200701 clocks = <&apb2_gates 20>;
Maxime Ripard24a661e92013-09-24 11:10:41 +0300702 resets = <&apb2_rst 20>;
Maxime Ripardd2d878c2014-01-30 15:41:23 +0100703 dmas = <&dma 10>, <&dma 10>;
704 dma-names = "rx", "tx";
Maxime Ripard8aed3b32013-03-10 16:09:06 +0100705 status = "disabled";
706 };
707
708 uart5: serial@01c29400 {
709 compatible = "snps,dw-apb-uart";
710 reg = <0x01c29400 0x400>;
Maxime Ripard19882b82014-12-16 22:59:58 +0100711 interrupts = <GIC_SPI 5 IRQ_TYPE_LEVEL_HIGH>;
Maxime Ripard8aed3b32013-03-10 16:09:06 +0100712 reg-shift = <2>;
713 reg-io-width = <4>;
Maxime Ripard98096562013-07-23 23:54:19 +0200714 clocks = <&apb2_gates 21>;
Maxime Ripard24a661e92013-09-24 11:10:41 +0300715 resets = <&apb2_rst 21>;
Maxime Ripardd2d878c2014-01-30 15:41:23 +0100716 dmas = <&dma 22>, <&dma 22>;
717 dma-names = "rx", "tx";
Maxime Ripard8aed3b32013-03-10 16:09:06 +0100718 status = "disabled";
719 };
720
Maxime Ripard96c7cc92014-03-04 17:28:39 +0100721 i2c0: i2c@01c2ac00 {
722 compatible = "allwinner,sun6i-a31-i2c";
723 reg = <0x01c2ac00 0x400>;
Maxime Ripard19882b82014-12-16 22:59:58 +0100724 interrupts = <GIC_SPI 6 IRQ_TYPE_LEVEL_HIGH>;
Maxime Ripard96c7cc92014-03-04 17:28:39 +0100725 clocks = <&apb2_gates 0>;
Maxime Ripard96c7cc92014-03-04 17:28:39 +0100726 resets = <&apb2_rst 0>;
727 status = "disabled";
Chen-Yu Tsai495bccf2014-07-21 22:54:27 +0800728 #address-cells = <1>;
729 #size-cells = <0>;
Maxime Ripard96c7cc92014-03-04 17:28:39 +0100730 };
731
732 i2c1: i2c@01c2b000 {
733 compatible = "allwinner,sun6i-a31-i2c";
734 reg = <0x01c2b000 0x400>;
Maxime Ripard19882b82014-12-16 22:59:58 +0100735 interrupts = <GIC_SPI 7 IRQ_TYPE_LEVEL_HIGH>;
Maxime Ripard96c7cc92014-03-04 17:28:39 +0100736 clocks = <&apb2_gates 1>;
Maxime Ripard96c7cc92014-03-04 17:28:39 +0100737 resets = <&apb2_rst 1>;
738 status = "disabled";
Chen-Yu Tsai495bccf2014-07-21 22:54:27 +0800739 #address-cells = <1>;
740 #size-cells = <0>;
Maxime Ripard96c7cc92014-03-04 17:28:39 +0100741 };
742
743 i2c2: i2c@01c2b400 {
744 compatible = "allwinner,sun6i-a31-i2c";
745 reg = <0x01c2b400 0x400>;
Maxime Ripard19882b82014-12-16 22:59:58 +0100746 interrupts = <GIC_SPI 8 IRQ_TYPE_LEVEL_HIGH>;
Maxime Ripard96c7cc92014-03-04 17:28:39 +0100747 clocks = <&apb2_gates 2>;
Maxime Ripard96c7cc92014-03-04 17:28:39 +0100748 resets = <&apb2_rst 2>;
749 status = "disabled";
Chen-Yu Tsai495bccf2014-07-21 22:54:27 +0800750 #address-cells = <1>;
751 #size-cells = <0>;
Maxime Ripard96c7cc92014-03-04 17:28:39 +0100752 };
753
754 i2c3: i2c@01c2b800 {
755 compatible = "allwinner,sun6i-a31-i2c";
756 reg = <0x01c2b800 0x400>;
Maxime Ripard19882b82014-12-16 22:59:58 +0100757 interrupts = <GIC_SPI 9 IRQ_TYPE_LEVEL_HIGH>;
Maxime Ripard96c7cc92014-03-04 17:28:39 +0100758 clocks = <&apb2_gates 3>;
Maxime Ripard96c7cc92014-03-04 17:28:39 +0100759 resets = <&apb2_rst 3>;
760 status = "disabled";
Chen-Yu Tsai495bccf2014-07-21 22:54:27 +0800761 #address-cells = <1>;
762 #size-cells = <0>;
Maxime Ripard96c7cc92014-03-04 17:28:39 +0100763 };
764
Chen-Yu Tsai3dca65f2014-07-16 01:15:45 +0800765 gmac: ethernet@01c30000 {
766 compatible = "allwinner,sun7i-a20-gmac";
767 reg = <0x01c30000 0x1054>;
Maxime Ripard19882b82014-12-16 22:59:58 +0100768 interrupts = <GIC_SPI 82 IRQ_TYPE_LEVEL_HIGH>;
Chen-Yu Tsai3dca65f2014-07-16 01:15:45 +0800769 interrupt-names = "macirq";
770 clocks = <&ahb1_gates 17>, <&gmac_tx_clk>;
771 clock-names = "stmmaceth", "allwinner_gmac_tx";
772 resets = <&ahb1_rst 17>;
773 reset-names = "stmmaceth";
774 snps,pbl = <2>;
775 snps,fixed-burst;
776 snps,force_sf_dma_mode;
777 status = "disabled";
778 #address-cells = <1>;
779 #size-cells = <0>;
780 };
781
Maxime Ripard8cffcb02014-04-17 11:06:46 +0200782 timer@01c60000 {
783 compatible = "allwinner,sun6i-a31-hstimer", "allwinner,sun7i-a20-hstimer";
784 reg = <0x01c60000 0x1000>;
Maxime Ripard19882b82014-12-16 22:59:58 +0100785 interrupts = <GIC_SPI 51 IRQ_TYPE_LEVEL_HIGH>,
786 <GIC_SPI 52 IRQ_TYPE_LEVEL_HIGH>,
787 <GIC_SPI 53 IRQ_TYPE_LEVEL_HIGH>,
788 <GIC_SPI 54 IRQ_TYPE_LEVEL_HIGH>;
Maxime Ripard8cffcb02014-04-17 11:06:46 +0200789 clocks = <&ahb1_gates 19>;
790 resets = <&ahb1_rst 19>;
791 };
792
Maxime Ripard0d6efe32014-02-05 14:05:06 +0100793 spi0: spi@01c68000 {
794 compatible = "allwinner,sun6i-a31-spi";
795 reg = <0x01c68000 0x1000>;
Maxime Ripard19882b82014-12-16 22:59:58 +0100796 interrupts = <GIC_SPI 65 IRQ_TYPE_LEVEL_HIGH>;
Maxime Ripard0d6efe32014-02-05 14:05:06 +0100797 clocks = <&ahb1_gates 20>, <&spi0_clk>;
798 clock-names = "ahb", "mod";
Maxime Ripardd2d878c2014-01-30 15:41:23 +0100799 dmas = <&dma 23>, <&dma 23>;
800 dma-names = "rx", "tx";
Maxime Ripard0d6efe32014-02-05 14:05:06 +0100801 resets = <&ahb1_rst 20>;
802 status = "disabled";
803 };
804
805 spi1: spi@01c69000 {
806 compatible = "allwinner,sun6i-a31-spi";
807 reg = <0x01c69000 0x1000>;
Maxime Ripard19882b82014-12-16 22:59:58 +0100808 interrupts = <GIC_SPI 66 IRQ_TYPE_LEVEL_HIGH>;
Maxime Ripard0d6efe32014-02-05 14:05:06 +0100809 clocks = <&ahb1_gates 21>, <&spi1_clk>;
810 clock-names = "ahb", "mod";
Maxime Ripardd2d878c2014-01-30 15:41:23 +0100811 dmas = <&dma 24>, <&dma 24>;
812 dma-names = "rx", "tx";
Maxime Ripard0d6efe32014-02-05 14:05:06 +0100813 resets = <&ahb1_rst 21>;
814 status = "disabled";
815 };
816
817 spi2: spi@01c6a000 {
818 compatible = "allwinner,sun6i-a31-spi";
819 reg = <0x01c6a000 0x1000>;
Maxime Ripard19882b82014-12-16 22:59:58 +0100820 interrupts = <GIC_SPI 67 IRQ_TYPE_LEVEL_HIGH>;
Maxime Ripard0d6efe32014-02-05 14:05:06 +0100821 clocks = <&ahb1_gates 22>, <&spi2_clk>;
822 clock-names = "ahb", "mod";
Maxime Ripardd2d878c2014-01-30 15:41:23 +0100823 dmas = <&dma 25>, <&dma 25>;
824 dma-names = "rx", "tx";
Maxime Ripard0d6efe32014-02-05 14:05:06 +0100825 resets = <&ahb1_rst 22>;
826 status = "disabled";
827 };
828
829 spi3: spi@01c6b000 {
830 compatible = "allwinner,sun6i-a31-spi";
831 reg = <0x01c6b000 0x1000>;
Maxime Ripard19882b82014-12-16 22:59:58 +0100832 interrupts = <GIC_SPI 68 IRQ_TYPE_LEVEL_HIGH>;
Maxime Ripard0d6efe32014-02-05 14:05:06 +0100833 clocks = <&ahb1_gates 23>, <&spi3_clk>;
834 clock-names = "ahb", "mod";
Maxime Ripardd2d878c2014-01-30 15:41:23 +0100835 dmas = <&dma 26>, <&dma 26>;
836 dma-names = "rx", "tx";
Maxime Ripard0d6efe32014-02-05 14:05:06 +0100837 resets = <&ahb1_rst 23>;
838 status = "disabled";
839 };
840
Maxime Ripard8aed3b32013-03-10 16:09:06 +0100841 gic: interrupt-controller@01c81000 {
842 compatible = "arm,cortex-a7-gic", "arm,cortex-a15-gic";
843 reg = <0x01c81000 0x1000>,
844 <0x01c82000 0x1000>,
845 <0x01c84000 0x2000>,
846 <0x01c86000 0x2000>;
847 interrupt-controller;
848 #interrupt-cells = <3>;
Maxime Ripard19882b82014-12-16 22:59:58 +0100849 interrupts = <GIC_PPI 9 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>;
Maxime Ripard8aed3b32013-03-10 16:09:06 +0100850 };
Maxime Ripard81ee4292013-11-03 10:30:12 +0100851
Chen-Yu Tsai5e700432014-07-30 20:56:06 +0800852 rtc: rtc@01f00000 {
853 compatible = "allwinner,sun6i-a31-rtc";
854 reg = <0x01f00000 0x54>;
Maxime Ripard19882b82014-12-16 22:59:58 +0100855 interrupts = <GIC_SPI 40 IRQ_TYPE_LEVEL_HIGH>,
856 <GIC_SPI 41 IRQ_TYPE_LEVEL_HIGH>;
Chen-Yu Tsai5e700432014-07-30 20:56:06 +0800857 };
858
Maxime Ripard28240d22014-04-17 10:29:35 +0200859 nmi_intc: interrupt-controller@01f00c0c {
860 compatible = "allwinner,sun6i-a31-sc-nmi";
861 interrupt-controller;
862 #interrupt-cells = <2>;
863 reg = <0x01f00c0c 0x38>;
Maxime Ripard19882b82014-12-16 22:59:58 +0100864 interrupts = <GIC_SPI 32 IRQ_TYPE_LEVEL_HIGH>;
Maxime Ripard28240d22014-04-17 10:29:35 +0200865 };
866
Hans de Goedea42ea602014-04-13 13:41:02 +0200867 prcm@01f01400 {
868 compatible = "allwinner,sun6i-a31-prcm";
869 reg = <0x01f01400 0x200>;
Boris BREZILLONcc08f5e2014-05-14 14:38:21 +0200870
871 ar100: ar100_clk {
872 compatible = "allwinner,sun6i-a31-ar100-clk";
873 #clock-cells = <0>;
Chen-Yu Tsaif6c3b042014-11-13 02:08:32 +0800874 clocks = <&osc32k>, <&osc24M>, <&pll6 0>, <&pll6 0>;
Boris BREZILLONcc08f5e2014-05-14 14:38:21 +0200875 clock-output-names = "ar100";
876 };
877
878 ahb0: ahb0_clk {
879 compatible = "fixed-factor-clock";
880 #clock-cells = <0>;
881 clock-div = <1>;
882 clock-mult = <1>;
883 clocks = <&ar100>;
884 clock-output-names = "ahb0";
885 };
886
887 apb0: apb0_clk {
888 compatible = "allwinner,sun6i-a31-apb0-clk";
889 #clock-cells = <0>;
890 clocks = <&ahb0>;
891 clock-output-names = "apb0";
892 };
893
894 apb0_gates: apb0_gates_clk {
895 compatible = "allwinner,sun6i-a31-apb0-gates-clk";
896 #clock-cells = <1>;
897 clocks = <&apb0>;
898 clock-output-names = "apb0_pio", "apb0_ir",
899 "apb0_timer", "apb0_p2wi",
900 "apb0_uart", "apb0_1wire",
901 "apb0_i2c";
902 };
903
Hans de Goede9b5c6e02014-12-17 18:18:19 +0100904 ir_clk: ir_clk {
905 #clock-cells = <0>;
906 compatible = "allwinner,sun4i-a10-mod0-clk";
907 clocks = <&osc32k>, <&osc24M>;
908 clock-output-names = "ir";
909 };
910
Boris BREZILLONcc08f5e2014-05-14 14:38:21 +0200911 apb0_rst: apb0_rst {
912 compatible = "allwinner,sun6i-a31-clock-reset";
913 #reset-cells = <1>;
914 };
Hans de Goedea42ea602014-04-13 13:41:02 +0200915 };
916
Maxime Ripard81ee4292013-11-03 10:30:12 +0100917 cpucfg@01f01c00 {
918 compatible = "allwinner,sun6i-a31-cpuconfig";
919 reg = <0x01f01c00 0x300>;
920 };
Boris BREZILLON209394a2014-05-13 16:03:03 +0200921
Hans de Goede4ac367b2014-12-29 12:09:24 +0100922 ir: ir@01f02000 {
923 compatible = "allwinner,sun5i-a13-ir";
924 clocks = <&apb0_gates 1>, <&ir_clk>;
925 clock-names = "apb", "ir";
926 resets = <&apb0_rst 1>;
Maxime Ripard19882b82014-12-16 22:59:58 +0100927 interrupts = <GIC_SPI 37 IRQ_TYPE_LEVEL_HIGH>;
Hans de Goede4ac367b2014-12-29 12:09:24 +0100928 reg = <0x01f02000 0x40>;
929 status = "disabled";
930 };
931
Boris BREZILLON209394a2014-05-13 16:03:03 +0200932 r_pio: pinctrl@01f02c00 {
933 compatible = "allwinner,sun6i-a31-r-pinctrl";
934 reg = <0x01f02c00 0x400>;
Maxime Ripard19882b82014-12-16 22:59:58 +0100935 interrupts = <GIC_SPI 45 IRQ_TYPE_LEVEL_HIGH>,
936 <GIC_SPI 46 IRQ_TYPE_LEVEL_HIGH>;
Boris BREZILLON209394a2014-05-13 16:03:03 +0200937 clocks = <&apb0_gates 0>;
938 resets = <&apb0_rst 0>;
939 gpio-controller;
940 interrupt-controller;
Chen-Yu Tsai7d4ff962014-06-30 23:57:51 +0200941 #interrupt-cells = <2>;
Boris BREZILLON209394a2014-05-13 16:03:03 +0200942 #size-cells = <0>;
943 #gpio-cells = <3>;
Hans de Goededbbcd882014-11-23 14:38:14 +0100944
945 ir_pins_a: ir@0 {
946 allwinner,pins = "PL4";
947 allwinner,function = "s_ir";
Maxime Ripard092a0c32014-12-16 22:59:57 +0100948 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
949 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Hans de Goededbbcd882014-11-23 14:38:14 +0100950 };
Boris BREZILLON209394a2014-05-13 16:03:03 +0200951 };
Maxime Ripard8aed3b32013-03-10 16:09:06 +0100952 };
953};