blob: 72d3fe44ecaf0d53f16b28b6433e9853d1a13c2f [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>;
Chen-Yu Tsai026b89c2017-10-10 11:20:07 +0800292
293 tcon0_out_hdmi: endpoint@1 {
294 reg = <1>;
295 remote-endpoint = <&hdmi_in_tcon0>;
296 allwinner,tcon-channel = <1>;
297 };
Chen-Yu Tsai6d0e5b72016-10-20 11:43:42 +0800298 };
299 };
300 };
301
Maxime Ripard5841f6c2017-10-05 12:49:36 +0200302 tcon1: lcd-controller@1c0d000 {
Chen-Yu Tsai9a268822017-04-21 16:38:56 +0800303 compatible = "allwinner,sun6i-a31-tcon";
304 reg = <0x01c0d000 0x1000>;
305 interrupts = <GIC_SPI 87 IRQ_TYPE_LEVEL_HIGH>;
306 resets = <&ccu RST_AHB1_LCD1>;
307 reset-names = "lcd";
308 clocks = <&ccu CLK_AHB1_LCD1>,
309 <&ccu CLK_LCD1_CH0>,
310 <&ccu CLK_LCD1_CH1>;
311 clock-names = "ahb",
312 "tcon-ch0",
313 "tcon-ch1";
314 clock-output-names = "tcon1-pixel-clock";
315
316 ports {
317 #address-cells = <1>;
318 #size-cells = <0>;
319
320 tcon1_in: port@0 {
321 #address-cells = <1>;
322 #size-cells = <0>;
323 reg = <0>;
324
Chen-Yu Tsai25132732017-09-08 15:50:16 +0800325 tcon1_in_drc0: endpoint@0 {
326 reg = <0>;
327 remote-endpoint = <&drc0_out_tcon1>;
328 };
329
Chen-Yu Tsaia231d272017-09-08 15:50:09 +0800330 tcon1_in_drc1: endpoint@1 {
331 reg = <1>;
Chen-Yu Tsai9a268822017-04-21 16:38:56 +0800332 remote-endpoint = <&drc1_out_tcon1>;
333 };
334 };
335
336 tcon1_out: port@1 {
337 #address-cells = <1>;
338 #size-cells = <0>;
339 reg = <1>;
Chen-Yu Tsai026b89c2017-10-10 11:20:07 +0800340
341 tcon1_out_hdmi: endpoint@1 {
342 reg = <1>;
343 remote-endpoint = <&hdmi_in_tcon1>;
344 allwinner,tcon-channel = <1>;
345 };
Chen-Yu Tsai9a268822017-04-21 16:38:56 +0800346 };
347 };
348 };
349
Maxime Ripard5841f6c2017-10-05 12:49:36 +0200350 mmc0: mmc@1c0f000 {
Hans de Goede57af7112016-07-30 16:25:48 +0200351 compatible = "allwinner,sun7i-a20-mmc";
Hans de Goede5b753f02014-05-02 17:57:24 +0200352 reg = <0x01c0f000 0x1000>;
Chen-Yu Tsai78a9f0d2016-08-25 14:22:00 +0800353 clocks = <&ccu CLK_AHB1_MMC0>,
354 <&ccu CLK_MMC0>,
355 <&ccu CLK_MMC0_OUTPUT>,
356 <&ccu CLK_MMC0_SAMPLE>;
Maxime Ripardd8c3a392014-07-11 19:39:06 +0200357 clock-names = "ahb",
358 "mmc",
359 "output",
360 "sample";
Chen-Yu Tsai78a9f0d2016-08-25 14:22:00 +0800361 resets = <&ccu RST_AHB1_MMC0>;
Hans de Goede5b753f02014-05-02 17:57:24 +0200362 reset-names = "ahb";
Maxime Ripard19882b82014-12-16 22:59:58 +0100363 interrupts = <GIC_SPI 60 IRQ_TYPE_LEVEL_HIGH>;
Hans de Goede5b753f02014-05-02 17:57:24 +0200364 status = "disabled";
Hans de Goede4c1bb9c2015-03-10 16:27:09 +0100365 #address-cells = <1>;
366 #size-cells = <0>;
Hans de Goede5b753f02014-05-02 17:57:24 +0200367 };
368
Maxime Ripard5841f6c2017-10-05 12:49:36 +0200369 mmc1: mmc@1c10000 {
Hans de Goede57af7112016-07-30 16:25:48 +0200370 compatible = "allwinner,sun7i-a20-mmc";
Hans de Goede5b753f02014-05-02 17:57:24 +0200371 reg = <0x01c10000 0x1000>;
Chen-Yu Tsai78a9f0d2016-08-25 14:22:00 +0800372 clocks = <&ccu CLK_AHB1_MMC1>,
373 <&ccu CLK_MMC1>,
374 <&ccu CLK_MMC1_OUTPUT>,
375 <&ccu CLK_MMC1_SAMPLE>;
Maxime Ripardd8c3a392014-07-11 19:39:06 +0200376 clock-names = "ahb",
377 "mmc",
378 "output",
379 "sample";
Chen-Yu Tsai78a9f0d2016-08-25 14:22:00 +0800380 resets = <&ccu RST_AHB1_MMC1>;
Hans de Goede5b753f02014-05-02 17:57:24 +0200381 reset-names = "ahb";
Maxime Ripard19882b82014-12-16 22:59:58 +0100382 interrupts = <GIC_SPI 61 IRQ_TYPE_LEVEL_HIGH>;
Hans de Goede5b753f02014-05-02 17:57:24 +0200383 status = "disabled";
Hans de Goede4c1bb9c2015-03-10 16:27:09 +0100384 #address-cells = <1>;
385 #size-cells = <0>;
Hans de Goede5b753f02014-05-02 17:57:24 +0200386 };
387
Maxime Ripard5841f6c2017-10-05 12:49:36 +0200388 mmc2: mmc@1c11000 {
Hans de Goede57af7112016-07-30 16:25:48 +0200389 compatible = "allwinner,sun7i-a20-mmc";
Hans de Goede5b753f02014-05-02 17:57:24 +0200390 reg = <0x01c11000 0x1000>;
Chen-Yu Tsai78a9f0d2016-08-25 14:22:00 +0800391 clocks = <&ccu CLK_AHB1_MMC2>,
392 <&ccu CLK_MMC2>,
393 <&ccu CLK_MMC2_OUTPUT>,
394 <&ccu CLK_MMC2_SAMPLE>;
Maxime Ripardd8c3a392014-07-11 19:39:06 +0200395 clock-names = "ahb",
396 "mmc",
397 "output",
398 "sample";
Chen-Yu Tsai78a9f0d2016-08-25 14:22:00 +0800399 resets = <&ccu RST_AHB1_MMC2>;
Hans de Goede5b753f02014-05-02 17:57:24 +0200400 reset-names = "ahb";
Maxime Ripard19882b82014-12-16 22:59:58 +0100401 interrupts = <GIC_SPI 62 IRQ_TYPE_LEVEL_HIGH>;
Hans de Goede5b753f02014-05-02 17:57:24 +0200402 status = "disabled";
Hans de Goede4c1bb9c2015-03-10 16:27:09 +0100403 #address-cells = <1>;
404 #size-cells = <0>;
Hans de Goede5b753f02014-05-02 17:57:24 +0200405 };
406
Maxime Ripard5841f6c2017-10-05 12:49:36 +0200407 mmc3: mmc@1c12000 {
Hans de Goede57af7112016-07-30 16:25:48 +0200408 compatible = "allwinner,sun7i-a20-mmc";
Hans de Goede5b753f02014-05-02 17:57:24 +0200409 reg = <0x01c12000 0x1000>;
Chen-Yu Tsai78a9f0d2016-08-25 14:22:00 +0800410 clocks = <&ccu CLK_AHB1_MMC3>,
411 <&ccu CLK_MMC3>,
412 <&ccu CLK_MMC3_OUTPUT>,
413 <&ccu CLK_MMC3_SAMPLE>;
Maxime Ripardd8c3a392014-07-11 19:39:06 +0200414 clock-names = "ahb",
415 "mmc",
416 "output",
417 "sample";
Chen-Yu Tsai78a9f0d2016-08-25 14:22:00 +0800418 resets = <&ccu RST_AHB1_MMC3>;
Hans de Goede5b753f02014-05-02 17:57:24 +0200419 reset-names = "ahb";
Maxime Ripard19882b82014-12-16 22:59:58 +0100420 interrupts = <GIC_SPI 63 IRQ_TYPE_LEVEL_HIGH>;
Hans de Goede5b753f02014-05-02 17:57:24 +0200421 status = "disabled";
Hans de Goede4c1bb9c2015-03-10 16:27:09 +0100422 #address-cells = <1>;
423 #size-cells = <0>;
Hans de Goede5b753f02014-05-02 17:57:24 +0200424 };
425
Chen-Yu Tsai026b89c2017-10-10 11:20:07 +0800426 hdmi: hdmi@1c16000 {
427 compatible = "allwinner,sun6i-a31-hdmi";
428 reg = <0x01c16000 0x1000>;
429 interrupts = <GIC_SPI 88 IRQ_TYPE_LEVEL_HIGH>;
430 clocks = <&ccu CLK_AHB1_HDMI>, <&ccu CLK_HDMI>,
431 <&ccu CLK_HDMI_DDC>,
Chen-Yu Tsaie17e2372017-12-04 16:44:01 +0800432 <&ccu CLK_PLL_VIDEO0_2X>,
433 <&ccu CLK_PLL_VIDEO1_2X>;
Chen-Yu Tsai026b89c2017-10-10 11:20:07 +0800434 clock-names = "ahb", "mod", "ddc", "pll-0", "pll-1";
435 resets = <&ccu RST_AHB1_HDMI>;
436 reset-names = "ahb";
437 dma-names = "ddc-tx", "ddc-rx", "audio-tx";
438 dmas = <&dma 13>, <&dma 13>, <&dma 14>;
439 status = "disabled";
440
441 ports {
442 #address-cells = <1>;
443 #size-cells = <0>;
444
445 hdmi_in: port@0 {
446 #address-cells = <1>;
447 #size-cells = <0>;
448 reg = <0>;
449
450 hdmi_in_tcon0: endpoint@0 {
451 reg = <0>;
452 remote-endpoint = <&tcon0_out_hdmi>;
453 };
454
455 hdmi_in_tcon1: endpoint@1 {
456 reg = <1>;
457 remote-endpoint = <&tcon1_out_hdmi>;
458 };
459 };
460
461 hdmi_out: port@1 {
462 #address-cells = <1>;
463 #size-cells = <0>;
464 reg = <1>;
465 };
466 };
467 };
468
Maxime Ripard5841f6c2017-10-05 12:49:36 +0200469 usb_otg: usb@1c19000 {
Hans de Goeded208eaf2015-06-01 13:29:49 +0200470 compatible = "allwinner,sun6i-a31-musb";
471 reg = <0x01c19000 0x0400>;
Chen-Yu Tsai78a9f0d2016-08-25 14:22:00 +0800472 clocks = <&ccu CLK_AHB1_OTG>;
473 resets = <&ccu RST_AHB1_OTG>;
Hans de Goeded208eaf2015-06-01 13:29:49 +0200474 interrupts = <GIC_SPI 71 IRQ_TYPE_LEVEL_HIGH>;
475 interrupt-names = "mc";
476 phys = <&usbphy 0>;
477 phy-names = "usb";
478 extcon = <&usbphy 0>;
479 status = "disabled";
480 };
481
Maxime Ripard5841f6c2017-10-05 12:49:36 +0200482 usbphy: phy@1c19400 {
Maxime Ripardef964082014-05-13 17:44:21 +0200483 compatible = "allwinner,sun6i-a31-usb-phy";
484 reg = <0x01c19400 0x10>,
485 <0x01c1a800 0x4>,
486 <0x01c1b800 0x4>;
487 reg-names = "phy_ctrl",
488 "pmu1",
489 "pmu2";
Chen-Yu Tsai78a9f0d2016-08-25 14:22:00 +0800490 clocks = <&ccu CLK_USB_PHY0>,
491 <&ccu CLK_USB_PHY1>,
492 <&ccu CLK_USB_PHY2>;
Maxime Ripardef964082014-05-13 17:44:21 +0200493 clock-names = "usb0_phy",
494 "usb1_phy",
495 "usb2_phy";
Chen-Yu Tsai78a9f0d2016-08-25 14:22:00 +0800496 resets = <&ccu RST_USB_PHY0>,
497 <&ccu RST_USB_PHY1>,
498 <&ccu RST_USB_PHY2>;
Maxime Ripardef964082014-05-13 17:44:21 +0200499 reset-names = "usb0_reset",
500 "usb1_reset",
501 "usb2_reset";
502 status = "disabled";
503 #phy-cells = <1>;
504 };
505
Maxime Ripard5841f6c2017-10-05 12:49:36 +0200506 ehci0: usb@1c1a000 {
Maxime Ripardef964082014-05-13 17:44:21 +0200507 compatible = "allwinner,sun6i-a31-ehci", "generic-ehci";
508 reg = <0x01c1a000 0x100>;
Maxime Ripard19882b82014-12-16 22:59:58 +0100509 interrupts = <GIC_SPI 72 IRQ_TYPE_LEVEL_HIGH>;
Chen-Yu Tsai78a9f0d2016-08-25 14:22:00 +0800510 clocks = <&ccu CLK_AHB1_EHCI0>;
511 resets = <&ccu RST_AHB1_EHCI0>;
Maxime Ripardef964082014-05-13 17:44:21 +0200512 phys = <&usbphy 1>;
513 phy-names = "usb";
514 status = "disabled";
515 };
516
Maxime Ripard5841f6c2017-10-05 12:49:36 +0200517 ohci0: usb@1c1a400 {
Maxime Ripardef964082014-05-13 17:44:21 +0200518 compatible = "allwinner,sun6i-a31-ohci", "generic-ohci";
519 reg = <0x01c1a400 0x100>;
Maxime Ripard19882b82014-12-16 22:59:58 +0100520 interrupts = <GIC_SPI 73 IRQ_TYPE_LEVEL_HIGH>;
Chen-Yu Tsai78a9f0d2016-08-25 14:22:00 +0800521 clocks = <&ccu CLK_AHB1_OHCI0>, <&ccu CLK_USB_OHCI0>;
522 resets = <&ccu RST_AHB1_OHCI0>;
Maxime Ripardef964082014-05-13 17:44:21 +0200523 phys = <&usbphy 1>;
524 phy-names = "usb";
525 status = "disabled";
526 };
527
Maxime Ripard5841f6c2017-10-05 12:49:36 +0200528 ehci1: usb@1c1b000 {
Maxime Ripardef964082014-05-13 17:44:21 +0200529 compatible = "allwinner,sun6i-a31-ehci", "generic-ehci";
530 reg = <0x01c1b000 0x100>;
Maxime Ripard19882b82014-12-16 22:59:58 +0100531 interrupts = <GIC_SPI 74 IRQ_TYPE_LEVEL_HIGH>;
Chen-Yu Tsai78a9f0d2016-08-25 14:22:00 +0800532 clocks = <&ccu CLK_AHB1_EHCI1>;
533 resets = <&ccu RST_AHB1_EHCI1>;
Maxime Ripardef964082014-05-13 17:44:21 +0200534 phys = <&usbphy 2>;
535 phy-names = "usb";
536 status = "disabled";
537 };
538
Maxime Ripard5841f6c2017-10-05 12:49:36 +0200539 ohci1: usb@1c1b400 {
Maxime Ripardef964082014-05-13 17:44:21 +0200540 compatible = "allwinner,sun6i-a31-ohci", "generic-ohci";
541 reg = <0x01c1b400 0x100>;
Maxime Ripard19882b82014-12-16 22:59:58 +0100542 interrupts = <GIC_SPI 75 IRQ_TYPE_LEVEL_HIGH>;
Chen-Yu Tsai78a9f0d2016-08-25 14:22:00 +0800543 clocks = <&ccu CLK_AHB1_OHCI1>, <&ccu CLK_USB_OHCI1>;
544 resets = <&ccu RST_AHB1_OHCI1>;
Maxime Ripardef964082014-05-13 17:44:21 +0200545 phys = <&usbphy 2>;
546 phy-names = "usb";
547 status = "disabled";
548 };
549
Maxime Ripard5841f6c2017-10-05 12:49:36 +0200550 ohci2: usb@1c1c400 {
Maxime Ripardef964082014-05-13 17:44:21 +0200551 compatible = "allwinner,sun6i-a31-ohci", "generic-ohci";
552 reg = <0x01c1c400 0x100>;
Maxime Ripard19882b82014-12-16 22:59:58 +0100553 interrupts = <GIC_SPI 77 IRQ_TYPE_LEVEL_HIGH>;
Chen-Yu Tsai78a9f0d2016-08-25 14:22:00 +0800554 clocks = <&ccu CLK_AHB1_OHCI2>, <&ccu CLK_USB_OHCI2>;
555 resets = <&ccu RST_AHB1_OHCI2>;
Maxime Ripardef964082014-05-13 17:44:21 +0200556 status = "disabled";
557 };
558
Maxime Ripard5841f6c2017-10-05 12:49:36 +0200559 ccu: clock@1c20000 {
Chen-Yu Tsai78a9f0d2016-08-25 14:22:00 +0800560 compatible = "allwinner,sun6i-a31-ccu";
561 reg = <0x01c20000 0x400>;
562 clocks = <&osc24M>, <&osc32k>;
563 clock-names = "hosc", "losc";
564 #clock-cells = <1>;
565 #reset-cells = <1>;
566 };
567
Maxime Ripard5841f6c2017-10-05 12:49:36 +0200568 pio: pinctrl@1c20800 {
Maxime Ripard140e1722013-03-12 22:16:05 +0100569 compatible = "allwinner,sun6i-a31-pinctrl";
570 reg = <0x01c20800 0x400>;
Maxime Ripard19882b82014-12-16 22:59:58 +0100571 interrupts = <GIC_SPI 11 IRQ_TYPE_LEVEL_HIGH>,
572 <GIC_SPI 15 IRQ_TYPE_LEVEL_HIGH>,
573 <GIC_SPI 16 IRQ_TYPE_LEVEL_HIGH>,
574 <GIC_SPI 17 IRQ_TYPE_LEVEL_HIGH>;
Maxime Ripardbe7bc6b2016-10-19 11:15:27 +0200575 clocks = <&ccu CLK_APB1_PIO>, <&osc24M>, <&osc32k>;
576 clock-names = "apb", "hosc", "losc";
Maxime Ripard140e1722013-03-12 22:16:05 +0100577 gpio-controller;
578 interrupt-controller;
Maxime Ripardb03e0812015-06-17 11:44:24 +0200579 #interrupt-cells = <3>;
Maxime Ripard140e1722013-03-12 22:16:05 +0100580 #gpio-cells = <3>;
Maxime Ripardab4238c2013-06-22 23:56:40 +0200581
Chen-Yu Tsaidc0aea32016-10-07 00:06:26 +0800582 gmac_pins_gmii_a: gmac_gmii@0 {
Maxime Ripard1edcd362016-09-23 14:28:10 +0300583 pins = "PA0", "PA1", "PA2", "PA3",
Chen-Yu Tsaidc0aea32016-10-07 00:06:26 +0800584 "PA4", "PA5", "PA6", "PA7",
585 "PA8", "PA9", "PA10", "PA11",
586 "PA12", "PA13", "PA14", "PA15",
587 "PA16", "PA17", "PA18", "PA19",
588 "PA20", "PA21", "PA22", "PA23",
589 "PA24", "PA25", "PA26", "PA27";
Maxime Ripard1edcd362016-09-23 14:28:10 +0300590 function = "gmac";
Chen-Yu Tsaidc0aea32016-10-07 00:06:26 +0800591 /*
592 * data lines in GMII mode run at 125MHz and
593 * might need a higher signal drive strength
594 */
Maxime Ripard1edcd362016-09-23 14:28:10 +0300595 drive-strength = <30>;
Chen-Yu Tsaidc0aea32016-10-07 00:06:26 +0800596 };
597
598 gmac_pins_mii_a: gmac_mii@0 {
Maxime Ripard1edcd362016-09-23 14:28:10 +0300599 pins = "PA0", "PA1", "PA2", "PA3",
Chen-Yu Tsaidc0aea32016-10-07 00:06:26 +0800600 "PA8", "PA9", "PA11",
601 "PA12", "PA13", "PA14", "PA19",
602 "PA20", "PA21", "PA22", "PA23",
603 "PA24", "PA26", "PA27";
Maxime Ripard1edcd362016-09-23 14:28:10 +0300604 function = "gmac";
Maxime Ripardab4238c2013-06-22 23:56:40 +0200605 };
Maxime Ripard8be188b2014-03-04 17:28:40 +0100606
Chen-Yu Tsaidc0aea32016-10-07 00:06:26 +0800607 gmac_pins_rgmii_a: gmac_rgmii@0 {
Maxime Ripard1edcd362016-09-23 14:28:10 +0300608 pins = "PA0", "PA1", "PA2", "PA3",
Chen-Yu Tsaidc0aea32016-10-07 00:06:26 +0800609 "PA9", "PA10", "PA11",
610 "PA12", "PA13", "PA14", "PA19",
611 "PA20", "PA25", "PA26", "PA27";
Maxime Ripard1edcd362016-09-23 14:28:10 +0300612 function = "gmac";
Chen-Yu Tsaidc0aea32016-10-07 00:06:26 +0800613 /*
614 * data lines in RGMII mode use DDR mode
615 * and need a higher signal drive strength
616 */
Maxime Ripard1edcd362016-09-23 14:28:10 +0300617 drive-strength = <40>;
Chen-Yu Tsaidc0aea32016-10-07 00:06:26 +0800618 };
619
Maxime Ripard8be188b2014-03-04 17:28:40 +0100620 i2c0_pins_a: i2c0@0 {
Maxime Ripard1edcd362016-09-23 14:28:10 +0300621 pins = "PH14", "PH15";
622 function = "i2c0";
Maxime Ripard8be188b2014-03-04 17:28:40 +0100623 };
624
625 i2c1_pins_a: i2c1@0 {
Maxime Ripard1edcd362016-09-23 14:28:10 +0300626 pins = "PH16", "PH17";
627 function = "i2c1";
Maxime Ripard8be188b2014-03-04 17:28:40 +0100628 };
629
630 i2c2_pins_a: i2c2@0 {
Maxime Ripard1edcd362016-09-23 14:28:10 +0300631 pins = "PH18", "PH19";
632 function = "i2c2";
Maxime Ripard8be188b2014-03-04 17:28:40 +0100633 };
Hans de Goede9797eb82014-04-26 12:16:16 +0200634
Chen-Yu Tsai0ff82192016-10-20 11:43:43 +0800635 lcd0_rgb888_pins: lcd0_rgb888 {
Maxime Ripard1edcd362016-09-23 14:28:10 +0300636 pins = "PD0", "PD1", "PD2", "PD3",
Chen-Yu Tsai0ff82192016-10-20 11:43:43 +0800637 "PD4", "PD5", "PD6", "PD7",
638 "PD8", "PD9", "PD10", "PD11",
639 "PD12", "PD13", "PD14", "PD15",
640 "PD16", "PD17", "PD18", "PD19",
641 "PD20", "PD21", "PD22", "PD23",
642 "PD24", "PD25", "PD26", "PD27";
Maxime Ripard1edcd362016-09-23 14:28:10 +0300643 function = "lcd0";
Chen-Yu Tsai0ff82192016-10-20 11:43:43 +0800644 };
645
Hans de Goede9797eb82014-04-26 12:16:16 +0200646 mmc0_pins_a: mmc0@0 {
Maxime Ripard1edcd362016-09-23 14:28:10 +0300647 pins = "PF0", "PF1", "PF2",
Maxime Ripardd8cacaa2015-05-03 11:53:07 +0200648 "PF3", "PF4", "PF5";
Maxime Ripard1edcd362016-09-23 14:28:10 +0300649 function = "mmc0";
650 drive-strength = <30>;
Chen-Yu Tsai80ee72e2016-11-17 17:34:38 +0800651 bias-pull-up;
Hans de Goede9797eb82014-04-26 12:16:16 +0200652 };
Chen-Yu Tsaiee39a3e2014-07-16 01:15:43 +0800653
Chen-Yu Tsai878c4de2015-03-10 19:59:22 +0800654 mmc1_pins_a: mmc1@0 {
Maxime Ripard1edcd362016-09-23 14:28:10 +0300655 pins = "PG0", "PG1", "PG2", "PG3",
Chen-Yu Tsai878c4de2015-03-10 19:59:22 +0800656 "PG4", "PG5";
Maxime Ripard1edcd362016-09-23 14:28:10 +0300657 function = "mmc1";
658 drive-strength = <30>;
Chen-Yu Tsai80ee72e2016-11-17 17:34:38 +0800659 bias-pull-up;
Chen-Yu Tsai878c4de2015-03-10 19:59:22 +0800660 };
661
Hans de Goede5edab362015-10-15 16:28:46 +0200662 mmc2_pins_a: mmc2@0 {
Maxime Ripard1edcd362016-09-23 14:28:10 +0300663 pins = "PC6", "PC7", "PC8", "PC9",
Hans de Goede5edab362015-10-15 16:28:46 +0200664 "PC10", "PC11";
Maxime Ripard1edcd362016-09-23 14:28:10 +0300665 function = "mmc2";
666 drive-strength = <30>;
667 bias-pull-up;
Hans de Goede5edab362015-10-15 16:28:46 +0200668 };
669
670 mmc2_8bit_emmc_pins: mmc2@1 {
Maxime Ripard1edcd362016-09-23 14:28:10 +0300671 pins = "PC6", "PC7", "PC8", "PC9",
Chen-Yu Tsai4917c462015-08-28 17:54:37 +0800672 "PC10", "PC11", "PC12",
673 "PC13", "PC14", "PC15",
674 "PC24";
Maxime Ripard1edcd362016-09-23 14:28:10 +0300675 function = "mmc2";
676 drive-strength = <30>;
Chen-Yu Tsai80ee72e2016-11-17 17:34:38 +0800677 bias-pull-up;
Chen-Yu Tsai4917c462015-08-28 17:54:37 +0800678 };
679
Chen-Yu Tsaia22f8b22016-01-21 13:26:35 +0800680 mmc3_8bit_emmc_pins: mmc3@1 {
Maxime Ripard1edcd362016-09-23 14:28:10 +0300681 pins = "PC6", "PC7", "PC8", "PC9",
Chen-Yu Tsaia22f8b22016-01-21 13:26:35 +0800682 "PC10", "PC11", "PC12",
683 "PC13", "PC14", "PC15",
684 "PC24";
Maxime Ripard1edcd362016-09-23 14:28:10 +0300685 function = "mmc3";
686 drive-strength = <40>;
Chen-Yu Tsai80ee72e2016-11-17 17:34:38 +0800687 bias-pull-up;
Chen-Yu Tsaia22f8b22016-01-21 13:26:35 +0800688 };
689
Marcus Cooper5f396b12016-12-20 11:40:36 +0100690 spdif_pins_a: spdif@0 {
691 pins = "PH28";
692 function = "spdif";
Maxime Ripard092a0c32014-12-16 22:59:57 +0100693 };
Chen-Yu Tsaiee39a3e2014-07-16 01:15:43 +0800694
Chen-Yu Tsaidc0aea32016-10-07 00:06:26 +0800695 uart0_pins_a: uart0@0 {
Maxime Ripard1edcd362016-09-23 14:28:10 +0300696 pins = "PH20", "PH21";
697 function = "uart0";
Chen-Yu Tsaiee39a3e2014-07-16 01:15:43 +0800698 };
Maxime Ripard140e1722013-03-12 22:16:05 +0100699 };
700
Maxime Ripard5841f6c2017-10-05 12:49:36 +0200701 timer@1c20c00 {
Maxime Ripardb4f26442014-02-06 10:40:32 +0100702 compatible = "allwinner,sun4i-a10-timer";
Maxime Ripard8aed3b32013-03-10 16:09:06 +0100703 reg = <0x01c20c00 0xa0>;
Maxime Ripard19882b82014-12-16 22:59:58 +0100704 interrupts = <GIC_SPI 18 IRQ_TYPE_LEVEL_HIGH>,
705 <GIC_SPI 19 IRQ_TYPE_LEVEL_HIGH>,
706 <GIC_SPI 20 IRQ_TYPE_LEVEL_HIGH>,
707 <GIC_SPI 21 IRQ_TYPE_LEVEL_HIGH>,
708 <GIC_SPI 22 IRQ_TYPE_LEVEL_HIGH>;
Maxime Ripard98096562013-07-23 23:54:19 +0200709 clocks = <&osc24M>;
Maxime Ripard8aed3b32013-03-10 16:09:06 +0100710 };
711
Maxime Ripard5841f6c2017-10-05 12:49:36 +0200712 wdt1: watchdog@1c20ca0 {
Maxime Ripardca5d04d2014-02-07 22:29:26 +0100713 compatible = "allwinner,sun6i-a31-wdt";
Maxime Ripard8aed3b32013-03-10 16:09:06 +0100714 reg = <0x01c20ca0 0x20>;
715 };
716
Maxime Ripard5841f6c2017-10-05 12:49:36 +0200717 spdif: spdif@1c21000 {
Marcus Cooper63b31ba2016-12-20 11:40:37 +0100718 #sound-dai-cells = <0>;
719 compatible = "allwinner,sun6i-a31-spdif";
720 reg = <0x01c21000 0x400>;
721 interrupts = <GIC_SPI 12 IRQ_TYPE_LEVEL_HIGH>;
722 clocks = <&ccu CLK_APB1_SPDIF>, <&ccu CLK_SPDIF>;
723 resets = <&ccu RST_APB1_SPDIF>;
724 clock-names = "apb", "spdif";
725 dmas = <&dma 2>, <&dma 2>;
726 dma-names = "rx", "tx";
727 status = "disabled";
728 };
729
Maxime Ripard5841f6c2017-10-05 12:49:36 +0200730 i2s0: i2s@1c22000 {
Marcus Coopera7977bb2017-09-03 17:08:52 +0200731 #sound-dai-cells = <0>;
732 compatible = "allwinner,sun6i-a31-i2s";
733 reg = <0x01c22000 0x400>;
734 interrupts = <GIC_SPI 13 IRQ_TYPE_LEVEL_HIGH>;
735 clocks = <&ccu CLK_APB1_DAUDIO0>, <&ccu CLK_DAUDIO0>;
736 resets = <&ccu RST_APB1_DAUDIO0>;
737 clock-names = "apb", "mod";
738 dmas = <&dma 3>, <&dma 3>;
739 dma-names = "rx", "tx";
740 status = "disabled";
741 };
742
Maxime Ripard5841f6c2017-10-05 12:49:36 +0200743 i2s1: i2s@1c22400 {
Marcus Coopera7977bb2017-09-03 17:08:52 +0200744 #sound-dai-cells = <0>;
745 compatible = "allwinner,sun6i-a31-i2s";
746 reg = <0x01c22400 0x400>;
747 interrupts = <GIC_SPI 14 IRQ_TYPE_LEVEL_HIGH>;
748 clocks = <&ccu CLK_APB1_DAUDIO1>, <&ccu CLK_DAUDIO1>;
749 resets = <&ccu RST_APB1_DAUDIO1>;
750 clock-names = "apb", "mod";
751 dmas = <&dma 4>, <&dma 4>;
752 dma-names = "rx", "tx";
753 status = "disabled";
754 };
755
Maxime Ripard5841f6c2017-10-05 12:49:36 +0200756 lradc: lradc@1c22800 {
Chen-Yu Tsai61d25952015-08-28 17:54:34 +0800757 compatible = "allwinner,sun4i-a10-lradc-keys";
758 reg = <0x01c22800 0x100>;
759 interrupts = <GIC_SPI 30 IRQ_TYPE_LEVEL_HIGH>;
760 status = "disabled";
761 };
762
Maxime Ripard5841f6c2017-10-05 12:49:36 +0200763 rtp: rtp@1c25000 {
Chen-Yu Tsai4ec45cd2015-01-24 22:33:48 +0800764 compatible = "allwinner,sun6i-a31-ts";
765 reg = <0x01c25000 0x100>;
766 interrupts = <GIC_SPI 28 IRQ_TYPE_LEVEL_HIGH>;
767 #thermal-sensor-cells = <0>;
768 };
769
Maxime Ripard5841f6c2017-10-05 12:49:36 +0200770 uart0: serial@1c28000 {
Maxime Ripard8aed3b32013-03-10 16:09:06 +0100771 compatible = "snps,dw-apb-uart";
772 reg = <0x01c28000 0x400>;
Maxime Ripard19882b82014-12-16 22:59:58 +0100773 interrupts = <GIC_SPI 0 IRQ_TYPE_LEVEL_HIGH>;
Maxime Ripard8aed3b32013-03-10 16:09:06 +0100774 reg-shift = <2>;
775 reg-io-width = <4>;
Chen-Yu Tsai78a9f0d2016-08-25 14:22:00 +0800776 clocks = <&ccu CLK_APB2_UART0>;
777 resets = <&ccu RST_APB2_UART0>;
Maxime Ripardd2d878c2014-01-30 15:41:23 +0100778 dmas = <&dma 6>, <&dma 6>;
779 dma-names = "rx", "tx";
Maxime Ripard8aed3b32013-03-10 16:09:06 +0100780 status = "disabled";
781 };
782
Maxime Ripard5841f6c2017-10-05 12:49:36 +0200783 uart1: serial@1c28400 {
Maxime Ripard8aed3b32013-03-10 16:09:06 +0100784 compatible = "snps,dw-apb-uart";
785 reg = <0x01c28400 0x400>;
Maxime Ripard19882b82014-12-16 22:59:58 +0100786 interrupts = <GIC_SPI 1 IRQ_TYPE_LEVEL_HIGH>;
Maxime Ripard8aed3b32013-03-10 16:09:06 +0100787 reg-shift = <2>;
788 reg-io-width = <4>;
Chen-Yu Tsai78a9f0d2016-08-25 14:22:00 +0800789 clocks = <&ccu CLK_APB2_UART1>;
790 resets = <&ccu RST_APB2_UART1>;
Maxime Ripardd2d878c2014-01-30 15:41:23 +0100791 dmas = <&dma 7>, <&dma 7>;
792 dma-names = "rx", "tx";
Maxime Ripard8aed3b32013-03-10 16:09:06 +0100793 status = "disabled";
794 };
795
Maxime Ripard5841f6c2017-10-05 12:49:36 +0200796 uart2: serial@1c28800 {
Maxime Ripard8aed3b32013-03-10 16:09:06 +0100797 compatible = "snps,dw-apb-uart";
798 reg = <0x01c28800 0x400>;
Maxime Ripard19882b82014-12-16 22:59:58 +0100799 interrupts = <GIC_SPI 2 IRQ_TYPE_LEVEL_HIGH>;
Maxime Ripard8aed3b32013-03-10 16:09:06 +0100800 reg-shift = <2>;
801 reg-io-width = <4>;
Chen-Yu Tsai78a9f0d2016-08-25 14:22:00 +0800802 clocks = <&ccu CLK_APB2_UART2>;
803 resets = <&ccu RST_APB2_UART2>;
Maxime Ripardd2d878c2014-01-30 15:41:23 +0100804 dmas = <&dma 8>, <&dma 8>;
805 dma-names = "rx", "tx";
Maxime Ripard8aed3b32013-03-10 16:09:06 +0100806 status = "disabled";
807 };
808
Maxime Ripard5841f6c2017-10-05 12:49:36 +0200809 uart3: serial@1c28c00 {
Maxime Ripard8aed3b32013-03-10 16:09:06 +0100810 compatible = "snps,dw-apb-uart";
811 reg = <0x01c28c00 0x400>;
Maxime Ripard19882b82014-12-16 22:59:58 +0100812 interrupts = <GIC_SPI 3 IRQ_TYPE_LEVEL_HIGH>;
Maxime Ripard8aed3b32013-03-10 16:09:06 +0100813 reg-shift = <2>;
814 reg-io-width = <4>;
Chen-Yu Tsai78a9f0d2016-08-25 14:22:00 +0800815 clocks = <&ccu CLK_APB2_UART3>;
816 resets = <&ccu RST_APB2_UART3>;
Maxime Ripardd2d878c2014-01-30 15:41:23 +0100817 dmas = <&dma 9>, <&dma 9>;
818 dma-names = "rx", "tx";
Maxime Ripard8aed3b32013-03-10 16:09:06 +0100819 status = "disabled";
820 };
821
Maxime Ripard5841f6c2017-10-05 12:49:36 +0200822 uart4: serial@1c29000 {
Maxime Ripard8aed3b32013-03-10 16:09:06 +0100823 compatible = "snps,dw-apb-uart";
824 reg = <0x01c29000 0x400>;
Maxime Ripard19882b82014-12-16 22:59:58 +0100825 interrupts = <GIC_SPI 4 IRQ_TYPE_LEVEL_HIGH>;
Maxime Ripard8aed3b32013-03-10 16:09:06 +0100826 reg-shift = <2>;
827 reg-io-width = <4>;
Chen-Yu Tsai78a9f0d2016-08-25 14:22:00 +0800828 clocks = <&ccu CLK_APB2_UART4>;
829 resets = <&ccu RST_APB2_UART4>;
Maxime Ripardd2d878c2014-01-30 15:41:23 +0100830 dmas = <&dma 10>, <&dma 10>;
831 dma-names = "rx", "tx";
Maxime Ripard8aed3b32013-03-10 16:09:06 +0100832 status = "disabled";
833 };
834
Maxime Ripard5841f6c2017-10-05 12:49:36 +0200835 uart5: serial@1c29400 {
Maxime Ripard8aed3b32013-03-10 16:09:06 +0100836 compatible = "snps,dw-apb-uart";
837 reg = <0x01c29400 0x400>;
Maxime Ripard19882b82014-12-16 22:59:58 +0100838 interrupts = <GIC_SPI 5 IRQ_TYPE_LEVEL_HIGH>;
Maxime Ripard8aed3b32013-03-10 16:09:06 +0100839 reg-shift = <2>;
840 reg-io-width = <4>;
Chen-Yu Tsai78a9f0d2016-08-25 14:22:00 +0800841 clocks = <&ccu CLK_APB2_UART5>;
842 resets = <&ccu RST_APB2_UART5>;
Maxime Ripardd2d878c2014-01-30 15:41:23 +0100843 dmas = <&dma 22>, <&dma 22>;
844 dma-names = "rx", "tx";
Maxime Ripard8aed3b32013-03-10 16:09:06 +0100845 status = "disabled";
846 };
847
Maxime Ripard5841f6c2017-10-05 12:49:36 +0200848 i2c0: i2c@1c2ac00 {
Maxime Ripard96c7cc92014-03-04 17:28:39 +0100849 compatible = "allwinner,sun6i-a31-i2c";
850 reg = <0x01c2ac00 0x400>;
Maxime Ripard19882b82014-12-16 22:59:58 +0100851 interrupts = <GIC_SPI 6 IRQ_TYPE_LEVEL_HIGH>;
Chen-Yu Tsai78a9f0d2016-08-25 14:22:00 +0800852 clocks = <&ccu CLK_APB2_I2C0>;
853 resets = <&ccu RST_APB2_I2C0>;
Maxime Ripard96c7cc92014-03-04 17:28:39 +0100854 status = "disabled";
Chen-Yu Tsai495bccf2014-07-21 22:54:27 +0800855 #address-cells = <1>;
856 #size-cells = <0>;
Maxime Ripard96c7cc92014-03-04 17:28:39 +0100857 };
858
Maxime Ripard5841f6c2017-10-05 12:49:36 +0200859 i2c1: i2c@1c2b000 {
Maxime Ripard96c7cc92014-03-04 17:28:39 +0100860 compatible = "allwinner,sun6i-a31-i2c";
861 reg = <0x01c2b000 0x400>;
Maxime Ripard19882b82014-12-16 22:59:58 +0100862 interrupts = <GIC_SPI 7 IRQ_TYPE_LEVEL_HIGH>;
Chen-Yu Tsai78a9f0d2016-08-25 14:22:00 +0800863 clocks = <&ccu CLK_APB2_I2C1>;
864 resets = <&ccu RST_APB2_I2C1>;
Maxime Ripard96c7cc92014-03-04 17:28:39 +0100865 status = "disabled";
Chen-Yu Tsai495bccf2014-07-21 22:54:27 +0800866 #address-cells = <1>;
867 #size-cells = <0>;
Maxime Ripard96c7cc92014-03-04 17:28:39 +0100868 };
869
Maxime Ripard5841f6c2017-10-05 12:49:36 +0200870 i2c2: i2c@1c2b400 {
Maxime Ripard96c7cc92014-03-04 17:28:39 +0100871 compatible = "allwinner,sun6i-a31-i2c";
872 reg = <0x01c2b400 0x400>;
Maxime Ripard19882b82014-12-16 22:59:58 +0100873 interrupts = <GIC_SPI 8 IRQ_TYPE_LEVEL_HIGH>;
Chen-Yu Tsai78a9f0d2016-08-25 14:22:00 +0800874 clocks = <&ccu CLK_APB2_I2C2>;
875 resets = <&ccu RST_APB2_I2C2>;
Maxime Ripard96c7cc92014-03-04 17:28:39 +0100876 status = "disabled";
Chen-Yu Tsai495bccf2014-07-21 22:54:27 +0800877 #address-cells = <1>;
878 #size-cells = <0>;
Maxime Ripard96c7cc92014-03-04 17:28:39 +0100879 };
880
Maxime Ripard5841f6c2017-10-05 12:49:36 +0200881 i2c3: i2c@1c2b800 {
Maxime Ripard96c7cc92014-03-04 17:28:39 +0100882 compatible = "allwinner,sun6i-a31-i2c";
883 reg = <0x01c2b800 0x400>;
Maxime Ripard19882b82014-12-16 22:59:58 +0100884 interrupts = <GIC_SPI 9 IRQ_TYPE_LEVEL_HIGH>;
Chen-Yu Tsai78a9f0d2016-08-25 14:22:00 +0800885 clocks = <&ccu CLK_APB2_I2C3>;
886 resets = <&ccu RST_APB2_I2C3>;
Maxime Ripard96c7cc92014-03-04 17:28:39 +0100887 status = "disabled";
Chen-Yu Tsai495bccf2014-07-21 22:54:27 +0800888 #address-cells = <1>;
889 #size-cells = <0>;
Maxime Ripard96c7cc92014-03-04 17:28:39 +0100890 };
891
Maxime Ripard5841f6c2017-10-05 12:49:36 +0200892 gmac: ethernet@1c30000 {
Chen-Yu Tsai3dca65f2014-07-16 01:15:45 +0800893 compatible = "allwinner,sun7i-a20-gmac";
894 reg = <0x01c30000 0x1054>;
Maxime Ripard19882b82014-12-16 22:59:58 +0100895 interrupts = <GIC_SPI 82 IRQ_TYPE_LEVEL_HIGH>;
Chen-Yu Tsai3dca65f2014-07-16 01:15:45 +0800896 interrupt-names = "macirq";
Chen-Yu Tsai78a9f0d2016-08-25 14:22:00 +0800897 clocks = <&ccu CLK_AHB1_EMAC>, <&gmac_tx_clk>;
Chen-Yu Tsai3dca65f2014-07-16 01:15:45 +0800898 clock-names = "stmmaceth", "allwinner_gmac_tx";
Chen-Yu Tsai78a9f0d2016-08-25 14:22:00 +0800899 resets = <&ccu RST_AHB1_EMAC>;
Chen-Yu Tsai3dca65f2014-07-16 01:15:45 +0800900 reset-names = "stmmaceth";
901 snps,pbl = <2>;
902 snps,fixed-burst;
903 snps,force_sf_dma_mode;
904 status = "disabled";
905 #address-cells = <1>;
906 #size-cells = <0>;
907 };
908
Maxime Ripard5841f6c2017-10-05 12:49:36 +0200909 crypto: crypto-engine@1c15000 {
Antoine Tenart9bea19a2017-06-01 21:39:05 +0200910 compatible = "allwinner,sun6i-a31-crypto",
911 "allwinner,sun4i-a10-crypto";
Chen-Yu Tsai14fee742015-08-11 13:32:57 +0800912 reg = <0x01c15000 0x1000>;
913 interrupts = <GIC_SPI 80 IRQ_TYPE_LEVEL_HIGH>;
Chen-Yu Tsai78a9f0d2016-08-25 14:22:00 +0800914 clocks = <&ccu CLK_AHB1_SS>, <&ccu CLK_SS>;
Chen-Yu Tsai14fee742015-08-11 13:32:57 +0800915 clock-names = "ahb", "mod";
Chen-Yu Tsai78a9f0d2016-08-25 14:22:00 +0800916 resets = <&ccu RST_AHB1_SS>;
Chen-Yu Tsai14fee742015-08-11 13:32:57 +0800917 reset-names = "ahb";
918 };
919
Maxime Ripard5841f6c2017-10-05 12:49:36 +0200920 codec: codec@1c22c00 {
Chen-Yu Tsai94a160c2016-11-07 18:07:01 +0800921 #sound-dai-cells = <0>;
922 compatible = "allwinner,sun6i-a31-codec";
923 reg = <0x01c22c00 0x400>;
924 interrupts = <GIC_SPI 29 IRQ_TYPE_LEVEL_HIGH>;
925 clocks = <&ccu CLK_APB1_CODEC>, <&ccu CLK_CODEC>;
926 clock-names = "apb", "codec";
927 resets = <&ccu RST_APB1_CODEC>;
928 dmas = <&dma 15>, <&dma 15>;
929 dma-names = "rx", "tx";
930 status = "disabled";
931 };
932
Maxime Ripard5841f6c2017-10-05 12:49:36 +0200933 timer@1c60000 {
Maxime Ripardd8cacaa2015-05-03 11:53:07 +0200934 compatible = "allwinner,sun6i-a31-hstimer",
935 "allwinner,sun7i-a20-hstimer";
Maxime Ripard8cffcb02014-04-17 11:06:46 +0200936 reg = <0x01c60000 0x1000>;
Maxime Ripard19882b82014-12-16 22:59:58 +0100937 interrupts = <GIC_SPI 51 IRQ_TYPE_LEVEL_HIGH>,
938 <GIC_SPI 52 IRQ_TYPE_LEVEL_HIGH>,
939 <GIC_SPI 53 IRQ_TYPE_LEVEL_HIGH>,
940 <GIC_SPI 54 IRQ_TYPE_LEVEL_HIGH>;
Chen-Yu Tsai78a9f0d2016-08-25 14:22:00 +0800941 clocks = <&ccu CLK_AHB1_HSTIMER>;
942 resets = <&ccu RST_AHB1_HSTIMER>;
Maxime Ripard8cffcb02014-04-17 11:06:46 +0200943 };
944
Maxime Ripard5841f6c2017-10-05 12:49:36 +0200945 spi0: spi@1c68000 {
Maxime Ripard0d6efe32014-02-05 14:05:06 +0100946 compatible = "allwinner,sun6i-a31-spi";
947 reg = <0x01c68000 0x1000>;
Maxime Ripard19882b82014-12-16 22:59:58 +0100948 interrupts = <GIC_SPI 65 IRQ_TYPE_LEVEL_HIGH>;
Chen-Yu Tsai78a9f0d2016-08-25 14:22:00 +0800949 clocks = <&ccu CLK_AHB1_SPI0>, <&ccu CLK_SPI0>;
Maxime Ripard0d6efe32014-02-05 14:05:06 +0100950 clock-names = "ahb", "mod";
Maxime Ripardd2d878c2014-01-30 15:41:23 +0100951 dmas = <&dma 23>, <&dma 23>;
952 dma-names = "rx", "tx";
Chen-Yu Tsai78a9f0d2016-08-25 14:22:00 +0800953 resets = <&ccu RST_AHB1_SPI0>;
Maxime Ripard0d6efe32014-02-05 14:05:06 +0100954 status = "disabled";
955 };
956
Maxime Ripard5841f6c2017-10-05 12:49:36 +0200957 spi1: spi@1c69000 {
Maxime Ripard0d6efe32014-02-05 14:05:06 +0100958 compatible = "allwinner,sun6i-a31-spi";
959 reg = <0x01c69000 0x1000>;
Maxime Ripard19882b82014-12-16 22:59:58 +0100960 interrupts = <GIC_SPI 66 IRQ_TYPE_LEVEL_HIGH>;
Chen-Yu Tsai78a9f0d2016-08-25 14:22:00 +0800961 clocks = <&ccu CLK_AHB1_SPI1>, <&ccu CLK_SPI1>;
Maxime Ripard0d6efe32014-02-05 14:05:06 +0100962 clock-names = "ahb", "mod";
Maxime Ripardd2d878c2014-01-30 15:41:23 +0100963 dmas = <&dma 24>, <&dma 24>;
964 dma-names = "rx", "tx";
Chen-Yu Tsai78a9f0d2016-08-25 14:22:00 +0800965 resets = <&ccu RST_AHB1_SPI1>;
Maxime Ripard0d6efe32014-02-05 14:05:06 +0100966 status = "disabled";
967 };
968
Maxime Ripard5841f6c2017-10-05 12:49:36 +0200969 spi2: spi@1c6a000 {
Maxime Ripard0d6efe32014-02-05 14:05:06 +0100970 compatible = "allwinner,sun6i-a31-spi";
971 reg = <0x01c6a000 0x1000>;
Maxime Ripard19882b82014-12-16 22:59:58 +0100972 interrupts = <GIC_SPI 67 IRQ_TYPE_LEVEL_HIGH>;
Chen-Yu Tsai78a9f0d2016-08-25 14:22:00 +0800973 clocks = <&ccu CLK_AHB1_SPI2>, <&ccu CLK_SPI2>;
Maxime Ripard0d6efe32014-02-05 14:05:06 +0100974 clock-names = "ahb", "mod";
Maxime Ripardd2d878c2014-01-30 15:41:23 +0100975 dmas = <&dma 25>, <&dma 25>;
976 dma-names = "rx", "tx";
Chen-Yu Tsai78a9f0d2016-08-25 14:22:00 +0800977 resets = <&ccu RST_AHB1_SPI2>;
Maxime Ripard0d6efe32014-02-05 14:05:06 +0100978 status = "disabled";
979 };
980
Maxime Ripard5841f6c2017-10-05 12:49:36 +0200981 spi3: spi@1c6b000 {
Maxime Ripard0d6efe32014-02-05 14:05:06 +0100982 compatible = "allwinner,sun6i-a31-spi";
983 reg = <0x01c6b000 0x1000>;
Maxime Ripard19882b82014-12-16 22:59:58 +0100984 interrupts = <GIC_SPI 68 IRQ_TYPE_LEVEL_HIGH>;
Chen-Yu Tsai78a9f0d2016-08-25 14:22:00 +0800985 clocks = <&ccu CLK_AHB1_SPI3>, <&ccu CLK_SPI3>;
Maxime Ripard0d6efe32014-02-05 14:05:06 +0100986 clock-names = "ahb", "mod";
Maxime Ripardd2d878c2014-01-30 15:41:23 +0100987 dmas = <&dma 26>, <&dma 26>;
988 dma-names = "rx", "tx";
Chen-Yu Tsai78a9f0d2016-08-25 14:22:00 +0800989 resets = <&ccu RST_AHB1_SPI3>;
Maxime Ripard0d6efe32014-02-05 14:05:06 +0100990 status = "disabled";
991 };
992
Maxime Ripard5841f6c2017-10-05 12:49:36 +0200993 gic: interrupt-controller@1c81000 {
Maxime Ripard8aed3b32013-03-10 16:09:06 +0100994 compatible = "arm,cortex-a7-gic", "arm,cortex-a15-gic";
995 reg = <0x01c81000 0x1000>,
Marc Zyngier387720c2017-01-18 09:27:28 +0000996 <0x01c82000 0x2000>,
Maxime Ripard8aed3b32013-03-10 16:09:06 +0100997 <0x01c84000 0x2000>,
998 <0x01c86000 0x2000>;
999 interrupt-controller;
1000 #interrupt-cells = <3>;
Maxime Ripard19882b82014-12-16 22:59:58 +01001001 interrupts = <GIC_PPI 9 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>;
Maxime Ripard8aed3b32013-03-10 16:09:06 +01001002 };
Maxime Ripard81ee4292013-11-03 10:30:12 +01001003
Maxime Ripard5841f6c2017-10-05 12:49:36 +02001004 fe0: display-frontend@1e00000 {
Chen-Yu Tsai6d0e5b72016-10-20 11:43:42 +08001005 compatible = "allwinner,sun6i-a31-display-frontend";
1006 reg = <0x01e00000 0x20000>;
1007 interrupts = <GIC_SPI 93 IRQ_TYPE_LEVEL_HIGH>;
1008 clocks = <&ccu CLK_AHB1_FE0>, <&ccu CLK_FE0>,
1009 <&ccu CLK_DRAM_FE0>;
1010 clock-names = "ahb", "mod",
1011 "ram";
1012 resets = <&ccu RST_AHB1_FE0>;
1013
1014 ports {
1015 #address-cells = <1>;
1016 #size-cells = <0>;
1017
1018 fe0_out: port@1 {
1019 #address-cells = <1>;
1020 #size-cells = <0>;
1021 reg = <1>;
1022
1023 fe0_out_be0: endpoint@0 {
1024 reg = <0>;
1025 remote-endpoint = <&be0_in_fe0>;
1026 };
Chen-Yu Tsai9a268822017-04-21 16:38:56 +08001027
1028 fe0_out_be1: endpoint@1 {
1029 reg = <1>;
1030 remote-endpoint = <&be1_in_fe0>;
1031 };
1032 };
1033 };
1034 };
1035
Maxime Ripard5841f6c2017-10-05 12:49:36 +02001036 fe1: display-frontend@1e20000 {
Chen-Yu Tsai9a268822017-04-21 16:38:56 +08001037 compatible = "allwinner,sun6i-a31-display-frontend";
1038 reg = <0x01e20000 0x20000>;
1039 interrupts = <GIC_SPI 94 IRQ_TYPE_LEVEL_HIGH>;
1040 clocks = <&ccu CLK_AHB1_FE1>, <&ccu CLK_FE1>,
1041 <&ccu CLK_DRAM_FE1>;
1042 clock-names = "ahb", "mod",
1043 "ram";
1044 resets = <&ccu RST_AHB1_FE1>;
1045
1046 ports {
1047 #address-cells = <1>;
1048 #size-cells = <0>;
1049
1050 fe1_out: port@1 {
1051 #address-cells = <1>;
1052 #size-cells = <0>;
1053 reg = <1>;
1054
1055 fe1_out_be0: endpoint@0 {
1056 reg = <0>;
1057 remote-endpoint = <&be0_in_fe1>;
1058 };
1059
1060 fe1_out_be1: endpoint@1 {
1061 reg = <1>;
1062 remote-endpoint = <&be1_in_fe1>;
1063 };
1064 };
1065 };
1066 };
1067
Maxime Ripard5841f6c2017-10-05 12:49:36 +02001068 be1: display-backend@1e40000 {
Chen-Yu Tsai9a268822017-04-21 16:38:56 +08001069 compatible = "allwinner,sun6i-a31-display-backend";
1070 reg = <0x01e40000 0x10000>;
1071 interrupts = <GIC_SPI 96 IRQ_TYPE_LEVEL_HIGH>;
1072 clocks = <&ccu CLK_AHB1_BE1>, <&ccu CLK_BE1>,
1073 <&ccu CLK_DRAM_BE1>;
1074 clock-names = "ahb", "mod",
1075 "ram";
1076 resets = <&ccu RST_AHB1_BE1>;
1077
1078 assigned-clocks = <&ccu CLK_BE1>;
1079 assigned-clock-rates = <300000000>;
1080
1081 ports {
1082 #address-cells = <1>;
1083 #size-cells = <0>;
1084
1085 be1_in: port@0 {
1086 #address-cells = <1>;
1087 #size-cells = <0>;
1088 reg = <0>;
1089
1090 be1_in_fe0: endpoint@0 {
1091 reg = <0>;
1092 remote-endpoint = <&fe0_out_be1>;
1093 };
1094
1095 be1_in_fe1: endpoint@1 {
1096 reg = <1>;
1097 remote-endpoint = <&fe1_out_be1>;
1098 };
1099 };
1100
1101 be1_out: port@1 {
1102 #address-cells = <1>;
1103 #size-cells = <0>;
1104 reg = <1>;
1105
Chen-Yu Tsaia231d272017-09-08 15:50:09 +08001106 be1_out_drc1: endpoint@1 {
1107 reg = <1>;
Chen-Yu Tsai9a268822017-04-21 16:38:56 +08001108 remote-endpoint = <&drc1_in_be1>;
1109 };
1110 };
1111 };
1112 };
1113
Maxime Ripard5841f6c2017-10-05 12:49:36 +02001114 drc1: drc@1e50000 {
Chen-Yu Tsai9a268822017-04-21 16:38:56 +08001115 compatible = "allwinner,sun6i-a31-drc";
1116 reg = <0x01e50000 0x10000>;
1117 interrupts = <GIC_SPI 91 IRQ_TYPE_LEVEL_HIGH>;
1118 clocks = <&ccu CLK_AHB1_DRC1>, <&ccu CLK_IEP_DRC1>,
1119 <&ccu CLK_DRAM_DRC1>;
1120 clock-names = "ahb", "mod",
1121 "ram";
1122 resets = <&ccu RST_AHB1_DRC1>;
1123
1124 assigned-clocks = <&ccu CLK_IEP_DRC1>;
1125 assigned-clock-rates = <300000000>;
1126
1127 ports {
1128 #address-cells = <1>;
1129 #size-cells = <0>;
1130
1131 drc1_in: port@0 {
1132 #address-cells = <1>;
1133 #size-cells = <0>;
1134 reg = <0>;
1135
Chen-Yu Tsaia231d272017-09-08 15:50:09 +08001136 drc1_in_be1: endpoint@1 {
1137 reg = <1>;
Chen-Yu Tsai9a268822017-04-21 16:38:56 +08001138 remote-endpoint = <&be1_out_drc1>;
1139 };
1140 };
1141
1142 drc1_out: port@1 {
1143 #address-cells = <1>;
1144 #size-cells = <0>;
1145 reg = <1>;
1146
Chen-Yu Tsai25132732017-09-08 15:50:16 +08001147 drc1_out_tcon0: endpoint@0 {
1148 reg = <0>;
1149 remote-endpoint = <&tcon0_in_drc1>;
1150 };
1151
Chen-Yu Tsaia231d272017-09-08 15:50:09 +08001152 drc1_out_tcon1: endpoint@1 {
1153 reg = <1>;
Chen-Yu Tsai9a268822017-04-21 16:38:56 +08001154 remote-endpoint = <&tcon1_in_drc1>;
1155 };
Chen-Yu Tsai6d0e5b72016-10-20 11:43:42 +08001156 };
1157 };
1158 };
1159
Maxime Ripard5841f6c2017-10-05 12:49:36 +02001160 be0: display-backend@1e60000 {
Chen-Yu Tsai6d0e5b72016-10-20 11:43:42 +08001161 compatible = "allwinner,sun6i-a31-display-backend";
1162 reg = <0x01e60000 0x10000>;
1163 interrupts = <GIC_SPI 95 IRQ_TYPE_LEVEL_HIGH>;
1164 clocks = <&ccu CLK_AHB1_BE0>, <&ccu CLK_BE0>,
1165 <&ccu CLK_DRAM_BE0>;
1166 clock-names = "ahb", "mod",
1167 "ram";
1168 resets = <&ccu RST_AHB1_BE0>;
1169
1170 assigned-clocks = <&ccu CLK_BE0>;
1171 assigned-clock-rates = <300000000>;
1172
1173 ports {
1174 #address-cells = <1>;
1175 #size-cells = <0>;
1176
1177 be0_in: port@0 {
1178 #address-cells = <1>;
1179 #size-cells = <0>;
1180 reg = <0>;
1181
1182 be0_in_fe0: endpoint@0 {
1183 reg = <0>;
1184 remote-endpoint = <&fe0_out_be0>;
1185 };
Chen-Yu Tsai9a268822017-04-21 16:38:56 +08001186
1187 be0_in_fe1: endpoint@1 {
1188 reg = <1>;
1189 remote-endpoint = <&fe1_out_be0>;
1190 };
Chen-Yu Tsai6d0e5b72016-10-20 11:43:42 +08001191 };
1192
1193 be0_out: port@1 {
1194 #address-cells = <1>;
1195 #size-cells = <0>;
1196 reg = <1>;
1197
1198 be0_out_drc0: endpoint@0 {
1199 reg = <0>;
1200 remote-endpoint = <&drc0_in_be0>;
1201 };
1202 };
1203 };
1204 };
1205
Maxime Ripard5841f6c2017-10-05 12:49:36 +02001206 drc0: drc@1e70000 {
Chen-Yu Tsai6d0e5b72016-10-20 11:43:42 +08001207 compatible = "allwinner,sun6i-a31-drc";
1208 reg = <0x01e70000 0x10000>;
1209 interrupts = <GIC_SPI 91 IRQ_TYPE_LEVEL_HIGH>;
1210 clocks = <&ccu CLK_AHB1_DRC0>, <&ccu CLK_IEP_DRC0>,
1211 <&ccu CLK_DRAM_DRC0>;
1212 clock-names = "ahb", "mod",
1213 "ram";
1214 resets = <&ccu RST_AHB1_DRC0>;
1215
1216 assigned-clocks = <&ccu CLK_IEP_DRC0>;
1217 assigned-clock-rates = <300000000>;
1218
1219 ports {
1220 #address-cells = <1>;
1221 #size-cells = <0>;
1222
1223 drc0_in: port@0 {
1224 #address-cells = <1>;
1225 #size-cells = <0>;
1226 reg = <0>;
1227
1228 drc0_in_be0: endpoint@0 {
1229 reg = <0>;
1230 remote-endpoint = <&be0_out_drc0>;
1231 };
1232 };
1233
1234 drc0_out: port@1 {
1235 #address-cells = <1>;
1236 #size-cells = <0>;
1237 reg = <1>;
1238
1239 drc0_out_tcon0: endpoint@0 {
1240 reg = <0>;
1241 remote-endpoint = <&tcon0_in_drc0>;
1242 };
Chen-Yu Tsai25132732017-09-08 15:50:16 +08001243
1244 drc0_out_tcon1: endpoint@1 {
1245 reg = <1>;
1246 remote-endpoint = <&tcon1_in_drc0>;
1247 };
Chen-Yu Tsai6d0e5b72016-10-20 11:43:42 +08001248 };
1249 };
1250 };
1251
Maxime Ripard5841f6c2017-10-05 12:49:36 +02001252 rtc: rtc@1f00000 {
Chen-Yu Tsai5e700432014-07-30 20:56:06 +08001253 compatible = "allwinner,sun6i-a31-rtc";
1254 reg = <0x01f00000 0x54>;
Maxime Ripard19882b82014-12-16 22:59:58 +01001255 interrupts = <GIC_SPI 40 IRQ_TYPE_LEVEL_HIGH>,
1256 <GIC_SPI 41 IRQ_TYPE_LEVEL_HIGH>;
Chen-Yu Tsai5e700432014-07-30 20:56:06 +08001257 };
1258
Chen-Yu Tsai626c0a02017-06-06 13:59:29 +08001259 nmi_intc: interrupt-controller@1f00c00 {
1260 compatible = "allwinner,sun6i-a31-r-intc";
Maxime Ripard28240d22014-04-17 10:29:35 +02001261 interrupt-controller;
1262 #interrupt-cells = <2>;
Chen-Yu Tsai626c0a02017-06-06 13:59:29 +08001263 reg = <0x01f00c00 0x400>;
Maxime Ripard19882b82014-12-16 22:59:58 +01001264 interrupts = <GIC_SPI 32 IRQ_TYPE_LEVEL_HIGH>;
Maxime Ripard28240d22014-04-17 10:29:35 +02001265 };
1266
Maxime Ripard5841f6c2017-10-05 12:49:36 +02001267 prcm@1f01400 {
Hans de Goedea42ea602014-04-13 13:41:02 +02001268 compatible = "allwinner,sun6i-a31-prcm";
1269 reg = <0x01f01400 0x200>;
Boris BREZILLONcc08f5e2014-05-14 14:38:21 +02001270
1271 ar100: ar100_clk {
1272 compatible = "allwinner,sun6i-a31-ar100-clk";
1273 #clock-cells = <0>;
Chen-Yu Tsai78a9f0d2016-08-25 14:22:00 +08001274 clocks = <&osc32k>, <&osc24M>,
1275 <&ccu CLK_PLL_PERIPH>,
1276 <&ccu CLK_PLL_PERIPH>;
Boris BREZILLONcc08f5e2014-05-14 14:38:21 +02001277 clock-output-names = "ar100";
1278 };
1279
1280 ahb0: ahb0_clk {
1281 compatible = "fixed-factor-clock";
1282 #clock-cells = <0>;
1283 clock-div = <1>;
1284 clock-mult = <1>;
1285 clocks = <&ar100>;
1286 clock-output-names = "ahb0";
1287 };
1288
1289 apb0: apb0_clk {
1290 compatible = "allwinner,sun6i-a31-apb0-clk";
1291 #clock-cells = <0>;
1292 clocks = <&ahb0>;
1293 clock-output-names = "apb0";
1294 };
1295
1296 apb0_gates: apb0_gates_clk {
1297 compatible = "allwinner,sun6i-a31-apb0-gates-clk";
1298 #clock-cells = <1>;
1299 clocks = <&apb0>;
1300 clock-output-names = "apb0_pio", "apb0_ir",
1301 "apb0_timer", "apb0_p2wi",
1302 "apb0_uart", "apb0_1wire",
1303 "apb0_i2c";
1304 };
1305
Hans de Goede9b5c6e02014-12-17 18:18:19 +01001306 ir_clk: ir_clk {
1307 #clock-cells = <0>;
1308 compatible = "allwinner,sun4i-a10-mod0-clk";
1309 clocks = <&osc32k>, <&osc24M>;
1310 clock-output-names = "ir";
1311 };
1312
Boris BREZILLONcc08f5e2014-05-14 14:38:21 +02001313 apb0_rst: apb0_rst {
1314 compatible = "allwinner,sun6i-a31-clock-reset";
1315 #reset-cells = <1>;
1316 };
Hans de Goedea42ea602014-04-13 13:41:02 +02001317 };
1318
Maxime Ripard5841f6c2017-10-05 12:49:36 +02001319 cpucfg@1f01c00 {
Maxime Ripard81ee4292013-11-03 10:30:12 +01001320 compatible = "allwinner,sun6i-a31-cpuconfig";
1321 reg = <0x01f01c00 0x300>;
1322 };
Boris BREZILLON209394a2014-05-13 16:03:03 +02001323
Maxime Ripard5841f6c2017-10-05 12:49:36 +02001324 ir: ir@1f02000 {
Hans de Goede4ac367b2014-12-29 12:09:24 +01001325 compatible = "allwinner,sun5i-a13-ir";
1326 clocks = <&apb0_gates 1>, <&ir_clk>;
1327 clock-names = "apb", "ir";
1328 resets = <&apb0_rst 1>;
Maxime Ripard19882b82014-12-16 22:59:58 +01001329 interrupts = <GIC_SPI 37 IRQ_TYPE_LEVEL_HIGH>;
Hans de Goede4ac367b2014-12-29 12:09:24 +01001330 reg = <0x01f02000 0x40>;
1331 status = "disabled";
1332 };
1333
Maxime Ripard5841f6c2017-10-05 12:49:36 +02001334 r_pio: pinctrl@1f02c00 {
Boris BREZILLON209394a2014-05-13 16:03:03 +02001335 compatible = "allwinner,sun6i-a31-r-pinctrl";
1336 reg = <0x01f02c00 0x400>;
Maxime Ripard19882b82014-12-16 22:59:58 +01001337 interrupts = <GIC_SPI 45 IRQ_TYPE_LEVEL_HIGH>,
1338 <GIC_SPI 46 IRQ_TYPE_LEVEL_HIGH>;
Maxime Ripardbe7bc6b2016-10-19 11:15:27 +02001339 clocks = <&apb0_gates 0>, <&osc24M>, <&osc32k>;
1340 clock-names = "apb", "hosc", "losc";
Boris BREZILLON209394a2014-05-13 16:03:03 +02001341 resets = <&apb0_rst 0>;
1342 gpio-controller;
1343 interrupt-controller;
Hans de Goede6d55d332015-10-15 16:28:45 +02001344 #interrupt-cells = <3>;
Boris BREZILLON209394a2014-05-13 16:03:03 +02001345 #size-cells = <0>;
1346 #gpio-cells = <3>;
Hans de Goededbbcd882014-11-23 14:38:14 +01001347
1348 ir_pins_a: ir@0 {
Maxime Ripard1edcd362016-09-23 14:28:10 +03001349 pins = "PL4";
1350 function = "s_ir";
Hans de Goededbbcd882014-11-23 14:38:14 +01001351 };
Boris BREZILLONfcd60132015-03-10 19:59:12 +08001352
1353 p2wi_pins: p2wi {
Maxime Ripard1edcd362016-09-23 14:28:10 +03001354 pins = "PL0", "PL1";
1355 function = "s_p2wi";
Boris BREZILLONfcd60132015-03-10 19:59:12 +08001356 };
1357 };
1358
Maxime Ripard5841f6c2017-10-05 12:49:36 +02001359 p2wi: i2c@1f03400 {
Boris BREZILLONfcd60132015-03-10 19:59:12 +08001360 compatible = "allwinner,sun6i-a31-p2wi";
1361 reg = <0x01f03400 0x400>;
1362 interrupts = <GIC_SPI 39 IRQ_TYPE_LEVEL_HIGH>;
1363 clocks = <&apb0_gates 3>;
1364 clock-frequency = <100000>;
1365 resets = <&apb0_rst 3>;
1366 pinctrl-names = "default";
1367 pinctrl-0 = <&p2wi_pins>;
1368 status = "disabled";
1369 #address-cells = <1>;
1370 #size-cells = <0>;
Boris BREZILLON209394a2014-05-13 16:03:03 +02001371 };
Maxime Ripard8aed3b32013-03-10 16:09:06 +01001372 };
1373};