blob: 9ea0edb9684c811deb3063ba0adf87a433722441 [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>
Maxime Ripard8aed3b32013-03-10 16:09:06 +010055
56/ {
57 interrupt-parent = <&gic>;
58
Maxime Ripard54428d42014-01-02 22:05:04 +010059 aliases {
Chen-Yu Tsaie5073fd2014-07-16 01:15:46 +080060 ethernet0 = &gmac;
Maxime Ripard54428d42014-01-02 22:05:04 +010061 };
62
Hans de Goedee53a8b22014-11-14 16:34:36 +010063 chosen {
64 #address-cells = <1>;
65 #size-cells = <1>;
66 ranges;
67
Hans de Goedea9f8cda2014-11-18 12:07:13 +010068 framebuffer@0 {
69 compatible = "allwinner,simple-framebuffer", "simple-framebuffer";
70 allwinner,pipeline = "de_be0-lcd0-hdmi";
Hans de Goede678e75d2014-11-16 17:09:32 +010071 clocks = <&pll6 0>;
Hans de Goedee53a8b22014-11-14 16:34:36 +010072 status = "disabled";
73 };
Hans de Goedefd18c7e2015-01-19 14:05:12 +010074
75 framebuffer@1 {
76 compatible = "allwinner,simple-framebuffer",
77 "simple-framebuffer";
78 allwinner,pipeline = "de_be0-lcd0";
79 clocks = <&pll6 0>;
80 status = "disabled";
81 };
Hans de Goedee53a8b22014-11-14 16:34:36 +010082 };
Maxime Ripard54428d42014-01-02 22:05:04 +010083
Maxime Ripard121b96c2015-01-11 20:33:44 +010084 timer {
85 compatible = "arm,armv7-timer";
86 interrupts = <GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
87 <GIC_PPI 14 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
88 <GIC_PPI 11 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
89 <GIC_PPI 10 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>;
90 clock-frequency = <24000000>;
91 arm,cpu-registers-not-fw-configured;
Maxime Ripard8aed3b32013-03-10 16:09:06 +010092 };
93
94 cpus {
95 enable-method = "allwinner,sun6i-a31";
96 #address-cells = <1>;
97 #size-cells = <0>;
98
Chen-Yu Tsai3a2bc642015-03-26 05:04:48 +080099 cpu0: cpu@0 {
Maxime Ripard8aed3b32013-03-10 16:09:06 +0100100 compatible = "arm,cortex-a7";
101 device_type = "cpu";
102 reg = <0>;
Chen-Yu Tsai3a2bc642015-03-26 05:04:48 +0800103 clocks = <&cpu>;
104 clock-latency = <244144>; /* 8 32k periods */
105 operating-points = <
106 /* kHz uV */
107 1008000 1200000
108 864000 1200000
109 720000 1100000
110 480000 1000000
111 >;
112 #cooling-cells = <2>;
113 cooling-min-level = <0>;
114 cooling-max-level = <3>;
Maxime Ripard8aed3b32013-03-10 16:09:06 +0100115 };
116
117 cpu@1 {
118 compatible = "arm,cortex-a7";
119 device_type = "cpu";
120 reg = <1>;
121 };
122
123 cpu@2 {
124 compatible = "arm,cortex-a7";
125 device_type = "cpu";
126 reg = <2>;
127 };
128
129 cpu@3 {
130 compatible = "arm,cortex-a7";
131 device_type = "cpu";
132 reg = <3>;
133 };
134 };
135
136 memory {
137 reg = <0x40000000 0x80000000>;
138 };
139
Maxime Ripardb5a10b72014-04-17 21:54:41 +0200140 pmu {
141 compatible = "arm,cortex-a7-pmu", "arm,cortex-a15-pmu";
Maxime Ripard19882b82014-12-16 22:59:58 +0100142 interrupts = <GIC_SPI 120 IRQ_TYPE_LEVEL_HIGH>,
143 <GIC_SPI 121 IRQ_TYPE_LEVEL_HIGH>,
144 <GIC_SPI 122 IRQ_TYPE_LEVEL_HIGH>,
145 <GIC_SPI 123 IRQ_TYPE_LEVEL_HIGH>;
Maxime Ripardb5a10b72014-04-17 21:54:41 +0200146 };
147
Maxime Ripard8aed3b32013-03-10 16:09:06 +0100148 clocks {
149 #address-cells = <1>;
Maxime Ripard98096562013-07-23 23:54:19 +0200150 #size-cells = <1>;
151 ranges;
Maxime Ripard8aed3b32013-03-10 16:09:06 +0100152
Maxime Ripard98096562013-07-23 23:54:19 +0200153 osc24M: osc24M {
Maxime Ripard8aed3b32013-03-10 16:09:06 +0100154 #clock-cells = <0>;
155 compatible = "fixed-clock";
156 clock-frequency = <24000000>;
157 };
Maxime Ripard98096562013-07-23 23:54:19 +0200158
Chen-Yu Tsai7b5b2902014-02-03 09:51:43 +0800159 osc32k: clk@0 {
Maxime Ripard98096562013-07-23 23:54:19 +0200160 #clock-cells = <0>;
161 compatible = "fixed-clock";
162 clock-frequency = <32768>;
Chen-Yu Tsai7b5b2902014-02-03 09:51:43 +0800163 clock-output-names = "osc32k";
Maxime Ripard98096562013-07-23 23:54:19 +0200164 };
165
Chen-Yu Tsai7b5b2902014-02-03 09:51:43 +0800166 pll1: clk@01c20000 {
Maxime Ripard98096562013-07-23 23:54:19 +0200167 #clock-cells = <0>;
168 compatible = "allwinner,sun6i-a31-pll1-clk";
169 reg = <0x01c20000 0x4>;
170 clocks = <&osc24M>;
Chen-Yu Tsai7b5b2902014-02-03 09:51:43 +0800171 clock-output-names = "pll1";
Maxime Ripard98096562013-07-23 23:54:19 +0200172 };
173
Maxime Ripardb0a09c72014-02-05 14:05:04 +0100174 pll6: clk@01c20028 {
Chen-Yu Tsaif6c3b042014-11-13 02:08:32 +0800175 #clock-cells = <1>;
Maxime Ripardb0a09c72014-02-05 14:05:04 +0100176 compatible = "allwinner,sun6i-a31-pll6-clk";
177 reg = <0x01c20028 0x4>;
178 clocks = <&osc24M>;
Chen-Yu Tsaif6c3b042014-11-13 02:08:32 +0800179 clock-output-names = "pll6", "pll6x2";
Maxime Ripard98096562013-07-23 23:54:19 +0200180 };
181
182 cpu: cpu@01c20050 {
183 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100184 compatible = "allwinner,sun4i-a10-cpu-clk";
Maxime Ripard98096562013-07-23 23:54:19 +0200185 reg = <0x01c20050 0x4>;
186
187 /*
188 * PLL1 is listed twice here.
189 * While it looks suspicious, it's actually documented
190 * that way both in the datasheet and in the code from
191 * Allwinner.
192 */
193 clocks = <&osc32k>, <&osc24M>, <&pll1>, <&pll1>;
Chen-Yu Tsai7b5b2902014-02-03 09:51:43 +0800194 clock-output-names = "cpu";
Maxime Ripard98096562013-07-23 23:54:19 +0200195 };
196
197 axi: axi@01c20050 {
198 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100199 compatible = "allwinner,sun4i-a10-axi-clk";
Maxime Ripard98096562013-07-23 23:54:19 +0200200 reg = <0x01c20050 0x4>;
201 clocks = <&cpu>;
Chen-Yu Tsai7b5b2902014-02-03 09:51:43 +0800202 clock-output-names = "axi";
Maxime Ripard98096562013-07-23 23:54:19 +0200203 };
204
Maxime Ripard98096562013-07-23 23:54:19 +0200205 ahb1: ahb1@01c20054 {
206 #clock-cells = <0>;
Chen-Yu Tsai42cc7132014-11-26 15:16:53 +0800207 compatible = "allwinner,sun6i-a31-ahb1-clk";
Maxime Ripard98096562013-07-23 23:54:19 +0200208 reg = <0x01c20054 0x4>;
Chen-Yu Tsai42cc7132014-11-26 15:16:53 +0800209 clocks = <&osc32k>, <&osc24M>, <&axi>, <&pll6 0>;
Chen-Yu Tsai7b5b2902014-02-03 09:51:43 +0800210 clock-output-names = "ahb1";
Maxime Ripard98096562013-07-23 23:54:19 +0200211 };
212
Chen-Yu Tsai7b5b2902014-02-03 09:51:43 +0800213 ahb1_gates: clk@01c20060 {
Maxime Ripard98096562013-07-23 23:54:19 +0200214 #clock-cells = <1>;
215 compatible = "allwinner,sun6i-a31-ahb1-gates-clk";
216 reg = <0x01c20060 0x8>;
217 clocks = <&ahb1>;
218 clock-output-names = "ahb1_mipidsi", "ahb1_ss",
219 "ahb1_dma", "ahb1_mmc0", "ahb1_mmc1",
220 "ahb1_mmc2", "ahb1_mmc3", "ahb1_nand1",
221 "ahb1_nand0", "ahb1_sdram",
222 "ahb1_gmac", "ahb1_ts", "ahb1_hstimer",
223 "ahb1_spi0", "ahb1_spi1", "ahb1_spi2",
224 "ahb1_spi3", "ahb1_otg", "ahb1_ehci0",
225 "ahb1_ehci1", "ahb1_ohci0",
226 "ahb1_ohci1", "ahb1_ohci2", "ahb1_ve",
227 "ahb1_lcd0", "ahb1_lcd1", "ahb1_csi",
228 "ahb1_hdmi", "ahb1_de0", "ahb1_de1",
229 "ahb1_fe0", "ahb1_fe1", "ahb1_mp",
230 "ahb1_gpu", "ahb1_deu0", "ahb1_deu1",
231 "ahb1_drc0", "ahb1_drc1";
232 };
233
234 apb1: apb1@01c20054 {
235 #clock-cells = <0>;
Maxime Ripardbf6534a2014-02-06 09:55:58 +0100236 compatible = "allwinner,sun4i-a10-apb0-clk";
Maxime Ripard98096562013-07-23 23:54:19 +0200237 reg = <0x01c20054 0x4>;
238 clocks = <&ahb1>;
Chen-Yu Tsai7b5b2902014-02-03 09:51:43 +0800239 clock-output-names = "apb1";
Maxime Ripard98096562013-07-23 23:54:19 +0200240 };
241
Chen-Yu Tsai7b5b2902014-02-03 09:51:43 +0800242 apb1_gates: clk@01c20068 {
Maxime Ripard98096562013-07-23 23:54:19 +0200243 #clock-cells = <1>;
244 compatible = "allwinner,sun6i-a31-apb1-gates-clk";
245 reg = <0x01c20068 0x4>;
246 clocks = <&apb1>;
247 clock-output-names = "apb1_codec", "apb1_digital_mic",
248 "apb1_pio", "apb1_daudio0",
249 "apb1_daudio1";
250 };
251
Chen-Yu Tsai74c947a2014-11-06 11:40:31 +0800252 apb2: clk@01c20058 {
Maxime Ripard98096562013-07-23 23:54:19 +0200253 #clock-cells = <0>;
Chen-Yu Tsai74c947a2014-11-06 11:40:31 +0800254 compatible = "allwinner,sun4i-a10-apb1-clk";
Maxime Ripard98096562013-07-23 23:54:19 +0200255 reg = <0x01c20058 0x4>;
Chen-Yu Tsaif6c3b042014-11-13 02:08:32 +0800256 clocks = <&osc32k>, <&osc24M>, <&pll6 0>, <&pll6 0>;
Chen-Yu Tsai7b5b2902014-02-03 09:51:43 +0800257 clock-output-names = "apb2";
Maxime Ripard98096562013-07-23 23:54:19 +0200258 };
259
Chen-Yu Tsai7b5b2902014-02-03 09:51:43 +0800260 apb2_gates: clk@01c2006c {
Maxime Ripard98096562013-07-23 23:54:19 +0200261 #clock-cells = <1>;
262 compatible = "allwinner,sun6i-a31-apb2-gates-clk";
Maxime Ripard439d9f52013-09-24 16:30:05 +0300263 reg = <0x01c2006c 0x4>;
Maxime Ripard98096562013-07-23 23:54:19 +0200264 clocks = <&apb2>;
265 clock-output-names = "apb2_i2c0", "apb2_i2c1",
266 "apb2_i2c2", "apb2_i2c3", "apb2_uart0",
267 "apb2_uart1", "apb2_uart2", "apb2_uart3",
268 "apb2_uart4", "apb2_uart5";
269 };
Maxime Ripardb0a09c72014-02-05 14:05:04 +0100270
Hans de Goedeadc54c82014-05-02 17:57:23 +0200271 mmc0_clk: clk@01c20088 {
Maxime Ripardd8c3a392014-07-11 19:39:06 +0200272 #clock-cells = <1>;
273 compatible = "allwinner,sun4i-a10-mmc-clk";
Hans de Goedeadc54c82014-05-02 17:57:23 +0200274 reg = <0x01c20088 0x4>;
Chen-Yu Tsaif6c3b042014-11-13 02:08:32 +0800275 clocks = <&osc24M>, <&pll6 0>;
Maxime Ripardd8c3a392014-07-11 19:39:06 +0200276 clock-output-names = "mmc0",
277 "mmc0_output",
278 "mmc0_sample";
Hans de Goedeadc54c82014-05-02 17:57:23 +0200279 };
280
281 mmc1_clk: clk@01c2008c {
Maxime Ripardd8c3a392014-07-11 19:39:06 +0200282 #clock-cells = <1>;
283 compatible = "allwinner,sun4i-a10-mmc-clk";
Hans de Goedeadc54c82014-05-02 17:57:23 +0200284 reg = <0x01c2008c 0x4>;
Chen-Yu Tsaif6c3b042014-11-13 02:08:32 +0800285 clocks = <&osc24M>, <&pll6 0>;
Maxime Ripardd8c3a392014-07-11 19:39:06 +0200286 clock-output-names = "mmc1",
287 "mmc1_output",
288 "mmc1_sample";
Hans de Goedeadc54c82014-05-02 17:57:23 +0200289 };
290
291 mmc2_clk: clk@01c20090 {
Maxime Ripardd8c3a392014-07-11 19:39:06 +0200292 #clock-cells = <1>;
293 compatible = "allwinner,sun4i-a10-mmc-clk";
Hans de Goedeadc54c82014-05-02 17:57:23 +0200294 reg = <0x01c20090 0x4>;
Chen-Yu Tsaif6c3b042014-11-13 02:08:32 +0800295 clocks = <&osc24M>, <&pll6 0>;
Maxime Ripardd8c3a392014-07-11 19:39:06 +0200296 clock-output-names = "mmc2",
297 "mmc2_output",
298 "mmc2_sample";
Hans de Goedeadc54c82014-05-02 17:57:23 +0200299 };
300
301 mmc3_clk: clk@01c20094 {
Maxime Ripardd8c3a392014-07-11 19:39:06 +0200302 #clock-cells = <1>;
303 compatible = "allwinner,sun4i-a10-mmc-clk";
Hans de Goedeadc54c82014-05-02 17:57:23 +0200304 reg = <0x01c20094 0x4>;
Chen-Yu Tsaif6c3b042014-11-13 02:08:32 +0800305 clocks = <&osc24M>, <&pll6 0>;
Maxime Ripardd8c3a392014-07-11 19:39:06 +0200306 clock-output-names = "mmc3",
307 "mmc3_output",
308 "mmc3_sample";
Hans de Goedeadc54c82014-05-02 17:57:23 +0200309 };
310
Maxime Ripardb0a09c72014-02-05 14:05:04 +0100311 spi0_clk: clk@01c200a0 {
312 #clock-cells = <0>;
Maxime Ripard225b0212014-02-24 17:29:06 +0100313 compatible = "allwinner,sun4i-a10-mod0-clk";
Maxime Ripardb0a09c72014-02-05 14:05:04 +0100314 reg = <0x01c200a0 0x4>;
Chen-Yu Tsaif6c3b042014-11-13 02:08:32 +0800315 clocks = <&osc24M>, <&pll6 0>;
Maxime Ripardb0a09c72014-02-05 14:05:04 +0100316 clock-output-names = "spi0";
317 };
318
319 spi1_clk: clk@01c200a4 {
320 #clock-cells = <0>;
Maxime Ripard225b0212014-02-24 17:29:06 +0100321 compatible = "allwinner,sun4i-a10-mod0-clk";
Maxime Ripardb0a09c72014-02-05 14:05:04 +0100322 reg = <0x01c200a4 0x4>;
Chen-Yu Tsaif6c3b042014-11-13 02:08:32 +0800323 clocks = <&osc24M>, <&pll6 0>;
Maxime Ripardb0a09c72014-02-05 14:05:04 +0100324 clock-output-names = "spi1";
325 };
326
327 spi2_clk: clk@01c200a8 {
328 #clock-cells = <0>;
Maxime Ripard225b0212014-02-24 17:29:06 +0100329 compatible = "allwinner,sun4i-a10-mod0-clk";
Maxime Ripardb0a09c72014-02-05 14:05:04 +0100330 reg = <0x01c200a8 0x4>;
Chen-Yu Tsaif6c3b042014-11-13 02:08:32 +0800331 clocks = <&osc24M>, <&pll6 0>;
Maxime Ripardb0a09c72014-02-05 14:05:04 +0100332 clock-output-names = "spi2";
333 };
334
335 spi3_clk: clk@01c200ac {
336 #clock-cells = <0>;
Maxime Ripard225b0212014-02-24 17:29:06 +0100337 compatible = "allwinner,sun4i-a10-mod0-clk";
Maxime Ripardb0a09c72014-02-05 14:05:04 +0100338 reg = <0x01c200ac 0x4>;
Chen-Yu Tsaif6c3b042014-11-13 02:08:32 +0800339 clocks = <&osc24M>, <&pll6 0>;
Maxime Ripardb0a09c72014-02-05 14:05:04 +0100340 clock-output-names = "spi3";
341 };
Maxime Ripard94a1cd12014-05-13 17:44:16 +0200342
343 usb_clk: clk@01c200cc {
344 #clock-cells = <1>;
345 #reset-cells = <1>;
346 compatible = "allwinner,sun6i-a31-usb-clk";
347 reg = <0x01c200cc 0x4>;
348 clocks = <&osc24M>;
349 clock-output-names = "usb_phy0", "usb_phy1", "usb_phy2",
350 "usb_ohci0", "usb_ohci1",
351 "usb_ohci2";
352 };
Chen-Yu Tsaied298612014-07-16 01:15:44 +0800353
354 /*
355 * The following two are dummy clocks, placeholders used in the gmac_tx
356 * clock. The gmac driver will choose one parent depending on the PHY
357 * interface mode, using clk_set_rate auto-reparenting.
358 * The actual TX clock rate is not controlled by the gmac_tx clock.
359 */
360 mii_phy_tx_clk: clk@1 {
361 #clock-cells = <0>;
362 compatible = "fixed-clock";
363 clock-frequency = <25000000>;
364 clock-output-names = "mii_phy_tx";
365 };
366
367 gmac_int_tx_clk: clk@2 {
368 #clock-cells = <0>;
369 compatible = "fixed-clock";
370 clock-frequency = <125000000>;
371 clock-output-names = "gmac_int_tx";
372 };
373
374 gmac_tx_clk: clk@01c200d0 {
375 #clock-cells = <0>;
376 compatible = "allwinner,sun7i-a20-gmac-clk";
377 reg = <0x01c200d0 0x4>;
378 clocks = <&mii_phy_tx_clk>, <&gmac_int_tx_clk>;
379 clock-output-names = "gmac_tx";
380 };
Maxime Ripard8aed3b32013-03-10 16:09:06 +0100381 };
382
383 soc@01c00000 {
384 compatible = "simple-bus";
385 #address-cells = <1>;
386 #size-cells = <1>;
387 ranges;
388
Maxime Ripardd2d878c2014-01-30 15:41:23 +0100389 dma: dma-controller@01c02000 {
390 compatible = "allwinner,sun6i-a31-dma";
391 reg = <0x01c02000 0x1000>;
Maxime Ripard19882b82014-12-16 22:59:58 +0100392 interrupts = <GIC_SPI 50 IRQ_TYPE_LEVEL_HIGH>;
Maxime Ripardd2d878c2014-01-30 15:41:23 +0100393 clocks = <&ahb1_gates 6>;
394 resets = <&ahb1_rst 6>;
395 #dma-cells = <1>;
Chen-Yu Tsai532425a2014-11-06 19:56:49 +0800396
397 /* DMA controller requires AHB1 clocked from PLL6 */
Chen-Yu Tsai42cc7132014-11-26 15:16:53 +0800398 assigned-clocks = <&ahb1>;
Chen-Yu Tsaif6c3b042014-11-13 02:08:32 +0800399 assigned-clock-parents = <&pll6 0>;
Maxime Ripardd2d878c2014-01-30 15:41:23 +0100400 };
401
Hans de Goede5b753f02014-05-02 17:57:24 +0200402 mmc0: mmc@01c0f000 {
403 compatible = "allwinner,sun5i-a13-mmc";
404 reg = <0x01c0f000 0x1000>;
Maxime Ripardd8c3a392014-07-11 19:39:06 +0200405 clocks = <&ahb1_gates 8>,
406 <&mmc0_clk 0>,
407 <&mmc0_clk 1>,
408 <&mmc0_clk 2>;
409 clock-names = "ahb",
410 "mmc",
411 "output",
412 "sample";
Hans de Goede5b753f02014-05-02 17:57:24 +0200413 resets = <&ahb1_rst 8>;
414 reset-names = "ahb";
Maxime Ripard19882b82014-12-16 22:59:58 +0100415 interrupts = <GIC_SPI 60 IRQ_TYPE_LEVEL_HIGH>;
Hans de Goede5b753f02014-05-02 17:57:24 +0200416 status = "disabled";
Hans de Goede4c1bb9c2015-03-10 16:27:09 +0100417 #address-cells = <1>;
418 #size-cells = <0>;
Hans de Goede5b753f02014-05-02 17:57:24 +0200419 };
420
421 mmc1: mmc@01c10000 {
422 compatible = "allwinner,sun5i-a13-mmc";
423 reg = <0x01c10000 0x1000>;
Maxime Ripardd8c3a392014-07-11 19:39:06 +0200424 clocks = <&ahb1_gates 9>,
425 <&mmc1_clk 0>,
426 <&mmc1_clk 1>,
427 <&mmc1_clk 2>;
428 clock-names = "ahb",
429 "mmc",
430 "output",
431 "sample";
Hans de Goede5b753f02014-05-02 17:57:24 +0200432 resets = <&ahb1_rst 9>;
433 reset-names = "ahb";
Maxime Ripard19882b82014-12-16 22:59:58 +0100434 interrupts = <GIC_SPI 61 IRQ_TYPE_LEVEL_HIGH>;
Hans de Goede5b753f02014-05-02 17:57:24 +0200435 status = "disabled";
Hans de Goede4c1bb9c2015-03-10 16:27:09 +0100436 #address-cells = <1>;
437 #size-cells = <0>;
Hans de Goede5b753f02014-05-02 17:57:24 +0200438 };
439
440 mmc2: mmc@01c11000 {
441 compatible = "allwinner,sun5i-a13-mmc";
442 reg = <0x01c11000 0x1000>;
Maxime Ripardd8c3a392014-07-11 19:39:06 +0200443 clocks = <&ahb1_gates 10>,
444 <&mmc2_clk 0>,
445 <&mmc2_clk 1>,
446 <&mmc2_clk 2>;
447 clock-names = "ahb",
448 "mmc",
449 "output",
450 "sample";
Hans de Goede5b753f02014-05-02 17:57:24 +0200451 resets = <&ahb1_rst 10>;
452 reset-names = "ahb";
Maxime Ripard19882b82014-12-16 22:59:58 +0100453 interrupts = <GIC_SPI 62 IRQ_TYPE_LEVEL_HIGH>;
Hans de Goede5b753f02014-05-02 17:57:24 +0200454 status = "disabled";
Hans de Goede4c1bb9c2015-03-10 16:27:09 +0100455 #address-cells = <1>;
456 #size-cells = <0>;
Hans de Goede5b753f02014-05-02 17:57:24 +0200457 };
458
459 mmc3: mmc@01c12000 {
460 compatible = "allwinner,sun5i-a13-mmc";
461 reg = <0x01c12000 0x1000>;
Maxime Ripardd8c3a392014-07-11 19:39:06 +0200462 clocks = <&ahb1_gates 11>,
463 <&mmc3_clk 0>,
464 <&mmc3_clk 1>,
465 <&mmc3_clk 2>;
466 clock-names = "ahb",
467 "mmc",
468 "output",
469 "sample";
Hans de Goede5b753f02014-05-02 17:57:24 +0200470 resets = <&ahb1_rst 11>;
471 reset-names = "ahb";
Maxime Ripard19882b82014-12-16 22:59:58 +0100472 interrupts = <GIC_SPI 63 IRQ_TYPE_LEVEL_HIGH>;
Hans de Goede5b753f02014-05-02 17:57:24 +0200473 status = "disabled";
Hans de Goede4c1bb9c2015-03-10 16:27:09 +0100474 #address-cells = <1>;
475 #size-cells = <0>;
Hans de Goede5b753f02014-05-02 17:57:24 +0200476 };
477
Maxime Ripardef964082014-05-13 17:44:21 +0200478 usbphy: phy@01c19400 {
479 compatible = "allwinner,sun6i-a31-usb-phy";
480 reg = <0x01c19400 0x10>,
481 <0x01c1a800 0x4>,
482 <0x01c1b800 0x4>;
483 reg-names = "phy_ctrl",
484 "pmu1",
485 "pmu2";
486 clocks = <&usb_clk 8>,
487 <&usb_clk 9>,
488 <&usb_clk 10>;
489 clock-names = "usb0_phy",
490 "usb1_phy",
491 "usb2_phy";
492 resets = <&usb_clk 0>,
493 <&usb_clk 1>,
494 <&usb_clk 2>;
495 reset-names = "usb0_reset",
496 "usb1_reset",
497 "usb2_reset";
498 status = "disabled";
499 #phy-cells = <1>;
500 };
501
502 ehci0: usb@01c1a000 {
503 compatible = "allwinner,sun6i-a31-ehci", "generic-ehci";
504 reg = <0x01c1a000 0x100>;
Maxime Ripard19882b82014-12-16 22:59:58 +0100505 interrupts = <GIC_SPI 72 IRQ_TYPE_LEVEL_HIGH>;
Maxime Ripardef964082014-05-13 17:44:21 +0200506 clocks = <&ahb1_gates 26>;
507 resets = <&ahb1_rst 26>;
508 phys = <&usbphy 1>;
509 phy-names = "usb";
510 status = "disabled";
511 };
512
513 ohci0: usb@01c1a400 {
514 compatible = "allwinner,sun6i-a31-ohci", "generic-ohci";
515 reg = <0x01c1a400 0x100>;
Maxime Ripard19882b82014-12-16 22:59:58 +0100516 interrupts = <GIC_SPI 73 IRQ_TYPE_LEVEL_HIGH>;
Maxime Ripardef964082014-05-13 17:44:21 +0200517 clocks = <&ahb1_gates 29>, <&usb_clk 16>;
518 resets = <&ahb1_rst 29>;
519 phys = <&usbphy 1>;
520 phy-names = "usb";
521 status = "disabled";
522 };
523
524 ehci1: usb@01c1b000 {
525 compatible = "allwinner,sun6i-a31-ehci", "generic-ehci";
526 reg = <0x01c1b000 0x100>;
Maxime Ripard19882b82014-12-16 22:59:58 +0100527 interrupts = <GIC_SPI 74 IRQ_TYPE_LEVEL_HIGH>;
Maxime Ripardef964082014-05-13 17:44:21 +0200528 clocks = <&ahb1_gates 27>;
529 resets = <&ahb1_rst 27>;
530 phys = <&usbphy 2>;
531 phy-names = "usb";
532 status = "disabled";
533 };
534
535 ohci1: usb@01c1b400 {
536 compatible = "allwinner,sun6i-a31-ohci", "generic-ohci";
537 reg = <0x01c1b400 0x100>;
Maxime Ripard19882b82014-12-16 22:59:58 +0100538 interrupts = <GIC_SPI 75 IRQ_TYPE_LEVEL_HIGH>;
Maxime Ripardef964082014-05-13 17:44:21 +0200539 clocks = <&ahb1_gates 30>, <&usb_clk 17>;
540 resets = <&ahb1_rst 30>;
541 phys = <&usbphy 2>;
542 phy-names = "usb";
543 status = "disabled";
544 };
545
Maxime Ripardb294ebb2014-05-20 13:59:58 +0200546 ohci2: usb@01c1c400 {
Maxime Ripardef964082014-05-13 17:44:21 +0200547 compatible = "allwinner,sun6i-a31-ohci", "generic-ohci";
548 reg = <0x01c1c400 0x100>;
Maxime Ripard19882b82014-12-16 22:59:58 +0100549 interrupts = <GIC_SPI 77 IRQ_TYPE_LEVEL_HIGH>;
Maxime Ripardef964082014-05-13 17:44:21 +0200550 clocks = <&ahb1_gates 31>, <&usb_clk 18>;
551 resets = <&ahb1_rst 31>;
552 status = "disabled";
553 };
554
Maxime Ripard140e1722013-03-12 22:16:05 +0100555 pio: pinctrl@01c20800 {
556 compatible = "allwinner,sun6i-a31-pinctrl";
557 reg = <0x01c20800 0x400>;
Maxime Ripard19882b82014-12-16 22:59:58 +0100558 interrupts = <GIC_SPI 11 IRQ_TYPE_LEVEL_HIGH>,
559 <GIC_SPI 15 IRQ_TYPE_LEVEL_HIGH>,
560 <GIC_SPI 16 IRQ_TYPE_LEVEL_HIGH>,
561 <GIC_SPI 17 IRQ_TYPE_LEVEL_HIGH>;
Maxime Ripard98096562013-07-23 23:54:19 +0200562 clocks = <&apb1_gates 5>;
Maxime Ripard140e1722013-03-12 22:16:05 +0100563 gpio-controller;
564 interrupt-controller;
Chen-Yu Tsai7d4ff962014-06-30 23:57:51 +0200565 #interrupt-cells = <2>;
Maxime Ripard140e1722013-03-12 22:16:05 +0100566 #size-cells = <0>;
567 #gpio-cells = <3>;
Maxime Ripardab4238c2013-06-22 23:56:40 +0200568
569 uart0_pins_a: uart0@0 {
570 allwinner,pins = "PH20", "PH21";
571 allwinner,function = "uart0";
Maxime Ripard092a0c32014-12-16 22:59:57 +0100572 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
573 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Maxime Ripardab4238c2013-06-22 23:56:40 +0200574 };
Maxime Ripard8be188b2014-03-04 17:28:40 +0100575
576 i2c0_pins_a: i2c0@0 {
577 allwinner,pins = "PH14", "PH15";
578 allwinner,function = "i2c0";
Maxime Ripard092a0c32014-12-16 22:59:57 +0100579 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
580 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Maxime Ripard8be188b2014-03-04 17:28:40 +0100581 };
582
583 i2c1_pins_a: i2c1@0 {
584 allwinner,pins = "PH16", "PH17";
585 allwinner,function = "i2c1";
Maxime Ripard092a0c32014-12-16 22:59:57 +0100586 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
587 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Maxime Ripard8be188b2014-03-04 17:28:40 +0100588 };
589
590 i2c2_pins_a: i2c2@0 {
591 allwinner,pins = "PH18", "PH19";
592 allwinner,function = "i2c2";
Maxime Ripard092a0c32014-12-16 22:59:57 +0100593 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
594 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Maxime Ripard8be188b2014-03-04 17:28:40 +0100595 };
Hans de Goede9797eb82014-04-26 12:16:16 +0200596
597 mmc0_pins_a: mmc0@0 {
598 allwinner,pins = "PF0","PF1","PF2","PF3","PF4","PF5";
599 allwinner,function = "mmc0";
Maxime Ripard092a0c32014-12-16 22:59:57 +0100600 allwinner,drive = <SUN4I_PINCTRL_30_MA>;
601 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Hans de Goede9797eb82014-04-26 12:16:16 +0200602 };
Chen-Yu Tsaiee39a3e2014-07-16 01:15:43 +0800603
Chen-Yu Tsai878c4de2015-03-10 19:59:22 +0800604 mmc1_pins_a: mmc1@0 {
605 allwinner,pins = "PG0", "PG1", "PG2", "PG3",
606 "PG4", "PG5";
607 allwinner,function = "mmc1";
608 allwinner,drive = <SUN4I_PINCTRL_30_MA>;
609 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
610 };
611
Chen-Yu Tsaiee39a3e2014-07-16 01:15:43 +0800612 gmac_pins_mii_a: gmac_mii@0 {
613 allwinner,pins = "PA0", "PA1", "PA2", "PA3",
614 "PA8", "PA9", "PA11",
615 "PA12", "PA13", "PA14", "PA19",
616 "PA20", "PA21", "PA22", "PA23",
617 "PA24", "PA26", "PA27";
618 allwinner,function = "gmac";
Maxime Ripard092a0c32014-12-16 22:59:57 +0100619 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
620 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Chen-Yu Tsaiee39a3e2014-07-16 01:15:43 +0800621 };
622
623 gmac_pins_gmii_a: gmac_gmii@0 {
624 allwinner,pins = "PA0", "PA1", "PA2", "PA3",
625 "PA4", "PA5", "PA6", "PA7",
626 "PA8", "PA9", "PA10", "PA11",
627 "PA12", "PA13", "PA14", "PA15",
628 "PA16", "PA17", "PA18", "PA19",
629 "PA20", "PA21", "PA22", "PA23",
630 "PA24", "PA25", "PA26", "PA27";
631 allwinner,function = "gmac";
632 /*
633 * data lines in GMII mode run at 125MHz and
634 * might need a higher signal drive strength
635 */
Maxime Ripard092a0c32014-12-16 22:59:57 +0100636 allwinner,drive = <SUN4I_PINCTRL_30_MA>;
637 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Chen-Yu Tsaiee39a3e2014-07-16 01:15:43 +0800638 };
639
640 gmac_pins_rgmii_a: gmac_rgmii@0 {
641 allwinner,pins = "PA0", "PA1", "PA2", "PA3",
642 "PA9", "PA10", "PA11",
643 "PA12", "PA13", "PA14", "PA19",
644 "PA20", "PA25", "PA26", "PA27";
645 allwinner,function = "gmac";
646 /*
647 * data lines in RGMII mode use DDR mode
648 * and need a higher signal drive strength
649 */
Maxime Ripard092a0c32014-12-16 22:59:57 +0100650 allwinner,drive = <SUN4I_PINCTRL_40_MA>;
651 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Chen-Yu Tsaiee39a3e2014-07-16 01:15:43 +0800652 };
Maxime Ripard140e1722013-03-12 22:16:05 +0100653 };
654
Maxime Ripard24a661e92013-09-24 11:10:41 +0300655 ahb1_rst: reset@01c202c0 {
656 #reset-cells = <1>;
657 compatible = "allwinner,sun6i-a31-ahb1-reset";
658 reg = <0x01c202c0 0xc>;
659 };
660
661 apb1_rst: reset@01c202d0 {
662 #reset-cells = <1>;
663 compatible = "allwinner,sun6i-a31-clock-reset";
664 reg = <0x01c202d0 0x4>;
665 };
666
667 apb2_rst: reset@01c202d8 {
668 #reset-cells = <1>;
669 compatible = "allwinner,sun6i-a31-clock-reset";
670 reg = <0x01c202d8 0x4>;
671 };
672
Maxime Ripard8aed3b32013-03-10 16:09:06 +0100673 timer@01c20c00 {
Maxime Ripardb4f26442014-02-06 10:40:32 +0100674 compatible = "allwinner,sun4i-a10-timer";
Maxime Ripard8aed3b32013-03-10 16:09:06 +0100675 reg = <0x01c20c00 0xa0>;
Maxime Ripard19882b82014-12-16 22:59:58 +0100676 interrupts = <GIC_SPI 18 IRQ_TYPE_LEVEL_HIGH>,
677 <GIC_SPI 19 IRQ_TYPE_LEVEL_HIGH>,
678 <GIC_SPI 20 IRQ_TYPE_LEVEL_HIGH>,
679 <GIC_SPI 21 IRQ_TYPE_LEVEL_HIGH>,
680 <GIC_SPI 22 IRQ_TYPE_LEVEL_HIGH>;
Maxime Ripard98096562013-07-23 23:54:19 +0200681 clocks = <&osc24M>;
Maxime Ripard8aed3b32013-03-10 16:09:06 +0100682 };
683
684 wdt1: watchdog@01c20ca0 {
Maxime Ripardca5d04d2014-02-07 22:29:26 +0100685 compatible = "allwinner,sun6i-a31-wdt";
Maxime Ripard8aed3b32013-03-10 16:09:06 +0100686 reg = <0x01c20ca0 0x20>;
687 };
688
Chen-Yu Tsai4ec45cd2015-01-24 22:33:48 +0800689 rtp: rtp@01c25000 {
690 compatible = "allwinner,sun6i-a31-ts";
691 reg = <0x01c25000 0x100>;
692 interrupts = <GIC_SPI 28 IRQ_TYPE_LEVEL_HIGH>;
693 #thermal-sensor-cells = <0>;
694 };
695
Maxime Ripard8aed3b32013-03-10 16:09:06 +0100696 uart0: serial@01c28000 {
697 compatible = "snps,dw-apb-uart";
698 reg = <0x01c28000 0x400>;
Maxime Ripard19882b82014-12-16 22:59:58 +0100699 interrupts = <GIC_SPI 0 IRQ_TYPE_LEVEL_HIGH>;
Maxime Ripard8aed3b32013-03-10 16:09:06 +0100700 reg-shift = <2>;
701 reg-io-width = <4>;
Maxime Ripard98096562013-07-23 23:54:19 +0200702 clocks = <&apb2_gates 16>;
Maxime Ripard24a661e92013-09-24 11:10:41 +0300703 resets = <&apb2_rst 16>;
Maxime Ripardd2d878c2014-01-30 15:41:23 +0100704 dmas = <&dma 6>, <&dma 6>;
705 dma-names = "rx", "tx";
Maxime Ripard8aed3b32013-03-10 16:09:06 +0100706 status = "disabled";
707 };
708
709 uart1: serial@01c28400 {
710 compatible = "snps,dw-apb-uart";
711 reg = <0x01c28400 0x400>;
Maxime Ripard19882b82014-12-16 22:59:58 +0100712 interrupts = <GIC_SPI 1 IRQ_TYPE_LEVEL_HIGH>;
Maxime Ripard8aed3b32013-03-10 16:09:06 +0100713 reg-shift = <2>;
714 reg-io-width = <4>;
Maxime Ripard98096562013-07-23 23:54:19 +0200715 clocks = <&apb2_gates 17>;
Maxime Ripard24a661e92013-09-24 11:10:41 +0300716 resets = <&apb2_rst 17>;
Maxime Ripardd2d878c2014-01-30 15:41:23 +0100717 dmas = <&dma 7>, <&dma 7>;
718 dma-names = "rx", "tx";
Maxime Ripard8aed3b32013-03-10 16:09:06 +0100719 status = "disabled";
720 };
721
722 uart2: serial@01c28800 {
723 compatible = "snps,dw-apb-uart";
724 reg = <0x01c28800 0x400>;
Maxime Ripard19882b82014-12-16 22:59:58 +0100725 interrupts = <GIC_SPI 2 IRQ_TYPE_LEVEL_HIGH>;
Maxime Ripard8aed3b32013-03-10 16:09:06 +0100726 reg-shift = <2>;
727 reg-io-width = <4>;
Maxime Ripard98096562013-07-23 23:54:19 +0200728 clocks = <&apb2_gates 18>;
Maxime Ripard24a661e92013-09-24 11:10:41 +0300729 resets = <&apb2_rst 18>;
Maxime Ripardd2d878c2014-01-30 15:41:23 +0100730 dmas = <&dma 8>, <&dma 8>;
731 dma-names = "rx", "tx";
Maxime Ripard8aed3b32013-03-10 16:09:06 +0100732 status = "disabled";
733 };
734
735 uart3: serial@01c28c00 {
736 compatible = "snps,dw-apb-uart";
737 reg = <0x01c28c00 0x400>;
Maxime Ripard19882b82014-12-16 22:59:58 +0100738 interrupts = <GIC_SPI 3 IRQ_TYPE_LEVEL_HIGH>;
Maxime Ripard8aed3b32013-03-10 16:09:06 +0100739 reg-shift = <2>;
740 reg-io-width = <4>;
Maxime Ripard98096562013-07-23 23:54:19 +0200741 clocks = <&apb2_gates 19>;
Maxime Ripard24a661e92013-09-24 11:10:41 +0300742 resets = <&apb2_rst 19>;
Maxime Ripardd2d878c2014-01-30 15:41:23 +0100743 dmas = <&dma 9>, <&dma 9>;
744 dma-names = "rx", "tx";
Maxime Ripard8aed3b32013-03-10 16:09:06 +0100745 status = "disabled";
746 };
747
748 uart4: serial@01c29000 {
749 compatible = "snps,dw-apb-uart";
750 reg = <0x01c29000 0x400>;
Maxime Ripard19882b82014-12-16 22:59:58 +0100751 interrupts = <GIC_SPI 4 IRQ_TYPE_LEVEL_HIGH>;
Maxime Ripard8aed3b32013-03-10 16:09:06 +0100752 reg-shift = <2>;
753 reg-io-width = <4>;
Maxime Ripard98096562013-07-23 23:54:19 +0200754 clocks = <&apb2_gates 20>;
Maxime Ripard24a661e92013-09-24 11:10:41 +0300755 resets = <&apb2_rst 20>;
Maxime Ripardd2d878c2014-01-30 15:41:23 +0100756 dmas = <&dma 10>, <&dma 10>;
757 dma-names = "rx", "tx";
Maxime Ripard8aed3b32013-03-10 16:09:06 +0100758 status = "disabled";
759 };
760
761 uart5: serial@01c29400 {
762 compatible = "snps,dw-apb-uart";
763 reg = <0x01c29400 0x400>;
Maxime Ripard19882b82014-12-16 22:59:58 +0100764 interrupts = <GIC_SPI 5 IRQ_TYPE_LEVEL_HIGH>;
Maxime Ripard8aed3b32013-03-10 16:09:06 +0100765 reg-shift = <2>;
766 reg-io-width = <4>;
Maxime Ripard98096562013-07-23 23:54:19 +0200767 clocks = <&apb2_gates 21>;
Maxime Ripard24a661e92013-09-24 11:10:41 +0300768 resets = <&apb2_rst 21>;
Maxime Ripardd2d878c2014-01-30 15:41:23 +0100769 dmas = <&dma 22>, <&dma 22>;
770 dma-names = "rx", "tx";
Maxime Ripard8aed3b32013-03-10 16:09:06 +0100771 status = "disabled";
772 };
773
Maxime Ripard96c7cc92014-03-04 17:28:39 +0100774 i2c0: i2c@01c2ac00 {
775 compatible = "allwinner,sun6i-a31-i2c";
776 reg = <0x01c2ac00 0x400>;
Maxime Ripard19882b82014-12-16 22:59:58 +0100777 interrupts = <GIC_SPI 6 IRQ_TYPE_LEVEL_HIGH>;
Maxime Ripard96c7cc92014-03-04 17:28:39 +0100778 clocks = <&apb2_gates 0>;
Maxime Ripard96c7cc92014-03-04 17:28:39 +0100779 resets = <&apb2_rst 0>;
780 status = "disabled";
Chen-Yu Tsai495bccf2014-07-21 22:54:27 +0800781 #address-cells = <1>;
782 #size-cells = <0>;
Maxime Ripard96c7cc92014-03-04 17:28:39 +0100783 };
784
785 i2c1: i2c@01c2b000 {
786 compatible = "allwinner,sun6i-a31-i2c";
787 reg = <0x01c2b000 0x400>;
Maxime Ripard19882b82014-12-16 22:59:58 +0100788 interrupts = <GIC_SPI 7 IRQ_TYPE_LEVEL_HIGH>;
Maxime Ripard96c7cc92014-03-04 17:28:39 +0100789 clocks = <&apb2_gates 1>;
Maxime Ripard96c7cc92014-03-04 17:28:39 +0100790 resets = <&apb2_rst 1>;
791 status = "disabled";
Chen-Yu Tsai495bccf2014-07-21 22:54:27 +0800792 #address-cells = <1>;
793 #size-cells = <0>;
Maxime Ripard96c7cc92014-03-04 17:28:39 +0100794 };
795
796 i2c2: i2c@01c2b400 {
797 compatible = "allwinner,sun6i-a31-i2c";
798 reg = <0x01c2b400 0x400>;
Maxime Ripard19882b82014-12-16 22:59:58 +0100799 interrupts = <GIC_SPI 8 IRQ_TYPE_LEVEL_HIGH>;
Maxime Ripard96c7cc92014-03-04 17:28:39 +0100800 clocks = <&apb2_gates 2>;
Maxime Ripard96c7cc92014-03-04 17:28:39 +0100801 resets = <&apb2_rst 2>;
802 status = "disabled";
Chen-Yu Tsai495bccf2014-07-21 22:54:27 +0800803 #address-cells = <1>;
804 #size-cells = <0>;
Maxime Ripard96c7cc92014-03-04 17:28:39 +0100805 };
806
807 i2c3: i2c@01c2b800 {
808 compatible = "allwinner,sun6i-a31-i2c";
809 reg = <0x01c2b800 0x400>;
Maxime Ripard19882b82014-12-16 22:59:58 +0100810 interrupts = <GIC_SPI 9 IRQ_TYPE_LEVEL_HIGH>;
Maxime Ripard96c7cc92014-03-04 17:28:39 +0100811 clocks = <&apb2_gates 3>;
Maxime Ripard96c7cc92014-03-04 17:28:39 +0100812 resets = <&apb2_rst 3>;
813 status = "disabled";
Chen-Yu Tsai495bccf2014-07-21 22:54:27 +0800814 #address-cells = <1>;
815 #size-cells = <0>;
Maxime Ripard96c7cc92014-03-04 17:28:39 +0100816 };
817
Chen-Yu Tsai3dca65f2014-07-16 01:15:45 +0800818 gmac: ethernet@01c30000 {
819 compatible = "allwinner,sun7i-a20-gmac";
820 reg = <0x01c30000 0x1054>;
Maxime Ripard19882b82014-12-16 22:59:58 +0100821 interrupts = <GIC_SPI 82 IRQ_TYPE_LEVEL_HIGH>;
Chen-Yu Tsai3dca65f2014-07-16 01:15:45 +0800822 interrupt-names = "macirq";
823 clocks = <&ahb1_gates 17>, <&gmac_tx_clk>;
824 clock-names = "stmmaceth", "allwinner_gmac_tx";
825 resets = <&ahb1_rst 17>;
826 reset-names = "stmmaceth";
827 snps,pbl = <2>;
828 snps,fixed-burst;
829 snps,force_sf_dma_mode;
830 status = "disabled";
831 #address-cells = <1>;
832 #size-cells = <0>;
833 };
834
Maxime Ripard8cffcb02014-04-17 11:06:46 +0200835 timer@01c60000 {
836 compatible = "allwinner,sun6i-a31-hstimer", "allwinner,sun7i-a20-hstimer";
837 reg = <0x01c60000 0x1000>;
Maxime Ripard19882b82014-12-16 22:59:58 +0100838 interrupts = <GIC_SPI 51 IRQ_TYPE_LEVEL_HIGH>,
839 <GIC_SPI 52 IRQ_TYPE_LEVEL_HIGH>,
840 <GIC_SPI 53 IRQ_TYPE_LEVEL_HIGH>,
841 <GIC_SPI 54 IRQ_TYPE_LEVEL_HIGH>;
Maxime Ripard8cffcb02014-04-17 11:06:46 +0200842 clocks = <&ahb1_gates 19>;
843 resets = <&ahb1_rst 19>;
844 };
845
Maxime Ripard0d6efe32014-02-05 14:05:06 +0100846 spi0: spi@01c68000 {
847 compatible = "allwinner,sun6i-a31-spi";
848 reg = <0x01c68000 0x1000>;
Maxime Ripard19882b82014-12-16 22:59:58 +0100849 interrupts = <GIC_SPI 65 IRQ_TYPE_LEVEL_HIGH>;
Maxime Ripard0d6efe32014-02-05 14:05:06 +0100850 clocks = <&ahb1_gates 20>, <&spi0_clk>;
851 clock-names = "ahb", "mod";
Maxime Ripardd2d878c2014-01-30 15:41:23 +0100852 dmas = <&dma 23>, <&dma 23>;
853 dma-names = "rx", "tx";
Maxime Ripard0d6efe32014-02-05 14:05:06 +0100854 resets = <&ahb1_rst 20>;
855 status = "disabled";
856 };
857
858 spi1: spi@01c69000 {
859 compatible = "allwinner,sun6i-a31-spi";
860 reg = <0x01c69000 0x1000>;
Maxime Ripard19882b82014-12-16 22:59:58 +0100861 interrupts = <GIC_SPI 66 IRQ_TYPE_LEVEL_HIGH>;
Maxime Ripard0d6efe32014-02-05 14:05:06 +0100862 clocks = <&ahb1_gates 21>, <&spi1_clk>;
863 clock-names = "ahb", "mod";
Maxime Ripardd2d878c2014-01-30 15:41:23 +0100864 dmas = <&dma 24>, <&dma 24>;
865 dma-names = "rx", "tx";
Maxime Ripard0d6efe32014-02-05 14:05:06 +0100866 resets = <&ahb1_rst 21>;
867 status = "disabled";
868 };
869
870 spi2: spi@01c6a000 {
871 compatible = "allwinner,sun6i-a31-spi";
872 reg = <0x01c6a000 0x1000>;
Maxime Ripard19882b82014-12-16 22:59:58 +0100873 interrupts = <GIC_SPI 67 IRQ_TYPE_LEVEL_HIGH>;
Maxime Ripard0d6efe32014-02-05 14:05:06 +0100874 clocks = <&ahb1_gates 22>, <&spi2_clk>;
875 clock-names = "ahb", "mod";
Maxime Ripardd2d878c2014-01-30 15:41:23 +0100876 dmas = <&dma 25>, <&dma 25>;
877 dma-names = "rx", "tx";
Maxime Ripard0d6efe32014-02-05 14:05:06 +0100878 resets = <&ahb1_rst 22>;
879 status = "disabled";
880 };
881
882 spi3: spi@01c6b000 {
883 compatible = "allwinner,sun6i-a31-spi";
884 reg = <0x01c6b000 0x1000>;
Maxime Ripard19882b82014-12-16 22:59:58 +0100885 interrupts = <GIC_SPI 68 IRQ_TYPE_LEVEL_HIGH>;
Maxime Ripard0d6efe32014-02-05 14:05:06 +0100886 clocks = <&ahb1_gates 23>, <&spi3_clk>;
887 clock-names = "ahb", "mod";
Maxime Ripardd2d878c2014-01-30 15:41:23 +0100888 dmas = <&dma 26>, <&dma 26>;
889 dma-names = "rx", "tx";
Maxime Ripard0d6efe32014-02-05 14:05:06 +0100890 resets = <&ahb1_rst 23>;
891 status = "disabled";
892 };
893
Maxime Ripard8aed3b32013-03-10 16:09:06 +0100894 gic: interrupt-controller@01c81000 {
895 compatible = "arm,cortex-a7-gic", "arm,cortex-a15-gic";
896 reg = <0x01c81000 0x1000>,
897 <0x01c82000 0x1000>,
898 <0x01c84000 0x2000>,
899 <0x01c86000 0x2000>;
900 interrupt-controller;
901 #interrupt-cells = <3>;
Maxime Ripard19882b82014-12-16 22:59:58 +0100902 interrupts = <GIC_PPI 9 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>;
Maxime Ripard8aed3b32013-03-10 16:09:06 +0100903 };
Maxime Ripard81ee4292013-11-03 10:30:12 +0100904
Chen-Yu Tsai5e700432014-07-30 20:56:06 +0800905 rtc: rtc@01f00000 {
906 compatible = "allwinner,sun6i-a31-rtc";
907 reg = <0x01f00000 0x54>;
Maxime Ripard19882b82014-12-16 22:59:58 +0100908 interrupts = <GIC_SPI 40 IRQ_TYPE_LEVEL_HIGH>,
909 <GIC_SPI 41 IRQ_TYPE_LEVEL_HIGH>;
Chen-Yu Tsai5e700432014-07-30 20:56:06 +0800910 };
911
Maxime Ripard28240d22014-04-17 10:29:35 +0200912 nmi_intc: interrupt-controller@01f00c0c {
913 compatible = "allwinner,sun6i-a31-sc-nmi";
914 interrupt-controller;
915 #interrupt-cells = <2>;
916 reg = <0x01f00c0c 0x38>;
Maxime Ripard19882b82014-12-16 22:59:58 +0100917 interrupts = <GIC_SPI 32 IRQ_TYPE_LEVEL_HIGH>;
Maxime Ripard28240d22014-04-17 10:29:35 +0200918 };
919
Hans de Goedea42ea602014-04-13 13:41:02 +0200920 prcm@01f01400 {
921 compatible = "allwinner,sun6i-a31-prcm";
922 reg = <0x01f01400 0x200>;
Boris BREZILLONcc08f5e2014-05-14 14:38:21 +0200923
924 ar100: ar100_clk {
925 compatible = "allwinner,sun6i-a31-ar100-clk";
926 #clock-cells = <0>;
Chen-Yu Tsaif6c3b042014-11-13 02:08:32 +0800927 clocks = <&osc32k>, <&osc24M>, <&pll6 0>, <&pll6 0>;
Boris BREZILLONcc08f5e2014-05-14 14:38:21 +0200928 clock-output-names = "ar100";
929 };
930
931 ahb0: ahb0_clk {
932 compatible = "fixed-factor-clock";
933 #clock-cells = <0>;
934 clock-div = <1>;
935 clock-mult = <1>;
936 clocks = <&ar100>;
937 clock-output-names = "ahb0";
938 };
939
940 apb0: apb0_clk {
941 compatible = "allwinner,sun6i-a31-apb0-clk";
942 #clock-cells = <0>;
943 clocks = <&ahb0>;
944 clock-output-names = "apb0";
945 };
946
947 apb0_gates: apb0_gates_clk {
948 compatible = "allwinner,sun6i-a31-apb0-gates-clk";
949 #clock-cells = <1>;
950 clocks = <&apb0>;
951 clock-output-names = "apb0_pio", "apb0_ir",
952 "apb0_timer", "apb0_p2wi",
953 "apb0_uart", "apb0_1wire",
954 "apb0_i2c";
955 };
956
Hans de Goede9b5c6e02014-12-17 18:18:19 +0100957 ir_clk: ir_clk {
958 #clock-cells = <0>;
959 compatible = "allwinner,sun4i-a10-mod0-clk";
960 clocks = <&osc32k>, <&osc24M>;
961 clock-output-names = "ir";
962 };
963
Boris BREZILLONcc08f5e2014-05-14 14:38:21 +0200964 apb0_rst: apb0_rst {
965 compatible = "allwinner,sun6i-a31-clock-reset";
966 #reset-cells = <1>;
967 };
Hans de Goedea42ea602014-04-13 13:41:02 +0200968 };
969
Maxime Ripard81ee4292013-11-03 10:30:12 +0100970 cpucfg@01f01c00 {
971 compatible = "allwinner,sun6i-a31-cpuconfig";
972 reg = <0x01f01c00 0x300>;
973 };
Boris BREZILLON209394a2014-05-13 16:03:03 +0200974
Hans de Goede4ac367b2014-12-29 12:09:24 +0100975 ir: ir@01f02000 {
976 compatible = "allwinner,sun5i-a13-ir";
977 clocks = <&apb0_gates 1>, <&ir_clk>;
978 clock-names = "apb", "ir";
979 resets = <&apb0_rst 1>;
Maxime Ripard19882b82014-12-16 22:59:58 +0100980 interrupts = <GIC_SPI 37 IRQ_TYPE_LEVEL_HIGH>;
Hans de Goede4ac367b2014-12-29 12:09:24 +0100981 reg = <0x01f02000 0x40>;
982 status = "disabled";
983 };
984
Boris BREZILLON209394a2014-05-13 16:03:03 +0200985 r_pio: pinctrl@01f02c00 {
986 compatible = "allwinner,sun6i-a31-r-pinctrl";
987 reg = <0x01f02c00 0x400>;
Maxime Ripard19882b82014-12-16 22:59:58 +0100988 interrupts = <GIC_SPI 45 IRQ_TYPE_LEVEL_HIGH>,
989 <GIC_SPI 46 IRQ_TYPE_LEVEL_HIGH>;
Boris BREZILLON209394a2014-05-13 16:03:03 +0200990 clocks = <&apb0_gates 0>;
991 resets = <&apb0_rst 0>;
992 gpio-controller;
993 interrupt-controller;
Chen-Yu Tsai7d4ff962014-06-30 23:57:51 +0200994 #interrupt-cells = <2>;
Boris BREZILLON209394a2014-05-13 16:03:03 +0200995 #size-cells = <0>;
996 #gpio-cells = <3>;
Hans de Goededbbcd882014-11-23 14:38:14 +0100997
998 ir_pins_a: ir@0 {
999 allwinner,pins = "PL4";
1000 allwinner,function = "s_ir";
Maxime Ripard092a0c32014-12-16 22:59:57 +01001001 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
1002 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
Hans de Goededbbcd882014-11-23 14:38:14 +01001003 };
Boris BREZILLONfcd60132015-03-10 19:59:12 +08001004
1005 p2wi_pins: p2wi {
1006 allwinner,pins = "PL0", "PL1";
1007 allwinner,function = "s_p2wi";
1008 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
1009 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
1010 };
1011 };
1012
1013 p2wi: i2c@01f03400 {
1014 compatible = "allwinner,sun6i-a31-p2wi";
1015 reg = <0x01f03400 0x400>;
1016 interrupts = <GIC_SPI 39 IRQ_TYPE_LEVEL_HIGH>;
1017 clocks = <&apb0_gates 3>;
1018 clock-frequency = <100000>;
1019 resets = <&apb0_rst 3>;
1020 pinctrl-names = "default";
1021 pinctrl-0 = <&p2wi_pins>;
1022 status = "disabled";
1023 #address-cells = <1>;
1024 #size-cells = <0>;
Boris BREZILLON209394a2014-05-13 16:03:03 +02001025 };
Maxime Ripard8aed3b32013-03-10 16:09:06 +01001026 };
1027};