blob: ded5cf14a4af95c2d8793539ec743199e3373dd4 [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 *
Maxime Ripard6c3ba722014-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 Ripard8aed3b32013-03-10 16:09:06 +010043 */
44
Maxime Ripard71455702014-12-16 22:59:54 +010045#include "skeleton.dtsi"
Maxime Ripard8aed3b32013-03-10 16:09:06 +010046
Maxime Ripard19882b82014-12-16 22:59:58 +010047#include <dt-bindings/interrupt-controller/arm-gic.h>
Chen-Yu Tsaieb58b402015-03-26 05:04:49 +080048#include <dt-bindings/thermal/thermal.h>
Maxime Ripard19882b82014-12-16 22:59:58 +010049
Chen-Yu Tsai78a9f0d2016-08-25 14:22:00 +080050#include <dt-bindings/clock/sun6i-a31-ccu.h>
Chen-Yu Tsai78a9f0d2016-08-25 14:22:00 +080051#include <dt-bindings/reset/sun6i-a31-ccu.h>
Maxime Ripard8aed3b32013-03-10 16:09:06 +010052
53/ {
54 interrupt-parent = <&gic>;
55
Maxime Ripard54428d42014-01-02 22:05:04 +010056 aliases {
Chen-Yu Tsaie5073fd2014-07-16 01:15:46 +080057 ethernet0 = &gmac;
Maxime Ripard54428d42014-01-02 22:05:04 +010058 };
59
Hans de Goedee53a8b22014-11-14 16:34:36 +010060 chosen {
61 #address-cells = <1>;
62 #size-cells = <1>;
63 ranges;
64
Chen-Yu Tsaic0949302015-10-23 11:50:40 +080065 simplefb_hdmi: framebuffer@0 {
Maxime Ripardd8cacaa2015-05-03 11:53:07 +020066 compatible = "allwinner,simple-framebuffer",
67 "simple-framebuffer";
Hans de Goedea9f8cda2014-11-18 12:07:13 +010068 allwinner,pipeline = "de_be0-lcd0-hdmi";
Chen-Yu Tsai78a9f0d2016-08-25 14:22:00 +080069 clocks = <&ccu CLK_AHB1_BE0>, <&ccu CLK_AHB1_LCD0>,
70 <&ccu CLK_AHB1_HDMI>, <&ccu CLK_DRAM_BE0>,
71 <&ccu CLK_IEP_DRC0>, <&ccu CLK_BE0>,
72 <&ccu CLK_LCD0_CH1>, <&ccu CLK_HDMI>;
Hans de Goedee53a8b22014-11-14 16:34:36 +010073 status = "disabled";
74 };
Hans de Goedefd18c7e2015-01-19 14:05:12 +010075
Chen-Yu Tsaic0949302015-10-23 11:50:40 +080076 simplefb_lcd: framebuffer@1 {
Hans de Goedefd18c7e2015-01-19 14:05:12 +010077 compatible = "allwinner,simple-framebuffer",
78 "simple-framebuffer";
79 allwinner,pipeline = "de_be0-lcd0";
Chen-Yu Tsai78a9f0d2016-08-25 14:22:00 +080080 clocks = <&ccu CLK_AHB1_BE0>, <&ccu CLK_AHB1_LCD0>,
81 <&ccu CLK_DRAM_BE0>, <&ccu CLK_IEP_DRC0>,
82 <&ccu CLK_BE0>, <&ccu CLK_LCD0_CH0>;
Hans de Goedefd18c7e2015-01-19 14:05:12 +010083 status = "disabled";
84 };
Hans de Goedee53a8b22014-11-14 16:34:36 +010085 };
Maxime Ripard54428d42014-01-02 22:05:04 +010086
Maxime Ripard121b96c2015-01-11 20:33:44 +010087 timer {
88 compatible = "arm,armv7-timer";
89 interrupts = <GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
90 <GIC_PPI 14 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
91 <GIC_PPI 11 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
92 <GIC_PPI 10 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>;
93 clock-frequency = <24000000>;
94 arm,cpu-registers-not-fw-configured;
Maxime Ripard8aed3b32013-03-10 16:09:06 +010095 };
96
97 cpus {
98 enable-method = "allwinner,sun6i-a31";
99 #address-cells = <1>;
100 #size-cells = <0>;
101
Chen-Yu Tsai3a2bc642015-03-26 05:04:48 +0800102 cpu0: cpu@0 {
Maxime Ripard8aed3b32013-03-10 16:09:06 +0100103 compatible = "arm,cortex-a7";
104 device_type = "cpu";
105 reg = <0>;
Chen-Yu Tsai78a9f0d2016-08-25 14:22:00 +0800106 clocks = <&ccu CLK_CPU>;
Chen-Yu Tsai3a2bc642015-03-26 05:04:48 +0800107 clock-latency = <244144>; /* 8 32k periods */
108 operating-points = <
Maxime Ripard8358aad2015-05-03 11:54:35 +0200109 /* kHz uV */
Chen-Yu Tsai3a2bc642015-03-26 05:04:48 +0800110 1008000 1200000
Maxime Ripard8358aad2015-05-03 11:54:35 +0200111 864000 1200000
112 720000 1100000
113 480000 1000000
Chen-Yu Tsai3a2bc642015-03-26 05:04:48 +0800114 >;
115 #cooling-cells = <2>;
116 cooling-min-level = <0>;
117 cooling-max-level = <3>;
Maxime Ripard8aed3b32013-03-10 16:09:06 +0100118 };
119
120 cpu@1 {
121 compatible = "arm,cortex-a7";
122 device_type = "cpu";
123 reg = <1>;
124 };
125
126 cpu@2 {
127 compatible = "arm,cortex-a7";
128 device_type = "cpu";
129 reg = <2>;
130 };
131
132 cpu@3 {
133 compatible = "arm,cortex-a7";
134 device_type = "cpu";
135 reg = <3>;
136 };
137 };
138
Chen-Yu Tsaieb58b402015-03-26 05:04:49 +0800139 thermal-zones {
140 cpu_thermal {
141 /* milliseconds */
142 polling-delay-passive = <250>;
143 polling-delay = <1000>;
144 thermal-sensors = <&rtp>;
145
146 cooling-maps {
147 map0 {
148 trip = <&cpu_alert0>;
149 cooling-device = <&cpu0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
150 };
151 };
152
153 trips {
154 cpu_alert0: cpu_alert0 {
155 /* milliCelsius */
156 temperature = <70000>;
157 hysteresis = <2000>;
158 type = "passive";
159 };
160
161 cpu_crit: cpu_crit {
162 /* milliCelsius */
163 temperature = <100000>;
164 hysteresis = <2000>;
165 type = "critical";
166 };
167 };
168 };
169 };
170
Maxime Ripard8aed3b32013-03-10 16:09:06 +0100171 memory {
172 reg = <0x40000000 0x80000000>;
173 };
174
Maxime Ripardb5a10b72014-04-17 21:54:41 +0200175 pmu {
176 compatible = "arm,cortex-a7-pmu", "arm,cortex-a15-pmu";
Maxime Ripard19882b82014-12-16 22:59:58 +0100177 interrupts = <GIC_SPI 120 IRQ_TYPE_LEVEL_HIGH>,
178 <GIC_SPI 121 IRQ_TYPE_LEVEL_HIGH>,
179 <GIC_SPI 122 IRQ_TYPE_LEVEL_HIGH>,
180 <GIC_SPI 123 IRQ_TYPE_LEVEL_HIGH>;
Maxime Ripardb5a10b72014-04-17 21:54:41 +0200181 };
182
Maxime Ripard8aed3b32013-03-10 16:09:06 +0100183 clocks {
184 #address-cells = <1>;
Maxime Ripard98096562013-07-23 23:54:19 +0200185 #size-cells = <1>;
186 ranges;
Maxime Ripard8aed3b32013-03-10 16:09:06 +0100187
Maxime Ripard98096562013-07-23 23:54:19 +0200188 osc24M: osc24M {
Maxime Ripard8aed3b32013-03-10 16:09:06 +0100189 #clock-cells = <0>;
190 compatible = "fixed-clock";
191 clock-frequency = <24000000>;
192 };
Maxime Ripard98096562013-07-23 23:54:19 +0200193
Chen-Yu Tsai7b5b2902014-02-03 09:51:43 +0800194 osc32k: clk@0 {
Maxime Ripard98096562013-07-23 23:54:19 +0200195 #clock-cells = <0>;
196 compatible = "fixed-clock";
197 clock-frequency = <32768>;
Chen-Yu Tsai7b5b2902014-02-03 09:51:43 +0800198 clock-output-names = "osc32k";
Maxime Ripard98096562013-07-23 23:54:19 +0200199 };
200
Chen-Yu Tsaied298612014-07-16 01:15:44 +0800201 /*
Maxime Ripardd8cacaa2015-05-03 11:53:07 +0200202 * The following two are dummy clocks, placeholders
203 * used in the gmac_tx clock. The gmac driver will
204 * choose one parent depending on the PHY interface
205 * mode, using clk_set_rate auto-reparenting.
206 *
207 * The actual TX clock rate is not controlled by the
208 * gmac_tx clock.
Chen-Yu Tsaied298612014-07-16 01:15:44 +0800209 */
210 mii_phy_tx_clk: clk@1 {
211 #clock-cells = <0>;
212 compatible = "fixed-clock";
213 clock-frequency = <25000000>;
214 clock-output-names = "mii_phy_tx";
215 };
216
217 gmac_int_tx_clk: clk@2 {
218 #clock-cells = <0>;
219 compatible = "fixed-clock";
220 clock-frequency = <125000000>;
221 clock-output-names = "gmac_int_tx";
222 };
223
Maxime Ripard5841f6c2017-10-05 12:49:36 +0200224 gmac_tx_clk: clk@1c200d0 {
Chen-Yu Tsaied298612014-07-16 01:15:44 +0800225 #clock-cells = <0>;
226 compatible = "allwinner,sun7i-a20-gmac-clk";
227 reg = <0x01c200d0 0x4>;
228 clocks = <&mii_phy_tx_clk>, <&gmac_int_tx_clk>;
229 clock-output-names = "gmac_tx";
230 };
Maxime Ripard8aed3b32013-03-10 16:09:06 +0100231 };
232
Chen-Yu Tsai6d0e5b72016-10-20 11:43:42 +0800233 de: display-engine {
234 compatible = "allwinner,sun6i-a31-display-engine";
Chen-Yu Tsai9a268822017-04-21 16:38:56 +0800235 allwinner,pipelines = <&fe0>, <&fe1>;
Chen-Yu Tsai205ac7b2016-11-24 14:43:38 +0800236 status = "disabled";
Chen-Yu Tsai6d0e5b72016-10-20 11:43:42 +0800237 };
238
Maxime Ripard5841f6c2017-10-05 12:49:36 +0200239 soc@1c00000 {
Maxime Ripard8aed3b32013-03-10 16:09:06 +0100240 compatible = "simple-bus";
241 #address-cells = <1>;
242 #size-cells = <1>;
243 ranges;
244
Maxime Ripard5841f6c2017-10-05 12:49:36 +0200245 dma: dma-controller@1c02000 {
Maxime Ripardd2d878c2014-01-30 15:41:23 +0100246 compatible = "allwinner,sun6i-a31-dma";
247 reg = <0x01c02000 0x1000>;
Maxime Ripard19882b82014-12-16 22:59:58 +0100248 interrupts = <GIC_SPI 50 IRQ_TYPE_LEVEL_HIGH>;
Chen-Yu Tsai78a9f0d2016-08-25 14:22:00 +0800249 clocks = <&ccu CLK_AHB1_DMA>;
250 resets = <&ccu RST_AHB1_DMA>;
Maxime Ripardd2d878c2014-01-30 15:41:23 +0100251 #dma-cells = <1>;
252 };
253
Maxime Ripard5841f6c2017-10-05 12:49:36 +0200254 tcon0: lcd-controller@1c0c000 {
Chen-Yu Tsai6d0e5b72016-10-20 11:43:42 +0800255 compatible = "allwinner,sun6i-a31-tcon";
256 reg = <0x01c0c000 0x1000>;
257 interrupts = <GIC_SPI 86 IRQ_TYPE_LEVEL_HIGH>;
258 resets = <&ccu RST_AHB1_LCD0>;
259 reset-names = "lcd";
260 clocks = <&ccu CLK_AHB1_LCD0>,
261 <&ccu CLK_LCD0_CH0>,
262 <&ccu CLK_LCD0_CH1>;
263 clock-names = "ahb",
264 "tcon-ch0",
265 "tcon-ch1";
266 clock-output-names = "tcon0-pixel-clock";
Chen-Yu Tsai6d0e5b72016-10-20 11:43:42 +0800267
268 ports {
269 #address-cells = <1>;
270 #size-cells = <0>;
271
272 tcon0_in: port@0 {
273 #address-cells = <1>;
274 #size-cells = <0>;
275 reg = <0>;
276
277 tcon0_in_drc0: endpoint@0 {
278 reg = <0>;
279 remote-endpoint = <&drc0_out_tcon0>;
280 };
Chen-Yu Tsai25132732017-09-08 15:50:16 +0800281
282 tcon0_in_drc1: endpoint@1 {
283 reg = <1>;
284 remote-endpoint = <&drc1_out_tcon0>;
285 };
Chen-Yu Tsai6d0e5b72016-10-20 11:43:42 +0800286 };
287
288 tcon0_out: port@1 {
289 #address-cells = <1>;
290 #size-cells = <0>;
291 reg = <1>;
292 };
293 };
294 };
295
Maxime Ripard5841f6c2017-10-05 12:49:36 +0200296 tcon1: lcd-controller@1c0d000 {
Chen-Yu Tsai9a268822017-04-21 16:38:56 +0800297 compatible = "allwinner,sun6i-a31-tcon";
298 reg = <0x01c0d000 0x1000>;
299 interrupts = <GIC_SPI 87 IRQ_TYPE_LEVEL_HIGH>;
300 resets = <&ccu RST_AHB1_LCD1>;
301 reset-names = "lcd";
302 clocks = <&ccu CLK_AHB1_LCD1>,
303 <&ccu CLK_LCD1_CH0>,
304 <&ccu CLK_LCD1_CH1>;
305 clock-names = "ahb",
306 "tcon-ch0",
307 "tcon-ch1";
308 clock-output-names = "tcon1-pixel-clock";
309
310 ports {
311 #address-cells = <1>;
312 #size-cells = <0>;
313
314 tcon1_in: port@0 {
315 #address-cells = <1>;
316 #size-cells = <0>;
317 reg = <0>;
318
Chen-Yu Tsai25132732017-09-08 15:50:16 +0800319 tcon1_in_drc0: endpoint@0 {
320 reg = <0>;
321 remote-endpoint = <&drc0_out_tcon1>;
322 };
323
Chen-Yu Tsaia231d272017-09-08 15:50:09 +0800324 tcon1_in_drc1: endpoint@1 {
325 reg = <1>;
Chen-Yu Tsai9a268822017-04-21 16:38:56 +0800326 remote-endpoint = <&drc1_out_tcon1>;
327 };
328 };
329
330 tcon1_out: port@1 {
331 #address-cells = <1>;
332 #size-cells = <0>;
333 reg = <1>;
334 };
335 };
336 };
337
Maxime Ripard5841f6c2017-10-05 12:49:36 +0200338 mmc0: mmc@1c0f000 {
Hans de Goede57af7112016-07-30 16:25:48 +0200339 compatible = "allwinner,sun7i-a20-mmc";
Hans de Goede5b753f02014-05-02 17:57:24 +0200340 reg = <0x01c0f000 0x1000>;
Chen-Yu Tsai78a9f0d2016-08-25 14:22:00 +0800341 clocks = <&ccu CLK_AHB1_MMC0>,
342 <&ccu CLK_MMC0>,
343 <&ccu CLK_MMC0_OUTPUT>,
344 <&ccu CLK_MMC0_SAMPLE>;
Maxime Ripardd8c3a392014-07-11 19:39:06 +0200345 clock-names = "ahb",
346 "mmc",
347 "output",
348 "sample";
Chen-Yu Tsai78a9f0d2016-08-25 14:22:00 +0800349 resets = <&ccu RST_AHB1_MMC0>;
Hans de Goede5b753f02014-05-02 17:57:24 +0200350 reset-names = "ahb";
Maxime Ripard19882b82014-12-16 22:59:58 +0100351 interrupts = <GIC_SPI 60 IRQ_TYPE_LEVEL_HIGH>;
Hans de Goede5b753f02014-05-02 17:57:24 +0200352 status = "disabled";
Hans de Goede4c1bb9c2015-03-10 16:27:09 +0100353 #address-cells = <1>;
354 #size-cells = <0>;
Hans de Goede5b753f02014-05-02 17:57:24 +0200355 };
356
Maxime Ripard5841f6c2017-10-05 12:49:36 +0200357 mmc1: mmc@1c10000 {
Hans de Goede57af7112016-07-30 16:25:48 +0200358 compatible = "allwinner,sun7i-a20-mmc";
Hans de Goede5b753f02014-05-02 17:57:24 +0200359 reg = <0x01c10000 0x1000>;
Chen-Yu Tsai78a9f0d2016-08-25 14:22:00 +0800360 clocks = <&ccu CLK_AHB1_MMC1>,
361 <&ccu CLK_MMC1>,
362 <&ccu CLK_MMC1_OUTPUT>,
363 <&ccu CLK_MMC1_SAMPLE>;
Maxime Ripardd8c3a392014-07-11 19:39:06 +0200364 clock-names = "ahb",
365 "mmc",
366 "output",
367 "sample";
Chen-Yu Tsai78a9f0d2016-08-25 14:22:00 +0800368 resets = <&ccu RST_AHB1_MMC1>;
Hans de Goede5b753f02014-05-02 17:57:24 +0200369 reset-names = "ahb";
Maxime Ripard19882b82014-12-16 22:59:58 +0100370 interrupts = <GIC_SPI 61 IRQ_TYPE_LEVEL_HIGH>;
Hans de Goede5b753f02014-05-02 17:57:24 +0200371 status = "disabled";
Hans de Goede4c1bb9c2015-03-10 16:27:09 +0100372 #address-cells = <1>;
373 #size-cells = <0>;
Hans de Goede5b753f02014-05-02 17:57:24 +0200374 };
375
Maxime Ripard5841f6c2017-10-05 12:49:36 +0200376 mmc2: mmc@1c11000 {
Hans de Goede57af7112016-07-30 16:25:48 +0200377 compatible = "allwinner,sun7i-a20-mmc";
Hans de Goede5b753f02014-05-02 17:57:24 +0200378 reg = <0x01c11000 0x1000>;
Chen-Yu Tsai78a9f0d2016-08-25 14:22:00 +0800379 clocks = <&ccu CLK_AHB1_MMC2>,
380 <&ccu CLK_MMC2>,
381 <&ccu CLK_MMC2_OUTPUT>,
382 <&ccu CLK_MMC2_SAMPLE>;
Maxime Ripardd8c3a392014-07-11 19:39:06 +0200383 clock-names = "ahb",
384 "mmc",
385 "output",
386 "sample";
Chen-Yu Tsai78a9f0d2016-08-25 14:22:00 +0800387 resets = <&ccu RST_AHB1_MMC2>;
Hans de Goede5b753f02014-05-02 17:57:24 +0200388 reset-names = "ahb";
Maxime Ripard19882b82014-12-16 22:59:58 +0100389 interrupts = <GIC_SPI 62 IRQ_TYPE_LEVEL_HIGH>;
Hans de Goede5b753f02014-05-02 17:57:24 +0200390 status = "disabled";
Hans de Goede4c1bb9c2015-03-10 16:27:09 +0100391 #address-cells = <1>;
392 #size-cells = <0>;
Hans de Goede5b753f02014-05-02 17:57:24 +0200393 };
394
Maxime Ripard5841f6c2017-10-05 12:49:36 +0200395 mmc3: mmc@1c12000 {
Hans de Goede57af7112016-07-30 16:25:48 +0200396 compatible = "allwinner,sun7i-a20-mmc";
Hans de Goede5b753f02014-05-02 17:57:24 +0200397 reg = <0x01c12000 0x1000>;
Chen-Yu Tsai78a9f0d2016-08-25 14:22:00 +0800398 clocks = <&ccu CLK_AHB1_MMC3>,
399 <&ccu CLK_MMC3>,
400 <&ccu CLK_MMC3_OUTPUT>,
401 <&ccu CLK_MMC3_SAMPLE>;
Maxime Ripardd8c3a392014-07-11 19:39:06 +0200402 clock-names = "ahb",
403 "mmc",
404 "output",
405 "sample";
Chen-Yu Tsai78a9f0d2016-08-25 14:22:00 +0800406 resets = <&ccu RST_AHB1_MMC3>;
Hans de Goede5b753f02014-05-02 17:57:24 +0200407 reset-names = "ahb";
Maxime Ripard19882b82014-12-16 22:59:58 +0100408 interrupts = <GIC_SPI 63 IRQ_TYPE_LEVEL_HIGH>;
Hans de Goede5b753f02014-05-02 17:57:24 +0200409 status = "disabled";
Hans de Goede4c1bb9c2015-03-10 16:27:09 +0100410 #address-cells = <1>;
411 #size-cells = <0>;
Hans de Goede5b753f02014-05-02 17:57:24 +0200412 };
413
Maxime Ripard5841f6c2017-10-05 12:49:36 +0200414 usb_otg: usb@1c19000 {
Hans de Goeded208eaf2015-06-01 13:29:49 +0200415 compatible = "allwinner,sun6i-a31-musb";
416 reg = <0x01c19000 0x0400>;
Chen-Yu Tsai78a9f0d2016-08-25 14:22:00 +0800417 clocks = <&ccu CLK_AHB1_OTG>;
418 resets = <&ccu RST_AHB1_OTG>;
Hans de Goeded208eaf2015-06-01 13:29:49 +0200419 interrupts = <GIC_SPI 71 IRQ_TYPE_LEVEL_HIGH>;
420 interrupt-names = "mc";
421 phys = <&usbphy 0>;
422 phy-names = "usb";
423 extcon = <&usbphy 0>;
424 status = "disabled";
425 };
426
Maxime Ripard5841f6c2017-10-05 12:49:36 +0200427 usbphy: phy@1c19400 {
Maxime Ripardef964082014-05-13 17:44:21 +0200428 compatible = "allwinner,sun6i-a31-usb-phy";
429 reg = <0x01c19400 0x10>,
430 <0x01c1a800 0x4>,
431 <0x01c1b800 0x4>;
432 reg-names = "phy_ctrl",
433 "pmu1",
434 "pmu2";
Chen-Yu Tsai78a9f0d2016-08-25 14:22:00 +0800435 clocks = <&ccu CLK_USB_PHY0>,
436 <&ccu CLK_USB_PHY1>,
437 <&ccu CLK_USB_PHY2>;
Maxime Ripardef964082014-05-13 17:44:21 +0200438 clock-names = "usb0_phy",
439 "usb1_phy",
440 "usb2_phy";
Chen-Yu Tsai78a9f0d2016-08-25 14:22:00 +0800441 resets = <&ccu RST_USB_PHY0>,
442 <&ccu RST_USB_PHY1>,
443 <&ccu RST_USB_PHY2>;
Maxime Ripardef964082014-05-13 17:44:21 +0200444 reset-names = "usb0_reset",
445 "usb1_reset",
446 "usb2_reset";
447 status = "disabled";
448 #phy-cells = <1>;
449 };
450
Maxime Ripard5841f6c2017-10-05 12:49:36 +0200451 ehci0: usb@1c1a000 {
Maxime Ripardef964082014-05-13 17:44:21 +0200452 compatible = "allwinner,sun6i-a31-ehci", "generic-ehci";
453 reg = <0x01c1a000 0x100>;
Maxime Ripard19882b82014-12-16 22:59:58 +0100454 interrupts = <GIC_SPI 72 IRQ_TYPE_LEVEL_HIGH>;
Chen-Yu Tsai78a9f0d2016-08-25 14:22:00 +0800455 clocks = <&ccu CLK_AHB1_EHCI0>;
456 resets = <&ccu RST_AHB1_EHCI0>;
Maxime Ripardef964082014-05-13 17:44:21 +0200457 phys = <&usbphy 1>;
458 phy-names = "usb";
459 status = "disabled";
460 };
461
Maxime Ripard5841f6c2017-10-05 12:49:36 +0200462 ohci0: usb@1c1a400 {
Maxime Ripardef964082014-05-13 17:44:21 +0200463 compatible = "allwinner,sun6i-a31-ohci", "generic-ohci";
464 reg = <0x01c1a400 0x100>;
Maxime Ripard19882b82014-12-16 22:59:58 +0100465 interrupts = <GIC_SPI 73 IRQ_TYPE_LEVEL_HIGH>;
Chen-Yu Tsai78a9f0d2016-08-25 14:22:00 +0800466 clocks = <&ccu CLK_AHB1_OHCI0>, <&ccu CLK_USB_OHCI0>;
467 resets = <&ccu RST_AHB1_OHCI0>;
Maxime Ripardef964082014-05-13 17:44:21 +0200468 phys = <&usbphy 1>;
469 phy-names = "usb";
470 status = "disabled";
471 };
472
Maxime Ripard5841f6c2017-10-05 12:49:36 +0200473 ehci1: usb@1c1b000 {
Maxime Ripardef964082014-05-13 17:44:21 +0200474 compatible = "allwinner,sun6i-a31-ehci", "generic-ehci";
475 reg = <0x01c1b000 0x100>;
Maxime Ripard19882b82014-12-16 22:59:58 +0100476 interrupts = <GIC_SPI 74 IRQ_TYPE_LEVEL_HIGH>;
Chen-Yu Tsai78a9f0d2016-08-25 14:22:00 +0800477 clocks = <&ccu CLK_AHB1_EHCI1>;
478 resets = <&ccu RST_AHB1_EHCI1>;
Maxime Ripardef964082014-05-13 17:44:21 +0200479 phys = <&usbphy 2>;
480 phy-names = "usb";
481 status = "disabled";
482 };
483
Maxime Ripard5841f6c2017-10-05 12:49:36 +0200484 ohci1: usb@1c1b400 {
Maxime Ripardef964082014-05-13 17:44:21 +0200485 compatible = "allwinner,sun6i-a31-ohci", "generic-ohci";
486 reg = <0x01c1b400 0x100>;
Maxime Ripard19882b82014-12-16 22:59:58 +0100487 interrupts = <GIC_SPI 75 IRQ_TYPE_LEVEL_HIGH>;
Chen-Yu Tsai78a9f0d2016-08-25 14:22:00 +0800488 clocks = <&ccu CLK_AHB1_OHCI1>, <&ccu CLK_USB_OHCI1>;
489 resets = <&ccu RST_AHB1_OHCI1>;
Maxime Ripardef964082014-05-13 17:44:21 +0200490 phys = <&usbphy 2>;
491 phy-names = "usb";
492 status = "disabled";
493 };
494
Maxime Ripard5841f6c2017-10-05 12:49:36 +0200495 ohci2: usb@1c1c400 {
Maxime Ripardef964082014-05-13 17:44:21 +0200496 compatible = "allwinner,sun6i-a31-ohci", "generic-ohci";
497 reg = <0x01c1c400 0x100>;
Maxime Ripard19882b82014-12-16 22:59:58 +0100498 interrupts = <GIC_SPI 77 IRQ_TYPE_LEVEL_HIGH>;
Chen-Yu Tsai78a9f0d2016-08-25 14:22:00 +0800499 clocks = <&ccu CLK_AHB1_OHCI2>, <&ccu CLK_USB_OHCI2>;
500 resets = <&ccu RST_AHB1_OHCI2>;
Maxime Ripardef964082014-05-13 17:44:21 +0200501 status = "disabled";
502 };
503
Maxime Ripard5841f6c2017-10-05 12:49:36 +0200504 ccu: clock@1c20000 {
Chen-Yu Tsai78a9f0d2016-08-25 14:22:00 +0800505 compatible = "allwinner,sun6i-a31-ccu";
506 reg = <0x01c20000 0x400>;
507 clocks = <&osc24M>, <&osc32k>;
508 clock-names = "hosc", "losc";
509 #clock-cells = <1>;
510 #reset-cells = <1>;
511 };
512
Maxime Ripard5841f6c2017-10-05 12:49:36 +0200513 pio: pinctrl@1c20800 {
Maxime Ripard140e1722013-03-12 22:16:05 +0100514 compatible = "allwinner,sun6i-a31-pinctrl";
515 reg = <0x01c20800 0x400>;
Maxime Ripard19882b82014-12-16 22:59:58 +0100516 interrupts = <GIC_SPI 11 IRQ_TYPE_LEVEL_HIGH>,
517 <GIC_SPI 15 IRQ_TYPE_LEVEL_HIGH>,
518 <GIC_SPI 16 IRQ_TYPE_LEVEL_HIGH>,
519 <GIC_SPI 17 IRQ_TYPE_LEVEL_HIGH>;
Maxime Ripardbe7bc6b2016-10-19 11:15:27 +0200520 clocks = <&ccu CLK_APB1_PIO>, <&osc24M>, <&osc32k>;
521 clock-names = "apb", "hosc", "losc";
Maxime Ripard140e1722013-03-12 22:16:05 +0100522 gpio-controller;
523 interrupt-controller;
Maxime Ripardb03e0812015-06-17 11:44:24 +0200524 #interrupt-cells = <3>;
Maxime Ripard140e1722013-03-12 22:16:05 +0100525 #gpio-cells = <3>;
Maxime Ripardab4238c2013-06-22 23:56:40 +0200526
Chen-Yu Tsaidc0aea32016-10-07 00:06:26 +0800527 gmac_pins_gmii_a: gmac_gmii@0 {
Maxime Ripard1edcd362016-09-23 14:28:10 +0300528 pins = "PA0", "PA1", "PA2", "PA3",
Chen-Yu Tsaidc0aea32016-10-07 00:06:26 +0800529 "PA4", "PA5", "PA6", "PA7",
530 "PA8", "PA9", "PA10", "PA11",
531 "PA12", "PA13", "PA14", "PA15",
532 "PA16", "PA17", "PA18", "PA19",
533 "PA20", "PA21", "PA22", "PA23",
534 "PA24", "PA25", "PA26", "PA27";
Maxime Ripard1edcd362016-09-23 14:28:10 +0300535 function = "gmac";
Chen-Yu Tsaidc0aea32016-10-07 00:06:26 +0800536 /*
537 * data lines in GMII mode run at 125MHz and
538 * might need a higher signal drive strength
539 */
Maxime Ripard1edcd362016-09-23 14:28:10 +0300540 drive-strength = <30>;
Chen-Yu Tsaidc0aea32016-10-07 00:06:26 +0800541 };
542
543 gmac_pins_mii_a: gmac_mii@0 {
Maxime Ripard1edcd362016-09-23 14:28:10 +0300544 pins = "PA0", "PA1", "PA2", "PA3",
Chen-Yu Tsaidc0aea32016-10-07 00:06:26 +0800545 "PA8", "PA9", "PA11",
546 "PA12", "PA13", "PA14", "PA19",
547 "PA20", "PA21", "PA22", "PA23",
548 "PA24", "PA26", "PA27";
Maxime Ripard1edcd362016-09-23 14:28:10 +0300549 function = "gmac";
Maxime Ripardab4238c2013-06-22 23:56:40 +0200550 };
Maxime Ripard8be188b2014-03-04 17:28:40 +0100551
Chen-Yu Tsaidc0aea32016-10-07 00:06:26 +0800552 gmac_pins_rgmii_a: gmac_rgmii@0 {
Maxime Ripard1edcd362016-09-23 14:28:10 +0300553 pins = "PA0", "PA1", "PA2", "PA3",
Chen-Yu Tsaidc0aea32016-10-07 00:06:26 +0800554 "PA9", "PA10", "PA11",
555 "PA12", "PA13", "PA14", "PA19",
556 "PA20", "PA25", "PA26", "PA27";
Maxime Ripard1edcd362016-09-23 14:28:10 +0300557 function = "gmac";
Chen-Yu Tsaidc0aea32016-10-07 00:06:26 +0800558 /*
559 * data lines in RGMII mode use DDR mode
560 * and need a higher signal drive strength
561 */
Maxime Ripard1edcd362016-09-23 14:28:10 +0300562 drive-strength = <40>;
Chen-Yu Tsaidc0aea32016-10-07 00:06:26 +0800563 };
564
Maxime Ripard8be188b2014-03-04 17:28:40 +0100565 i2c0_pins_a: i2c0@0 {
Maxime Ripard1edcd362016-09-23 14:28:10 +0300566 pins = "PH14", "PH15";
567 function = "i2c0";
Maxime Ripard8be188b2014-03-04 17:28:40 +0100568 };
569
570 i2c1_pins_a: i2c1@0 {
Maxime Ripard1edcd362016-09-23 14:28:10 +0300571 pins = "PH16", "PH17";
572 function = "i2c1";
Maxime Ripard8be188b2014-03-04 17:28:40 +0100573 };
574
575 i2c2_pins_a: i2c2@0 {
Maxime Ripard1edcd362016-09-23 14:28:10 +0300576 pins = "PH18", "PH19";
577 function = "i2c2";
Maxime Ripard8be188b2014-03-04 17:28:40 +0100578 };
Hans de Goede9797eb82014-04-26 12:16:16 +0200579
Chen-Yu Tsai0ff82192016-10-20 11:43:43 +0800580 lcd0_rgb888_pins: lcd0_rgb888 {
Maxime Ripard1edcd362016-09-23 14:28:10 +0300581 pins = "PD0", "PD1", "PD2", "PD3",
Chen-Yu Tsai0ff82192016-10-20 11:43:43 +0800582 "PD4", "PD5", "PD6", "PD7",
583 "PD8", "PD9", "PD10", "PD11",
584 "PD12", "PD13", "PD14", "PD15",
585 "PD16", "PD17", "PD18", "PD19",
586 "PD20", "PD21", "PD22", "PD23",
587 "PD24", "PD25", "PD26", "PD27";
Maxime Ripard1edcd362016-09-23 14:28:10 +0300588 function = "lcd0";
Chen-Yu Tsai0ff82192016-10-20 11:43:43 +0800589 };
590
Hans de Goede9797eb82014-04-26 12:16:16 +0200591 mmc0_pins_a: mmc0@0 {
Maxime Ripard1edcd362016-09-23 14:28:10 +0300592 pins = "PF0", "PF1", "PF2",
Maxime Ripardd8cacaa2015-05-03 11:53:07 +0200593 "PF3", "PF4", "PF5";
Maxime Ripard1edcd362016-09-23 14:28:10 +0300594 function = "mmc0";
595 drive-strength = <30>;
Chen-Yu Tsai80ee72e2016-11-17 17:34:38 +0800596 bias-pull-up;
Hans de Goede9797eb82014-04-26 12:16:16 +0200597 };
Chen-Yu Tsaiee39a3e2014-07-16 01:15:43 +0800598
Chen-Yu Tsai878c4de2015-03-10 19:59:22 +0800599 mmc1_pins_a: mmc1@0 {
Maxime Ripard1edcd362016-09-23 14:28:10 +0300600 pins = "PG0", "PG1", "PG2", "PG3",
Chen-Yu Tsai878c4de2015-03-10 19:59:22 +0800601 "PG4", "PG5";
Maxime Ripard1edcd362016-09-23 14:28:10 +0300602 function = "mmc1";
603 drive-strength = <30>;
Chen-Yu Tsai80ee72e2016-11-17 17:34:38 +0800604 bias-pull-up;
Chen-Yu Tsai878c4de2015-03-10 19:59:22 +0800605 };
606
Hans de Goede5edab362015-10-15 16:28:46 +0200607 mmc2_pins_a: mmc2@0 {
Maxime Ripard1edcd362016-09-23 14:28:10 +0300608 pins = "PC6", "PC7", "PC8", "PC9",
Hans de Goede5edab362015-10-15 16:28:46 +0200609 "PC10", "PC11";
Maxime Ripard1edcd362016-09-23 14:28:10 +0300610 function = "mmc2";
611 drive-strength = <30>;
612 bias-pull-up;
Hans de Goede5edab362015-10-15 16:28:46 +0200613 };
614
615 mmc2_8bit_emmc_pins: mmc2@1 {
Maxime Ripard1edcd362016-09-23 14:28:10 +0300616 pins = "PC6", "PC7", "PC8", "PC9",
Chen-Yu Tsai4917c462015-08-28 17:54:37 +0800617 "PC10", "PC11", "PC12",
618 "PC13", "PC14", "PC15",
619 "PC24";
Maxime Ripard1edcd362016-09-23 14:28:10 +0300620 function = "mmc2";
621 drive-strength = <30>;
Chen-Yu Tsai80ee72e2016-11-17 17:34:38 +0800622 bias-pull-up;
Chen-Yu Tsai4917c462015-08-28 17:54:37 +0800623 };
624
Chen-Yu Tsaia22f8b22016-01-21 13:26:35 +0800625 mmc3_8bit_emmc_pins: mmc3@1 {
Maxime Ripard1edcd362016-09-23 14:28:10 +0300626 pins = "PC6", "PC7", "PC8", "PC9",
Chen-Yu Tsaia22f8b22016-01-21 13:26:35 +0800627 "PC10", "PC11", "PC12",
628 "PC13", "PC14", "PC15",
629 "PC24";
Maxime Ripard1edcd362016-09-23 14:28:10 +0300630 function = "mmc3";
631 drive-strength = <40>;
Chen-Yu Tsai80ee72e2016-11-17 17:34:38 +0800632 bias-pull-up;
Chen-Yu Tsaia22f8b22016-01-21 13:26:35 +0800633 };
634
Marcus Cooper5f396b12016-12-20 11:40:36 +0100635 spdif_pins_a: spdif@0 {
636 pins = "PH28";
637 function = "spdif";
Maxime Ripard092a0c32014-12-16 22:59:57 +0100638 };
Chen-Yu Tsaiee39a3e2014-07-16 01:15:43 +0800639
Chen-Yu Tsaidc0aea32016-10-07 00:06:26 +0800640 uart0_pins_a: uart0@0 {
Maxime Ripard1edcd362016-09-23 14:28:10 +0300641 pins = "PH20", "PH21";
642 function = "uart0";
Chen-Yu Tsaiee39a3e2014-07-16 01:15:43 +0800643 };
Maxime Ripard140e1722013-03-12 22:16:05 +0100644 };
645
Maxime Ripard5841f6c2017-10-05 12:49:36 +0200646 timer@1c20c00 {
Maxime Ripardb4f26442014-02-06 10:40:32 +0100647 compatible = "allwinner,sun4i-a10-timer";
Maxime Ripard8aed3b32013-03-10 16:09:06 +0100648 reg = <0x01c20c00 0xa0>;
Maxime Ripard19882b82014-12-16 22:59:58 +0100649 interrupts = <GIC_SPI 18 IRQ_TYPE_LEVEL_HIGH>,
650 <GIC_SPI 19 IRQ_TYPE_LEVEL_HIGH>,
651 <GIC_SPI 20 IRQ_TYPE_LEVEL_HIGH>,
652 <GIC_SPI 21 IRQ_TYPE_LEVEL_HIGH>,
653 <GIC_SPI 22 IRQ_TYPE_LEVEL_HIGH>;
Maxime Ripard98096562013-07-23 23:54:19 +0200654 clocks = <&osc24M>;
Maxime Ripard8aed3b32013-03-10 16:09:06 +0100655 };
656
Maxime Ripard5841f6c2017-10-05 12:49:36 +0200657 wdt1: watchdog@1c20ca0 {
Maxime Ripardca5d04d2014-02-07 22:29:26 +0100658 compatible = "allwinner,sun6i-a31-wdt";
Maxime Ripard8aed3b32013-03-10 16:09:06 +0100659 reg = <0x01c20ca0 0x20>;
660 };
661
Maxime Ripard5841f6c2017-10-05 12:49:36 +0200662 spdif: spdif@1c21000 {
Marcus Cooper63b31ba2016-12-20 11:40:37 +0100663 #sound-dai-cells = <0>;
664 compatible = "allwinner,sun6i-a31-spdif";
665 reg = <0x01c21000 0x400>;
666 interrupts = <GIC_SPI 12 IRQ_TYPE_LEVEL_HIGH>;
667 clocks = <&ccu CLK_APB1_SPDIF>, <&ccu CLK_SPDIF>;
668 resets = <&ccu RST_APB1_SPDIF>;
669 clock-names = "apb", "spdif";
670 dmas = <&dma 2>, <&dma 2>;
671 dma-names = "rx", "tx";
672 status = "disabled";
673 };
674
Maxime Ripard5841f6c2017-10-05 12:49:36 +0200675 i2s0: i2s@1c22000 {
Marcus Coopera7977bb2017-09-03 17:08:52 +0200676 #sound-dai-cells = <0>;
677 compatible = "allwinner,sun6i-a31-i2s";
678 reg = <0x01c22000 0x400>;
679 interrupts = <GIC_SPI 13 IRQ_TYPE_LEVEL_HIGH>;
680 clocks = <&ccu CLK_APB1_DAUDIO0>, <&ccu CLK_DAUDIO0>;
681 resets = <&ccu RST_APB1_DAUDIO0>;
682 clock-names = "apb", "mod";
683 dmas = <&dma 3>, <&dma 3>;
684 dma-names = "rx", "tx";
685 status = "disabled";
686 };
687
Maxime Ripard5841f6c2017-10-05 12:49:36 +0200688 i2s1: i2s@1c22400 {
Marcus Coopera7977bb2017-09-03 17:08:52 +0200689 #sound-dai-cells = <0>;
690 compatible = "allwinner,sun6i-a31-i2s";
691 reg = <0x01c22400 0x400>;
692 interrupts = <GIC_SPI 14 IRQ_TYPE_LEVEL_HIGH>;
693 clocks = <&ccu CLK_APB1_DAUDIO1>, <&ccu CLK_DAUDIO1>;
694 resets = <&ccu RST_APB1_DAUDIO1>;
695 clock-names = "apb", "mod";
696 dmas = <&dma 4>, <&dma 4>;
697 dma-names = "rx", "tx";
698 status = "disabled";
699 };
700
Maxime Ripard5841f6c2017-10-05 12:49:36 +0200701 lradc: lradc@1c22800 {
Chen-Yu Tsai61d25952015-08-28 17:54:34 +0800702 compatible = "allwinner,sun4i-a10-lradc-keys";
703 reg = <0x01c22800 0x100>;
704 interrupts = <GIC_SPI 30 IRQ_TYPE_LEVEL_HIGH>;
705 status = "disabled";
706 };
707
Maxime Ripard5841f6c2017-10-05 12:49:36 +0200708 rtp: rtp@1c25000 {
Chen-Yu Tsai4ec45cd2015-01-24 22:33:48 +0800709 compatible = "allwinner,sun6i-a31-ts";
710 reg = <0x01c25000 0x100>;
711 interrupts = <GIC_SPI 28 IRQ_TYPE_LEVEL_HIGH>;
712 #thermal-sensor-cells = <0>;
713 };
714
Maxime Ripard5841f6c2017-10-05 12:49:36 +0200715 uart0: serial@1c28000 {
Maxime Ripard8aed3b32013-03-10 16:09:06 +0100716 compatible = "snps,dw-apb-uart";
717 reg = <0x01c28000 0x400>;
Maxime Ripard19882b82014-12-16 22:59:58 +0100718 interrupts = <GIC_SPI 0 IRQ_TYPE_LEVEL_HIGH>;
Maxime Ripard8aed3b32013-03-10 16:09:06 +0100719 reg-shift = <2>;
720 reg-io-width = <4>;
Chen-Yu Tsai78a9f0d2016-08-25 14:22:00 +0800721 clocks = <&ccu CLK_APB2_UART0>;
722 resets = <&ccu RST_APB2_UART0>;
Maxime Ripardd2d878c2014-01-30 15:41:23 +0100723 dmas = <&dma 6>, <&dma 6>;
724 dma-names = "rx", "tx";
Maxime Ripard8aed3b32013-03-10 16:09:06 +0100725 status = "disabled";
726 };
727
Maxime Ripard5841f6c2017-10-05 12:49:36 +0200728 uart1: serial@1c28400 {
Maxime Ripard8aed3b32013-03-10 16:09:06 +0100729 compatible = "snps,dw-apb-uart";
730 reg = <0x01c28400 0x400>;
Maxime Ripard19882b82014-12-16 22:59:58 +0100731 interrupts = <GIC_SPI 1 IRQ_TYPE_LEVEL_HIGH>;
Maxime Ripard8aed3b32013-03-10 16:09:06 +0100732 reg-shift = <2>;
733 reg-io-width = <4>;
Chen-Yu Tsai78a9f0d2016-08-25 14:22:00 +0800734 clocks = <&ccu CLK_APB2_UART1>;
735 resets = <&ccu RST_APB2_UART1>;
Maxime Ripardd2d878c2014-01-30 15:41:23 +0100736 dmas = <&dma 7>, <&dma 7>;
737 dma-names = "rx", "tx";
Maxime Ripard8aed3b32013-03-10 16:09:06 +0100738 status = "disabled";
739 };
740
Maxime Ripard5841f6c2017-10-05 12:49:36 +0200741 uart2: serial@1c28800 {
Maxime Ripard8aed3b32013-03-10 16:09:06 +0100742 compatible = "snps,dw-apb-uart";
743 reg = <0x01c28800 0x400>;
Maxime Ripard19882b82014-12-16 22:59:58 +0100744 interrupts = <GIC_SPI 2 IRQ_TYPE_LEVEL_HIGH>;
Maxime Ripard8aed3b32013-03-10 16:09:06 +0100745 reg-shift = <2>;
746 reg-io-width = <4>;
Chen-Yu Tsai78a9f0d2016-08-25 14:22:00 +0800747 clocks = <&ccu CLK_APB2_UART2>;
748 resets = <&ccu RST_APB2_UART2>;
Maxime Ripardd2d878c2014-01-30 15:41:23 +0100749 dmas = <&dma 8>, <&dma 8>;
750 dma-names = "rx", "tx";
Maxime Ripard8aed3b32013-03-10 16:09:06 +0100751 status = "disabled";
752 };
753
Maxime Ripard5841f6c2017-10-05 12:49:36 +0200754 uart3: serial@1c28c00 {
Maxime Ripard8aed3b32013-03-10 16:09:06 +0100755 compatible = "snps,dw-apb-uart";
756 reg = <0x01c28c00 0x400>;
Maxime Ripard19882b82014-12-16 22:59:58 +0100757 interrupts = <GIC_SPI 3 IRQ_TYPE_LEVEL_HIGH>;
Maxime Ripard8aed3b32013-03-10 16:09:06 +0100758 reg-shift = <2>;
759 reg-io-width = <4>;
Chen-Yu Tsai78a9f0d2016-08-25 14:22:00 +0800760 clocks = <&ccu CLK_APB2_UART3>;
761 resets = <&ccu RST_APB2_UART3>;
Maxime Ripardd2d878c2014-01-30 15:41:23 +0100762 dmas = <&dma 9>, <&dma 9>;
763 dma-names = "rx", "tx";
Maxime Ripard8aed3b32013-03-10 16:09:06 +0100764 status = "disabled";
765 };
766
Maxime Ripard5841f6c2017-10-05 12:49:36 +0200767 uart4: serial@1c29000 {
Maxime Ripard8aed3b32013-03-10 16:09:06 +0100768 compatible = "snps,dw-apb-uart";
769 reg = <0x01c29000 0x400>;
Maxime Ripard19882b82014-12-16 22:59:58 +0100770 interrupts = <GIC_SPI 4 IRQ_TYPE_LEVEL_HIGH>;
Maxime Ripard8aed3b32013-03-10 16:09:06 +0100771 reg-shift = <2>;
772 reg-io-width = <4>;
Chen-Yu Tsai78a9f0d2016-08-25 14:22:00 +0800773 clocks = <&ccu CLK_APB2_UART4>;
774 resets = <&ccu RST_APB2_UART4>;
Maxime Ripardd2d878c2014-01-30 15:41:23 +0100775 dmas = <&dma 10>, <&dma 10>;
776 dma-names = "rx", "tx";
Maxime Ripard8aed3b32013-03-10 16:09:06 +0100777 status = "disabled";
778 };
779
Maxime Ripard5841f6c2017-10-05 12:49:36 +0200780 uart5: serial@1c29400 {
Maxime Ripard8aed3b32013-03-10 16:09:06 +0100781 compatible = "snps,dw-apb-uart";
782 reg = <0x01c29400 0x400>;
Maxime Ripard19882b82014-12-16 22:59:58 +0100783 interrupts = <GIC_SPI 5 IRQ_TYPE_LEVEL_HIGH>;
Maxime Ripard8aed3b32013-03-10 16:09:06 +0100784 reg-shift = <2>;
785 reg-io-width = <4>;
Chen-Yu Tsai78a9f0d2016-08-25 14:22:00 +0800786 clocks = <&ccu CLK_APB2_UART5>;
787 resets = <&ccu RST_APB2_UART5>;
Maxime Ripardd2d878c2014-01-30 15:41:23 +0100788 dmas = <&dma 22>, <&dma 22>;
789 dma-names = "rx", "tx";
Maxime Ripard8aed3b32013-03-10 16:09:06 +0100790 status = "disabled";
791 };
792
Maxime Ripard5841f6c2017-10-05 12:49:36 +0200793 i2c0: i2c@1c2ac00 {
Maxime Ripard96c7cc92014-03-04 17:28:39 +0100794 compatible = "allwinner,sun6i-a31-i2c";
795 reg = <0x01c2ac00 0x400>;
Maxime Ripard19882b82014-12-16 22:59:58 +0100796 interrupts = <GIC_SPI 6 IRQ_TYPE_LEVEL_HIGH>;
Chen-Yu Tsai78a9f0d2016-08-25 14:22:00 +0800797 clocks = <&ccu CLK_APB2_I2C0>;
798 resets = <&ccu RST_APB2_I2C0>;
Maxime Ripard96c7cc92014-03-04 17:28:39 +0100799 status = "disabled";
Chen-Yu Tsai495bccf2014-07-21 22:54:27 +0800800 #address-cells = <1>;
801 #size-cells = <0>;
Maxime Ripard96c7cc92014-03-04 17:28:39 +0100802 };
803
Maxime Ripard5841f6c2017-10-05 12:49:36 +0200804 i2c1: i2c@1c2b000 {
Maxime Ripard96c7cc92014-03-04 17:28:39 +0100805 compatible = "allwinner,sun6i-a31-i2c";
806 reg = <0x01c2b000 0x400>;
Maxime Ripard19882b82014-12-16 22:59:58 +0100807 interrupts = <GIC_SPI 7 IRQ_TYPE_LEVEL_HIGH>;
Chen-Yu Tsai78a9f0d2016-08-25 14:22:00 +0800808 clocks = <&ccu CLK_APB2_I2C1>;
809 resets = <&ccu RST_APB2_I2C1>;
Maxime Ripard96c7cc92014-03-04 17:28:39 +0100810 status = "disabled";
Chen-Yu Tsai495bccf2014-07-21 22:54:27 +0800811 #address-cells = <1>;
812 #size-cells = <0>;
Maxime Ripard96c7cc92014-03-04 17:28:39 +0100813 };
814
Maxime Ripard5841f6c2017-10-05 12:49:36 +0200815 i2c2: i2c@1c2b400 {
Maxime Ripard96c7cc92014-03-04 17:28:39 +0100816 compatible = "allwinner,sun6i-a31-i2c";
817 reg = <0x01c2b400 0x400>;
Maxime Ripard19882b82014-12-16 22:59:58 +0100818 interrupts = <GIC_SPI 8 IRQ_TYPE_LEVEL_HIGH>;
Chen-Yu Tsai78a9f0d2016-08-25 14:22:00 +0800819 clocks = <&ccu CLK_APB2_I2C2>;
820 resets = <&ccu RST_APB2_I2C2>;
Maxime Ripard96c7cc92014-03-04 17:28:39 +0100821 status = "disabled";
Chen-Yu Tsai495bccf2014-07-21 22:54:27 +0800822 #address-cells = <1>;
823 #size-cells = <0>;
Maxime Ripard96c7cc92014-03-04 17:28:39 +0100824 };
825
Maxime Ripard5841f6c2017-10-05 12:49:36 +0200826 i2c3: i2c@1c2b800 {
Maxime Ripard96c7cc92014-03-04 17:28:39 +0100827 compatible = "allwinner,sun6i-a31-i2c";
828 reg = <0x01c2b800 0x400>;
Maxime Ripard19882b82014-12-16 22:59:58 +0100829 interrupts = <GIC_SPI 9 IRQ_TYPE_LEVEL_HIGH>;
Chen-Yu Tsai78a9f0d2016-08-25 14:22:00 +0800830 clocks = <&ccu CLK_APB2_I2C3>;
831 resets = <&ccu RST_APB2_I2C3>;
Maxime Ripard96c7cc92014-03-04 17:28:39 +0100832 status = "disabled";
Chen-Yu Tsai495bccf2014-07-21 22:54:27 +0800833 #address-cells = <1>;
834 #size-cells = <0>;
Maxime Ripard96c7cc92014-03-04 17:28:39 +0100835 };
836
Maxime Ripard5841f6c2017-10-05 12:49:36 +0200837 gmac: ethernet@1c30000 {
Chen-Yu Tsai3dca65f2014-07-16 01:15:45 +0800838 compatible = "allwinner,sun7i-a20-gmac";
839 reg = <0x01c30000 0x1054>;
Maxime Ripard19882b82014-12-16 22:59:58 +0100840 interrupts = <GIC_SPI 82 IRQ_TYPE_LEVEL_HIGH>;
Chen-Yu Tsai3dca65f2014-07-16 01:15:45 +0800841 interrupt-names = "macirq";
Chen-Yu Tsai78a9f0d2016-08-25 14:22:00 +0800842 clocks = <&ccu CLK_AHB1_EMAC>, <&gmac_tx_clk>;
Chen-Yu Tsai3dca65f2014-07-16 01:15:45 +0800843 clock-names = "stmmaceth", "allwinner_gmac_tx";
Chen-Yu Tsai78a9f0d2016-08-25 14:22:00 +0800844 resets = <&ccu RST_AHB1_EMAC>;
Chen-Yu Tsai3dca65f2014-07-16 01:15:45 +0800845 reset-names = "stmmaceth";
846 snps,pbl = <2>;
847 snps,fixed-burst;
848 snps,force_sf_dma_mode;
849 status = "disabled";
850 #address-cells = <1>;
851 #size-cells = <0>;
852 };
853
Maxime Ripard5841f6c2017-10-05 12:49:36 +0200854 crypto: crypto-engine@1c15000 {
Antoine Tenart9bea19a2017-06-01 21:39:05 +0200855 compatible = "allwinner,sun6i-a31-crypto",
856 "allwinner,sun4i-a10-crypto";
Chen-Yu Tsai14fee742015-08-11 13:32:57 +0800857 reg = <0x01c15000 0x1000>;
858 interrupts = <GIC_SPI 80 IRQ_TYPE_LEVEL_HIGH>;
Chen-Yu Tsai78a9f0d2016-08-25 14:22:00 +0800859 clocks = <&ccu CLK_AHB1_SS>, <&ccu CLK_SS>;
Chen-Yu Tsai14fee742015-08-11 13:32:57 +0800860 clock-names = "ahb", "mod";
Chen-Yu Tsai78a9f0d2016-08-25 14:22:00 +0800861 resets = <&ccu RST_AHB1_SS>;
Chen-Yu Tsai14fee742015-08-11 13:32:57 +0800862 reset-names = "ahb";
863 };
864
Maxime Ripard5841f6c2017-10-05 12:49:36 +0200865 codec: codec@1c22c00 {
Chen-Yu Tsai94a160c2016-11-07 18:07:01 +0800866 #sound-dai-cells = <0>;
867 compatible = "allwinner,sun6i-a31-codec";
868 reg = <0x01c22c00 0x400>;
869 interrupts = <GIC_SPI 29 IRQ_TYPE_LEVEL_HIGH>;
870 clocks = <&ccu CLK_APB1_CODEC>, <&ccu CLK_CODEC>;
871 clock-names = "apb", "codec";
872 resets = <&ccu RST_APB1_CODEC>;
873 dmas = <&dma 15>, <&dma 15>;
874 dma-names = "rx", "tx";
875 status = "disabled";
876 };
877
Maxime Ripard5841f6c2017-10-05 12:49:36 +0200878 timer@1c60000 {
Maxime Ripardd8cacaa2015-05-03 11:53:07 +0200879 compatible = "allwinner,sun6i-a31-hstimer",
880 "allwinner,sun7i-a20-hstimer";
Maxime Ripard8cffcb02014-04-17 11:06:46 +0200881 reg = <0x01c60000 0x1000>;
Maxime Ripard19882b82014-12-16 22:59:58 +0100882 interrupts = <GIC_SPI 51 IRQ_TYPE_LEVEL_HIGH>,
883 <GIC_SPI 52 IRQ_TYPE_LEVEL_HIGH>,
884 <GIC_SPI 53 IRQ_TYPE_LEVEL_HIGH>,
885 <GIC_SPI 54 IRQ_TYPE_LEVEL_HIGH>;
Chen-Yu Tsai78a9f0d2016-08-25 14:22:00 +0800886 clocks = <&ccu CLK_AHB1_HSTIMER>;
887 resets = <&ccu RST_AHB1_HSTIMER>;
Maxime Ripard8cffcb02014-04-17 11:06:46 +0200888 };
889
Maxime Ripard5841f6c2017-10-05 12:49:36 +0200890 spi0: spi@1c68000 {
Maxime Ripard0d6efe32014-02-05 14:05:06 +0100891 compatible = "allwinner,sun6i-a31-spi";
892 reg = <0x01c68000 0x1000>;
Maxime Ripard19882b82014-12-16 22:59:58 +0100893 interrupts = <GIC_SPI 65 IRQ_TYPE_LEVEL_HIGH>;
Chen-Yu Tsai78a9f0d2016-08-25 14:22:00 +0800894 clocks = <&ccu CLK_AHB1_SPI0>, <&ccu CLK_SPI0>;
Maxime Ripard0d6efe32014-02-05 14:05:06 +0100895 clock-names = "ahb", "mod";
Maxime Ripardd2d878c2014-01-30 15:41:23 +0100896 dmas = <&dma 23>, <&dma 23>;
897 dma-names = "rx", "tx";
Chen-Yu Tsai78a9f0d2016-08-25 14:22:00 +0800898 resets = <&ccu RST_AHB1_SPI0>;
Maxime Ripard0d6efe32014-02-05 14:05:06 +0100899 status = "disabled";
900 };
901
Maxime Ripard5841f6c2017-10-05 12:49:36 +0200902 spi1: spi@1c69000 {
Maxime Ripard0d6efe32014-02-05 14:05:06 +0100903 compatible = "allwinner,sun6i-a31-spi";
904 reg = <0x01c69000 0x1000>;
Maxime Ripard19882b82014-12-16 22:59:58 +0100905 interrupts = <GIC_SPI 66 IRQ_TYPE_LEVEL_HIGH>;
Chen-Yu Tsai78a9f0d2016-08-25 14:22:00 +0800906 clocks = <&ccu CLK_AHB1_SPI1>, <&ccu CLK_SPI1>;
Maxime Ripard0d6efe32014-02-05 14:05:06 +0100907 clock-names = "ahb", "mod";
Maxime Ripardd2d878c2014-01-30 15:41:23 +0100908 dmas = <&dma 24>, <&dma 24>;
909 dma-names = "rx", "tx";
Chen-Yu Tsai78a9f0d2016-08-25 14:22:00 +0800910 resets = <&ccu RST_AHB1_SPI1>;
Maxime Ripard0d6efe32014-02-05 14:05:06 +0100911 status = "disabled";
912 };
913
Maxime Ripard5841f6c2017-10-05 12:49:36 +0200914 spi2: spi@1c6a000 {
Maxime Ripard0d6efe32014-02-05 14:05:06 +0100915 compatible = "allwinner,sun6i-a31-spi";
916 reg = <0x01c6a000 0x1000>;
Maxime Ripard19882b82014-12-16 22:59:58 +0100917 interrupts = <GIC_SPI 67 IRQ_TYPE_LEVEL_HIGH>;
Chen-Yu Tsai78a9f0d2016-08-25 14:22:00 +0800918 clocks = <&ccu CLK_AHB1_SPI2>, <&ccu CLK_SPI2>;
Maxime Ripard0d6efe32014-02-05 14:05:06 +0100919 clock-names = "ahb", "mod";
Maxime Ripardd2d878c2014-01-30 15:41:23 +0100920 dmas = <&dma 25>, <&dma 25>;
921 dma-names = "rx", "tx";
Chen-Yu Tsai78a9f0d2016-08-25 14:22:00 +0800922 resets = <&ccu RST_AHB1_SPI2>;
Maxime Ripard0d6efe32014-02-05 14:05:06 +0100923 status = "disabled";
924 };
925
Maxime Ripard5841f6c2017-10-05 12:49:36 +0200926 spi3: spi@1c6b000 {
Maxime Ripard0d6efe32014-02-05 14:05:06 +0100927 compatible = "allwinner,sun6i-a31-spi";
928 reg = <0x01c6b000 0x1000>;
Maxime Ripard19882b82014-12-16 22:59:58 +0100929 interrupts = <GIC_SPI 68 IRQ_TYPE_LEVEL_HIGH>;
Chen-Yu Tsai78a9f0d2016-08-25 14:22:00 +0800930 clocks = <&ccu CLK_AHB1_SPI3>, <&ccu CLK_SPI3>;
Maxime Ripard0d6efe32014-02-05 14:05:06 +0100931 clock-names = "ahb", "mod";
Maxime Ripardd2d878c2014-01-30 15:41:23 +0100932 dmas = <&dma 26>, <&dma 26>;
933 dma-names = "rx", "tx";
Chen-Yu Tsai78a9f0d2016-08-25 14:22:00 +0800934 resets = <&ccu RST_AHB1_SPI3>;
Maxime Ripard0d6efe32014-02-05 14:05:06 +0100935 status = "disabled";
936 };
937
Maxime Ripard5841f6c2017-10-05 12:49:36 +0200938 gic: interrupt-controller@1c81000 {
Maxime Ripard8aed3b32013-03-10 16:09:06 +0100939 compatible = "arm,cortex-a7-gic", "arm,cortex-a15-gic";
940 reg = <0x01c81000 0x1000>,
Marc Zyngier387720c2017-01-18 09:27:28 +0000941 <0x01c82000 0x2000>,
Maxime Ripard8aed3b32013-03-10 16:09:06 +0100942 <0x01c84000 0x2000>,
943 <0x01c86000 0x2000>;
944 interrupt-controller;
945 #interrupt-cells = <3>;
Maxime Ripard19882b82014-12-16 22:59:58 +0100946 interrupts = <GIC_PPI 9 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>;
Maxime Ripard8aed3b32013-03-10 16:09:06 +0100947 };
Maxime Ripard81ee4292013-11-03 10:30:12 +0100948
Maxime Ripard5841f6c2017-10-05 12:49:36 +0200949 fe0: display-frontend@1e00000 {
Chen-Yu Tsai6d0e5b72016-10-20 11:43:42 +0800950 compatible = "allwinner,sun6i-a31-display-frontend";
951 reg = <0x01e00000 0x20000>;
952 interrupts = <GIC_SPI 93 IRQ_TYPE_LEVEL_HIGH>;
953 clocks = <&ccu CLK_AHB1_FE0>, <&ccu CLK_FE0>,
954 <&ccu CLK_DRAM_FE0>;
955 clock-names = "ahb", "mod",
956 "ram";
957 resets = <&ccu RST_AHB1_FE0>;
958
959 ports {
960 #address-cells = <1>;
961 #size-cells = <0>;
962
963 fe0_out: port@1 {
964 #address-cells = <1>;
965 #size-cells = <0>;
966 reg = <1>;
967
968 fe0_out_be0: endpoint@0 {
969 reg = <0>;
970 remote-endpoint = <&be0_in_fe0>;
971 };
Chen-Yu Tsai9a268822017-04-21 16:38:56 +0800972
973 fe0_out_be1: endpoint@1 {
974 reg = <1>;
975 remote-endpoint = <&be1_in_fe0>;
976 };
977 };
978 };
979 };
980
Maxime Ripard5841f6c2017-10-05 12:49:36 +0200981 fe1: display-frontend@1e20000 {
Chen-Yu Tsai9a268822017-04-21 16:38:56 +0800982 compatible = "allwinner,sun6i-a31-display-frontend";
983 reg = <0x01e20000 0x20000>;
984 interrupts = <GIC_SPI 94 IRQ_TYPE_LEVEL_HIGH>;
985 clocks = <&ccu CLK_AHB1_FE1>, <&ccu CLK_FE1>,
986 <&ccu CLK_DRAM_FE1>;
987 clock-names = "ahb", "mod",
988 "ram";
989 resets = <&ccu RST_AHB1_FE1>;
990
991 ports {
992 #address-cells = <1>;
993 #size-cells = <0>;
994
995 fe1_out: port@1 {
996 #address-cells = <1>;
997 #size-cells = <0>;
998 reg = <1>;
999
1000 fe1_out_be0: endpoint@0 {
1001 reg = <0>;
1002 remote-endpoint = <&be0_in_fe1>;
1003 };
1004
1005 fe1_out_be1: endpoint@1 {
1006 reg = <1>;
1007 remote-endpoint = <&be1_in_fe1>;
1008 };
1009 };
1010 };
1011 };
1012
Maxime Ripard5841f6c2017-10-05 12:49:36 +02001013 be1: display-backend@1e40000 {
Chen-Yu Tsai9a268822017-04-21 16:38:56 +08001014 compatible = "allwinner,sun6i-a31-display-backend";
1015 reg = <0x01e40000 0x10000>;
1016 interrupts = <GIC_SPI 96 IRQ_TYPE_LEVEL_HIGH>;
1017 clocks = <&ccu CLK_AHB1_BE1>, <&ccu CLK_BE1>,
1018 <&ccu CLK_DRAM_BE1>;
1019 clock-names = "ahb", "mod",
1020 "ram";
1021 resets = <&ccu RST_AHB1_BE1>;
1022
1023 assigned-clocks = <&ccu CLK_BE1>;
1024 assigned-clock-rates = <300000000>;
1025
1026 ports {
1027 #address-cells = <1>;
1028 #size-cells = <0>;
1029
1030 be1_in: port@0 {
1031 #address-cells = <1>;
1032 #size-cells = <0>;
1033 reg = <0>;
1034
1035 be1_in_fe0: endpoint@0 {
1036 reg = <0>;
1037 remote-endpoint = <&fe0_out_be1>;
1038 };
1039
1040 be1_in_fe1: endpoint@1 {
1041 reg = <1>;
1042 remote-endpoint = <&fe1_out_be1>;
1043 };
1044 };
1045
1046 be1_out: port@1 {
1047 #address-cells = <1>;
1048 #size-cells = <0>;
1049 reg = <1>;
1050
Chen-Yu Tsaia231d272017-09-08 15:50:09 +08001051 be1_out_drc1: endpoint@1 {
1052 reg = <1>;
Chen-Yu Tsai9a268822017-04-21 16:38:56 +08001053 remote-endpoint = <&drc1_in_be1>;
1054 };
1055 };
1056 };
1057 };
1058
Maxime Ripard5841f6c2017-10-05 12:49:36 +02001059 drc1: drc@1e50000 {
Chen-Yu Tsai9a268822017-04-21 16:38:56 +08001060 compatible = "allwinner,sun6i-a31-drc";
1061 reg = <0x01e50000 0x10000>;
1062 interrupts = <GIC_SPI 91 IRQ_TYPE_LEVEL_HIGH>;
1063 clocks = <&ccu CLK_AHB1_DRC1>, <&ccu CLK_IEP_DRC1>,
1064 <&ccu CLK_DRAM_DRC1>;
1065 clock-names = "ahb", "mod",
1066 "ram";
1067 resets = <&ccu RST_AHB1_DRC1>;
1068
1069 assigned-clocks = <&ccu CLK_IEP_DRC1>;
1070 assigned-clock-rates = <300000000>;
1071
1072 ports {
1073 #address-cells = <1>;
1074 #size-cells = <0>;
1075
1076 drc1_in: port@0 {
1077 #address-cells = <1>;
1078 #size-cells = <0>;
1079 reg = <0>;
1080
Chen-Yu Tsaia231d272017-09-08 15:50:09 +08001081 drc1_in_be1: endpoint@1 {
1082 reg = <1>;
Chen-Yu Tsai9a268822017-04-21 16:38:56 +08001083 remote-endpoint = <&be1_out_drc1>;
1084 };
1085 };
1086
1087 drc1_out: port@1 {
1088 #address-cells = <1>;
1089 #size-cells = <0>;
1090 reg = <1>;
1091
Chen-Yu Tsai25132732017-09-08 15:50:16 +08001092 drc1_out_tcon0: endpoint@0 {
1093 reg = <0>;
1094 remote-endpoint = <&tcon0_in_drc1>;
1095 };
1096
Chen-Yu Tsaia231d272017-09-08 15:50:09 +08001097 drc1_out_tcon1: endpoint@1 {
1098 reg = <1>;
Chen-Yu Tsai9a268822017-04-21 16:38:56 +08001099 remote-endpoint = <&tcon1_in_drc1>;
1100 };
Chen-Yu Tsai6d0e5b72016-10-20 11:43:42 +08001101 };
1102 };
1103 };
1104
Maxime Ripard5841f6c2017-10-05 12:49:36 +02001105 be0: display-backend@1e60000 {
Chen-Yu Tsai6d0e5b72016-10-20 11:43:42 +08001106 compatible = "allwinner,sun6i-a31-display-backend";
1107 reg = <0x01e60000 0x10000>;
1108 interrupts = <GIC_SPI 95 IRQ_TYPE_LEVEL_HIGH>;
1109 clocks = <&ccu CLK_AHB1_BE0>, <&ccu CLK_BE0>,
1110 <&ccu CLK_DRAM_BE0>;
1111 clock-names = "ahb", "mod",
1112 "ram";
1113 resets = <&ccu RST_AHB1_BE0>;
1114
1115 assigned-clocks = <&ccu CLK_BE0>;
1116 assigned-clock-rates = <300000000>;
1117
1118 ports {
1119 #address-cells = <1>;
1120 #size-cells = <0>;
1121
1122 be0_in: port@0 {
1123 #address-cells = <1>;
1124 #size-cells = <0>;
1125 reg = <0>;
1126
1127 be0_in_fe0: endpoint@0 {
1128 reg = <0>;
1129 remote-endpoint = <&fe0_out_be0>;
1130 };
Chen-Yu Tsai9a268822017-04-21 16:38:56 +08001131
1132 be0_in_fe1: endpoint@1 {
1133 reg = <1>;
1134 remote-endpoint = <&fe1_out_be0>;
1135 };
Chen-Yu Tsai6d0e5b72016-10-20 11:43:42 +08001136 };
1137
1138 be0_out: port@1 {
1139 #address-cells = <1>;
1140 #size-cells = <0>;
1141 reg = <1>;
1142
1143 be0_out_drc0: endpoint@0 {
1144 reg = <0>;
1145 remote-endpoint = <&drc0_in_be0>;
1146 };
1147 };
1148 };
1149 };
1150
Maxime Ripard5841f6c2017-10-05 12:49:36 +02001151 drc0: drc@1e70000 {
Chen-Yu Tsai6d0e5b72016-10-20 11:43:42 +08001152 compatible = "allwinner,sun6i-a31-drc";
1153 reg = <0x01e70000 0x10000>;
1154 interrupts = <GIC_SPI 91 IRQ_TYPE_LEVEL_HIGH>;
1155 clocks = <&ccu CLK_AHB1_DRC0>, <&ccu CLK_IEP_DRC0>,
1156 <&ccu CLK_DRAM_DRC0>;
1157 clock-names = "ahb", "mod",
1158 "ram";
1159 resets = <&ccu RST_AHB1_DRC0>;
1160
1161 assigned-clocks = <&ccu CLK_IEP_DRC0>;
1162 assigned-clock-rates = <300000000>;
1163
1164 ports {
1165 #address-cells = <1>;
1166 #size-cells = <0>;
1167
1168 drc0_in: port@0 {
1169 #address-cells = <1>;
1170 #size-cells = <0>;
1171 reg = <0>;
1172
1173 drc0_in_be0: endpoint@0 {
1174 reg = <0>;
1175 remote-endpoint = <&be0_out_drc0>;
1176 };
1177 };
1178
1179 drc0_out: port@1 {
1180 #address-cells = <1>;
1181 #size-cells = <0>;
1182 reg = <1>;
1183
1184 drc0_out_tcon0: endpoint@0 {
1185 reg = <0>;
1186 remote-endpoint = <&tcon0_in_drc0>;
1187 };
Chen-Yu Tsai25132732017-09-08 15:50:16 +08001188
1189 drc0_out_tcon1: endpoint@1 {
1190 reg = <1>;
1191 remote-endpoint = <&tcon1_in_drc0>;
1192 };
Chen-Yu Tsai6d0e5b72016-10-20 11:43:42 +08001193 };
1194 };
1195 };
1196
Maxime Ripard5841f6c2017-10-05 12:49:36 +02001197 rtc: rtc@1f00000 {
Chen-Yu Tsai5e700432014-07-30 20:56:06 +08001198 compatible = "allwinner,sun6i-a31-rtc";
1199 reg = <0x01f00000 0x54>;
Maxime Ripard19882b82014-12-16 22:59:58 +01001200 interrupts = <GIC_SPI 40 IRQ_TYPE_LEVEL_HIGH>,
1201 <GIC_SPI 41 IRQ_TYPE_LEVEL_HIGH>;
Chen-Yu Tsai5e700432014-07-30 20:56:06 +08001202 };
1203
Chen-Yu Tsai626c0a02017-06-06 13:59:29 +08001204 nmi_intc: interrupt-controller@1f00c00 {
1205 compatible = "allwinner,sun6i-a31-r-intc";
Maxime Ripard28240d22014-04-17 10:29:35 +02001206 interrupt-controller;
1207 #interrupt-cells = <2>;
Chen-Yu Tsai626c0a02017-06-06 13:59:29 +08001208 reg = <0x01f00c00 0x400>;
Maxime Ripard19882b82014-12-16 22:59:58 +01001209 interrupts = <GIC_SPI 32 IRQ_TYPE_LEVEL_HIGH>;
Maxime Ripard28240d22014-04-17 10:29:35 +02001210 };
1211
Maxime Ripard5841f6c2017-10-05 12:49:36 +02001212 prcm@1f01400 {
Hans de Goedea42ea602014-04-13 13:41:02 +02001213 compatible = "allwinner,sun6i-a31-prcm";
1214 reg = <0x01f01400 0x200>;
Boris BREZILLONcc08f5e2014-05-14 14:38:21 +02001215
1216 ar100: ar100_clk {
1217 compatible = "allwinner,sun6i-a31-ar100-clk";
1218 #clock-cells = <0>;
Chen-Yu Tsai78a9f0d2016-08-25 14:22:00 +08001219 clocks = <&osc32k>, <&osc24M>,
1220 <&ccu CLK_PLL_PERIPH>,
1221 <&ccu CLK_PLL_PERIPH>;
Boris BREZILLONcc08f5e2014-05-14 14:38:21 +02001222 clock-output-names = "ar100";
1223 };
1224
1225 ahb0: ahb0_clk {
1226 compatible = "fixed-factor-clock";
1227 #clock-cells = <0>;
1228 clock-div = <1>;
1229 clock-mult = <1>;
1230 clocks = <&ar100>;
1231 clock-output-names = "ahb0";
1232 };
1233
1234 apb0: apb0_clk {
1235 compatible = "allwinner,sun6i-a31-apb0-clk";
1236 #clock-cells = <0>;
1237 clocks = <&ahb0>;
1238 clock-output-names = "apb0";
1239 };
1240
1241 apb0_gates: apb0_gates_clk {
1242 compatible = "allwinner,sun6i-a31-apb0-gates-clk";
1243 #clock-cells = <1>;
1244 clocks = <&apb0>;
1245 clock-output-names = "apb0_pio", "apb0_ir",
1246 "apb0_timer", "apb0_p2wi",
1247 "apb0_uart", "apb0_1wire",
1248 "apb0_i2c";
1249 };
1250
Hans de Goede9b5c6e02014-12-17 18:18:19 +01001251 ir_clk: ir_clk {
1252 #clock-cells = <0>;
1253 compatible = "allwinner,sun4i-a10-mod0-clk";
1254 clocks = <&osc32k>, <&osc24M>;
1255 clock-output-names = "ir";
1256 };
1257
Boris BREZILLONcc08f5e2014-05-14 14:38:21 +02001258 apb0_rst: apb0_rst {
1259 compatible = "allwinner,sun6i-a31-clock-reset";
1260 #reset-cells = <1>;
1261 };
Hans de Goedea42ea602014-04-13 13:41:02 +02001262 };
1263
Maxime Ripard5841f6c2017-10-05 12:49:36 +02001264 cpucfg@1f01c00 {
Maxime Ripard81ee4292013-11-03 10:30:12 +01001265 compatible = "allwinner,sun6i-a31-cpuconfig";
1266 reg = <0x01f01c00 0x300>;
1267 };
Boris BREZILLON209394a2014-05-13 16:03:03 +02001268
Maxime Ripard5841f6c2017-10-05 12:49:36 +02001269 ir: ir@1f02000 {
Hans de Goede4ac367b2014-12-29 12:09:24 +01001270 compatible = "allwinner,sun5i-a13-ir";
1271 clocks = <&apb0_gates 1>, <&ir_clk>;
1272 clock-names = "apb", "ir";
1273 resets = <&apb0_rst 1>;
Maxime Ripard19882b82014-12-16 22:59:58 +01001274 interrupts = <GIC_SPI 37 IRQ_TYPE_LEVEL_HIGH>;
Hans de Goede4ac367b2014-12-29 12:09:24 +01001275 reg = <0x01f02000 0x40>;
1276 status = "disabled";
1277 };
1278
Maxime Ripard5841f6c2017-10-05 12:49:36 +02001279 r_pio: pinctrl@1f02c00 {
Boris BREZILLON209394a2014-05-13 16:03:03 +02001280 compatible = "allwinner,sun6i-a31-r-pinctrl";
1281 reg = <0x01f02c00 0x400>;
Maxime Ripard19882b82014-12-16 22:59:58 +01001282 interrupts = <GIC_SPI 45 IRQ_TYPE_LEVEL_HIGH>,
1283 <GIC_SPI 46 IRQ_TYPE_LEVEL_HIGH>;
Maxime Ripardbe7bc6b2016-10-19 11:15:27 +02001284 clocks = <&apb0_gates 0>, <&osc24M>, <&osc32k>;
1285 clock-names = "apb", "hosc", "losc";
Boris BREZILLON209394a2014-05-13 16:03:03 +02001286 resets = <&apb0_rst 0>;
1287 gpio-controller;
1288 interrupt-controller;
Hans de Goede6d55d332015-10-15 16:28:45 +02001289 #interrupt-cells = <3>;
Boris BREZILLON209394a2014-05-13 16:03:03 +02001290 #size-cells = <0>;
1291 #gpio-cells = <3>;
Hans de Goededbbcd882014-11-23 14:38:14 +01001292
1293 ir_pins_a: ir@0 {
Maxime Ripard1edcd362016-09-23 14:28:10 +03001294 pins = "PL4";
1295 function = "s_ir";
Hans de Goededbbcd882014-11-23 14:38:14 +01001296 };
Boris BREZILLONfcd60132015-03-10 19:59:12 +08001297
1298 p2wi_pins: p2wi {
Maxime Ripard1edcd362016-09-23 14:28:10 +03001299 pins = "PL0", "PL1";
1300 function = "s_p2wi";
Boris BREZILLONfcd60132015-03-10 19:59:12 +08001301 };
1302 };
1303
Maxime Ripard5841f6c2017-10-05 12:49:36 +02001304 p2wi: i2c@1f03400 {
Boris BREZILLONfcd60132015-03-10 19:59:12 +08001305 compatible = "allwinner,sun6i-a31-p2wi";
1306 reg = <0x01f03400 0x400>;
1307 interrupts = <GIC_SPI 39 IRQ_TYPE_LEVEL_HIGH>;
1308 clocks = <&apb0_gates 3>;
1309 clock-frequency = <100000>;
1310 resets = <&apb0_rst 3>;
1311 pinctrl-names = "default";
1312 pinctrl-0 = <&p2wi_pins>;
1313 status = "disabled";
1314 #address-cells = <1>;
1315 #size-cells = <0>;
Boris BREZILLON209394a2014-05-13 16:03:03 +02001316 };
Maxime Ripard8aed3b32013-03-10 16:09:06 +01001317 };
1318};