blob: 3a1c6b45c9a1cd3e6ef699d9c3b45fdb2712fcfd [file] [log] [blame]
Stefan Roese7423d2d2012-11-26 15:46:12 +01001/*
2 * Copyright 2012 Stefan Roese
3 * Stefan Roese <sr@denx.de>
4 *
Maxime Ripard033ba3d2014-09-02 19:25:26 +02005 * This file is dual-licensed: you can use it either under the terms
6 * of the GPL or the X11 license, at your option. Note that this dual
7 * licensing only applies to this file, and not this project as a
8 * whole.
Stefan Roese7423d2d2012-11-26 15:46:12 +01009 *
Maxime Ripard033ba3d2014-09-02 19:25:26 +020010 * a) This library is free software; you can redistribute it and/or
11 * modify it under the terms of the GNU General Public License as
12 * published by the Free Software Foundation; either version 2 of the
13 * License, or (at your option) any later version.
14 *
15 * This library is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU General Public License for more details.
19 *
Maxime Ripard033ba3d2014-09-02 19:25:26 +020020 * Or, alternatively,
21 *
22 * b) Permission is hereby granted, free of charge, to any person
23 * obtaining a copy of this software and associated documentation
24 * files (the "Software"), to deal in the Software without
25 * restriction, including without limitation the rights to use,
26 * copy, modify, merge, publish, distribute, sublicense, and/or
27 * sell copies of the Software, and to permit persons to whom the
28 * Software is furnished to do so, subject to the following
29 * conditions:
30 *
31 * The above copyright notice and this permission notice shall be
32 * included in all copies or substantial portions of the Software.
33 *
34 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
35 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
36 * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
37 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
38 * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
39 * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
40 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
41 * OTHER DEALINGS IN THE SOFTWARE.
Stefan Roese7423d2d2012-11-26 15:46:12 +010042 */
43
Chen-Yu Tsai541ce2c2015-01-12 12:34:08 +080044#include <dt-bindings/thermal/thermal.h>
Maxime Ripard1f9f6a72014-12-16 22:59:56 +010045#include <dt-bindings/dma/sun4i-a10.h>
Priit Laes41193862017-08-23 20:23:33 +030046#include <dt-bindings/clock/sun4i-a10-ccu.h>
47#include <dt-bindings/reset/sun4i-a10-ccu.h>
Stefan Roese7423d2d2012-11-26 15:46:12 +010048
49/ {
Maxime Ripard6ab3cf02017-10-05 12:49:42 +020050 #address-cells = <1>;
51 #size-cells = <1>;
Maxime Ripard69144e32013-03-13 20:07:37 +010052 interrupt-parent = <&intc>;
53
Emilio Lópeze751cce2013-11-16 15:17:29 -030054 aliases {
55 ethernet0 = &emac;
56 };
57
Hans de Goede5790d4e2014-11-14 16:34:34 +010058 chosen {
59 #address-cells = <1>;
60 #size-cells = <1>;
61 ranges;
62
Maxime Ripard71299dd42017-10-05 12:49:38 +020063 framebuffer-lcd0-hdmi {
Maxime Ripardd8cacaa2015-05-03 11:53:07 +020064 compatible = "allwinner,simple-framebuffer",
65 "simple-framebuffer";
Hans de Goedea9f8cda2014-11-18 12:07:13 +010066 allwinner,pipeline = "de_be0-lcd0-hdmi";
Priit Laes41193862017-08-23 20:23:33 +030067 clocks = <&ccu CLK_AHB_LCD0>, <&ccu CLK_AHB_HDMI0>,
68 <&ccu CLK_AHB_DE_BE0>, <&ccu CLK_DE_BE0>,
69 <&ccu CLK_TCON0_CH1>, <&ccu CLK_DRAM_DE_BE0>;
Hans de Goede5790d4e2014-11-14 16:34:34 +010070 status = "disabled";
71 };
Hans de Goede8cedd662015-01-19 14:01:17 +010072
Maxime Ripard71299dd42017-10-05 12:49:38 +020073 framebuffer-fe0-lcd0-hdmi {
Maxime Ripardd8cacaa2015-05-03 11:53:07 +020074 compatible = "allwinner,simple-framebuffer",
75 "simple-framebuffer";
Hans de Goede8cedd662015-01-19 14:01:17 +010076 allwinner,pipeline = "de_fe0-de_be0-lcd0-hdmi";
Priit Laes41193862017-08-23 20:23:33 +030077 clocks = <&ccu CLK_AHB_LCD0>, <&ccu CLK_AHB_HDMI0>,
78 <&ccu CLK_AHB_DE_BE0>, <&ccu CLK_AHB_DE_FE0>,
Pascal Roeleven590b0c02018-04-20 12:21:12 +020079 <&ccu CLK_DE_BE0>, <&ccu CLK_DE_FE0>,
Priit Laes41193862017-08-23 20:23:33 +030080 <&ccu CLK_TCON0_CH1>, <&ccu CLK_HDMI>,
81 <&ccu CLK_DRAM_DE_FE0>, <&ccu CLK_DRAM_DE_BE0>;
Hans de Goede8cedd662015-01-19 14:01:17 +010082 status = "disabled";
83 };
Hans de Goedefd18c7e2015-01-19 14:05:12 +010084
Maxime Ripard71299dd42017-10-05 12:49:38 +020085 framebuffer-fe0-lcd0 {
Hans de Goedefd18c7e2015-01-19 14:05:12 +010086 compatible = "allwinner,simple-framebuffer",
87 "simple-framebuffer";
88 allwinner,pipeline = "de_fe0-de_be0-lcd0";
Priit Laes41193862017-08-23 20:23:33 +030089 clocks = <&ccu CLK_AHB_LCD0>, <&ccu CLK_AHB_DE_BE0>,
90 <&ccu CLK_AHB_DE_FE0>, <&ccu CLK_DE_BE0>,
Pascal Roeleven590b0c02018-04-20 12:21:12 +020091 <&ccu CLK_DE_FE0>, <&ccu CLK_TCON0_CH0>,
Priit Laes41193862017-08-23 20:23:33 +030092 <&ccu CLK_DRAM_DE_FE0>, <&ccu CLK_DRAM_DE_BE0>;
Hans de Goedefd18c7e2015-01-19 14:05:12 +010093 status = "disabled";
94 };
95
Maxime Ripard71299dd42017-10-05 12:49:38 +020096 framebuffer-fe0-lcd0-tve0 {
Hans de Goedefd18c7e2015-01-19 14:05:12 +010097 compatible = "allwinner,simple-framebuffer",
98 "simple-framebuffer";
99 allwinner,pipeline = "de_fe0-de_be0-lcd0-tve0";
Priit Laes41193862017-08-23 20:23:33 +0300100 clocks = <&ccu CLK_AHB_TVE0>, <&ccu CLK_AHB_LCD0>,
101 <&ccu CLK_AHB_DE_BE0>, <&ccu CLK_AHB_DE_FE0>,
Pascal Roeleven590b0c02018-04-20 12:21:12 +0200102 <&ccu CLK_DE_BE0>, <&ccu CLK_DE_FE0>,
Priit Laes41193862017-08-23 20:23:33 +0300103 <&ccu CLK_TCON0_CH1>, <&ccu CLK_DRAM_TVE0>,
104 <&ccu CLK_DRAM_DE_FE0>, <&ccu CLK_DRAM_DE_BE0>;
Hans de Goedefd18c7e2015-01-19 14:05:12 +0100105 status = "disabled";
106 };
Hans de Goede5790d4e2014-11-14 16:34:34 +0100107 };
108
Maxime Ripard69144e32013-03-13 20:07:37 +0100109 cpus {
Arnd Bergmann8b2efa892013-06-10 16:48:36 +0200110 #address-cells = <1>;
111 #size-cells = <0>;
Chen-Yu Tsai7294be52015-01-06 10:35:23 +0800112 cpu0: cpu@0 {
Lorenzo Pieralisi14c44aa2013-04-18 18:41:57 +0100113 device_type = "cpu";
Maxime Ripard69144e32013-03-13 20:07:37 +0100114 compatible = "arm,cortex-a8";
Lorenzo Pieralisi14c44aa2013-04-18 18:41:57 +0100115 reg = <0x0>;
Priit Laes41193862017-08-23 20:23:33 +0300116 clocks = <&ccu CLK_CPU>;
Chen-Yu Tsai7294be52015-01-06 10:35:23 +0800117 clock-latency = <244144>; /* 8 32k periods */
118 operating-points = <
Maxime Ripard8358aad2015-05-03 11:54:35 +0200119 /* kHz uV */
Chen-Yu Tsai7294be52015-01-06 10:35:23 +0800120 1008000 1400000
Maxime Ripard8358aad2015-05-03 11:54:35 +0200121 912000 1350000
122 864000 1300000
123 624000 1250000
Chen-Yu Tsai7294be52015-01-06 10:35:23 +0800124 >;
125 #cooling-cells = <2>;
Maxime Ripard69144e32013-03-13 20:07:37 +0100126 };
127 };
128
Chen-Yu Tsai541ce2c2015-01-12 12:34:08 +0800129 thermal-zones {
Maxime Ripard124d19d2017-10-05 12:49:45 +0200130 cpu-thermal {
Chen-Yu Tsai541ce2c2015-01-12 12:34:08 +0800131 /* milliseconds */
132 polling-delay-passive = <250>;
133 polling-delay = <1000>;
134 thermal-sensors = <&rtp>;
135
136 cooling-maps {
137 map0 {
138 trip = <&cpu_alert0>;
139 cooling-device = <&cpu0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
140 };
141 };
142
143 trips {
Maxime Ripard124d19d2017-10-05 12:49:45 +0200144 cpu_alert0: cpu-alert0 {
Chen-Yu Tsai541ce2c2015-01-12 12:34:08 +0800145 /* milliCelsius */
146 temperature = <850000>;
147 hysteresis = <2000>;
148 type = "passive";
149 };
150
Maxime Ripard124d19d2017-10-05 12:49:45 +0200151 cpu_crit: cpu-crit {
Chen-Yu Tsai541ce2c2015-01-12 12:34:08 +0800152 /* milliCelsius */
153 temperature = <100000>;
154 hysteresis = <2000>;
155 type = "critical";
156 };
157 };
Stefan Roese7423d2d2012-11-26 15:46:12 +0100158 };
159 };
160
Maxime Ripard69144e32013-03-13 20:07:37 +0100161 clocks {
162 #address-cells = <1>;
163 #size-cells = <1>;
164 ranges;
165
Maxime Ripard5c583192017-10-05 12:49:39 +0200166 osc24M: clk-24M {
Maxime Ripard69144e32013-03-13 20:07:37 +0100167 #clock-cells = <0>;
Priit Laes41193862017-08-23 20:23:33 +0300168 compatible = "fixed-clock";
Emilio López92fd6e02013-04-09 10:48:04 -0300169 clock-frequency = <24000000>;
Chen-Yu Tsaidfb12c02014-02-03 09:51:41 +0800170 clock-output-names = "osc24M";
Maxime Ripard69144e32013-03-13 20:07:37 +0100171 };
172
Maxime Ripard5c583192017-10-05 12:49:39 +0200173 osc32k: clk-32k {
Maxime Ripard69144e32013-03-13 20:07:37 +0100174 #clock-cells = <0>;
175 compatible = "fixed-clock";
176 clock-frequency = <32768>;
Chen-Yu Tsaidfb12c02014-02-03 09:51:41 +0800177 clock-output-names = "osc32k";
Maxime Ripard69144e32013-03-13 20:07:37 +0100178 };
Maxime Ripard69144e32013-03-13 20:07:37 +0100179 };
180
Chen-Yu Tsai0df4cf332017-10-17 20:18:04 +0800181 de: display-engine {
182 compatible = "allwinner,sun4i-a10-display-engine";
183 allwinner,pipelines = <&fe0>, <&fe1>;
184 status = "disabled";
185 };
186
Maxime Ripard39f8a712017-10-05 12:49:44 +0200187 soc {
Maxime Ripard69144e32013-03-13 20:07:37 +0100188 compatible = "simple-bus";
189 #address-cells = <1>;
190 #size-cells = <1>;
Maxime Ripard69144e32013-03-13 20:07:37 +0100191 ranges;
192
Maxime Ripard5841f6c2017-10-05 12:49:36 +0200193 sram-controller@1c00000 {
Maxime Ripard1fbc1512015-03-26 15:53:44 +0100194 compatible = "allwinner,sun4i-a10-sram-controller";
195 reg = <0x01c00000 0x30>;
196 #address-cells = <1>;
197 #size-cells = <1>;
198 ranges;
199
Maxime Ripard5841f6c2017-10-05 12:49:36 +0200200 sram_a: sram@0 {
Maxime Ripard1fbc1512015-03-26 15:53:44 +0100201 compatible = "mmio-sram";
202 reg = <0x00000000 0xc000>;
203 #address-cells = <1>;
204 #size-cells = <1>;
205 ranges = <0 0x00000000 0xc000>;
206
207 emac_sram: sram-section@8000 {
208 compatible = "allwinner,sun4i-a10-sram-a3-a4";
209 reg = <0x8000 0x4000>;
210 status = "disabled";
211 };
212 };
213
Maxime Ripard5841f6c2017-10-05 12:49:36 +0200214 sram_d: sram@10000 {
Maxime Ripard1fbc1512015-03-26 15:53:44 +0100215 compatible = "mmio-sram";
216 reg = <0x00010000 0x1000>;
217 #address-cells = <1>;
218 #size-cells = <1>;
219 ranges = <0 0x00010000 0x1000>;
220
Maxime Ripard5841f6c2017-10-05 12:49:36 +0200221 otg_sram: sram-section@0 {
Maxime Ripard1fbc1512015-03-26 15:53:44 +0100222 compatible = "allwinner,sun4i-a10-sram-d";
223 reg = <0x0000 0x1000>;
224 status = "disabled";
225 };
226 };
227 };
228
Maxime Ripard5841f6c2017-10-05 12:49:36 +0200229 dma: dma-controller@1c02000 {
Emilio López1324f532014-08-04 17:09:57 -0300230 compatible = "allwinner,sun4i-a10-dma";
231 reg = <0x01c02000 0x1000>;
232 interrupts = <27>;
Priit Laes41193862017-08-23 20:23:33 +0300233 clocks = <&ccu CLK_AHB_DMA>;
Emilio López1324f532014-08-04 17:09:57 -0300234 #dma-cells = <2>;
235 };
236
Maxime Ripard5841f6c2017-10-05 12:49:36 +0200237 nfc: nand@1c03000 {
Boris Brezilloncefd4862016-06-14 14:17:36 +0300238 compatible = "allwinner,sun4i-a10-nand";
239 reg = <0x01c03000 0x1000>;
240 interrupts = <37>;
Priit Laes41193862017-08-23 20:23:33 +0300241 clocks = <&ccu CLK_AHB_NAND>, <&ccu CLK_NAND>;
Boris Brezilloncefd4862016-06-14 14:17:36 +0300242 clock-names = "ahb", "mod";
243 dmas = <&dma SUN4I_DMA_DEDICATED 3>;
244 dma-names = "rxtx";
245 status = "disabled";
246 #address-cells = <1>;
247 #size-cells = <0>;
248 };
249
Maxime Ripard5841f6c2017-10-05 12:49:36 +0200250 spi0: spi@1c05000 {
Maxime Ripard65918e22014-02-22 22:35:55 +0100251 compatible = "allwinner,sun4i-a10-spi";
252 reg = <0x01c05000 0x1000>;
253 interrupts = <10>;
Priit Laes41193862017-08-23 20:23:33 +0300254 clocks = <&ccu CLK_AHB_SPI0>, <&ccu CLK_SPI0>;
Maxime Ripard65918e22014-02-22 22:35:55 +0100255 clock-names = "ahb", "mod";
Maxime Ripard1f9f6a72014-12-16 22:59:56 +0100256 dmas = <&dma SUN4I_DMA_DEDICATED 27>,
257 <&dma SUN4I_DMA_DEDICATED 26>;
Emilio López4192ff82014-08-04 17:10:00 -0300258 dma-names = "rx", "tx";
Maxime Ripard65918e22014-02-22 22:35:55 +0100259 status = "disabled";
260 #address-cells = <1>;
261 #size-cells = <0>;
262 };
263
Maxime Ripard5841f6c2017-10-05 12:49:36 +0200264 spi1: spi@1c06000 {
Maxime Ripard65918e22014-02-22 22:35:55 +0100265 compatible = "allwinner,sun4i-a10-spi";
266 reg = <0x01c06000 0x1000>;
267 interrupts = <11>;
Priit Laes41193862017-08-23 20:23:33 +0300268 clocks = <&ccu CLK_AHB_SPI1>, <&ccu CLK_SPI1>;
Maxime Ripard65918e22014-02-22 22:35:55 +0100269 clock-names = "ahb", "mod";
Maxime Ripard1f9f6a72014-12-16 22:59:56 +0100270 dmas = <&dma SUN4I_DMA_DEDICATED 9>,
271 <&dma SUN4I_DMA_DEDICATED 8>;
Emilio López4192ff82014-08-04 17:10:00 -0300272 dma-names = "rx", "tx";
Maxime Ripardbca0d7d2017-10-05 10:43:28 +0200273 pinctrl-names = "default";
274 pinctrl-0 = <&spi1_pins>, <&spi1_cs0_pin>;
Maxime Ripard65918e22014-02-22 22:35:55 +0100275 status = "disabled";
276 #address-cells = <1>;
277 #size-cells = <0>;
278 };
279
Maxime Ripard5841f6c2017-10-05 12:49:36 +0200280 emac: ethernet@1c0b000 {
Maxime Ripard1c70e092014-02-02 14:49:13 +0100281 compatible = "allwinner,sun4i-a10-emac";
Maxime Riparde38afcb2013-05-30 03:49:23 +0000282 reg = <0x01c0b000 0x1000>;
283 interrupts = <55>;
Priit Laes41193862017-08-23 20:23:33 +0300284 clocks = <&ccu CLK_AHB_EMAC>;
Maxime Ripard1fbc1512015-03-26 15:53:44 +0100285 allwinner,sram = <&emac_sram 1>;
Maxime Ripardbca0d7d2017-10-05 10:43:28 +0200286 pinctrl-names = "default";
287 pinctrl-0 = <&emac_pins>;
Maxime Riparde38afcb2013-05-30 03:49:23 +0000288 status = "disabled";
289 };
290
Maxime Ripard5841f6c2017-10-05 12:49:36 +0200291 mdio: mdio@1c0b080 {
Maxime Ripard1c70e092014-02-02 14:49:13 +0100292 compatible = "allwinner,sun4i-a10-mdio";
Maxime Riparde38afcb2013-05-30 03:49:23 +0000293 reg = <0x01c0b080 0x14>;
294 status = "disabled";
295 #address-cells = <1>;
296 #size-cells = <0>;
297 };
298
Chen-Yu Tsai0df4cf332017-10-17 20:18:04 +0800299 tcon0: lcd-controller@1c0c000 {
300 compatible = "allwinner,sun4i-a10-tcon";
301 reg = <0x01c0c000 0x1000>;
302 interrupts = <44>;
303 resets = <&ccu RST_TCON0>;
304 reset-names = "lcd";
305 clocks = <&ccu CLK_AHB_LCD0>,
306 <&ccu CLK_TCON0_CH0>,
307 <&ccu CLK_TCON0_CH1>;
308 clock-names = "ahb",
309 "tcon-ch0",
310 "tcon-ch1";
311 clock-output-names = "tcon0-pixel-clock";
312 dmas = <&dma SUN4I_DMA_DEDICATED 14>;
313
314 ports {
315 #address-cells = <1>;
316 #size-cells = <0>;
317
318 tcon0_in: port@0 {
319 #address-cells = <1>;
320 #size-cells = <0>;
321 reg = <0>;
322
323 tcon0_in_be0: endpoint@0 {
324 reg = <0>;
325 remote-endpoint = <&be0_out_tcon0>;
326 };
327
328 tcon0_in_be1: endpoint@1 {
329 reg = <1>;
330 remote-endpoint = <&be1_out_tcon0>;
331 };
332 };
333
334 tcon0_out: port@1 {
335 #address-cells = <1>;
336 #size-cells = <0>;
337 reg = <1>;
338
339 tcon0_out_hdmi: endpoint@1 {
340 reg = <1>;
341 remote-endpoint = <&hdmi_in_tcon0>;
342 allwinner,tcon-channel = <1>;
343 };
344 };
345 };
346 };
347
348 tcon1: lcd-controller@1c0d000 {
349 compatible = "allwinner,sun4i-a10-tcon";
350 reg = <0x01c0d000 0x1000>;
351 interrupts = <45>;
352 resets = <&ccu RST_TCON1>;
353 reset-names = "lcd";
354 clocks = <&ccu CLK_AHB_LCD1>,
355 <&ccu CLK_TCON1_CH0>,
356 <&ccu CLK_TCON1_CH1>;
357 clock-names = "ahb",
358 "tcon-ch0",
359 "tcon-ch1";
360 clock-output-names = "tcon1-pixel-clock";
361 dmas = <&dma SUN4I_DMA_DEDICATED 15>;
362
363 ports {
364 #address-cells = <1>;
365 #size-cells = <0>;
366
367 tcon1_in: port@0 {
368 #address-cells = <1>;
369 #size-cells = <0>;
370 reg = <0>;
371
372 tcon1_in_be0: endpoint@0 {
373 reg = <0>;
374 remote-endpoint = <&be0_out_tcon1>;
375 };
376
377 tcon1_in_be1: endpoint@1 {
378 reg = <1>;
379 remote-endpoint = <&be1_out_tcon1>;
380 };
381 };
382
383 tcon1_out: port@1 {
384 #address-cells = <1>;
385 #size-cells = <0>;
386 reg = <1>;
387
388 tcon1_out_hdmi: endpoint@1 {
389 reg = <1>;
390 remote-endpoint = <&hdmi_in_tcon1>;
391 allwinner,tcon-channel = <1>;
392 };
393 };
394 };
395 };
396
Maxime Ripard5841f6c2017-10-05 12:49:36 +0200397 mmc0: mmc@1c0f000 {
David Lanzendörferb258b362014-05-02 17:57:18 +0200398 compatible = "allwinner,sun4i-a10-mmc";
399 reg = <0x01c0f000 0x1000>;
Priit Laes41193862017-08-23 20:23:33 +0300400 clocks = <&ccu CLK_AHB_MMC0>, <&ccu CLK_MMC0>;
401 clock-names = "ahb", "mmc";
David Lanzendörferb258b362014-05-02 17:57:18 +0200402 interrupts = <32>;
Maxime Ripardbca0d7d2017-10-05 10:43:28 +0200403 pinctrl-names = "default";
404 pinctrl-0 = <&mmc0_pins>;
David Lanzendörferb258b362014-05-02 17:57:18 +0200405 status = "disabled";
Hans de Goede4c1bb9c2015-03-10 16:27:09 +0100406 #address-cells = <1>;
407 #size-cells = <0>;
David Lanzendörferb258b362014-05-02 17:57:18 +0200408 };
409
Maxime Ripard5841f6c2017-10-05 12:49:36 +0200410 mmc1: mmc@1c10000 {
David Lanzendörferb258b362014-05-02 17:57:18 +0200411 compatible = "allwinner,sun4i-a10-mmc";
412 reg = <0x01c10000 0x1000>;
Priit Laes41193862017-08-23 20:23:33 +0300413 clocks = <&ccu CLK_AHB_MMC1>, <&ccu CLK_MMC1>;
414 clock-names = "ahb", "mmc";
David Lanzendörferb258b362014-05-02 17:57:18 +0200415 interrupts = <33>;
416 status = "disabled";
Hans de Goede4c1bb9c2015-03-10 16:27:09 +0100417 #address-cells = <1>;
418 #size-cells = <0>;
David Lanzendörferb258b362014-05-02 17:57:18 +0200419 };
420
Maxime Ripard5841f6c2017-10-05 12:49:36 +0200421 mmc2: mmc@1c11000 {
David Lanzendörferb258b362014-05-02 17:57:18 +0200422 compatible = "allwinner,sun4i-a10-mmc";
423 reg = <0x01c11000 0x1000>;
Priit Laes41193862017-08-23 20:23:33 +0300424 clocks = <&ccu CLK_AHB_MMC2>, <&ccu CLK_MMC2>;
425 clock-names = "ahb", "mmc";
David Lanzendörferb258b362014-05-02 17:57:18 +0200426 interrupts = <34>;
427 status = "disabled";
Hans de Goede4c1bb9c2015-03-10 16:27:09 +0100428 #address-cells = <1>;
429 #size-cells = <0>;
David Lanzendörferb258b362014-05-02 17:57:18 +0200430 };
431
Maxime Ripard5841f6c2017-10-05 12:49:36 +0200432 mmc3: mmc@1c12000 {
David Lanzendörferb258b362014-05-02 17:57:18 +0200433 compatible = "allwinner,sun4i-a10-mmc";
434 reg = <0x01c12000 0x1000>;
Priit Laes41193862017-08-23 20:23:33 +0300435 clocks = <&ccu CLK_AHB_MMC3>, <&ccu CLK_MMC3>;
436 clock-names = "ahb", "mmc";
David Lanzendörferb258b362014-05-02 17:57:18 +0200437 interrupts = <35>;
438 status = "disabled";
Hans de Goede4c1bb9c2015-03-10 16:27:09 +0100439 #address-cells = <1>;
440 #size-cells = <0>;
David Lanzendörferb258b362014-05-02 17:57:18 +0200441 };
442
Maxime Ripard5841f6c2017-10-05 12:49:36 +0200443 usb_otg: usb@1c13000 {
Hans de Goedece650372015-02-03 19:17:35 +0100444 compatible = "allwinner,sun4i-a10-musb";
445 reg = <0x01c13000 0x0400>;
Priit Laes41193862017-08-23 20:23:33 +0300446 clocks = <&ccu CLK_AHB_OTG>;
Hans de Goedece650372015-02-03 19:17:35 +0100447 interrupts = <38>;
448 interrupt-names = "mc";
449 phys = <&usbphy 0>;
450 phy-names = "usb";
451 extcon = <&usbphy 0>;
452 allwinner,sram = <&otg_sram 1>;
453 status = "disabled";
454 };
455
Maxime Ripard5841f6c2017-10-05 12:49:36 +0200456 usbphy: phy@1c13400 {
Roman Byshko6ab1ce22014-03-01 20:26:23 +0100457 #phy-cells = <1>;
458 compatible = "allwinner,sun4i-a10-usb-phy";
459 reg = <0x01c13400 0x10 0x01c14800 0x4 0x01c1c800 0x4>;
460 reg-names = "phy_ctrl", "pmu1", "pmu2";
Priit Laes41193862017-08-23 20:23:33 +0300461 clocks = <&ccu CLK_USB_PHY>;
Roman Byshko6ab1ce22014-03-01 20:26:23 +0100462 clock-names = "usb_phy";
Priit Laes41193862017-08-23 20:23:33 +0300463 resets = <&ccu RST_USB_PHY0>,
464 <&ccu RST_USB_PHY1>,
465 <&ccu RST_USB_PHY2>;
Chen-Yu Tsai4dba4182014-12-18 19:10:35 +0800466 reset-names = "usb0_reset", "usb1_reset", "usb2_reset";
Roman Byshko6ab1ce22014-03-01 20:26:23 +0100467 status = "disabled";
468 };
469
Maxime Ripard5841f6c2017-10-05 12:49:36 +0200470 ehci0: usb@1c14000 {
Roman Byshko6ab1ce22014-03-01 20:26:23 +0100471 compatible = "allwinner,sun4i-a10-ehci", "generic-ehci";
472 reg = <0x01c14000 0x100>;
473 interrupts = <39>;
Priit Laes41193862017-08-23 20:23:33 +0300474 clocks = <&ccu CLK_AHB_EHCI0>;
Roman Byshko6ab1ce22014-03-01 20:26:23 +0100475 phys = <&usbphy 1>;
476 phy-names = "usb";
477 status = "disabled";
478 };
479
Maxime Ripard5841f6c2017-10-05 12:49:36 +0200480 ohci0: usb@1c14400 {
Roman Byshko6ab1ce22014-03-01 20:26:23 +0100481 compatible = "allwinner,sun4i-a10-ohci", "generic-ohci";
482 reg = <0x01c14400 0x100>;
483 interrupts = <64>;
Priit Laes41193862017-08-23 20:23:33 +0300484 clocks = <&ccu CLK_USB_OHCI0>, <&ccu CLK_AHB_OHCI0>;
Roman Byshko6ab1ce22014-03-01 20:26:23 +0100485 phys = <&usbphy 1>;
486 phy-names = "usb";
487 status = "disabled";
488 };
489
Maxime Ripard5841f6c2017-10-05 12:49:36 +0200490 crypto: crypto-engine@1c15000 {
LABBE Corentin56ba8c52015-07-17 16:39:38 +0200491 compatible = "allwinner,sun4i-a10-crypto";
492 reg = <0x01c15000 0x1000>;
493 interrupts = <86>;
Priit Laes41193862017-08-23 20:23:33 +0300494 clocks = <&ccu CLK_AHB_SS>, <&ccu CLK_SS>;
LABBE Corentin56ba8c52015-07-17 16:39:38 +0200495 clock-names = "ahb", "mod";
496 };
497
Chen-Yu Tsai0df4cf332017-10-17 20:18:04 +0800498 hdmi: hdmi@1c16000 {
499 compatible = "allwinner,sun4i-a10-hdmi";
500 reg = <0x01c16000 0x1000>;
501 interrupts = <58>;
502 clocks = <&ccu CLK_AHB_HDMI0>, <&ccu CLK_HDMI>,
Chen-Yu Tsaie17e2372017-12-04 16:44:01 +0800503 <&ccu CLK_PLL_VIDEO0_2X>,
504 <&ccu CLK_PLL_VIDEO1_2X>;
Chen-Yu Tsai0df4cf332017-10-17 20:18:04 +0800505 clock-names = "ahb", "mod", "pll-0", "pll-1";
506 dmas = <&dma SUN4I_DMA_NORMAL 16>,
507 <&dma SUN4I_DMA_NORMAL 16>,
508 <&dma SUN4I_DMA_DEDICATED 24>;
509 dma-names = "ddc-tx", "ddc-rx", "audio-tx";
510 status = "disabled";
511
512 ports {
513 #address-cells = <1>;
514 #size-cells = <0>;
515
516 hdmi_in: port@0 {
517 #address-cells = <1>;
518 #size-cells = <0>;
519 reg = <0>;
520
521 hdmi_in_tcon0: endpoint@0 {
522 reg = <0>;
523 remote-endpoint = <&tcon0_out_hdmi>;
524 };
525
526 hdmi_in_tcon1: endpoint@1 {
527 reg = <1>;
528 remote-endpoint = <&tcon1_out_hdmi>;
529 };
530 };
531
532 hdmi_out: port@1 {
533 #address-cells = <1>;
534 #size-cells = <0>;
535 reg = <1>;
536 };
537 };
538 };
539
Maxime Ripard5841f6c2017-10-05 12:49:36 +0200540 spi2: spi@1c17000 {
Maxime Ripard65918e22014-02-22 22:35:55 +0100541 compatible = "allwinner,sun4i-a10-spi";
542 reg = <0x01c17000 0x1000>;
543 interrupts = <12>;
Priit Laes41193862017-08-23 20:23:33 +0300544 clocks = <&ccu CLK_AHB_SPI2>, <&ccu CLK_SPI2>;
Maxime Ripard65918e22014-02-22 22:35:55 +0100545 clock-names = "ahb", "mod";
Maxime Ripard1f9f6a72014-12-16 22:59:56 +0100546 dmas = <&dma SUN4I_DMA_DEDICATED 29>,
547 <&dma SUN4I_DMA_DEDICATED 28>;
Emilio López4192ff82014-08-04 17:10:00 -0300548 dma-names = "rx", "tx";
Maxime Ripard65918e22014-02-22 22:35:55 +0100549 status = "disabled";
550 #address-cells = <1>;
551 #size-cells = <0>;
552 };
553
Maxime Ripard5841f6c2017-10-05 12:49:36 +0200554 ahci: sata@1c18000 {
Oliver Schinagl248bd1e2014-03-01 20:26:21 +0100555 compatible = "allwinner,sun4i-a10-ahci";
556 reg = <0x01c18000 0x1000>;
557 interrupts = <56>;
Priit Laes41193862017-08-23 20:23:33 +0300558 clocks = <&ccu CLK_AHB_SATA>, <&ccu CLK_SATA>;
Oliver Schinagl248bd1e2014-03-01 20:26:21 +0100559 status = "disabled";
560 };
561
Maxime Ripard5841f6c2017-10-05 12:49:36 +0200562 ehci1: usb@1c1c000 {
Roman Byshko6ab1ce22014-03-01 20:26:23 +0100563 compatible = "allwinner,sun4i-a10-ehci", "generic-ehci";
564 reg = <0x01c1c000 0x100>;
565 interrupts = <40>;
Priit Laes41193862017-08-23 20:23:33 +0300566 clocks = <&ccu CLK_AHB_EHCI1>;
Roman Byshko6ab1ce22014-03-01 20:26:23 +0100567 phys = <&usbphy 2>;
568 phy-names = "usb";
569 status = "disabled";
570 };
571
Maxime Ripard5841f6c2017-10-05 12:49:36 +0200572 ohci1: usb@1c1c400 {
Roman Byshko6ab1ce22014-03-01 20:26:23 +0100573 compatible = "allwinner,sun4i-a10-ohci", "generic-ohci";
574 reg = <0x01c1c400 0x100>;
575 interrupts = <65>;
Priit Laes41193862017-08-23 20:23:33 +0300576 clocks = <&ccu CLK_USB_OHCI1>, <&ccu CLK_AHB_OHCI1>;
Roman Byshko6ab1ce22014-03-01 20:26:23 +0100577 phys = <&usbphy 2>;
578 phy-names = "usb";
579 status = "disabled";
580 };
581
Maxime Ripard5841f6c2017-10-05 12:49:36 +0200582 spi3: spi@1c1f000 {
Maxime Ripard65918e22014-02-22 22:35:55 +0100583 compatible = "allwinner,sun4i-a10-spi";
584 reg = <0x01c1f000 0x1000>;
585 interrupts = <50>;
Priit Laes41193862017-08-23 20:23:33 +0300586 clocks = <&ccu CLK_AHB_SPI3>, <&ccu CLK_SPI3>;
Maxime Ripard65918e22014-02-22 22:35:55 +0100587 clock-names = "ahb", "mod";
Maxime Ripard1f9f6a72014-12-16 22:59:56 +0100588 dmas = <&dma SUN4I_DMA_DEDICATED 31>,
589 <&dma SUN4I_DMA_DEDICATED 30>;
Emilio López4192ff82014-08-04 17:10:00 -0300590 dma-names = "rx", "tx";
Maxime Ripard65918e22014-02-22 22:35:55 +0100591 status = "disabled";
592 #address-cells = <1>;
593 #size-cells = <0>;
594 };
595
Maxime Ripard5841f6c2017-10-05 12:49:36 +0200596 ccu: clock@1c20000 {
Priit Laes41193862017-08-23 20:23:33 +0300597 compatible = "allwinner,sun4i-a10-ccu";
598 reg = <0x01c20000 0x400>;
599 clocks = <&osc24M>, <&osc32k>;
600 clock-names = "hosc", "losc";
601 #clock-cells = <1>;
602 #reset-cells = <1>;
603 };
604
Maxime Ripard5841f6c2017-10-05 12:49:36 +0200605 intc: interrupt-controller@1c20400 {
Maxime Ripard09504a72014-02-07 21:50:26 +0100606 compatible = "allwinner,sun4i-a10-ic";
Maxime Ripard69144e32013-03-13 20:07:37 +0100607 reg = <0x01c20400 0x400>;
608 interrupt-controller;
609 #interrupt-cells = <1>;
610 };
611
Maxime Ripard5841f6c2017-10-05 12:49:36 +0200612 pio: pinctrl@1c20800 {
Maxime Ripard874b4e42013-01-26 15:36:54 +0100613 compatible = "allwinner,sun4i-a10-pinctrl";
614 reg = <0x01c20800 0x400>;
Maxime Ripard39138bc2013-04-06 15:00:48 +0200615 interrupts = <28>;
Priit Laes41193862017-08-23 20:23:33 +0300616 clocks = <&ccu CLK_APB0_PIO>, <&osc24M>, <&osc32k>;
Maxime Ripardbe7bc6b2016-10-19 11:15:27 +0200617 clock-names = "apb", "hosc", "losc";
Maxime Riparde10911e2013-01-27 19:26:05 +0100618 gpio-controller;
Maxime Ripard39138bc2013-04-06 15:00:48 +0200619 interrupt-controller;
Maxime Ripardb03e0812015-06-17 11:44:24 +0200620 #interrupt-cells = <3>;
Maxime Riparde10911e2013-01-27 19:26:05 +0100621 #gpio-cells = <3>;
Maxime Ripard581981b2013-01-26 15:36:55 +0100622
Maxime Riparde53bd762017-10-04 18:02:14 +0200623 can0_ph_pins: can0-ph-pins {
Patrick Menschel908370f2017-04-03 19:00:12 +0200624 pins = "PH20", "PH21";
625 function = "can";
626 };
627
Maxime Riparde53bd762017-10-04 18:02:14 +0200628 emac_pins: emac0-pins {
Maxime Ripard1edcd362016-09-23 14:28:10 +0300629 pins = "PA0", "PA1", "PA2",
630 "PA3", "PA4", "PA5", "PA6",
631 "PA7", "PA8", "PA9", "PA10",
632 "PA11", "PA12", "PA13", "PA14",
633 "PA15", "PA16";
634 function = "emac";
Maxime Ripard581981b2013-01-26 15:36:55 +0100635 };
Maxime Ripard27cce4f2013-03-10 13:44:38 +0100636
Maxime Riparde53bd762017-10-04 18:02:14 +0200637 i2c0_pins: i2c0-pins {
Maxime Ripard1edcd362016-09-23 14:28:10 +0300638 pins = "PB0", "PB1";
639 function = "i2c0";
Maxime Ripard27cce4f2013-03-10 13:44:38 +0100640 };
641
Maxime Riparde53bd762017-10-04 18:02:14 +0200642 i2c1_pins: i2c1-pins {
Maxime Ripard1edcd362016-09-23 14:28:10 +0300643 pins = "PB18", "PB19";
644 function = "i2c1";
Maxime Ripard27cce4f2013-03-10 13:44:38 +0100645 };
646
Maxime Riparde53bd762017-10-04 18:02:14 +0200647 i2c2_pins: i2c2-pins {
Maxime Ripard1edcd362016-09-23 14:28:10 +0300648 pins = "PB20", "PB21";
649 function = "i2c2";
Maxime Ripard27cce4f2013-03-10 13:44:38 +0100650 };
Linus Torvalds496322b2013-07-09 18:24:39 -0700651
Maxime Riparde53bd762017-10-04 18:02:14 +0200652 ir0_rx_pins: ir0-rx-pin {
Maxime Ripard1edcd362016-09-23 14:28:10 +0300653 pins = "PB4";
654 function = "ir0";
Hans de Goedea4e10992014-06-30 23:57:58 +0200655 };
656
Maxime Riparde53bd762017-10-04 18:02:14 +0200657 ir0_tx_pins: ir0-tx-pin {
Maxime Ripard1edcd362016-09-23 14:28:10 +0300658 pins = "PB3";
659 function = "ir0";
Marcus Cooper469a22e2015-05-02 13:36:20 +0200660 };
661
Maxime Riparde53bd762017-10-04 18:02:14 +0200662 ir1_rx_pins: ir1-rx-pin {
Maxime Ripard1edcd362016-09-23 14:28:10 +0300663 pins = "PB23";
664 function = "ir1";
Marcus Cooper469a22e2015-05-02 13:36:20 +0200665 };
666
Maxime Riparde53bd762017-10-04 18:02:14 +0200667 ir1_tx_pins: ir1-tx-pin {
Maxime Ripard1edcd362016-09-23 14:28:10 +0300668 pins = "PB22";
669 function = "ir1";
Hans de Goedea4e10992014-06-30 23:57:58 +0200670 };
Alexandru Gagniucec66d0b2014-12-08 04:14:01 -0600671
Maxime Riparde53bd762017-10-04 18:02:14 +0200672 mmc0_pins: mmc0-pins {
Maxime Ripard1edcd362016-09-23 14:28:10 +0300673 pins = "PF0", "PF1", "PF2",
674 "PF3", "PF4", "PF5";
675 function = "mmc0";
676 drive-strength = <30>;
Chen-Yu Tsai80ee72e2016-11-17 17:34:38 +0800677 bias-pull-up;
Aleksei Mamlin03907ab2016-06-10 11:05:18 +0300678 };
679
Maxime Riparde53bd762017-10-04 18:02:14 +0200680 ps2_ch0_pins: ps2-ch0-pins {
Maxime Ripard1edcd362016-09-23 14:28:10 +0300681 pins = "PI20", "PI21";
682 function = "ps2";
Aleksei Mamlin03907ab2016-06-10 11:05:18 +0300683 };
684
Maxime Riparde53bd762017-10-04 18:02:14 +0200685 ps2_ch1_ph_pins: ps2-ch1-ph-pins {
Maxime Ripard1edcd362016-09-23 14:28:10 +0300686 pins = "PH12", "PH13";
687 function = "ps2";
Aleksei Mamlin03907ab2016-06-10 11:05:18 +0300688 };
689
Maxime Riparde53bd762017-10-04 18:02:14 +0200690 pwm0_pin: pwm0-pin {
Maxime Ripard1edcd362016-09-23 14:28:10 +0300691 pins = "PB2";
692 function = "pwm";
Aleksei Mamlin03907ab2016-06-10 11:05:18 +0300693 };
694
Maxime Riparde53bd762017-10-04 18:02:14 +0200695 pwm1_pin: pwm1-pin {
Maxime Ripard1edcd362016-09-23 14:28:10 +0300696 pins = "PI3";
697 function = "pwm";
Aleksei Mamlin03907ab2016-06-10 11:05:18 +0300698 };
699
Maxime Riparde53bd762017-10-04 18:02:14 +0200700 spdif_tx_pin: spdif-tx-pin {
Maxime Ripard1edcd362016-09-23 14:28:10 +0300701 pins = "PB13";
702 function = "spdif";
703 bias-pull-up;
Aleksei Mamlin03907ab2016-06-10 11:05:18 +0300704 };
705
Maxime Riparde53bd762017-10-04 18:02:14 +0200706 spi0_pi_pins: spi0-pi-pins {
Maxime Ripard1edcd362016-09-23 14:28:10 +0300707 pins = "PI11", "PI12", "PI13";
708 function = "spi0";
Maxime Ripardf3022c62015-05-03 09:25:41 +0200709 };
710
Maxime Riparde53bd762017-10-04 18:02:14 +0200711 spi0_cs0_pi_pin: spi0-cs0-pi-pin {
Maxime Ripard1edcd362016-09-23 14:28:10 +0300712 pins = "PI10";
713 function = "spi0";
Alexandru Gagniucec66d0b2014-12-08 04:14:01 -0600714 };
715
Maxime Riparde53bd762017-10-04 18:02:14 +0200716 spi1_pins: spi1-pins {
Maxime Ripard1edcd362016-09-23 14:28:10 +0300717 pins = "PI17", "PI18", "PI19";
718 function = "spi1";
Maxime Ripardf3022c62015-05-03 09:25:41 +0200719 };
720
Maxime Riparde53bd762017-10-04 18:02:14 +0200721 spi1_cs0_pin: spi1-cs0-pin {
Maxime Ripard1edcd362016-09-23 14:28:10 +0300722 pins = "PI16";
723 function = "spi1";
Alexandru Gagniucec66d0b2014-12-08 04:14:01 -0600724 };
725
Maxime Riparde53bd762017-10-04 18:02:14 +0200726 spi2_pb_pins: spi2-pb-pins {
Maxime Ripard1edcd362016-09-23 14:28:10 +0300727 pins = "PB15", "PB16", "PB17";
728 function = "spi2";
Maxime Ripardf3022c62015-05-03 09:25:41 +0200729 };
730
Maxime Riparde53bd762017-10-04 18:02:14 +0200731 spi2_pc_pins: spi2-pc-pins {
732 pins = "PC20", "PC21", "PC22";
Maxime Ripard1edcd362016-09-23 14:28:10 +0300733 function = "spi2";
Maxime Ripardf3022c62015-05-03 09:25:41 +0200734 };
735
Maxime Riparde53bd762017-10-04 18:02:14 +0200736 spi2_cs0_pb_pin: spi2-cs0-pb-pin {
Maxime Ripard1edcd362016-09-23 14:28:10 +0300737 pins = "PB14";
738 function = "spi2";
Alexandru Gagniucec66d0b2014-12-08 04:14:01 -0600739 };
Vishnu Patekar1e8d1562015-01-25 19:10:09 +0530740
Maxime Riparde53bd762017-10-04 18:02:14 +0200741 spi2_cs0_pc_pins: spi2-cs0-pc-pin {
742 pins = "PC19";
743 function = "spi2";
744 };
745
746 uart0_pb_pins: uart0-pb-pins {
Maxime Ripard1edcd362016-09-23 14:28:10 +0300747 pins = "PB22", "PB23";
748 function = "uart0";
Vishnu Patekar1e8d1562015-01-25 19:10:09 +0530749 };
750
Maxime Riparde53bd762017-10-04 18:02:14 +0200751 uart0_pf_pins: uart0-pf-pins {
Maxime Ripard1edcd362016-09-23 14:28:10 +0300752 pins = "PF2", "PF4";
753 function = "uart0";
Hans de Goedeb5f86a32014-05-02 17:57:19 +0200754 };
Marcus Cooper79f969f2016-03-21 21:00:59 +0100755
Maxime Riparde53bd762017-10-04 18:02:14 +0200756 uart1_pins: uart1-pins {
Maxime Ripard1edcd362016-09-23 14:28:10 +0300757 pins = "PA10", "PA11";
758 function = "uart1";
Marcus Cooper79f969f2016-03-21 21:00:59 +0100759 };
Maxime Ripard874b4e42013-01-26 15:36:54 +0100760 };
Maxime Ripard89b3c992013-02-20 17:25:03 -0800761
Maxime Ripard5841f6c2017-10-05 12:49:36 +0200762 timer@1c20c00 {
Maxime Ripardb4f26442014-02-06 10:40:32 +0100763 compatible = "allwinner,sun4i-a10-timer";
Maxime Ripard69144e32013-03-13 20:07:37 +0100764 reg = <0x01c20c00 0x90>;
765 interrupts = <22>;
766 clocks = <&osc24M>;
767 };
768
Maxime Ripard5841f6c2017-10-05 12:49:36 +0200769 wdt: watchdog@1c20c90 {
Maxime Ripardca5d04d2014-02-07 22:29:26 +0100770 compatible = "allwinner,sun4i-a10-wdt";
Maxime Ripard69144e32013-03-13 20:07:37 +0100771 reg = <0x01c20c90 0x10>;
772 };
773
Maxime Ripard5841f6c2017-10-05 12:49:36 +0200774 rtc: rtc@1c20d00 {
Maxime Ripard5fc4bc82014-04-03 14:50:03 -0700775 compatible = "allwinner,sun4i-a10-rtc";
Carlo Caioneb5d905c2013-10-16 20:30:26 +0200776 reg = <0x01c20d00 0x20>;
777 interrupts = <24>;
778 };
779
Maxime Ripard5841f6c2017-10-05 12:49:36 +0200780 pwm: pwm@1c20e00 {
Alexandre Belloni4b57a392014-04-28 18:17:11 +0200781 compatible = "allwinner,sun4i-a10-pwm";
782 reg = <0x01c20e00 0xc>;
783 clocks = <&osc24M>;
784 #pwm-cells = <3>;
785 status = "disabled";
786 };
787
Maxime Ripard5841f6c2017-10-05 12:49:36 +0200788 spdif: spdif@1c21000 {
Marcus Cooper166db832016-03-21 21:01:03 +0100789 #sound-dai-cells = <0>;
790 compatible = "allwinner,sun4i-a10-spdif";
791 reg = <0x01c21000 0x400>;
792 interrupts = <13>;
Priit Laes41193862017-08-23 20:23:33 +0300793 clocks = <&ccu CLK_APB0_SPDIF>, <&ccu CLK_SPDIF>;
Marcus Cooper166db832016-03-21 21:01:03 +0100794 clock-names = "apb", "spdif";
795 dmas = <&dma SUN4I_DMA_NORMAL 2>,
796 <&dma SUN4I_DMA_NORMAL 2>;
797 dma-names = "rx", "tx";
798 status = "disabled";
799 };
800
Maxime Ripard5841f6c2017-10-05 12:49:36 +0200801 ir0: ir@1c21800 {
Hans de Goedea4e10992014-06-30 23:57:58 +0200802 compatible = "allwinner,sun4i-a10-ir";
Priit Laes41193862017-08-23 20:23:33 +0300803 clocks = <&ccu CLK_APB0_IR0>, <&ccu CLK_IR0>;
Hans de Goedea4e10992014-06-30 23:57:58 +0200804 clock-names = "apb", "ir";
805 interrupts = <5>;
806 reg = <0x01c21800 0x40>;
807 status = "disabled";
808 };
809
Maxime Ripard5841f6c2017-10-05 12:49:36 +0200810 ir1: ir@1c21c00 {
Hans de Goedea4e10992014-06-30 23:57:58 +0200811 compatible = "allwinner,sun4i-a10-ir";
Priit Laes41193862017-08-23 20:23:33 +0300812 clocks = <&ccu CLK_APB0_IR1>, <&ccu CLK_IR1>;
Hans de Goedea4e10992014-06-30 23:57:58 +0200813 clock-names = "apb", "ir";
814 interrupts = <6>;
815 reg = <0x01c21c00 0x40>;
816 status = "disabled";
817 };
818
Maxime Ripard5841f6c2017-10-05 12:49:36 +0200819 i2s0: i2s@1c22400 {
Priit Laesd84a0c02017-09-03 16:50:18 +0300820 #sound-dai-cells = <0>;
821 compatible = "allwinner,sun4i-a10-i2s";
822 reg = <0x01c22400 0x400>;
823 interrupts = <16>;
824 clocks = <&ccu CLK_APB0_I2S0>, <&ccu CLK_I2S0>;
825 clock-names = "apb", "mod";
826 dmas = <&dma SUN4I_DMA_NORMAL 3>,
827 <&dma SUN4I_DMA_NORMAL 3>;
828 dma-names = "rx", "tx";
829 status = "disabled";
830 };
831
Maxime Ripard5841f6c2017-10-05 12:49:36 +0200832 lradc: lradc@1c22800 {
Hans de Goedeb0512e12014-12-23 11:13:20 +0100833 compatible = "allwinner,sun4i-a10-lradc-keys";
834 reg = <0x01c22800 0x100>;
835 interrupts = <31>;
836 status = "disabled";
837 };
838
Maxime Ripard5841f6c2017-10-05 12:49:36 +0200839 codec: codec@1c22c00 {
Marcus Cooperbcf88452014-07-22 13:06:48 +0200840 #sound-dai-cells = <0>;
841 compatible = "allwinner,sun4i-a10-codec";
842 reg = <0x01c22c00 0x40>;
843 interrupts = <30>;
Priit Laes41193862017-08-23 20:23:33 +0300844 clocks = <&ccu CLK_APB0_CODEC>, <&ccu CLK_CODEC>;
Marcus Cooperbcf88452014-07-22 13:06:48 +0200845 clock-names = "apb", "codec";
846 dmas = <&dma SUN4I_DMA_NORMAL 19>,
847 <&dma SUN4I_DMA_NORMAL 19>;
848 dma-names = "rx", "tx";
849 status = "disabled";
850 };
851
Maxime Ripard5841f6c2017-10-05 12:49:36 +0200852 sid: eeprom@1c23800 {
Maxime Ripard043d56e2014-02-07 22:20:40 +0100853 compatible = "allwinner,sun4i-a10-sid";
Oliver Schinagl2bad9692013-09-03 12:33:28 +0200854 reg = <0x01c23800 0x10>;
855 };
856
Maxime Ripard5841f6c2017-10-05 12:49:36 +0200857 rtp: rtp@1c25000 {
Maxime Ripard40dd8f32014-02-02 14:52:40 +0100858 compatible = "allwinner,sun4i-a10-ts";
Hans de Goede57c88392013-12-31 17:20:50 +0100859 reg = <0x01c25000 0x100>;
860 interrupts = <29>;
Chen-Yu Tsai41e7afb2015-01-06 10:35:15 +0800861 #thermal-sensor-cells = <0>;
Hans de Goede57c88392013-12-31 17:20:50 +0100862 };
863
Maxime Ripard5841f6c2017-10-05 12:49:36 +0200864 uart0: serial@1c28000 {
Maxime Ripard89b3c992013-02-20 17:25:03 -0800865 compatible = "snps,dw-apb-uart";
866 reg = <0x01c28000 0x400>;
867 interrupts = <1>;
868 reg-shift = <2>;
869 reg-io-width = <4>;
Priit Laes41193862017-08-23 20:23:33 +0300870 clocks = <&ccu CLK_APB1_UART0>;
Maxime Ripard89b3c992013-02-20 17:25:03 -0800871 status = "disabled";
872 };
Maxime Ripard76f14d0a2013-02-20 17:38:27 -0800873
Maxime Ripard5841f6c2017-10-05 12:49:36 +0200874 uart1: serial@1c28400 {
Maxime Ripard69144e32013-03-13 20:07:37 +0100875 compatible = "snps,dw-apb-uart";
876 reg = <0x01c28400 0x400>;
877 interrupts = <2>;
878 reg-shift = <2>;
879 reg-io-width = <4>;
Priit Laes41193862017-08-23 20:23:33 +0300880 clocks = <&ccu CLK_APB1_UART1>;
Maxime Ripard69144e32013-03-13 20:07:37 +0100881 status = "disabled";
882 };
883
Maxime Ripard5841f6c2017-10-05 12:49:36 +0200884 uart2: serial@1c28800 {
Maxime Ripard76f14d0a2013-02-20 17:38:27 -0800885 compatible = "snps,dw-apb-uart";
886 reg = <0x01c28800 0x400>;
887 interrupts = <3>;
888 reg-shift = <2>;
889 reg-io-width = <4>;
Priit Laes41193862017-08-23 20:23:33 +0300890 clocks = <&ccu CLK_APB1_UART2>;
Maxime Ripard76f14d0a2013-02-20 17:38:27 -0800891 status = "disabled";
892 };
893
Maxime Ripard5841f6c2017-10-05 12:49:36 +0200894 uart3: serial@1c28c00 {
Maxime Ripard69144e32013-03-13 20:07:37 +0100895 compatible = "snps,dw-apb-uart";
896 reg = <0x01c28c00 0x400>;
897 interrupts = <4>;
898 reg-shift = <2>;
899 reg-io-width = <4>;
Priit Laes41193862017-08-23 20:23:33 +0300900 clocks = <&ccu CLK_APB1_UART3>;
Maxime Ripard69144e32013-03-13 20:07:37 +0100901 status = "disabled";
902 };
903
Maxime Ripard5841f6c2017-10-05 12:49:36 +0200904 uart4: serial@1c29000 {
Maxime Ripard76f14d0a2013-02-20 17:38:27 -0800905 compatible = "snps,dw-apb-uart";
906 reg = <0x01c29000 0x400>;
907 interrupts = <17>;
908 reg-shift = <2>;
909 reg-io-width = <4>;
Priit Laes41193862017-08-23 20:23:33 +0300910 clocks = <&ccu CLK_APB1_UART4>;
Maxime Ripard76f14d0a2013-02-20 17:38:27 -0800911 status = "disabled";
912 };
913
Maxime Ripard5841f6c2017-10-05 12:49:36 +0200914 uart5: serial@1c29400 {
Maxime Ripard76f14d0a2013-02-20 17:38:27 -0800915 compatible = "snps,dw-apb-uart";
916 reg = <0x01c29400 0x400>;
917 interrupts = <18>;
918 reg-shift = <2>;
919 reg-io-width = <4>;
Priit Laes41193862017-08-23 20:23:33 +0300920 clocks = <&ccu CLK_APB1_UART5>;
Maxime Ripard76f14d0a2013-02-20 17:38:27 -0800921 status = "disabled";
922 };
923
Maxime Ripard5841f6c2017-10-05 12:49:36 +0200924 uart6: serial@1c29800 {
Maxime Ripard76f14d0a2013-02-20 17:38:27 -0800925 compatible = "snps,dw-apb-uart";
926 reg = <0x01c29800 0x400>;
927 interrupts = <19>;
928 reg-shift = <2>;
929 reg-io-width = <4>;
Priit Laes41193862017-08-23 20:23:33 +0300930 clocks = <&ccu CLK_APB1_UART6>;
Maxime Ripard76f14d0a2013-02-20 17:38:27 -0800931 status = "disabled";
932 };
933
Maxime Ripard5841f6c2017-10-05 12:49:36 +0200934 uart7: serial@1c29c00 {
Maxime Ripard76f14d0a2013-02-20 17:38:27 -0800935 compatible = "snps,dw-apb-uart";
936 reg = <0x01c29c00 0x400>;
937 interrupts = <20>;
938 reg-shift = <2>;
939 reg-io-width = <4>;
Priit Laes41193862017-08-23 20:23:33 +0300940 clocks = <&ccu CLK_APB1_UART7>;
Maxime Ripard76f14d0a2013-02-20 17:38:27 -0800941 status = "disabled";
942 };
Maxime Ripardf1741fd2013-03-10 13:34:36 +0100943
Maxime Ripard5841f6c2017-10-05 12:49:36 +0200944 ps20: ps2@1c2a000 {
Patrick Menschela2294bd2017-04-04 20:36:27 +0200945 compatible = "allwinner,sun4i-a10-ps2";
946 reg = <0x01c2a000 0x400>;
947 interrupts = <62>;
Priit Laes41193862017-08-23 20:23:33 +0300948 clocks = <&ccu CLK_APB1_PS20>;
Patrick Menschela2294bd2017-04-04 20:36:27 +0200949 status = "disabled";
950 };
951
Maxime Ripard5841f6c2017-10-05 12:49:36 +0200952 ps21: ps2@1c2a400 {
Patrick Menschela2294bd2017-04-04 20:36:27 +0200953 compatible = "allwinner,sun4i-a10-ps2";
954 reg = <0x01c2a400 0x400>;
955 interrupts = <63>;
Priit Laes41193862017-08-23 20:23:33 +0300956 clocks = <&ccu CLK_APB1_PS21>;
Patrick Menschela2294bd2017-04-04 20:36:27 +0200957 status = "disabled";
958 };
959
Maxime Ripard5841f6c2017-10-05 12:49:36 +0200960 i2c0: i2c@1c2ac00 {
Maxime Ripardd2755452014-03-31 14:54:58 +0200961 compatible = "allwinner,sun4i-a10-i2c";
Maxime Ripardf1741fd2013-03-10 13:34:36 +0100962 reg = <0x01c2ac00 0x400>;
963 interrupts = <7>;
Priit Laes41193862017-08-23 20:23:33 +0300964 clocks = <&ccu CLK_APB1_I2C0>;
Maxime Ripardbca0d7d2017-10-05 10:43:28 +0200965 pinctrl-names = "default";
966 pinctrl-0 = <&i2c0_pins>;
Maxime Ripardf1741fd2013-03-10 13:34:36 +0100967 status = "disabled";
Hans de Goede60bbe312014-04-13 13:41:03 +0200968 #address-cells = <1>;
969 #size-cells = <0>;
Maxime Ripardf1741fd2013-03-10 13:34:36 +0100970 };
971
Maxime Ripard5841f6c2017-10-05 12:49:36 +0200972 i2c1: i2c@1c2b000 {
Maxime Ripardd2755452014-03-31 14:54:58 +0200973 compatible = "allwinner,sun4i-a10-i2c";
Maxime Ripardf1741fd2013-03-10 13:34:36 +0100974 reg = <0x01c2b000 0x400>;
975 interrupts = <8>;
Priit Laes41193862017-08-23 20:23:33 +0300976 clocks = <&ccu CLK_APB1_I2C1>;
Maxime Ripardbca0d7d2017-10-05 10:43:28 +0200977 pinctrl-names = "default";
978 pinctrl-0 = <&i2c1_pins>;
Maxime Ripardf1741fd2013-03-10 13:34:36 +0100979 status = "disabled";
Hans de Goede60bbe312014-04-13 13:41:03 +0200980 #address-cells = <1>;
981 #size-cells = <0>;
Maxime Ripardf1741fd2013-03-10 13:34:36 +0100982 };
983
Maxime Ripard5841f6c2017-10-05 12:49:36 +0200984 i2c2: i2c@1c2b400 {
Maxime Ripardd2755452014-03-31 14:54:58 +0200985 compatible = "allwinner,sun4i-a10-i2c";
Maxime Ripardf1741fd2013-03-10 13:34:36 +0100986 reg = <0x01c2b400 0x400>;
987 interrupts = <9>;
Priit Laes41193862017-08-23 20:23:33 +0300988 clocks = <&ccu CLK_APB1_I2C2>;
Maxime Ripardbca0d7d2017-10-05 10:43:28 +0200989 pinctrl-names = "default";
990 pinctrl-0 = <&i2c2_pins>;
Maxime Ripardf1741fd2013-03-10 13:34:36 +0100991 status = "disabled";
Hans de Goede60bbe312014-04-13 13:41:03 +0200992 #address-cells = <1>;
993 #size-cells = <0>;
Maxime Ripardf1741fd2013-03-10 13:34:36 +0100994 };
Vishnu Patekar196654a2015-01-25 19:10:08 +0530995
Maxime Ripard5841f6c2017-10-05 12:49:36 +0200996 can0: can@1c2bc00 {
Patrick Menscheladb83472017-04-03 19:00:11 +0200997 compatible = "allwinner,sun4i-a10-can";
998 reg = <0x01c2bc00 0x400>;
999 interrupts = <26>;
Priit Laes41193862017-08-23 20:23:33 +03001000 clocks = <&ccu CLK_APB1_CAN>;
Patrick Menscheladb83472017-04-03 19:00:11 +02001001 status = "disabled";
1002 };
Chen-Yu Tsai0df4cf332017-10-17 20:18:04 +08001003
1004 fe0: display-frontend@1e00000 {
1005 compatible = "allwinner,sun4i-a10-display-frontend";
1006 reg = <0x01e00000 0x20000>;
1007 interrupts = <47>;
1008 clocks = <&ccu CLK_AHB_DE_FE0>, <&ccu CLK_DE_FE0>,
1009 <&ccu CLK_DRAM_DE_FE0>;
1010 clock-names = "ahb", "mod",
1011 "ram";
1012 resets = <&ccu RST_DE_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 };
1027
1028 fe0_out_be1: endpoint@1 {
1029 reg = <1>;
1030 remote-endpoint = <&be1_in_fe0>;
1031 };
1032 };
1033 };
1034 };
1035
1036 fe1: display-frontend@1e20000 {
1037 compatible = "allwinner,sun4i-a10-display-frontend";
1038 reg = <0x01e20000 0x20000>;
1039 interrupts = <48>;
1040 clocks = <&ccu CLK_AHB_DE_FE1>, <&ccu CLK_DE_FE1>,
1041 <&ccu CLK_DRAM_DE_FE1>;
1042 clock-names = "ahb", "mod",
1043 "ram";
1044 resets = <&ccu RST_DE_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
1068 be1: display-backend@1e40000 {
1069 compatible = "allwinner,sun4i-a10-display-backend";
1070 reg = <0x01e40000 0x10000>;
1071 interrupts = <48>;
1072 clocks = <&ccu CLK_AHB_DE_BE1>, <&ccu CLK_DE_BE1>,
1073 <&ccu CLK_DRAM_DE_BE1>;
1074 clock-names = "ahb", "mod",
1075 "ram";
1076 resets = <&ccu RST_DE_BE1>;
1077
1078 ports {
1079 #address-cells = <1>;
1080 #size-cells = <0>;
1081
1082 be1_in: port@0 {
1083 #address-cells = <1>;
1084 #size-cells = <0>;
1085 reg = <0>;
1086
1087 be1_in_fe0: endpoint@0 {
1088 reg = <0>;
1089 remote-endpoint = <&fe0_out_be1>;
1090 };
1091
1092 be1_in_fe1: endpoint@1 {
1093 reg = <1>;
1094 remote-endpoint = <&fe1_out_be1>;
1095 };
1096 };
1097
1098 be1_out: port@1 {
1099 #address-cells = <1>;
1100 #size-cells = <0>;
1101 reg = <1>;
1102
1103 be1_out_tcon0: endpoint@0 {
1104 reg = <0>;
Chen-Yu Tsaibdae4472018-01-04 00:31:55 +08001105 remote-endpoint = <&tcon0_in_be1>;
Chen-Yu Tsai0df4cf332017-10-17 20:18:04 +08001106 };
1107
1108 be1_out_tcon1: endpoint@1 {
1109 reg = <1>;
1110 remote-endpoint = <&tcon1_in_be1>;
1111 };
1112 };
1113 };
1114 };
1115
1116 be0: display-backend@1e60000 {
1117 compatible = "allwinner,sun4i-a10-display-backend";
1118 reg = <0x01e60000 0x10000>;
1119 interrupts = <47>;
1120 clocks = <&ccu CLK_AHB_DE_BE0>, <&ccu CLK_DE_BE0>,
1121 <&ccu CLK_DRAM_DE_BE0>;
1122 clock-names = "ahb", "mod",
1123 "ram";
1124 resets = <&ccu RST_DE_BE0>;
1125
1126 ports {
1127 #address-cells = <1>;
1128 #size-cells = <0>;
1129
1130 be0_in: port@0 {
1131 #address-cells = <1>;
1132 #size-cells = <0>;
1133 reg = <0>;
1134
1135 be0_in_fe0: endpoint@0 {
1136 reg = <0>;
1137 remote-endpoint = <&fe0_out_be0>;
1138 };
1139
1140 be0_in_fe1: endpoint@1 {
1141 reg = <1>;
1142 remote-endpoint = <&fe1_out_be0>;
1143 };
1144 };
1145
1146 be0_out: port@1 {
1147 #address-cells = <1>;
1148 #size-cells = <0>;
1149 reg = <1>;
1150
1151 be0_out_tcon0: endpoint@0 {
1152 reg = <0>;
1153 remote-endpoint = <&tcon0_in_be0>;
1154 };
1155
1156 be0_out_tcon1: endpoint@1 {
1157 reg = <1>;
1158 remote-endpoint = <&tcon1_in_be0>;
1159 };
1160 };
1161 };
1162 };
Maxime Ripard874b4e42013-01-26 15:36:54 +01001163 };
Stefan Roese7423d2d2012-11-26 15:46:12 +01001164};