blob: 2f63ae861e6819318ce9b17db442de143655cb8f [file] [log] [blame]
Maxime Ripard4790ecf2013-07-17 10:07:10 +02001/*
2 * Copyright 2013 Maxime Ripard
3 *
4 * Maxime Ripard <maxime.ripard@free-electrons.com>
5 *
Maxime Ripard394c56c2014-09-02 19:25:26 +02006 * This file is dual-licensed: you can use it either under the terms
7 * of the GPL or the X11 license, at your option. Note that this dual
8 * licensing only applies to this file, and not this project as a
9 * whole.
Maxime Ripard4790ecf2013-07-17 10:07:10 +020010 *
Maxime Ripard5186d832014-10-17 11:38:23 +020011 * a) This file is free software; you can redistribute it and/or
Maxime Ripard394c56c2014-09-02 19:25:26 +020012 * modify it under the terms of the GNU General Public License as
13 * published by the Free Software Foundation; either version 2 of the
14 * License, or (at your option) any later version.
15 *
Maxime Ripard5186d832014-10-17 11:38:23 +020016 * This file is distributed in the hope that it will be useful,
Maxime Ripard394c56c2014-09-02 19:25:26 +020017 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 * GNU General Public License for more details.
20 *
Maxime Ripard394c56c2014-09-02 19:25:26 +020021 * Or, alternatively,
22 *
23 * b) Permission is hereby granted, free of charge, to any person
24 * obtaining a copy of this software and associated documentation
25 * files (the "Software"), to deal in the Software without
26 * restriction, including without limitation the rights to use,
27 * copy, modify, merge, publish, distribute, sublicense, and/or
28 * sell copies of the Software, and to permit persons to whom the
29 * Software is furnished to do so, subject to the following
30 * conditions:
31 *
32 * The above copyright notice and this permission notice shall be
33 * included in all copies or substantial portions of the Software.
34 *
35 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
36 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
37 * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
38 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
39 * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
40 * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
41 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
42 * OTHER DEALINGS IN THE SOFTWARE.
Maxime Ripard4790ecf2013-07-17 10:07:10 +020043 */
44
Maxime Ripard71455702014-12-16 22:59:54 +010045#include "skeleton.dtsi"
Maxime Ripard4790ecf2013-07-17 10:07:10 +020046
Maxime Ripard19882b82014-12-16 22:59:58 +010047#include <dt-bindings/interrupt-controller/arm-gic.h>
Chen-Yu Tsaib6d34242015-01-12 12:34:03 +080048#include <dt-bindings/thermal/thermal.h>
Maxime Ripard1f9f6a72014-12-16 22:59:56 +010049#include <dt-bindings/dma/sun4i-a10.h>
Priit Laesf18698e2017-08-23 20:23:32 +030050#include <dt-bindings/clock/sun4i-a10-ccu.h>
51#include <dt-bindings/reset/sun4i-a10-ccu.h>
Maxime Ripard4790ecf2013-07-17 10:07:10 +020052
53/ {
54 interrupt-parent = <&gic>;
55
Emilio Lópeze751cce2013-11-16 15:17:29 -030056 aliases {
Chen-Yu Tsai18428f72014-02-10 18:35:54 +080057 ethernet0 = &gmac;
Emilio Lópeze751cce2013-11-16 15:17:29 -030058 };
59
Hans de Goede8efc5c22014-11-14 16:34:37 +010060 chosen {
61 #address-cells = <1>;
62 #size-cells = <1>;
63 ranges;
64
Hans de Goedea9f8cda2014-11-18 12:07:13 +010065 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";
Priit Laesf18698e2017-08-23 20:23:32 +030069 clocks = <&ccu CLK_AHB_LCD0>, <&ccu CLK_AHB_HDMI0>,
70 <&ccu CLK_AHB_DE_BE0>, <&ccu CLK_DE_BE0>,
71 <&ccu CLK_TCON0_CH1>, <&ccu CLK_DRAM_DE_BE0>,
72 <&ccu CLK_HDMI>;
Hans de Goede8efc5c22014-11-14 16:34:37 +010073 status = "disabled";
74 };
Hans de Goedefd18c7e2015-01-19 14:05:12 +010075
76 framebuffer@1 {
77 compatible = "allwinner,simple-framebuffer",
78 "simple-framebuffer";
79 allwinner,pipeline = "de_be0-lcd0";
Priit Laesf18698e2017-08-23 20:23:32 +030080 clocks = <&ccu CLK_AHB_LCD0>, <&ccu CLK_AHB_DE_BE0>,
81 <&ccu CLK_DE_BE0>, <&ccu CLK_TCON0_CH0>,
82 <&ccu CLK_DRAM_DE_BE0>;
Hans de Goedefd18c7e2015-01-19 14:05:12 +010083 status = "disabled";
84 };
85
86 framebuffer@2 {
87 compatible = "allwinner,simple-framebuffer",
88 "simple-framebuffer";
89 allwinner,pipeline = "de_be0-lcd0-tve0";
Priit Laesf18698e2017-08-23 20:23:32 +030090 clocks = <&ccu CLK_AHB_TVE0>, <&ccu CLK_AHB_LCD0>,
91 <&ccu CLK_AHB_DE_BE0>,
92 <&ccu CLK_DE_BE0>, <&ccu CLK_TCON0_CH1>,
93 <&ccu CLK_DRAM_TVE0>, <&ccu CLK_DRAM_DE_BE0>;
Hans de Goedefd18c7e2015-01-19 14:05:12 +010094 status = "disabled";
95 };
Hans de Goede8efc5c22014-11-14 16:34:37 +010096 };
97
Maxime Ripard4790ecf2013-07-17 10:07:10 +020098 cpus {
99 #address-cells = <1>;
100 #size-cells = <0>;
101
Chen-Yu Tsaid96b7162015-01-06 10:35:16 +0800102 cpu0: cpu@0 {
Maxime Ripard4790ecf2013-07-17 10:07:10 +0200103 compatible = "arm,cortex-a7";
104 device_type = "cpu";
105 reg = <0>;
Priit Laesf18698e2017-08-23 20:23:32 +0300106 clocks = <&ccu CLK_CPU>;
Chen-Yu Tsaid96b7162015-01-06 10:35:16 +0800107 clock-latency = <244144>; /* 8 32k periods */
108 operating-points = <
Maxime Ripard8358aad2015-05-03 11:54:35 +0200109 /* kHz uV */
110 960000 1400000
111 912000 1400000
112 864000 1300000
113 720000 1200000
114 528000 1100000
115 312000 1000000
Timo Sigurdssoneaeef1a2015-08-04 23:08:01 +0200116 144000 1000000
Chen-Yu Tsaid96b7162015-01-06 10:35:16 +0800117 >;
118 #cooling-cells = <2>;
119 cooling-min-level = <0>;
Chen-Yu Tsai370a9b52015-03-25 00:53:27 +0800120 cooling-max-level = <6>;
Maxime Ripard4790ecf2013-07-17 10:07:10 +0200121 };
122
123 cpu@1 {
124 compatible = "arm,cortex-a7";
125 device_type = "cpu";
126 reg = <1>;
127 };
128 };
129
Chen-Yu Tsaib6d34242015-01-12 12:34:03 +0800130 thermal-zones {
131 cpu_thermal {
132 /* milliseconds */
133 polling-delay-passive = <250>;
134 polling-delay = <1000>;
135 thermal-sensors = <&rtp>;
136
137 cooling-maps {
138 map0 {
139 trip = <&cpu_alert0>;
140 cooling-device = <&cpu0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
141 };
142 };
143
144 trips {
145 cpu_alert0: cpu_alert0 {
146 /* milliCelsius */
147 temperature = <75000>;
148 hysteresis = <2000>;
149 type = "passive";
150 };
151
152 cpu_crit: cpu_crit {
153 /* milliCelsius */
154 temperature = <100000>;
155 hysteresis = <2000>;
156 type = "critical";
157 };
158 };
159 };
160 };
161
Maxime Ripard4790ecf2013-07-17 10:07:10 +0200162 memory {
163 reg = <0x40000000 0x80000000>;
164 };
165
Marc Zyngier79027632014-02-18 14:04:44 +0000166 timer {
167 compatible = "arm,armv7-timer";
Maxime Ripard19882b82014-12-16 22:59:58 +0100168 interrupts = <GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
169 <GIC_PPI 14 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
170 <GIC_PPI 11 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
171 <GIC_PPI 10 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>;
Marc Zyngier79027632014-02-18 14:04:44 +0000172 };
173
Maxime Riparde29ea4d2014-04-17 21:54:41 +0200174 pmu {
175 compatible = "arm,cortex-a7-pmu", "arm,cortex-a15-pmu";
Maxime Ripard19882b82014-12-16 22:59:58 +0100176 interrupts = <GIC_SPI 120 IRQ_TYPE_LEVEL_HIGH>,
177 <GIC_SPI 121 IRQ_TYPE_LEVEL_HIGH>;
Maxime Riparde29ea4d2014-04-17 21:54:41 +0200178 };
179
Maxime Ripard4790ecf2013-07-17 10:07:10 +0200180 clocks {
181 #address-cells = <1>;
182 #size-cells = <1>;
183 ranges;
184
Maxime Ripard5841f6c2017-10-05 12:49:36 +0200185 osc24M: clk@1c20050 {
Maxime Ripard4790ecf2013-07-17 10:07:10 +0200186 #clock-cells = <0>;
Priit Laesf18698e2017-08-23 20:23:32 +0300187 compatible = "fixed-clock";
Maxime Ripard4790ecf2013-07-17 10:07:10 +0200188 clock-frequency = <24000000>;
Chen-Yu Tsai06067a22014-02-03 09:51:44 +0800189 clock-output-names = "osc24M";
Maxime Ripard4790ecf2013-07-17 10:07:10 +0200190 };
191
Chen-Yu Tsai673fac72014-01-01 10:30:47 +0800192 osc32k: clk@0 {
Maxime Ripard4790ecf2013-07-17 10:07:10 +0200193 #clock-cells = <0>;
194 compatible = "fixed-clock";
195 clock-frequency = <32768>;
Chen-Yu Tsai673fac72014-01-01 10:30:47 +0800196 clock-output-names = "osc32k";
Maxime Ripard4790ecf2013-07-17 10:07:10 +0200197 };
Maxime Ripardde7dc932013-07-25 21:12:52 +0200198
Chen-Yu Tsai0aff0372014-01-01 10:30:48 +0800199 /*
Maxime Ripardd8cacaa2015-05-03 11:53:07 +0200200 * The following two are dummy clocks, placeholders
201 * used in the gmac_tx clock. The gmac driver will
202 * choose one parent depending on the PHY interface
203 * mode, using clk_set_rate auto-reparenting.
204 *
205 * The actual TX clock rate is not controlled by the
206 * gmac_tx clock.
Chen-Yu Tsaidaed5a82014-02-10 18:35:48 +0800207 */
Priit Laesf18698e2017-08-23 20:23:32 +0300208 mii_phy_tx_clk: clk@1 {
Chen-Yu Tsaidaed5a82014-02-10 18:35:48 +0800209 #clock-cells = <0>;
210 compatible = "fixed-clock";
211 clock-frequency = <25000000>;
212 clock-output-names = "mii_phy_tx";
213 };
214
Priit Laesf18698e2017-08-23 20:23:32 +0300215 gmac_int_tx_clk: clk@2 {
Chen-Yu Tsaidaed5a82014-02-10 18:35:48 +0800216 #clock-cells = <0>;
217 compatible = "fixed-clock";
218 clock-frequency = <125000000>;
219 clock-output-names = "gmac_int_tx";
220 };
221
Maxime Ripard5841f6c2017-10-05 12:49:36 +0200222 gmac_tx_clk: clk@1c20164 {
Chen-Yu Tsaidaed5a82014-02-10 18:35:48 +0800223 #clock-cells = <0>;
224 compatible = "allwinner,sun7i-a20-gmac-clk";
225 reg = <0x01c20164 0x4>;
226 clocks = <&mii_phy_tx_clk>, <&gmac_int_tx_clk>;
227 clock-output-names = "gmac_tx";
228 };
Maxime Ripard4790ecf2013-07-17 10:07:10 +0200229 };
230
Maxime Ripard5841f6c2017-10-05 12:49:36 +0200231 soc@1c00000 {
Maxime Ripard4790ecf2013-07-17 10:07:10 +0200232 compatible = "simple-bus";
233 #address-cells = <1>;
234 #size-cells = <1>;
235 ranges;
236
Maxime Ripard5841f6c2017-10-05 12:49:36 +0200237 sram-controller@1c00000 {
Maxime Ripard0eb14a82015-03-26 15:53:44 +0100238 compatible = "allwinner,sun4i-a10-sram-controller";
239 reg = <0x01c00000 0x30>;
240 #address-cells = <1>;
241 #size-cells = <1>;
242 ranges;
243
244 sram_a: sram@00000000 {
245 compatible = "mmio-sram";
246 reg = <0x00000000 0xc000>;
247 #address-cells = <1>;
248 #size-cells = <1>;
249 ranges = <0 0x00000000 0xc000>;
250
251 emac_sram: sram-section@8000 {
252 compatible = "allwinner,sun4i-a10-sram-a3-a4";
253 reg = <0x8000 0x4000>;
254 status = "disabled";
255 };
256 };
257
Maxime Ripard5841f6c2017-10-05 12:49:36 +0200258 sram_d: sram@10000 {
Maxime Ripard0eb14a82015-03-26 15:53:44 +0100259 compatible = "mmio-sram";
260 reg = <0x00010000 0x1000>;
261 #address-cells = <1>;
262 #size-cells = <1>;
263 ranges = <0 0x00010000 0x1000>;
264
265 otg_sram: sram-section@0000 {
266 compatible = "allwinner,sun4i-a10-sram-d";
267 reg = <0x0000 0x1000>;
268 status = "disabled";
269 };
270 };
271 };
272
Maxime Ripard5841f6c2017-10-05 12:49:36 +0200273 nmi_intc: interrupt-controller@1c00030 {
Carlo Caione8ff973a2014-03-19 20:21:18 +0100274 compatible = "allwinner,sun7i-a20-sc-nmi";
275 interrupt-controller;
276 #interrupt-cells = <2>;
277 reg = <0x01c00030 0x0c>;
Maxime Ripard19882b82014-12-16 22:59:58 +0100278 interrupts = <GIC_SPI 0 IRQ_TYPE_LEVEL_HIGH>;
Carlo Caione8ff973a2014-03-19 20:21:18 +0100279 };
280
Maxime Ripard5841f6c2017-10-05 12:49:36 +0200281 dma: dma-controller@1c02000 {
Emilio López316e0b02014-08-04 17:09:59 -0300282 compatible = "allwinner,sun4i-a10-dma";
283 reg = <0x01c02000 0x1000>;
Maxime Ripard19882b82014-12-16 22:59:58 +0100284 interrupts = <GIC_SPI 27 IRQ_TYPE_LEVEL_HIGH>;
Priit Laesf18698e2017-08-23 20:23:32 +0300285 clocks = <&ccu CLK_AHB_DMA>;
Emilio López316e0b02014-08-04 17:09:59 -0300286 #dma-cells = <2>;
287 };
288
Maxime Ripard5841f6c2017-10-05 12:49:36 +0200289 nfc: nand@1c03000 {
Boris Brezillonb2a83ad2016-06-14 14:17:38 +0300290 compatible = "allwinner,sun4i-a10-nand";
291 reg = <0x01c03000 0x1000>;
292 interrupts = <GIC_SPI 37 IRQ_TYPE_LEVEL_HIGH>;
Priit Laesf18698e2017-08-23 20:23:32 +0300293 clocks = <&ccu CLK_AHB_NAND>, <&ccu CLK_NAND>;
Boris Brezillonb2a83ad2016-06-14 14:17:38 +0300294 clock-names = "ahb", "mod";
295 dmas = <&dma SUN4I_DMA_DEDICATED 3>;
296 dma-names = "rxtx";
297 status = "disabled";
298 #address-cells = <1>;
299 #size-cells = <0>;
300 };
301
Maxime Ripard5841f6c2017-10-05 12:49:36 +0200302 spi0: spi@1c05000 {
Maxime Ripard36ab3e72014-02-22 22:35:54 +0100303 compatible = "allwinner,sun4i-a10-spi";
304 reg = <0x01c05000 0x1000>;
Maxime Ripard19882b82014-12-16 22:59:58 +0100305 interrupts = <GIC_SPI 10 IRQ_TYPE_LEVEL_HIGH>;
Priit Laesf18698e2017-08-23 20:23:32 +0300306 clocks = <&ccu CLK_AHB_SPI0>, <&ccu CLK_SPI0>;
Maxime Ripard36ab3e72014-02-22 22:35:54 +0100307 clock-names = "ahb", "mod";
Maxime Ripard1f9f6a72014-12-16 22:59:56 +0100308 dmas = <&dma SUN4I_DMA_DEDICATED 27>,
309 <&dma SUN4I_DMA_DEDICATED 26>;
Emilio Lópezffec7212014-08-04 17:10:02 -0300310 dma-names = "rx", "tx";
Maxime Ripard36ab3e72014-02-22 22:35:54 +0100311 status = "disabled";
312 #address-cells = <1>;
313 #size-cells = <0>;
Emmanuel Vadot9bbe3552016-12-27 11:28:07 +0100314 num-cs = <4>;
Maxime Ripard36ab3e72014-02-22 22:35:54 +0100315 };
316
Maxime Ripard5841f6c2017-10-05 12:49:36 +0200317 spi1: spi@1c06000 {
Maxime Ripard36ab3e72014-02-22 22:35:54 +0100318 compatible = "allwinner,sun4i-a10-spi";
319 reg = <0x01c06000 0x1000>;
Maxime Ripard19882b82014-12-16 22:59:58 +0100320 interrupts = <GIC_SPI 11 IRQ_TYPE_LEVEL_HIGH>;
Priit Laesf18698e2017-08-23 20:23:32 +0300321 clocks = <&ccu CLK_AHB_SPI1>, <&ccu CLK_SPI1>;
Maxime Ripard36ab3e72014-02-22 22:35:54 +0100322 clock-names = "ahb", "mod";
Maxime Ripard1f9f6a72014-12-16 22:59:56 +0100323 dmas = <&dma SUN4I_DMA_DEDICATED 9>,
324 <&dma SUN4I_DMA_DEDICATED 8>;
Emilio Lópezffec7212014-08-04 17:10:02 -0300325 dma-names = "rx", "tx";
Maxime Ripard36ab3e72014-02-22 22:35:54 +0100326 status = "disabled";
327 #address-cells = <1>;
328 #size-cells = <0>;
Emmanuel Vadot9bbe3552016-12-27 11:28:07 +0100329 num-cs = <1>;
Maxime Ripard36ab3e72014-02-22 22:35:54 +0100330 };
331
Maxime Ripard5841f6c2017-10-05 12:49:36 +0200332 emac: ethernet@1c0b000 {
Maxime Ripard1c70e092014-02-02 14:49:13 +0100333 compatible = "allwinner,sun4i-a10-emac";
Maxime Ripard2e804d02013-09-11 11:10:06 +0200334 reg = <0x01c0b000 0x1000>;
Maxime Ripard19882b82014-12-16 22:59:58 +0100335 interrupts = <GIC_SPI 55 IRQ_TYPE_LEVEL_HIGH>;
Priit Laesf18698e2017-08-23 20:23:32 +0300336 clocks = <&ccu CLK_AHB_EMAC>;
Maxime Ripard0eb14a82015-03-26 15:53:44 +0100337 allwinner,sram = <&emac_sram 1>;
Maxime Ripard2e804d02013-09-11 11:10:06 +0200338 status = "disabled";
339 };
340
Maxime Ripard5841f6c2017-10-05 12:49:36 +0200341 mdio: mdio@1c0b080 {
Maxime Ripard1c70e092014-02-02 14:49:13 +0100342 compatible = "allwinner,sun4i-a10-mdio";
Maxime Ripard2e804d02013-09-11 11:10:06 +0200343 reg = <0x01c0b080 0x14>;
344 status = "disabled";
345 #address-cells = <1>;
346 #size-cells = <0>;
347 };
348
Maxime Ripard5841f6c2017-10-05 12:49:36 +0200349 mmc0: mmc@1c0f000 {
Hans de Goede57af7112016-07-30 16:25:48 +0200350 compatible = "allwinner,sun7i-a20-mmc";
Hans de Goededd29ce52014-05-02 17:57:26 +0200351 reg = <0x01c0f000 0x1000>;
Priit Laesf18698e2017-08-23 20:23:32 +0300352 clocks = <&ccu CLK_AHB_MMC0>,
353 <&ccu CLK_MMC0>,
354 <&ccu CLK_MMC0_OUTPUT>,
355 <&ccu CLK_MMC0_SAMPLE>;
Maxime Ripardd8c3a392014-07-11 19:39:06 +0200356 clock-names = "ahb",
357 "mmc",
358 "output",
359 "sample";
Maxime Ripard19882b82014-12-16 22:59:58 +0100360 interrupts = <GIC_SPI 32 IRQ_TYPE_LEVEL_HIGH>;
Hans de Goededd29ce52014-05-02 17:57:26 +0200361 status = "disabled";
Hans de Goede4c1bb9c2015-03-10 16:27:09 +0100362 #address-cells = <1>;
363 #size-cells = <0>;
Hans de Goededd29ce52014-05-02 17:57:26 +0200364 };
365
Maxime Ripard5841f6c2017-10-05 12:49:36 +0200366 mmc1: mmc@1c10000 {
Hans de Goede57af7112016-07-30 16:25:48 +0200367 compatible = "allwinner,sun7i-a20-mmc";
Hans de Goededd29ce52014-05-02 17:57:26 +0200368 reg = <0x01c10000 0x1000>;
Priit Laesf18698e2017-08-23 20:23:32 +0300369 clocks = <&ccu CLK_AHB_MMC1>,
370 <&ccu CLK_MMC1>,
371 <&ccu CLK_MMC1_OUTPUT>,
372 <&ccu CLK_MMC1_SAMPLE>;
Maxime Ripardd8c3a392014-07-11 19:39:06 +0200373 clock-names = "ahb",
374 "mmc",
375 "output",
376 "sample";
Maxime Ripard19882b82014-12-16 22:59:58 +0100377 interrupts = <GIC_SPI 33 IRQ_TYPE_LEVEL_HIGH>;
Hans de Goededd29ce52014-05-02 17:57:26 +0200378 status = "disabled";
Hans de Goede4c1bb9c2015-03-10 16:27:09 +0100379 #address-cells = <1>;
380 #size-cells = <0>;
Hans de Goededd29ce52014-05-02 17:57:26 +0200381 };
382
Maxime Ripard5841f6c2017-10-05 12:49:36 +0200383 mmc2: mmc@1c11000 {
Hans de Goede57af7112016-07-30 16:25:48 +0200384 compatible = "allwinner,sun7i-a20-mmc";
Hans de Goededd29ce52014-05-02 17:57:26 +0200385 reg = <0x01c11000 0x1000>;
Priit Laesf18698e2017-08-23 20:23:32 +0300386 clocks = <&ccu CLK_AHB_MMC2>,
387 <&ccu CLK_MMC2>,
388 <&ccu CLK_MMC2_OUTPUT>,
389 <&ccu CLK_MMC2_SAMPLE>;
Maxime Ripardd8c3a392014-07-11 19:39:06 +0200390 clock-names = "ahb",
391 "mmc",
392 "output",
393 "sample";
Maxime Ripard19882b82014-12-16 22:59:58 +0100394 interrupts = <GIC_SPI 34 IRQ_TYPE_LEVEL_HIGH>;
Hans de Goededd29ce52014-05-02 17:57:26 +0200395 status = "disabled";
Hans de Goede4c1bb9c2015-03-10 16:27:09 +0100396 #address-cells = <1>;
397 #size-cells = <0>;
Hans de Goededd29ce52014-05-02 17:57:26 +0200398 };
399
Maxime Ripard5841f6c2017-10-05 12:49:36 +0200400 mmc3: mmc@1c12000 {
Hans de Goede57af7112016-07-30 16:25:48 +0200401 compatible = "allwinner,sun7i-a20-mmc";
Hans de Goededd29ce52014-05-02 17:57:26 +0200402 reg = <0x01c12000 0x1000>;
Priit Laesf18698e2017-08-23 20:23:32 +0300403 clocks = <&ccu CLK_AHB_MMC3>,
404 <&ccu CLK_MMC3>,
405 <&ccu CLK_MMC3_OUTPUT>,
406 <&ccu CLK_MMC3_SAMPLE>;
Maxime Ripardd8c3a392014-07-11 19:39:06 +0200407 clock-names = "ahb",
408 "mmc",
409 "output",
410 "sample";
Maxime Ripard19882b82014-12-16 22:59:58 +0100411 interrupts = <GIC_SPI 35 IRQ_TYPE_LEVEL_HIGH>;
Hans de Goededd29ce52014-05-02 17:57:26 +0200412 status = "disabled";
Hans de Goede4c1bb9c2015-03-10 16:27:09 +0100413 #address-cells = <1>;
414 #size-cells = <0>;
Hans de Goededd29ce52014-05-02 17:57:26 +0200415 };
416
Maxime Ripard5841f6c2017-10-05 12:49:36 +0200417 usb_otg: usb@1c13000 {
Roman Byshkocbb3ff12014-10-22 00:14:03 +0200418 compatible = "allwinner,sun4i-a10-musb";
419 reg = <0x01c13000 0x0400>;
Priit Laesf18698e2017-08-23 20:23:32 +0300420 clocks = <&ccu CLK_AHB_OTG>;
Roman Byshkocbb3ff12014-10-22 00:14:03 +0200421 interrupts = <GIC_SPI 38 IRQ_TYPE_LEVEL_HIGH>;
422 interrupt-names = "mc";
423 phys = <&usbphy 0>;
424 phy-names = "usb";
425 extcon = <&usbphy 0>;
426 allwinner,sram = <&otg_sram 1>;
427 status = "disabled";
428 };
429
Maxime Ripard5841f6c2017-10-05 12:49:36 +0200430 usbphy: phy@1c13400 {
Roman Byshko9debd0a2014-03-01 20:26:25 +0100431 #phy-cells = <1>;
432 compatible = "allwinner,sun7i-a20-usb-phy";
433 reg = <0x01c13400 0x10 0x01c14800 0x4 0x01c1c800 0x4>;
434 reg-names = "phy_ctrl", "pmu1", "pmu2";
Priit Laesf18698e2017-08-23 20:23:32 +0300435 clocks = <&ccu CLK_USB_PHY>;
Roman Byshko9debd0a2014-03-01 20:26:25 +0100436 clock-names = "usb_phy";
Priit Laesf18698e2017-08-23 20:23:32 +0300437 resets = <&ccu RST_USB_PHY0>,
438 <&ccu RST_USB_PHY1>,
439 <&ccu RST_USB_PHY2>;
Roman Byshko134c60a2014-11-10 19:55:08 +0100440 reset-names = "usb0_reset", "usb1_reset", "usb2_reset";
Roman Byshko9debd0a2014-03-01 20:26:25 +0100441 status = "disabled";
442 };
443
Maxime Ripard5841f6c2017-10-05 12:49:36 +0200444 ehci0: usb@1c14000 {
Roman Byshko9debd0a2014-03-01 20:26:25 +0100445 compatible = "allwinner,sun7i-a20-ehci", "generic-ehci";
446 reg = <0x01c14000 0x100>;
Maxime Ripard19882b82014-12-16 22:59:58 +0100447 interrupts = <GIC_SPI 39 IRQ_TYPE_LEVEL_HIGH>;
Priit Laesf18698e2017-08-23 20:23:32 +0300448 clocks = <&ccu CLK_AHB_EHCI0>;
Roman Byshko9debd0a2014-03-01 20:26:25 +0100449 phys = <&usbphy 1>;
450 phy-names = "usb";
451 status = "disabled";
452 };
453
Maxime Ripard5841f6c2017-10-05 12:49:36 +0200454 ohci0: usb@1c14400 {
Roman Byshko9debd0a2014-03-01 20:26:25 +0100455 compatible = "allwinner,sun7i-a20-ohci", "generic-ohci";
456 reg = <0x01c14400 0x100>;
Maxime Ripard19882b82014-12-16 22:59:58 +0100457 interrupts = <GIC_SPI 64 IRQ_TYPE_LEVEL_HIGH>;
Priit Laesf18698e2017-08-23 20:23:32 +0300458 clocks = <&ccu CLK_USB_OHCI0>, <&ccu CLK_AHB_OHCI0>;
Roman Byshko9debd0a2014-03-01 20:26:25 +0100459 phys = <&usbphy 1>;
460 phy-names = "usb";
461 status = "disabled";
462 };
463
Maxime Ripard5841f6c2017-10-05 12:49:36 +0200464 crypto: crypto-engine@1c15000 {
Antoine Tenart9bea19a2017-06-01 21:39:05 +0200465 compatible = "allwinner,sun7i-a20-crypto",
466 "allwinner,sun4i-a10-crypto";
LABBE Corentin110d4e22015-07-17 16:39:39 +0200467 reg = <0x01c15000 0x1000>;
468 interrupts = <GIC_SPI 86 IRQ_TYPE_LEVEL_HIGH>;
Priit Laesf18698e2017-08-23 20:23:32 +0300469 clocks = <&ccu CLK_AHB_SS>, <&ccu CLK_SS>;
LABBE Corentin110d4e22015-07-17 16:39:39 +0200470 clock-names = "ahb", "mod";
471 };
472
Maxime Ripard5841f6c2017-10-05 12:49:36 +0200473 spi2: spi@1c17000 {
Maxime Ripard36ab3e72014-02-22 22:35:54 +0100474 compatible = "allwinner,sun4i-a10-spi";
475 reg = <0x01c17000 0x1000>;
Maxime Ripard19882b82014-12-16 22:59:58 +0100476 interrupts = <GIC_SPI 12 IRQ_TYPE_LEVEL_HIGH>;
Priit Laesf18698e2017-08-23 20:23:32 +0300477 clocks = <&ccu CLK_AHB_SPI2>, <&ccu CLK_SPI2>;
Maxime Ripard36ab3e72014-02-22 22:35:54 +0100478 clock-names = "ahb", "mod";
Maxime Ripard1f9f6a72014-12-16 22:59:56 +0100479 dmas = <&dma SUN4I_DMA_DEDICATED 29>,
480 <&dma SUN4I_DMA_DEDICATED 28>;
Emilio Lópezffec7212014-08-04 17:10:02 -0300481 dma-names = "rx", "tx";
Maxime Ripard36ab3e72014-02-22 22:35:54 +0100482 status = "disabled";
483 #address-cells = <1>;
484 #size-cells = <0>;
Emmanuel Vadot9bbe3552016-12-27 11:28:07 +0100485 num-cs = <1>;
Maxime Ripard36ab3e72014-02-22 22:35:54 +0100486 };
487
Maxime Ripard5841f6c2017-10-05 12:49:36 +0200488 ahci: sata@1c18000 {
Hans de Goede902febf2014-03-01 20:26:22 +0100489 compatible = "allwinner,sun4i-a10-ahci";
490 reg = <0x01c18000 0x1000>;
Maxime Ripard19882b82014-12-16 22:59:58 +0100491 interrupts = <GIC_SPI 56 IRQ_TYPE_LEVEL_HIGH>;
Priit Laesf18698e2017-08-23 20:23:32 +0300492 clocks = <&ccu CLK_AHB_SATA>, <&ccu CLK_SATA>;
Hans de Goede902febf2014-03-01 20:26:22 +0100493 status = "disabled";
494 };
495
Maxime Ripard5841f6c2017-10-05 12:49:36 +0200496 ehci1: usb@1c1c000 {
Roman Byshko9debd0a2014-03-01 20:26:25 +0100497 compatible = "allwinner,sun7i-a20-ehci", "generic-ehci";
498 reg = <0x01c1c000 0x100>;
Maxime Ripard19882b82014-12-16 22:59:58 +0100499 interrupts = <GIC_SPI 40 IRQ_TYPE_LEVEL_HIGH>;
Priit Laesf18698e2017-08-23 20:23:32 +0300500 clocks = <&ccu CLK_AHB_EHCI1>;
Roman Byshko9debd0a2014-03-01 20:26:25 +0100501 phys = <&usbphy 2>;
502 phy-names = "usb";
503 status = "disabled";
504 };
505
Maxime Ripard5841f6c2017-10-05 12:49:36 +0200506 ohci1: usb@1c1c400 {
Roman Byshko9debd0a2014-03-01 20:26:25 +0100507 compatible = "allwinner,sun7i-a20-ohci", "generic-ohci";
508 reg = <0x01c1c400 0x100>;
Maxime Ripard19882b82014-12-16 22:59:58 +0100509 interrupts = <GIC_SPI 65 IRQ_TYPE_LEVEL_HIGH>;
Priit Laesf18698e2017-08-23 20:23:32 +0300510 clocks = <&ccu CLK_USB_OHCI1>, <&ccu CLK_AHB_OHCI1>;
Roman Byshko9debd0a2014-03-01 20:26:25 +0100511 phys = <&usbphy 2>;
512 phy-names = "usb";
513 status = "disabled";
514 };
515
Maxime Ripard5841f6c2017-10-05 12:49:36 +0200516 spi3: spi@1c1f000 {
Maxime Ripard36ab3e72014-02-22 22:35:54 +0100517 compatible = "allwinner,sun4i-a10-spi";
518 reg = <0x01c1f000 0x1000>;
Maxime Ripard19882b82014-12-16 22:59:58 +0100519 interrupts = <GIC_SPI 50 IRQ_TYPE_LEVEL_HIGH>;
Priit Laesf18698e2017-08-23 20:23:32 +0300520 clocks = <&ccu CLK_AHB_SPI3>, <&ccu CLK_SPI3>;
Maxime Ripard36ab3e72014-02-22 22:35:54 +0100521 clock-names = "ahb", "mod";
Maxime Ripard1f9f6a72014-12-16 22:59:56 +0100522 dmas = <&dma SUN4I_DMA_DEDICATED 31>,
523 <&dma SUN4I_DMA_DEDICATED 30>;
Emilio Lópezffec7212014-08-04 17:10:02 -0300524 dma-names = "rx", "tx";
Maxime Ripard36ab3e72014-02-22 22:35:54 +0100525 status = "disabled";
526 #address-cells = <1>;
527 #size-cells = <0>;
Emmanuel Vadot9bbe3552016-12-27 11:28:07 +0100528 num-cs = <1>;
Maxime Ripard36ab3e72014-02-22 22:35:54 +0100529 };
530
Maxime Ripard5841f6c2017-10-05 12:49:36 +0200531 ccu: clock@1c20000 {
Priit Laesf18698e2017-08-23 20:23:32 +0300532 compatible = "allwinner,sun7i-a20-ccu";
533 reg = <0x01c20000 0x400>;
534 clocks = <&osc24M>, <&osc32k>;
535 clock-names = "hosc", "losc";
536 #clock-cells = <1>;
537 #reset-cells = <1>;
538 };
539
Maxime Ripard5841f6c2017-10-05 12:49:36 +0200540 pio: pinctrl@1c20800 {
Maxime Ripard17eac032013-07-24 23:46:11 +0200541 compatible = "allwinner,sun7i-a20-pinctrl";
542 reg = <0x01c20800 0x400>;
Maxime Ripard19882b82014-12-16 22:59:58 +0100543 interrupts = <GIC_SPI 28 IRQ_TYPE_LEVEL_HIGH>;
Priit Laesf18698e2017-08-23 20:23:32 +0300544 clocks = <&ccu CLK_APB0_PIO>, <&osc24M>, <&osc32k>;
Maxime Ripardbe7bc6b2016-10-19 11:15:27 +0200545 clock-names = "apb", "hosc", "losc";
Maxime Ripard17eac032013-07-24 23:46:11 +0200546 gpio-controller;
547 interrupt-controller;
Maxime Ripardb03e0812015-06-17 11:44:24 +0200548 #interrupt-cells = <3>;
Maxime Ripard17eac032013-07-24 23:46:11 +0200549 #gpio-cells = <3>;
Maxime Ripard9f229ba2013-07-25 00:09:47 +0200550
Patrick Menschel86daa3d2017-04-03 19:00:14 +0200551 can0_pins_a: can0@0 {
552 pins = "PH20", "PH21";
553 function = "can";
554 };
555
Aleksei Mamlind130f2e2016-06-10 11:05:19 +0300556 clk_out_a_pins_a: clk_out_a@0 {
Maxime Ripard1edcd362016-09-23 14:28:10 +0300557 pins = "PI12";
558 function = "clk_out_a";
Alexandre Bellonifd7898a2014-04-28 18:17:12 +0200559 };
560
Aleksei Mamlind130f2e2016-06-10 11:05:19 +0300561 clk_out_b_pins_a: clk_out_b@0 {
Maxime Ripard1edcd362016-09-23 14:28:10 +0300562 pins = "PI13";
563 function = "clk_out_b";
Alexandre Bellonifd7898a2014-04-28 18:17:12 +0200564 };
565
Aleksei Mamlind130f2e2016-06-10 11:05:19 +0300566 emac_pins_a: emac0@0 {
Maxime Ripard1edcd362016-09-23 14:28:10 +0300567 pins = "PA0", "PA1", "PA2",
568 "PA3", "PA4", "PA5", "PA6",
569 "PA7", "PA8", "PA9", "PA10",
570 "PA11", "PA12", "PA13", "PA14",
571 "PA15", "PA16";
572 function = "emac";
Maxime Ripard9f229ba2013-07-25 00:09:47 +0200573 };
574
Aleksei Mamlind130f2e2016-06-10 11:05:19 +0300575 gmac_pins_mii_a: gmac_mii@0 {
Maxime Ripard1edcd362016-09-23 14:28:10 +0300576 pins = "PA0", "PA1", "PA2",
577 "PA3", "PA4", "PA5", "PA6",
578 "PA7", "PA8", "PA9", "PA10",
579 "PA11", "PA12", "PA13", "PA14",
580 "PA15", "PA16";
581 function = "gmac";
Chen-Yu Tsai4261ec42014-01-14 22:49:50 +0800582 };
583
Aleksei Mamlind130f2e2016-06-10 11:05:19 +0300584 gmac_pins_rgmii_a: gmac_rgmii@0 {
Maxime Ripard1edcd362016-09-23 14:28:10 +0300585 pins = "PA0", "PA1", "PA2",
586 "PA3", "PA4", "PA5", "PA6",
587 "PA7", "PA8", "PA10",
588 "PA11", "PA12", "PA13",
589 "PA15", "PA16";
590 function = "gmac";
Aleksei Mamlind130f2e2016-06-10 11:05:19 +0300591 /*
592 * data lines in RGMII mode use DDR mode
593 * and need a higher signal drive strength
594 */
Maxime Ripard1edcd362016-09-23 14:28:10 +0300595 drive-strength = <40>;
Maxime Ripard9f229ba2013-07-25 00:09:47 +0200596 };
Maxime Ripard756084c2013-09-11 11:10:07 +0200597
Maxime Riparde5496a32013-08-31 23:08:49 +0200598 i2c0_pins_a: i2c0@0 {
Maxime Ripard1edcd362016-09-23 14:28:10 +0300599 pins = "PB0", "PB1";
600 function = "i2c0";
Maxime Riparde5496a32013-08-31 23:08:49 +0200601 };
602
603 i2c1_pins_a: i2c1@0 {
Maxime Ripard1edcd362016-09-23 14:28:10 +0300604 pins = "PB18", "PB19";
605 function = "i2c1";
Maxime Riparde5496a32013-08-31 23:08:49 +0200606 };
607
608 i2c2_pins_a: i2c2@0 {
Maxime Ripard1edcd362016-09-23 14:28:10 +0300609 pins = "PB20", "PB21";
610 function = "i2c2";
Maxime Riparde5496a32013-08-31 23:08:49 +0200611 };
612
Wills Wang7b5bace2014-08-19 15:33:00 +0800613 i2c3_pins_a: i2c3@0 {
Maxime Ripard1edcd362016-09-23 14:28:10 +0300614 pins = "PI0", "PI1";
615 function = "i2c3";
Wills Wang7b5bace2014-08-19 15:33:00 +0800616 };
617
Aleksei Mamlind130f2e2016-06-10 11:05:19 +0300618 ir0_rx_pins_a: ir0@0 {
Maxime Ripard1edcd362016-09-23 14:28:10 +0300619 pins = "PB4";
620 function = "ir0";
Aleksei Mamlind130f2e2016-06-10 11:05:19 +0300621 };
622
623 ir0_tx_pins_a: ir0@1 {
Maxime Ripard1edcd362016-09-23 14:28:10 +0300624 pins = "PB3";
625 function = "ir0";
Aleksei Mamlind130f2e2016-06-10 11:05:19 +0300626 };
627
628 ir1_rx_pins_a: ir1@0 {
Maxime Ripard1edcd362016-09-23 14:28:10 +0300629 pins = "PB23";
630 function = "ir1";
Aleksei Mamlind130f2e2016-06-10 11:05:19 +0300631 };
632
633 ir1_tx_pins_a: ir1@1 {
Maxime Ripard1edcd362016-09-23 14:28:10 +0300634 pins = "PB22";
635 function = "ir1";
Aleksei Mamlind130f2e2016-06-10 11:05:19 +0300636 };
637
638 mmc0_pins_a: mmc0@0 {
Maxime Ripard1edcd362016-09-23 14:28:10 +0300639 pins = "PF0", "PF1", "PF2",
640 "PF3", "PF4", "PF5";
641 function = "mmc0";
642 drive-strength = <30>;
Chen-Yu Tsai80ee72e2016-11-17 17:34:38 +0800643 bias-pull-up;
Aleksei Mamlind130f2e2016-06-10 11:05:19 +0300644 };
645
Aleksei Mamlind130f2e2016-06-10 11:05:19 +0300646 mmc2_pins_a: mmc2@0 {
Maxime Ripard1edcd362016-09-23 14:28:10 +0300647 pins = "PC6", "PC7", "PC8",
648 "PC9", "PC10", "PC11";
649 function = "mmc2";
650 drive-strength = <30>;
651 bias-pull-up;
Aleksei Mamlind130f2e2016-06-10 11:05:19 +0300652 };
653
654 mmc3_pins_a: mmc3@0 {
Maxime Ripard1edcd362016-09-23 14:28:10 +0300655 pins = "PI4", "PI5", "PI6",
656 "PI7", "PI8", "PI9";
657 function = "mmc3";
658 drive-strength = <30>;
Chen-Yu Tsai80ee72e2016-11-17 17:34:38 +0800659 bias-pull-up;
Aleksei Mamlind130f2e2016-06-10 11:05:19 +0300660 };
661
662 ps20_pins_a: ps20@0 {
Maxime Ripard1edcd362016-09-23 14:28:10 +0300663 pins = "PI20", "PI21";
664 function = "ps2";
Maxime Ripard756084c2013-09-11 11:10:07 +0200665 };
Chen-Yu Tsaif2e07592014-01-01 10:30:50 +0800666
Aleksei Mamlind130f2e2016-06-10 11:05:19 +0300667 ps21_pins_a: ps21@0 {
Maxime Ripard1edcd362016-09-23 14:28:10 +0300668 pins = "PH12", "PH13";
669 function = "ps2";
Chen-Yu Tsaif2e07592014-01-01 10:30:50 +0800670 };
671
Aleksei Mamlind130f2e2016-06-10 11:05:19 +0300672 pwm0_pins_a: pwm0@0 {
Maxime Ripard1edcd362016-09-23 14:28:10 +0300673 pins = "PB2";
674 function = "pwm";
Chen-Yu Tsaif2e07592014-01-01 10:30:50 +0800675 };
Chen-Yu Tsai129ccbc2014-02-10 18:35:50 +0800676
Aleksei Mamlind130f2e2016-06-10 11:05:19 +0300677 pwm1_pins_a: pwm1@0 {
Maxime Ripard1edcd362016-09-23 14:28:10 +0300678 pins = "PI3";
679 function = "pwm";
Chen-Yu Tsai129ccbc2014-02-10 18:35:50 +0800680 };
681
Aleksei Mamlind130f2e2016-06-10 11:05:19 +0300682 spdif_tx_pins_a: spdif@0 {
Maxime Ripard1edcd362016-09-23 14:28:10 +0300683 pins = "PB13";
684 function = "spdif";
685 bias-pull-up;
Chen-Yu Tsai129ccbc2014-02-10 18:35:50 +0800686 };
Maxime Ripard412f2c62014-02-22 22:35:58 +0100687
Hans de Goede2dad53b2014-10-01 09:26:04 +0200688 spi0_pins_a: spi0@0 {
Maxime Ripard1edcd362016-09-23 14:28:10 +0300689 pins = "PI11", "PI12", "PI13";
690 function = "spi0";
Maxime Ripardf3022c62015-05-03 09:25:41 +0200691 };
692
693 spi0_cs0_pins_a: spi0_cs0@0 {
Maxime Ripard1edcd362016-09-23 14:28:10 +0300694 pins = "PI10";
695 function = "spi0";
Maxime Ripardf3022c62015-05-03 09:25:41 +0200696 };
697
698 spi0_cs1_pins_a: spi0_cs1@0 {
Maxime Ripard1edcd362016-09-23 14:28:10 +0300699 pins = "PI14";
700 function = "spi0";
Hans de Goede2dad53b2014-10-01 09:26:04 +0200701 };
702
Maxime Ripard412f2c62014-02-22 22:35:58 +0100703 spi1_pins_a: spi1@0 {
Maxime Ripard1edcd362016-09-23 14:28:10 +0300704 pins = "PI17", "PI18", "PI19";
705 function = "spi1";
Maxime Ripardf3022c62015-05-03 09:25:41 +0200706 };
707
708 spi1_cs0_pins_a: spi1_cs0@0 {
Maxime Ripard1edcd362016-09-23 14:28:10 +0300709 pins = "PI16";
710 function = "spi1";
Maxime Ripard412f2c62014-02-22 22:35:58 +0100711 };
712
713 spi2_pins_a: spi2@0 {
Maxime Ripard1edcd362016-09-23 14:28:10 +0300714 pins = "PC20", "PC21", "PC22";
715 function = "spi2";
Maxime Ripard412f2c62014-02-22 22:35:58 +0100716 };
Hans de Goede11fbedf2014-05-02 17:57:27 +0200717
Wills Wang7b5bace2014-08-19 15:33:00 +0800718 spi2_pins_b: spi2@1 {
Maxime Ripard1edcd362016-09-23 14:28:10 +0300719 pins = "PB15", "PB16", "PB17";
720 function = "spi2";
Maxime Ripardf3022c62015-05-03 09:25:41 +0200721 };
722
723 spi2_cs0_pins_a: spi2_cs0@0 {
Maxime Ripard1edcd362016-09-23 14:28:10 +0300724 pins = "PC19";
725 function = "spi2";
Maxime Ripardf3022c62015-05-03 09:25:41 +0200726 };
727
728 spi2_cs0_pins_b: spi2_cs0@1 {
Maxime Ripard1edcd362016-09-23 14:28:10 +0300729 pins = "PB14";
730 function = "spi2";
Wills Wang7b5bace2014-08-19 15:33:00 +0800731 };
732
Aleksei Mamlind130f2e2016-06-10 11:05:19 +0300733 uart0_pins_a: uart0@0 {
Maxime Ripard1edcd362016-09-23 14:28:10 +0300734 pins = "PB22", "PB23";
735 function = "uart0";
Hans de Goede11fbedf2014-05-02 17:57:27 +0200736 };
Alexander Bersenev0fc2b7a2014-06-09 00:08:11 +0600737
Aleksei Mamlind130f2e2016-06-10 11:05:19 +0300738 uart2_pins_a: uart2@0 {
Maxime Ripard1edcd362016-09-23 14:28:10 +0300739 pins = "PI16", "PI17", "PI18", "PI19";
740 function = "uart2";
Alexander Bersenev0fc2b7a2014-06-09 00:08:11 +0600741 };
742
Aleksei Mamlind130f2e2016-06-10 11:05:19 +0300743 uart3_pins_a: uart3@0 {
Maxime Ripard1edcd362016-09-23 14:28:10 +0300744 pins = "PG6", "PG7", "PG8", "PG9";
745 function = "uart3";
Marcus Cooper469a22e2015-05-02 13:36:20 +0200746 };
747
Aleksei Mamlind130f2e2016-06-10 11:05:19 +0300748 uart3_pins_b: uart3@1 {
Maxime Ripard1edcd362016-09-23 14:28:10 +0300749 pins = "PH0", "PH1";
750 function = "uart3";
Marcus Cooper469a22e2015-05-02 13:36:20 +0200751 };
752
Aleksei Mamlind130f2e2016-06-10 11:05:19 +0300753 uart4_pins_a: uart4@0 {
Maxime Ripard1edcd362016-09-23 14:28:10 +0300754 pins = "PG10", "PG11";
755 function = "uart4";
Alexander Bersenev0fc2b7a2014-06-09 00:08:11 +0600756 };
Vishnu Patekar1e8d1562015-01-25 19:10:09 +0530757
Aleksei Mamlind130f2e2016-06-10 11:05:19 +0300758 uart4_pins_b: uart4@1 {
Maxime Ripard1edcd362016-09-23 14:28:10 +0300759 pins = "PH4", "PH5";
760 function = "uart4";
Aleksei Mamlind130f2e2016-06-10 11:05:19 +0300761 };
762
763 uart5_pins_a: uart5@0 {
Maxime Ripard1edcd362016-09-23 14:28:10 +0300764 pins = "PI10", "PI11";
765 function = "uart5";
Aleksei Mamlind130f2e2016-06-10 11:05:19 +0300766 };
767
768 uart6_pins_a: uart6@0 {
Maxime Ripard1edcd362016-09-23 14:28:10 +0300769 pins = "PI12", "PI13";
770 function = "uart6";
Aleksei Mamlind130f2e2016-06-10 11:05:19 +0300771 };
772
773 uart7_pins_a: uart7@0 {
Maxime Ripard1edcd362016-09-23 14:28:10 +0300774 pins = "PI20", "PI21";
775 function = "uart7";
Vishnu Patekar1e8d1562015-01-25 19:10:09 +0530776 };
Maxime Ripard17eac032013-07-24 23:46:11 +0200777 };
778
Maxime Ripard5841f6c2017-10-05 12:49:36 +0200779 timer@1c20c00 {
Maxime Ripardb4f26442014-02-06 10:40:32 +0100780 compatible = "allwinner,sun4i-a10-timer";
Maxime Ripard4790ecf2013-07-17 10:07:10 +0200781 reg = <0x01c20c00 0x90>;
Maxime Ripard19882b82014-12-16 22:59:58 +0100782 interrupts = <GIC_SPI 22 IRQ_TYPE_LEVEL_HIGH>,
783 <GIC_SPI 23 IRQ_TYPE_LEVEL_HIGH>,
784 <GIC_SPI 24 IRQ_TYPE_LEVEL_HIGH>,
785 <GIC_SPI 25 IRQ_TYPE_LEVEL_HIGH>,
786 <GIC_SPI 67 IRQ_TYPE_LEVEL_HIGH>,
787 <GIC_SPI 68 IRQ_TYPE_LEVEL_HIGH>;
Maxime Ripard4790ecf2013-07-17 10:07:10 +0200788 clocks = <&osc24M>;
789 };
790
Maxime Ripard5841f6c2017-10-05 12:49:36 +0200791 wdt: watchdog@1c20c90 {
Maxime Ripardca5d04d2014-02-07 22:29:26 +0100792 compatible = "allwinner,sun4i-a10-wdt";
Maxime Ripard4790ecf2013-07-17 10:07:10 +0200793 reg = <0x01c20c90 0x10>;
794 };
795
Maxime Ripard5841f6c2017-10-05 12:49:36 +0200796 rtc: rtc@1c20d00 {
Carlo Caioneb5d905c2013-10-16 20:30:26 +0200797 compatible = "allwinner,sun7i-a20-rtc";
798 reg = <0x01c20d00 0x20>;
Maxime Ripard19882b82014-12-16 22:59:58 +0100799 interrupts = <GIC_SPI 24 IRQ_TYPE_LEVEL_HIGH>;
Carlo Caioneb5d905c2013-10-16 20:30:26 +0200800 };
801
Maxime Ripard5841f6c2017-10-05 12:49:36 +0200802 pwm: pwm@1c20e00 {
Alexandre Belloni8ec40c22014-04-28 18:17:13 +0200803 compatible = "allwinner,sun7i-a20-pwm";
804 reg = <0x01c20e00 0xc>;
805 clocks = <&osc24M>;
806 #pwm-cells = <3>;
807 status = "disabled";
808 };
809
Maxime Ripard5841f6c2017-10-05 12:49:36 +0200810 spdif: spdif@1c21000 {
Marcus Coopera34d6ce2016-03-21 21:01:04 +0100811 #sound-dai-cells = <0>;
812 compatible = "allwinner,sun4i-a10-spdif";
813 reg = <0x01c21000 0x400>;
814 interrupts = <GIC_SPI 13 IRQ_TYPE_LEVEL_HIGH>;
Priit Laesf18698e2017-08-23 20:23:32 +0300815 clocks = <&ccu CLK_APB0_SPDIF>, <&ccu CLK_SPDIF>;
Marcus Coopera34d6ce2016-03-21 21:01:04 +0100816 clock-names = "apb", "spdif";
817 dmas = <&dma SUN4I_DMA_NORMAL 2>,
818 <&dma SUN4I_DMA_NORMAL 2>;
819 dma-names = "rx", "tx";
820 status = "disabled";
821 };
822
Maxime Ripard5841f6c2017-10-05 12:49:36 +0200823 ir0: ir@1c21800 {
Hans de Goede1715a382014-06-30 23:57:54 +0200824 compatible = "allwinner,sun4i-a10-ir";
Priit Laesf18698e2017-08-23 20:23:32 +0300825 clocks = <&ccu CLK_APB0_IR0>, <&ccu CLK_IR0>;
Alexander Bersenevc1a0ee32014-06-21 17:04:05 +0600826 clock-names = "apb", "ir";
Maxime Ripard19882b82014-12-16 22:59:58 +0100827 interrupts = <GIC_SPI 5 IRQ_TYPE_LEVEL_HIGH>;
Alexander Bersenevc1a0ee32014-06-21 17:04:05 +0600828 reg = <0x01c21800 0x40>;
829 status = "disabled";
830 };
831
Maxime Ripard5841f6c2017-10-05 12:49:36 +0200832 ir1: ir@1c21c00 {
Hans de Goede1715a382014-06-30 23:57:54 +0200833 compatible = "allwinner,sun4i-a10-ir";
Priit Laesf18698e2017-08-23 20:23:32 +0300834 clocks = <&ccu CLK_APB0_IR1>, <&ccu CLK_IR1>;
Alexander Bersenevc1a0ee32014-06-21 17:04:05 +0600835 clock-names = "apb", "ir";
Maxime Ripard19882b82014-12-16 22:59:58 +0100836 interrupts = <GIC_SPI 6 IRQ_TYPE_LEVEL_HIGH>;
Alexander Bersenevc1a0ee32014-06-21 17:04:05 +0600837 reg = <0x01c21c00 0x40>;
838 status = "disabled";
839 };
840
Maxime Ripard5841f6c2017-10-05 12:49:36 +0200841 i2s1: i2s@1c22000 {
Maxime Ripard6a706352015-09-19 16:48:00 +0200842 #sound-dai-cells = <0>;
843 compatible = "allwinner,sun4i-a10-i2s";
844 reg = <0x01c22000 0x400>;
845 interrupts = <GIC_SPI 87 IRQ_TYPE_LEVEL_HIGH>;
Priit Laesf18698e2017-08-23 20:23:32 +0300846 clocks = <&ccu CLK_APB0_I2S1>, <&ccu CLK_I2S1>;
Maxime Ripard6a706352015-09-19 16:48:00 +0200847 clock-names = "apb", "mod";
848 dmas = <&dma SUN4I_DMA_NORMAL 4>,
849 <&dma SUN4I_DMA_NORMAL 4>;
850 dma-names = "rx", "tx";
851 status = "disabled";
852 };
853
Maxime Ripard5841f6c2017-10-05 12:49:36 +0200854 i2s0: i2s@1c22400 {
Maxime Ripard6a706352015-09-19 16:48:00 +0200855 #sound-dai-cells = <0>;
856 compatible = "allwinner,sun4i-a10-i2s";
857 reg = <0x01c22400 0x400>;
858 interrupts = <GIC_SPI 16 IRQ_TYPE_LEVEL_HIGH>;
Priit Laesf18698e2017-08-23 20:23:32 +0300859 clocks = <&ccu CLK_APB0_I2S0>, <&ccu CLK_I2S0>;
Maxime Ripard6a706352015-09-19 16:48:00 +0200860 clock-names = "apb", "mod";
861 dmas = <&dma SUN4I_DMA_NORMAL 3>,
862 <&dma SUN4I_DMA_NORMAL 3>;
863 dma-names = "rx", "tx";
864 status = "disabled";
865 };
866
Maxime Ripard5841f6c2017-10-05 12:49:36 +0200867 lradc: lradc@1c22800 {
Hans de Goedea6a2d642014-12-23 11:13:22 +0100868 compatible = "allwinner,sun4i-a10-lradc-keys";
869 reg = <0x01c22800 0x100>;
Maxime Ripard19882b82014-12-16 22:59:58 +0100870 interrupts = <GIC_SPI 31 IRQ_TYPE_LEVEL_HIGH>;
Hans de Goedea6a2d642014-12-23 11:13:22 +0100871 status = "disabled";
872 };
873
Maxime Ripard5841f6c2017-10-05 12:49:36 +0200874 codec: codec@1c22c00 {
Emilio Lópezd5ce1072014-08-18 01:07:55 -0300875 #sound-dai-cells = <0>;
876 compatible = "allwinner,sun7i-a20-codec";
877 reg = <0x01c22c00 0x40>;
878 interrupts = <GIC_SPI 30 IRQ_TYPE_LEVEL_HIGH>;
Priit Laesf18698e2017-08-23 20:23:32 +0300879 clocks = <&ccu CLK_APB0_CODEC>, <&ccu CLK_CODEC>;
Emilio Lópezd5ce1072014-08-18 01:07:55 -0300880 clock-names = "apb", "codec";
881 dmas = <&dma SUN4I_DMA_NORMAL 19>,
882 <&dma SUN4I_DMA_NORMAL 19>;
883 dma-names = "rx", "tx";
884 status = "disabled";
885 };
886
Maxime Ripard5841f6c2017-10-05 12:49:36 +0200887 sid: eeprom@1c23800 {
Oliver Schinagl2bad9692013-09-03 12:33:28 +0200888 compatible = "allwinner,sun7i-a20-sid";
889 reg = <0x01c23800 0x200>;
890 };
891
Maxime Ripard5841f6c2017-10-05 12:49:36 +0200892 i2s2: i2s@1c24400 {
Maxime Ripard6a706352015-09-19 16:48:00 +0200893 #sound-dai-cells = <0>;
894 compatible = "allwinner,sun4i-a10-i2s";
895 reg = <0x01c24400 0x400>;
896 interrupts = <GIC_SPI 90 IRQ_TYPE_LEVEL_HIGH>;
Priit Laesf18698e2017-08-23 20:23:32 +0300897 clocks = <&ccu CLK_APB0_I2S2>, <&ccu CLK_I2S2>;
Maxime Ripard6a706352015-09-19 16:48:00 +0200898 clock-names = "apb", "mod";
899 dmas = <&dma SUN4I_DMA_NORMAL 6>,
900 <&dma SUN4I_DMA_NORMAL 6>;
901 dma-names = "rx", "tx";
902 status = "disabled";
903 };
904
Maxime Ripard5841f6c2017-10-05 12:49:36 +0200905 rtp: rtp@1c25000 {
Hans de Goede8bf1b9b2015-03-08 21:53:42 +0100906 compatible = "allwinner,sun5i-a13-ts";
Hans de Goede00f7ed82013-12-31 17:20:52 +0100907 reg = <0x01c25000 0x100>;
Maxime Ripard19882b82014-12-16 22:59:58 +0100908 interrupts = <GIC_SPI 29 IRQ_TYPE_LEVEL_HIGH>;
Chen-Yu Tsai41e7afb2015-01-06 10:35:15 +0800909 #thermal-sensor-cells = <0>;
Hans de Goede00f7ed82013-12-31 17:20:52 +0100910 };
911
Maxime Ripard5841f6c2017-10-05 12:49:36 +0200912 uart0: serial@1c28000 {
Maxime Ripard4790ecf2013-07-17 10:07:10 +0200913 compatible = "snps,dw-apb-uart";
914 reg = <0x01c28000 0x400>;
Maxime Ripard19882b82014-12-16 22:59:58 +0100915 interrupts = <GIC_SPI 1 IRQ_TYPE_LEVEL_HIGH>;
Maxime Ripard4790ecf2013-07-17 10:07:10 +0200916 reg-shift = <2>;
917 reg-io-width = <4>;
Priit Laesf18698e2017-08-23 20:23:32 +0300918 clocks = <&ccu CLK_APB1_UART0>;
Maxime Ripard4790ecf2013-07-17 10:07:10 +0200919 status = "disabled";
920 };
921
Maxime Ripard5841f6c2017-10-05 12:49:36 +0200922 uart1: serial@1c28400 {
Maxime Ripard4790ecf2013-07-17 10:07:10 +0200923 compatible = "snps,dw-apb-uart";
924 reg = <0x01c28400 0x400>;
Maxime Ripard19882b82014-12-16 22:59:58 +0100925 interrupts = <GIC_SPI 2 IRQ_TYPE_LEVEL_HIGH>;
Maxime Ripard4790ecf2013-07-17 10:07:10 +0200926 reg-shift = <2>;
927 reg-io-width = <4>;
Priit Laesf18698e2017-08-23 20:23:32 +0300928 clocks = <&ccu CLK_APB1_UART1>;
Maxime Ripard4790ecf2013-07-17 10:07:10 +0200929 status = "disabled";
930 };
931
Maxime Ripard5841f6c2017-10-05 12:49:36 +0200932 uart2: serial@1c28800 {
Maxime Ripard4790ecf2013-07-17 10:07:10 +0200933 compatible = "snps,dw-apb-uart";
934 reg = <0x01c28800 0x400>;
Maxime Ripard19882b82014-12-16 22:59:58 +0100935 interrupts = <GIC_SPI 3 IRQ_TYPE_LEVEL_HIGH>;
Maxime Ripard4790ecf2013-07-17 10:07:10 +0200936 reg-shift = <2>;
937 reg-io-width = <4>;
Priit Laesf18698e2017-08-23 20:23:32 +0300938 clocks = <&ccu CLK_APB1_UART2>;
Maxime Ripard4790ecf2013-07-17 10:07:10 +0200939 status = "disabled";
940 };
941
Maxime Ripard5841f6c2017-10-05 12:49:36 +0200942 uart3: serial@1c28c00 {
Maxime Ripard4790ecf2013-07-17 10:07:10 +0200943 compatible = "snps,dw-apb-uart";
944 reg = <0x01c28c00 0x400>;
Maxime Ripard19882b82014-12-16 22:59:58 +0100945 interrupts = <GIC_SPI 4 IRQ_TYPE_LEVEL_HIGH>;
Maxime Ripard4790ecf2013-07-17 10:07:10 +0200946 reg-shift = <2>;
947 reg-io-width = <4>;
Priit Laesf18698e2017-08-23 20:23:32 +0300948 clocks = <&ccu CLK_APB1_UART3>;
Maxime Ripard4790ecf2013-07-17 10:07:10 +0200949 status = "disabled";
950 };
951
Maxime Ripard5841f6c2017-10-05 12:49:36 +0200952 uart4: serial@1c29000 {
Maxime Ripard4790ecf2013-07-17 10:07:10 +0200953 compatible = "snps,dw-apb-uart";
954 reg = <0x01c29000 0x400>;
Maxime Ripard19882b82014-12-16 22:59:58 +0100955 interrupts = <GIC_SPI 17 IRQ_TYPE_LEVEL_HIGH>;
Maxime Ripard4790ecf2013-07-17 10:07:10 +0200956 reg-shift = <2>;
957 reg-io-width = <4>;
Priit Laesf18698e2017-08-23 20:23:32 +0300958 clocks = <&ccu CLK_APB1_UART4>;
Maxime Ripard4790ecf2013-07-17 10:07:10 +0200959 status = "disabled";
960 };
961
Maxime Ripard5841f6c2017-10-05 12:49:36 +0200962 uart5: serial@1c29400 {
Maxime Ripard4790ecf2013-07-17 10:07:10 +0200963 compatible = "snps,dw-apb-uart";
964 reg = <0x01c29400 0x400>;
Maxime Ripard19882b82014-12-16 22:59:58 +0100965 interrupts = <GIC_SPI 18 IRQ_TYPE_LEVEL_HIGH>;
Maxime Ripard4790ecf2013-07-17 10:07:10 +0200966 reg-shift = <2>;
967 reg-io-width = <4>;
Priit Laesf18698e2017-08-23 20:23:32 +0300968 clocks = <&ccu CLK_APB1_UART5>;
Maxime Ripard4790ecf2013-07-17 10:07:10 +0200969 status = "disabled";
970 };
971
Maxime Ripard5841f6c2017-10-05 12:49:36 +0200972 uart6: serial@1c29800 {
Maxime Ripard4790ecf2013-07-17 10:07:10 +0200973 compatible = "snps,dw-apb-uart";
974 reg = <0x01c29800 0x400>;
Maxime Ripard19882b82014-12-16 22:59:58 +0100975 interrupts = <GIC_SPI 19 IRQ_TYPE_LEVEL_HIGH>;
Maxime Ripard4790ecf2013-07-17 10:07:10 +0200976 reg-shift = <2>;
977 reg-io-width = <4>;
Priit Laesf18698e2017-08-23 20:23:32 +0300978 clocks = <&ccu CLK_APB1_UART6>;
Maxime Ripard4790ecf2013-07-17 10:07:10 +0200979 status = "disabled";
980 };
981
Maxime Ripard5841f6c2017-10-05 12:49:36 +0200982 uart7: serial@1c29c00 {
Maxime Ripard4790ecf2013-07-17 10:07:10 +0200983 compatible = "snps,dw-apb-uart";
984 reg = <0x01c29c00 0x400>;
Maxime Ripard19882b82014-12-16 22:59:58 +0100985 interrupts = <GIC_SPI 20 IRQ_TYPE_LEVEL_HIGH>;
Maxime Ripard4790ecf2013-07-17 10:07:10 +0200986 reg-shift = <2>;
987 reg-io-width = <4>;
Priit Laesf18698e2017-08-23 20:23:32 +0300988 clocks = <&ccu CLK_APB1_UART7>;
Maxime Ripard4790ecf2013-07-17 10:07:10 +0200989 status = "disabled";
990 };
991
Maxime Ripard5841f6c2017-10-05 12:49:36 +0200992 ps20: ps2@1c2a000 {
Patrick Menschelcb44b462017-04-04 20:36:30 +0200993 compatible = "allwinner,sun4i-a10-ps2";
994 reg = <0x01c2a000 0x400>;
995 interrupts = <GIC_SPI 62 IRQ_TYPE_LEVEL_HIGH>;
Priit Laesf18698e2017-08-23 20:23:32 +0300996 clocks = <&ccu CLK_APB1_PS20>;
Patrick Menschelcb44b462017-04-04 20:36:30 +0200997 status = "disabled";
998 };
999
Maxime Ripard5841f6c2017-10-05 12:49:36 +02001000 ps21: ps2@1c2a400 {
Patrick Menschelcb44b462017-04-04 20:36:30 +02001001 compatible = "allwinner,sun4i-a10-ps2";
1002 reg = <0x01c2a400 0x400>;
1003 interrupts = <GIC_SPI 63 IRQ_TYPE_LEVEL_HIGH>;
Priit Laesf18698e2017-08-23 20:23:32 +03001004 clocks = <&ccu CLK_APB1_PS21>;
Patrick Menschelcb44b462017-04-04 20:36:30 +02001005 status = "disabled";
1006 };
1007
Maxime Ripard5841f6c2017-10-05 12:49:36 +02001008 i2c0: i2c@1c2ac00 {
Maxime Ripardd8cacaa2015-05-03 11:53:07 +02001009 compatible = "allwinner,sun7i-a20-i2c",
1010 "allwinner,sun4i-a10-i2c";
Maxime Ripard428abbb2013-08-31 23:07:24 +02001011 reg = <0x01c2ac00 0x400>;
Maxime Ripard19882b82014-12-16 22:59:58 +01001012 interrupts = <GIC_SPI 7 IRQ_TYPE_LEVEL_HIGH>;
Priit Laesf18698e2017-08-23 20:23:32 +03001013 clocks = <&ccu CLK_APB1_I2C0>;
Maxime Ripard428abbb2013-08-31 23:07:24 +02001014 status = "disabled";
Hans de Goeded1412ae2014-04-13 13:41:05 +02001015 #address-cells = <1>;
1016 #size-cells = <0>;
Maxime Ripard428abbb2013-08-31 23:07:24 +02001017 };
1018
Maxime Ripard5841f6c2017-10-05 12:49:36 +02001019 i2c1: i2c@1c2b000 {
Maxime Ripardd8cacaa2015-05-03 11:53:07 +02001020 compatible = "allwinner,sun7i-a20-i2c",
1021 "allwinner,sun4i-a10-i2c";
Maxime Ripard428abbb2013-08-31 23:07:24 +02001022 reg = <0x01c2b000 0x400>;
Maxime Ripard19882b82014-12-16 22:59:58 +01001023 interrupts = <GIC_SPI 8 IRQ_TYPE_LEVEL_HIGH>;
Priit Laesf18698e2017-08-23 20:23:32 +03001024 clocks = <&ccu CLK_APB1_I2C1>;
Maxime Ripard428abbb2013-08-31 23:07:24 +02001025 status = "disabled";
Hans de Goeded1412ae2014-04-13 13:41:05 +02001026 #address-cells = <1>;
1027 #size-cells = <0>;
Maxime Ripard428abbb2013-08-31 23:07:24 +02001028 };
1029
Maxime Ripard5841f6c2017-10-05 12:49:36 +02001030 i2c2: i2c@1c2b400 {
Maxime Ripardd8cacaa2015-05-03 11:53:07 +02001031 compatible = "allwinner,sun7i-a20-i2c",
1032 "allwinner,sun4i-a10-i2c";
Maxime Ripard428abbb2013-08-31 23:07:24 +02001033 reg = <0x01c2b400 0x400>;
Maxime Ripard19882b82014-12-16 22:59:58 +01001034 interrupts = <GIC_SPI 9 IRQ_TYPE_LEVEL_HIGH>;
Priit Laesf18698e2017-08-23 20:23:32 +03001035 clocks = <&ccu CLK_APB1_I2C2>;
Maxime Ripard428abbb2013-08-31 23:07:24 +02001036 status = "disabled";
Hans de Goeded1412ae2014-04-13 13:41:05 +02001037 #address-cells = <1>;
1038 #size-cells = <0>;
Maxime Ripard428abbb2013-08-31 23:07:24 +02001039 };
1040
Maxime Ripard5841f6c2017-10-05 12:49:36 +02001041 i2c3: i2c@1c2b800 {
Maxime Ripardd8cacaa2015-05-03 11:53:07 +02001042 compatible = "allwinner,sun7i-a20-i2c",
1043 "allwinner,sun4i-a10-i2c";
Maxime Ripard428abbb2013-08-31 23:07:24 +02001044 reg = <0x01c2b800 0x400>;
Maxime Ripard19882b82014-12-16 22:59:58 +01001045 interrupts = <GIC_SPI 88 IRQ_TYPE_LEVEL_HIGH>;
Priit Laesf18698e2017-08-23 20:23:32 +03001046 clocks = <&ccu CLK_APB1_I2C3>;
Maxime Ripard428abbb2013-08-31 23:07:24 +02001047 status = "disabled";
Hans de Goeded1412ae2014-04-13 13:41:05 +02001048 #address-cells = <1>;
1049 #size-cells = <0>;
Maxime Ripard428abbb2013-08-31 23:07:24 +02001050 };
1051
Maxime Ripard5841f6c2017-10-05 12:49:36 +02001052 can0: can@1c2bc00 {
Patrick Menscheld2a20ef2017-04-03 19:00:13 +02001053 compatible = "allwinner,sun7i-a20-can",
1054 "allwinner,sun4i-a10-can";
1055 reg = <0x01c2bc00 0x400>;
1056 interrupts = <GIC_SPI 26 IRQ_TYPE_LEVEL_HIGH>;
Priit Laesf18698e2017-08-23 20:23:32 +03001057 clocks = <&ccu CLK_APB1_CAN>;
Patrick Menscheld2a20ef2017-04-03 19:00:13 +02001058 status = "disabled";
1059 };
1060
Maxime Ripard5841f6c2017-10-05 12:49:36 +02001061 i2c4: i2c@1c2c000 {
Maxime Ripardd8cacaa2015-05-03 11:53:07 +02001062 compatible = "allwinner,sun7i-a20-i2c",
1063 "allwinner,sun4i-a10-i2c";
Maxime Riparda3867042014-04-18 21:13:08 +02001064 reg = <0x01c2c000 0x400>;
Maxime Ripard19882b82014-12-16 22:59:58 +01001065 interrupts = <GIC_SPI 89 IRQ_TYPE_LEVEL_HIGH>;
Priit Laesf18698e2017-08-23 20:23:32 +03001066 clocks = <&ccu CLK_APB1_I2C4>;
Maxime Ripard428abbb2013-08-31 23:07:24 +02001067 status = "disabled";
Hans de Goeded1412ae2014-04-13 13:41:05 +02001068 #address-cells = <1>;
1069 #size-cells = <0>;
Maxime Ripard428abbb2013-08-31 23:07:24 +02001070 };
1071
Maxime Ripard5841f6c2017-10-05 12:49:36 +02001072 gmac: ethernet@1c50000 {
Chen-Yu Tsaic40b8d52014-02-10 18:35:49 +08001073 compatible = "allwinner,sun7i-a20-gmac";
1074 reg = <0x01c50000 0x10000>;
Maxime Ripard19882b82014-12-16 22:59:58 +01001075 interrupts = <GIC_SPI 85 IRQ_TYPE_LEVEL_HIGH>;
Chen-Yu Tsaic40b8d52014-02-10 18:35:49 +08001076 interrupt-names = "macirq";
Priit Laesf18698e2017-08-23 20:23:32 +03001077 clocks = <&ccu CLK_AHB_GMAC>, <&gmac_tx_clk>;
Chen-Yu Tsaic40b8d52014-02-10 18:35:49 +08001078 clock-names = "stmmaceth", "allwinner_gmac_tx";
1079 snps,pbl = <2>;
1080 snps,fixed-burst;
1081 snps,force_sf_dma_mode;
1082 status = "disabled";
1083 #address-cells = <1>;
1084 #size-cells = <0>;
1085 };
1086
Maxime Ripard5841f6c2017-10-05 12:49:36 +02001087 hstimer@1c60000 {
Maxime Ripard31f8ad32013-11-07 12:01:48 +01001088 compatible = "allwinner,sun7i-a20-hstimer";
1089 reg = <0x01c60000 0x1000>;
Maxime Ripard19882b82014-12-16 22:59:58 +01001090 interrupts = <GIC_SPI 81 IRQ_TYPE_LEVEL_HIGH>,
1091 <GIC_SPI 82 IRQ_TYPE_LEVEL_HIGH>,
1092 <GIC_SPI 83 IRQ_TYPE_LEVEL_HIGH>,
1093 <GIC_SPI 84 IRQ_TYPE_LEVEL_HIGH>;
Priit Laesf18698e2017-08-23 20:23:32 +03001094 clocks = <&ccu CLK_AHB_HSTIMER>;
Maxime Ripard31f8ad32013-11-07 12:01:48 +01001095 };
1096
Maxime Ripard5841f6c2017-10-05 12:49:36 +02001097 gic: interrupt-controller@1c81000 {
Marc Zyngier387720c2017-01-18 09:27:28 +00001098 compatible = "arm,gic-400", "arm,cortex-a7-gic", "arm,cortex-a15-gic";
Maxime Ripard4790ecf2013-07-17 10:07:10 +02001099 reg = <0x01c81000 0x1000>,
Marc Zyngier387720c2017-01-18 09:27:28 +00001100 <0x01c82000 0x2000>,
Maxime Ripard4790ecf2013-07-17 10:07:10 +02001101 <0x01c84000 0x2000>,
1102 <0x01c86000 0x2000>;
1103 interrupt-controller;
1104 #interrupt-cells = <3>;
Maxime Ripard19882b82014-12-16 22:59:58 +01001105 interrupts = <GIC_PPI 9 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>;
Maxime Ripard4790ecf2013-07-17 10:07:10 +02001106 };
1107 };
1108};