]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - sys/gnu/dts/arm/sun7i-a20.dtsi
Update apr-util to 1.6.1. See contrib/apr-util/CHANGES for a summary of
[FreeBSD/FreeBSD.git] / sys / gnu / dts / arm / sun7i-a20.dtsi
1 /*
2  * Copyright 2013 Maxime Ripard
3  *
4  * Maxime Ripard <maxime.ripard@free-electrons.com>
5  *
6  * 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.
10  *
11  *  a) This file is free software; you can redistribute it and/or
12  *     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  *
16  *     This file is distributed in the hope that it will be useful,
17  *     but WITHOUT ANY WARRANTY; without even the implied warranty of
18  *     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
19  *     GNU General Public License for more details.
20  *
21  * 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.
43  */
44
45 #include <dt-bindings/interrupt-controller/arm-gic.h>
46 #include <dt-bindings/thermal/thermal.h>
47 #include <dt-bindings/dma/sun4i-a10.h>
48 #include <dt-bindings/clock/sun7i-a20-ccu.h>
49 #include <dt-bindings/reset/sun4i-a10-ccu.h>
50
51 / {
52         interrupt-parent = <&gic>;
53         #address-cells = <1>;
54         #size-cells = <1>;
55
56         aliases {
57                 ethernet0 = &gmac;
58         };
59
60         chosen {
61                 #address-cells = <1>;
62                 #size-cells = <1>;
63                 ranges;
64
65                 framebuffer-lcd0-hdmi {
66                         compatible = "allwinner,simple-framebuffer",
67                                      "simple-framebuffer";
68                         allwinner,pipeline = "de_be0-lcd0-hdmi";
69                         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>;
73                         status = "disabled";
74                 };
75
76                 framebuffer-lcd0 {
77                         compatible = "allwinner,simple-framebuffer",
78                                      "simple-framebuffer";
79                         allwinner,pipeline = "de_be0-lcd0";
80                         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>;
83                         status = "disabled";
84                 };
85
86                 framebuffer-lcd0-tve0 {
87                         compatible = "allwinner,simple-framebuffer",
88                                      "simple-framebuffer";
89                         allwinner,pipeline = "de_be0-lcd0-tve0";
90                         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>;
94                         status = "disabled";
95                 };
96         };
97
98         cpus {
99                 #address-cells = <1>;
100                 #size-cells = <0>;
101
102                 cpu0: cpu@0 {
103                         compatible = "arm,cortex-a7";
104                         device_type = "cpu";
105                         reg = <0>;
106                         clocks = <&ccu CLK_CPU>;
107                         clock-latency = <244144>; /* 8 32k periods */
108                         operating-points = <
109                                 /* kHz    uV */
110                                 960000  1400000
111                                 912000  1400000
112                                 864000  1300000
113                                 720000  1200000
114                                 528000  1100000
115                                 312000  1000000
116                                 144000  1000000
117                                 >;
118                         #cooling-cells = <2>;
119                 };
120
121                 cpu1: cpu@1 {
122                         compatible = "arm,cortex-a7";
123                         device_type = "cpu";
124                         reg = <1>;
125                         clocks = <&ccu CLK_CPU>;
126                         clock-latency = <244144>; /* 8 32k periods */
127                         operating-points = <
128                                 /* kHz    uV */
129                                 960000  1400000
130                                 912000  1400000
131                                 864000  1300000
132                                 720000  1200000
133                                 528000  1100000
134                                 312000  1000000
135                                 144000  1000000
136                                 >;
137                         #cooling-cells = <2>;
138                 };
139         };
140
141         thermal-zones {
142                 cpu_thermal {
143                         /* milliseconds */
144                         polling-delay-passive = <250>;
145                         polling-delay = <1000>;
146                         thermal-sensors = <&rtp>;
147
148                         cooling-maps {
149                                 map0 {
150                                         trip = <&cpu_alert0>;
151                                         cooling-device = <&cpu0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
152                                                          <&cpu1 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
153                                 };
154                         };
155
156                         trips {
157                                 cpu_alert0: cpu_alert0 {
158                                         /* milliCelsius */
159                                         temperature = <75000>;
160                                         hysteresis = <2000>;
161                                         type = "passive";
162                                 };
163
164                                 cpu_crit: cpu_crit {
165                                         /* milliCelsius */
166                                         temperature = <100000>;
167                                         hysteresis = <2000>;
168                                         type = "critical";
169                                 };
170                         };
171                 };
172         };
173
174         reserved-memory {
175                 #address-cells = <1>;
176                 #size-cells = <1>;
177                 ranges;
178
179                 /* Address must be kept in the lower 256 MiBs of DRAM for VE. */
180                 default-pool {
181                         compatible = "shared-dma-pool";
182                         size = <0x6000000>;
183                         alloc-ranges = <0x4a000000 0x6000000>;
184                         reusable;
185                         linux,cma-default;
186                 };
187         };
188
189         timer {
190                 compatible = "arm,armv7-timer";
191                 interrupts = <GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
192                              <GIC_PPI 14 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
193                              <GIC_PPI 11 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
194                              <GIC_PPI 10 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>;
195         };
196
197         pmu {
198                 compatible = "arm,cortex-a7-pmu";
199                 interrupts = <GIC_SPI 120 IRQ_TYPE_LEVEL_HIGH>,
200                              <GIC_SPI 121 IRQ_TYPE_LEVEL_HIGH>;
201         };
202
203         clocks {
204                 #address-cells = <1>;
205                 #size-cells = <1>;
206                 ranges;
207
208                 osc24M: clk-24M {
209                         #clock-cells = <0>;
210                         compatible = "fixed-clock";
211                         clock-frequency = <24000000>;
212                         clock-output-names = "osc24M";
213                 };
214
215                 osc32k: clk-32k {
216                         #clock-cells = <0>;
217                         compatible = "fixed-clock";
218                         clock-frequency = <32768>;
219                         clock-output-names = "osc32k";
220                 };
221
222                 /*
223                  * The following two are dummy clocks, placeholders
224                  * used in the gmac_tx clock. The gmac driver will
225                  * choose one parent depending on the PHY interface
226                  * mode, using clk_set_rate auto-reparenting.
227                  *
228                  * The actual TX clock rate is not controlled by the
229                  * gmac_tx clock.
230                  */
231                 mii_phy_tx_clk: clk-mii-phy-tx {
232                         #clock-cells = <0>;
233                         compatible = "fixed-clock";
234                         clock-frequency = <25000000>;
235                         clock-output-names = "mii_phy_tx";
236                 };
237
238                 gmac_int_tx_clk: clk-gmac-int-tx {
239                         #clock-cells = <0>;
240                         compatible = "fixed-clock";
241                         clock-frequency = <125000000>;
242                         clock-output-names = "gmac_int_tx";
243                 };
244
245                 gmac_tx_clk: clk@1c20164 {
246                         #clock-cells = <0>;
247                         compatible = "allwinner,sun7i-a20-gmac-clk";
248                         reg = <0x01c20164 0x4>;
249                         clocks = <&mii_phy_tx_clk>, <&gmac_int_tx_clk>;
250                         clock-output-names = "gmac_tx";
251                 };
252         };
253
254
255         de: display-engine {
256                 compatible = "allwinner,sun7i-a20-display-engine";
257                 allwinner,pipelines = <&fe0>, <&fe1>;
258                 status = "disabled";
259         };
260
261         soc {
262                 compatible = "simple-bus";
263                 #address-cells = <1>;
264                 #size-cells = <1>;
265                 ranges;
266
267                 system-control@1c00000 {
268                         compatible = "allwinner,sun7i-a20-system-control",
269                                      "allwinner,sun4i-a10-system-control";
270                         reg = <0x01c00000 0x30>;
271                         #address-cells = <1>;
272                         #size-cells = <1>;
273                         ranges;
274
275                         sram_a: sram@0 {
276                                 compatible = "mmio-sram";
277                                 reg = <0x00000000 0xc000>;
278                                 #address-cells = <1>;
279                                 #size-cells = <1>;
280                                 ranges = <0 0x00000000 0xc000>;
281
282                                 emac_sram: sram-section@8000 {
283                                         compatible = "allwinner,sun7i-a20-sram-a3-a4",
284                                                      "allwinner,sun4i-a10-sram-a3-a4";
285                                         reg = <0x8000 0x4000>;
286                                         status = "disabled";
287                                 };
288                         };
289
290                         sram_d: sram@10000 {
291                                 compatible = "mmio-sram";
292                                 reg = <0x00010000 0x1000>;
293                                 #address-cells = <1>;
294                                 #size-cells = <1>;
295                                 ranges = <0 0x00010000 0x1000>;
296
297                                 otg_sram: sram-section@0 {
298                                         compatible = "allwinner,sun7i-a20-sram-d",
299                                                      "allwinner,sun4i-a10-sram-d";
300                                         reg = <0x0000 0x1000>;
301                                         status = "disabled";
302                                 };
303                         };
304
305                         sram_c: sram@1d00000 {
306                                 compatible = "mmio-sram";
307                                 reg = <0x01d00000 0xd0000>;
308                                 #address-cells = <1>;
309                                 #size-cells = <1>;
310                                 ranges = <0 0x01d00000 0xd0000>;
311
312                                 ve_sram: sram-section@0 {
313                                         compatible = "allwinner,sun7i-a20-sram-c1",
314                                                      "allwinner,sun4i-a10-sram-c1";
315                                         reg = <0x000000 0x80000>;
316                                 };
317                         };
318                 };
319
320                 nmi_intc: interrupt-controller@1c00030 {
321                         compatible = "allwinner,sun7i-a20-sc-nmi";
322                         interrupt-controller;
323                         #interrupt-cells = <2>;
324                         reg = <0x01c00030 0x0c>;
325                         interrupts = <GIC_SPI 0 IRQ_TYPE_LEVEL_HIGH>;
326                 };
327
328                 dma: dma-controller@1c02000 {
329                         compatible = "allwinner,sun4i-a10-dma";
330                         reg = <0x01c02000 0x1000>;
331                         interrupts = <GIC_SPI 27 IRQ_TYPE_LEVEL_HIGH>;
332                         clocks = <&ccu CLK_AHB_DMA>;
333                         #dma-cells = <2>;
334                 };
335
336                 nfc: nand-controller@1c03000 {
337                         compatible = "allwinner,sun4i-a10-nand";
338                         reg = <0x01c03000 0x1000>;
339                         interrupts = <GIC_SPI 37 IRQ_TYPE_LEVEL_HIGH>;
340                         clocks = <&ccu CLK_AHB_NAND>, <&ccu CLK_NAND>;
341                         clock-names = "ahb", "mod";
342                         dmas = <&dma SUN4I_DMA_DEDICATED 3>;
343                         dma-names = "rxtx";
344                         status = "disabled";
345                         #address-cells = <1>;
346                         #size-cells = <0>;
347                 };
348
349                 spi0: spi@1c05000 {
350                         compatible = "allwinner,sun4i-a10-spi";
351                         reg = <0x01c05000 0x1000>;
352                         interrupts = <GIC_SPI 10 IRQ_TYPE_LEVEL_HIGH>;
353                         clocks = <&ccu CLK_AHB_SPI0>, <&ccu CLK_SPI0>;
354                         clock-names = "ahb", "mod";
355                         dmas = <&dma SUN4I_DMA_DEDICATED 27>,
356                                <&dma SUN4I_DMA_DEDICATED 26>;
357                         dma-names = "rx", "tx";
358                         status = "disabled";
359                         #address-cells = <1>;
360                         #size-cells = <0>;
361                         num-cs = <4>;
362                 };
363
364                 spi1: spi@1c06000 {
365                         compatible = "allwinner,sun4i-a10-spi";
366                         reg = <0x01c06000 0x1000>;
367                         interrupts = <GIC_SPI 11 IRQ_TYPE_LEVEL_HIGH>;
368                         clocks = <&ccu CLK_AHB_SPI1>, <&ccu CLK_SPI1>;
369                         clock-names = "ahb", "mod";
370                         dmas = <&dma SUN4I_DMA_DEDICATED 9>,
371                                <&dma SUN4I_DMA_DEDICATED 8>;
372                         dma-names = "rx", "tx";
373                         status = "disabled";
374                         #address-cells = <1>;
375                         #size-cells = <0>;
376                         num-cs = <1>;
377                 };
378
379                 csi0: csi@1c09000 {
380                         compatible = "allwinner,sun7i-a20-csi0";
381                         reg = <0x01c09000 0x1000>;
382                         interrupts = <GIC_SPI 42 IRQ_TYPE_LEVEL_HIGH>;
383                         clocks = <&ccu CLK_AHB_CSI0>, <&ccu CLK_CSI_SCLK>, <&ccu CLK_DRAM_CSI0>;
384                         clock-names = "bus", "isp", "ram";
385                         resets = <&ccu RST_CSI0>;
386                         status = "disabled";
387                 };
388
389                 emac: ethernet@1c0b000 {
390                         compatible = "allwinner,sun4i-a10-emac";
391                         reg = <0x01c0b000 0x1000>;
392                         interrupts = <GIC_SPI 55 IRQ_TYPE_LEVEL_HIGH>;
393                         clocks = <&ccu CLK_AHB_EMAC>;
394                         allwinner,sram = <&emac_sram 1>;
395                         status = "disabled";
396                 };
397
398                 mdio: mdio@1c0b080 {
399                         compatible = "allwinner,sun4i-a10-mdio";
400                         reg = <0x01c0b080 0x14>;
401                         status = "disabled";
402                         #address-cells = <1>;
403                         #size-cells = <0>;
404                 };
405
406                 tcon0: lcd-controller@1c0c000 {
407                         compatible = "allwinner,sun7i-a20-tcon";
408                         reg = <0x01c0c000 0x1000>;
409                         interrupts = <GIC_SPI 44 IRQ_TYPE_LEVEL_HIGH>;
410                         resets = <&ccu RST_TCON0>;
411                         reset-names = "lcd";
412                         clocks = <&ccu CLK_AHB_LCD0>,
413                                  <&ccu CLK_TCON0_CH0>,
414                                  <&ccu CLK_TCON0_CH1>;
415                         clock-names = "ahb",
416                                       "tcon-ch0",
417                                       "tcon-ch1";
418                         clock-output-names = "tcon0-pixel-clock";
419                         #clock-cells = <0>;
420                         dmas = <&dma SUN4I_DMA_DEDICATED 14>;
421
422                         ports {
423                                 #address-cells = <1>;
424                                 #size-cells = <0>;
425
426                                 tcon0_in: port@0 {
427                                         #address-cells = <1>;
428                                         #size-cells = <0>;
429                                         reg = <0>;
430
431                                         tcon0_in_be0: endpoint@0 {
432                                                 reg = <0>;
433                                                 remote-endpoint = <&be0_out_tcon0>;
434                                         };
435
436                                         tcon0_in_be1: endpoint@1 {
437                                                 reg = <1>;
438                                                 remote-endpoint = <&be1_out_tcon0>;
439                                         };
440                                 };
441
442                                 tcon0_out: port@1 {
443                                         #address-cells = <1>;
444                                         #size-cells = <0>;
445                                         reg = <1>;
446
447                                         tcon0_out_hdmi: endpoint@1 {
448                                                 reg = <1>;
449                                                 remote-endpoint = <&hdmi_in_tcon0>;
450                                                 allwinner,tcon-channel = <1>;
451                                         };
452                                 };
453                         };
454                 };
455
456                 tcon1: lcd-controller@1c0d000 {
457                         compatible = "allwinner,sun7i-a20-tcon";
458                         reg = <0x01c0d000 0x1000>;
459                         interrupts = <GIC_SPI 45 IRQ_TYPE_LEVEL_HIGH>;
460                         resets = <&ccu RST_TCON1>;
461                         reset-names = "lcd";
462                         clocks = <&ccu CLK_AHB_LCD1>,
463                                  <&ccu CLK_TCON1_CH0>,
464                                  <&ccu CLK_TCON1_CH1>;
465                         clock-names = "ahb",
466                                       "tcon-ch0",
467                                       "tcon-ch1";
468                         clock-output-names = "tcon1-pixel-clock";
469                         #clock-cells = <0>;
470                         dmas = <&dma SUN4I_DMA_DEDICATED 15>;
471
472                         ports {
473                                 #address-cells = <1>;
474                                 #size-cells = <0>;
475
476                                 tcon1_in: port@0 {
477                                         #address-cells = <1>;
478                                         #size-cells = <0>;
479                                         reg = <0>;
480
481                                         tcon1_in_be0: endpoint@0 {
482                                                 reg = <0>;
483                                                 remote-endpoint = <&be0_out_tcon1>;
484                                         };
485
486                                         tcon1_in_be1: endpoint@1 {
487                                                 reg = <1>;
488                                                 remote-endpoint = <&be1_out_tcon1>;
489                                         };
490                                 };
491
492                                 tcon1_out: port@1 {
493                                         #address-cells = <1>;
494                                         #size-cells = <0>;
495                                         reg = <1>;
496
497                                         tcon1_out_hdmi: endpoint@1 {
498                                                 reg = <1>;
499                                                 remote-endpoint = <&hdmi_in_tcon1>;
500                                                 allwinner,tcon-channel = <1>;
501                                         };
502                                 };
503                         };
504                 };
505
506                 video-codec@1c0e000 {
507                         compatible = "allwinner,sun7i-a20-video-engine";
508                         reg = <0x01c0e000 0x1000>;
509                         clocks = <&ccu CLK_AHB_VE>, <&ccu CLK_VE>,
510                                  <&ccu CLK_DRAM_VE>;
511                         clock-names = "ahb", "mod", "ram";
512                         resets = <&ccu RST_VE>;
513                         interrupts = <GIC_SPI 53 IRQ_TYPE_LEVEL_HIGH>;
514                         allwinner,sram = <&ve_sram 1>;
515                 };
516
517                 mmc0: mmc@1c0f000 {
518                         compatible = "allwinner,sun7i-a20-mmc";
519                         reg = <0x01c0f000 0x1000>;
520                         clocks = <&ccu CLK_AHB_MMC0>,
521                                  <&ccu CLK_MMC0>,
522                                  <&ccu CLK_MMC0_OUTPUT>,
523                                  <&ccu CLK_MMC0_SAMPLE>;
524                         clock-names = "ahb",
525                                       "mmc",
526                                       "output",
527                                       "sample";
528                         interrupts = <GIC_SPI 32 IRQ_TYPE_LEVEL_HIGH>;
529                         pinctrl-names = "default";
530                         pinctrl-0 = <&mmc0_pins>;
531                         status = "disabled";
532                         #address-cells = <1>;
533                         #size-cells = <0>;
534                 };
535
536                 mmc1: mmc@1c10000 {
537                         compatible = "allwinner,sun7i-a20-mmc";
538                         reg = <0x01c10000 0x1000>;
539                         clocks = <&ccu CLK_AHB_MMC1>,
540                                  <&ccu CLK_MMC1>,
541                                  <&ccu CLK_MMC1_OUTPUT>,
542                                  <&ccu CLK_MMC1_SAMPLE>;
543                         clock-names = "ahb",
544                                       "mmc",
545                                       "output",
546                                       "sample";
547                         interrupts = <GIC_SPI 33 IRQ_TYPE_LEVEL_HIGH>;
548                         status = "disabled";
549                         #address-cells = <1>;
550                         #size-cells = <0>;
551                 };
552
553                 mmc2: mmc@1c11000 {
554                         compatible = "allwinner,sun7i-a20-mmc";
555                         reg = <0x01c11000 0x1000>;
556                         clocks = <&ccu CLK_AHB_MMC2>,
557                                  <&ccu CLK_MMC2>,
558                                  <&ccu CLK_MMC2_OUTPUT>,
559                                  <&ccu CLK_MMC2_SAMPLE>;
560                         clock-names = "ahb",
561                                       "mmc",
562                                       "output",
563                                       "sample";
564                         interrupts = <GIC_SPI 34 IRQ_TYPE_LEVEL_HIGH>;
565                         pinctrl-names = "default";
566                         pinctrl-0 = <&mmc2_pins>;
567                         status = "disabled";
568                         #address-cells = <1>;
569                         #size-cells = <0>;
570                 };
571
572                 mmc3: mmc@1c12000 {
573                         compatible = "allwinner,sun7i-a20-mmc";
574                         reg = <0x01c12000 0x1000>;
575                         clocks = <&ccu CLK_AHB_MMC3>,
576                                  <&ccu CLK_MMC3>,
577                                  <&ccu CLK_MMC3_OUTPUT>,
578                                  <&ccu CLK_MMC3_SAMPLE>;
579                         clock-names = "ahb",
580                                       "mmc",
581                                       "output",
582                                       "sample";
583                         interrupts = <GIC_SPI 35 IRQ_TYPE_LEVEL_HIGH>;
584                         pinctrl-names = "default";
585                         pinctrl-0 = <&mmc3_pins>;
586                         status = "disabled";
587                         #address-cells = <1>;
588                         #size-cells = <0>;
589                 };
590
591                 usb_otg: usb@1c13000 {
592                         compatible = "allwinner,sun4i-a10-musb";
593                         reg = <0x01c13000 0x0400>;
594                         clocks = <&ccu CLK_AHB_OTG>;
595                         interrupts = <GIC_SPI 38 IRQ_TYPE_LEVEL_HIGH>;
596                         interrupt-names = "mc";
597                         phys = <&usbphy 0>;
598                         phy-names = "usb";
599                         extcon = <&usbphy 0>;
600                         allwinner,sram = <&otg_sram 1>;
601                         dr_mode = "otg";
602                         status = "disabled";
603                 };
604
605                 usbphy: phy@1c13400 {
606                         #phy-cells = <1>;
607                         compatible = "allwinner,sun7i-a20-usb-phy";
608                         reg = <0x01c13400 0x10>, <0x01c14800 0x4>, <0x01c1c800 0x4>;
609                         reg-names = "phy_ctrl", "pmu1", "pmu2";
610                         clocks = <&ccu CLK_USB_PHY>;
611                         clock-names = "usb_phy";
612                         resets = <&ccu RST_USB_PHY0>,
613                                  <&ccu RST_USB_PHY1>,
614                                  <&ccu RST_USB_PHY2>;
615                         reset-names = "usb0_reset", "usb1_reset", "usb2_reset";
616                         status = "disabled";
617                 };
618
619                 ehci0: usb@1c14000 {
620                         compatible = "allwinner,sun7i-a20-ehci", "generic-ehci";
621                         reg = <0x01c14000 0x100>;
622                         interrupts = <GIC_SPI 39 IRQ_TYPE_LEVEL_HIGH>;
623                         clocks = <&ccu CLK_AHB_EHCI0>;
624                         phys = <&usbphy 1>;
625                         phy-names = "usb";
626                         status = "disabled";
627                 };
628
629                 ohci0: usb@1c14400 {
630                         compatible = "allwinner,sun7i-a20-ohci", "generic-ohci";
631                         reg = <0x01c14400 0x100>;
632                         interrupts = <GIC_SPI 64 IRQ_TYPE_LEVEL_HIGH>;
633                         clocks = <&ccu CLK_USB_OHCI0>, <&ccu CLK_AHB_OHCI0>;
634                         phys = <&usbphy 1>;
635                         phy-names = "usb";
636                         status = "disabled";
637                 };
638
639                 crypto: crypto-engine@1c15000 {
640                         compatible = "allwinner,sun7i-a20-crypto",
641                                      "allwinner,sun4i-a10-crypto";
642                         reg = <0x01c15000 0x1000>;
643                         interrupts = <GIC_SPI 86 IRQ_TYPE_LEVEL_HIGH>;
644                         clocks = <&ccu CLK_AHB_SS>, <&ccu CLK_SS>;
645                         clock-names = "ahb", "mod";
646                 };
647
648                 hdmi: hdmi@1c16000 {
649                         compatible = "allwinner,sun7i-a20-hdmi",
650                                      "allwinner,sun5i-a10s-hdmi";
651                         reg = <0x01c16000 0x1000>;
652                         interrupts = <GIC_SPI 58 IRQ_TYPE_LEVEL_HIGH>;
653                         clocks = <&ccu CLK_AHB_HDMI0>, <&ccu CLK_HDMI>,
654                                  <&ccu CLK_PLL_VIDEO0_2X>,
655                                  <&ccu CLK_PLL_VIDEO1_2X>;
656                         clock-names = "ahb", "mod", "pll-0", "pll-1";
657                         dmas = <&dma SUN4I_DMA_NORMAL 16>,
658                                <&dma SUN4I_DMA_NORMAL 16>,
659                                <&dma SUN4I_DMA_DEDICATED 24>;
660                         dma-names = "ddc-tx", "ddc-rx", "audio-tx";
661                         status = "disabled";
662
663                         ports {
664                                 #address-cells = <1>;
665                                 #size-cells = <0>;
666
667                                 hdmi_in: port@0 {
668                                         #address-cells = <1>;
669                                         #size-cells = <0>;
670                                         reg = <0>;
671
672                                         hdmi_in_tcon0: endpoint@0 {
673                                                 reg = <0>;
674                                                 remote-endpoint = <&tcon0_out_hdmi>;
675                                         };
676
677                                         hdmi_in_tcon1: endpoint@1 {
678                                                 reg = <1>;
679                                                 remote-endpoint = <&tcon1_out_hdmi>;
680                                         };
681                                 };
682
683                                 hdmi_out: port@1 {
684                                         reg = <1>;
685                                 };
686                         };
687                 };
688
689                 spi2: spi@1c17000 {
690                         compatible = "allwinner,sun4i-a10-spi";
691                         reg = <0x01c17000 0x1000>;
692                         interrupts = <GIC_SPI 12 IRQ_TYPE_LEVEL_HIGH>;
693                         clocks = <&ccu CLK_AHB_SPI2>, <&ccu CLK_SPI2>;
694                         clock-names = "ahb", "mod";
695                         dmas = <&dma SUN4I_DMA_DEDICATED 29>,
696                                <&dma SUN4I_DMA_DEDICATED 28>;
697                         dma-names = "rx", "tx";
698                         status = "disabled";
699                         #address-cells = <1>;
700                         #size-cells = <0>;
701                         num-cs = <1>;
702                 };
703
704                 ahci: sata@1c18000 {
705                         compatible = "allwinner,sun4i-a10-ahci";
706                         reg = <0x01c18000 0x1000>;
707                         interrupts = <GIC_SPI 56 IRQ_TYPE_LEVEL_HIGH>;
708                         clocks = <&ccu CLK_AHB_SATA>, <&ccu CLK_SATA>;
709                         status = "disabled";
710                 };
711
712                 ehci1: usb@1c1c000 {
713                         compatible = "allwinner,sun7i-a20-ehci", "generic-ehci";
714                         reg = <0x01c1c000 0x100>;
715                         interrupts = <GIC_SPI 40 IRQ_TYPE_LEVEL_HIGH>;
716                         clocks = <&ccu CLK_AHB_EHCI1>;
717                         phys = <&usbphy 2>;
718                         phy-names = "usb";
719                         status = "disabled";
720                 };
721
722                 ohci1: usb@1c1c400 {
723                         compatible = "allwinner,sun7i-a20-ohci", "generic-ohci";
724                         reg = <0x01c1c400 0x100>;
725                         interrupts = <GIC_SPI 65 IRQ_TYPE_LEVEL_HIGH>;
726                         clocks = <&ccu CLK_USB_OHCI1>, <&ccu CLK_AHB_OHCI1>;
727                         phys = <&usbphy 2>;
728                         phy-names = "usb";
729                         status = "disabled";
730                 };
731
732                 csi1: csi@1c1d000 {
733                         compatible = "allwinner,sun7i-a20-csi1",
734                                      "allwinner,sun4i-a10-csi1";
735                         reg = <0x01c1d000 0x1000>;
736                         interrupts = <GIC_SPI 43 IRQ_TYPE_LEVEL_HIGH>;
737                         clocks = <&ccu CLK_AHB_CSI1>, <&ccu CLK_DRAM_CSI1>;
738                         clock-names = "bus", "ram";
739                         resets = <&ccu RST_CSI1>;
740                         status = "disabled";
741                 };
742
743                 spi3: spi@1c1f000 {
744                         compatible = "allwinner,sun4i-a10-spi";
745                         reg = <0x01c1f000 0x1000>;
746                         interrupts = <GIC_SPI 50 IRQ_TYPE_LEVEL_HIGH>;
747                         clocks = <&ccu CLK_AHB_SPI3>, <&ccu CLK_SPI3>;
748                         clock-names = "ahb", "mod";
749                         dmas = <&dma SUN4I_DMA_DEDICATED 31>,
750                                <&dma SUN4I_DMA_DEDICATED 30>;
751                         dma-names = "rx", "tx";
752                         status = "disabled";
753                         #address-cells = <1>;
754                         #size-cells = <0>;
755                         num-cs = <1>;
756                 };
757
758                 ccu: clock@1c20000 {
759                         compatible = "allwinner,sun7i-a20-ccu";
760                         reg = <0x01c20000 0x400>;
761                         clocks = <&osc24M>, <&osc32k>;
762                         clock-names = "hosc", "losc";
763                         #clock-cells = <1>;
764                         #reset-cells = <1>;
765                 };
766
767                 pio: pinctrl@1c20800 {
768                         compatible = "allwinner,sun7i-a20-pinctrl";
769                         reg = <0x01c20800 0x400>;
770                         interrupts = <GIC_SPI 28 IRQ_TYPE_LEVEL_HIGH>;
771                         clocks = <&ccu CLK_APB0_PIO>, <&osc24M>, <&osc32k>;
772                         clock-names = "apb", "hosc", "losc";
773                         gpio-controller;
774                         interrupt-controller;
775                         #interrupt-cells = <3>;
776                         #gpio-cells = <3>;
777
778                         /omit-if-no-ref/
779                         can_pa_pins: can-pa-pins {
780                                 pins = "PA16", "PA17";
781                                 function = "can";
782                         };
783
784                         /omit-if-no-ref/
785                         can_ph_pins: can-ph-pins {
786                                 pins = "PH20", "PH21";
787                                 function = "can";
788                         };
789
790                         /omit-if-no-ref/
791                         clk_out_a_pin: clk-out-a-pin {
792                                 pins = "PI12";
793                                 function = "clk_out_a";
794                         };
795
796                         /omit-if-no-ref/
797                         clk_out_b_pin: clk-out-b-pin {
798                                 pins = "PI13";
799                                 function = "clk_out_b";
800                         };
801
802                         /omit-if-no-ref/
803                         csi0_8bits_pins: csi-8bits-pins {
804                                 pins = "PE0", "PE2", "PE3", "PE4", "PE5",
805                                        "PE6", "PE7", "PE8", "PE9", "PE10",
806                                        "PE11";
807                                 function = "csi0";
808                         };
809
810                         /omit-if-no-ref/
811                         csi0_clk_pin: csi-clk-pin {
812                                 pins = "PE1";
813                                 function = "csi0";
814                         };
815
816                         /omit-if-no-ref/
817                         csi1_8bits_pg_pins: csi1-8bits-pg-pins {
818                                 pins = "PG0", "PG2", "PG3", "PG4", "PG5",
819                                        "PG6", "PG7", "PG8", "PG9", "PG10",
820                                        "PG11";
821                                 function = "csi1";
822                         };
823
824                         /omit-if-no-ref/
825                         csi1_24bits_ph_pins: csi1-24bits-ph-pins {
826                                 pins = "PH0", "PH1", "PH2", "PH3", "PH4",
827                                        "PH5", "PH6", "PH7", "PH8", "PH9",
828                                        "PH10", "PH11", "PH12", "PH13", "PH14",
829                                        "PH15", "PH16", "PH17", "PH18", "PH19",
830                                        "PH20", "PH21", "PH22", "PH23", "PH24",
831                                        "PH25", "PH26", "PH27";
832                                 function = "csi1";
833                         };
834
835                         /omit-if-no-ref/
836                         csi1_clk_pg_pin: csi1-clk-pg-pin {
837                                 pins = "PG1";
838                                 function = "csi1";
839                         };
840
841                         /omit-if-no-ref/
842                         emac_pa_pins: emac-pa-pins {
843                                 pins = "PA0", "PA1", "PA2",
844                                        "PA3", "PA4", "PA5", "PA6",
845                                        "PA7", "PA8", "PA9", "PA10",
846                                        "PA11", "PA12", "PA13", "PA14",
847                                        "PA15", "PA16";
848                                 function = "emac";
849                         };
850
851                         /omit-if-no-ref/
852                         emac_ph_pins: emac-ph-pins {
853                                 pins = "PH8", "PH9", "PH10", "PH11",
854                                        "PH14", "PH15", "PH16", "PH17",
855                                        "PH18", "PH19", "PH20", "PH21",
856                                        "PH22", "PH23", "PH24", "PH25",
857                                        "PH26";
858                                 function = "emac";
859                         };
860
861                         /omit-if-no-ref/
862                         gmac_mii_pins: gmac-mii-pins {
863                                 pins = "PA0", "PA1", "PA2",
864                                        "PA3", "PA4", "PA5", "PA6",
865                                        "PA7", "PA8", "PA9", "PA10",
866                                        "PA11", "PA12", "PA13", "PA14",
867                                        "PA15", "PA16";
868                                 function = "gmac";
869                         };
870
871                         /omit-if-no-ref/
872                         gmac_rgmii_pins: gmac-rgmii-pins {
873                                 pins = "PA0", "PA1", "PA2",
874                                        "PA3", "PA4", "PA5", "PA6",
875                                         "PA7", "PA8", "PA10",
876                                        "PA11", "PA12", "PA13",
877                                        "PA15", "PA16";
878                                 function = "gmac";
879                                 /*
880                                  * data lines in RGMII mode use DDR mode
881                                  * and need a higher signal drive strength
882                                  */
883                                 drive-strength = <40>;
884                         };
885
886                         /omit-if-no-ref/
887                         i2c0_pins: i2c0-pins {
888                                 pins = "PB0", "PB1";
889                                 function = "i2c0";
890                         };
891
892                         /omit-if-no-ref/
893                         i2c1_pins: i2c1-pins {
894                                 pins = "PB18", "PB19";
895                                 function = "i2c1";
896                         };
897
898                         /omit-if-no-ref/
899                         i2c2_pins: i2c2-pins {
900                                 pins = "PB20", "PB21";
901                                 function = "i2c2";
902                         };
903
904                         /omit-if-no-ref/
905                         i2c3_pins: i2c3-pins {
906                                 pins = "PI0", "PI1";
907                                 function = "i2c3";
908                         };
909
910                         /omit-if-no-ref/
911                         ir0_rx_pin: ir0-rx-pin {
912                                 pins = "PB4";
913                                 function = "ir0";
914                         };
915
916                         /omit-if-no-ref/
917                         ir0_tx_pin: ir0-tx-pin {
918                                 pins = "PB3";
919                                 function = "ir0";
920                         };
921
922                         /omit-if-no-ref/
923                         ir1_rx_pin: ir1-rx-pin {
924                                 pins = "PB23";
925                                 function = "ir1";
926                         };
927
928                         /omit-if-no-ref/
929                         ir1_tx_pin: ir1-tx-pin {
930                                 pins = "PB22";
931                                 function = "ir1";
932                         };
933
934                         /omit-if-no-ref/
935                         mmc0_pins: mmc0-pins {
936                                 pins = "PF0", "PF1", "PF2",
937                                        "PF3", "PF4", "PF5";
938                                 function = "mmc0";
939                                 drive-strength = <30>;
940                                 bias-pull-up;
941                         };
942
943                         /omit-if-no-ref/
944                         mmc2_pins: mmc2-pins {
945                                 pins = "PC6", "PC7", "PC8",
946                                        "PC9", "PC10", "PC11";
947                                 function = "mmc2";
948                                 drive-strength = <30>;
949                                 bias-pull-up;
950                         };
951
952                         /omit-if-no-ref/
953                         mmc3_pins: mmc3-pins {
954                                 pins = "PI4", "PI5", "PI6",
955                                        "PI7", "PI8", "PI9";
956                                 function = "mmc3";
957                                 drive-strength = <30>;
958                                 bias-pull-up;
959                         };
960
961                         /omit-if-no-ref/
962                         ps2_0_pins: ps2-0-pins {
963                                 pins = "PI20", "PI21";
964                                 function = "ps2";
965                         };
966
967                         /omit-if-no-ref/
968                         ps2_1_ph_pins: ps2-1-ph-pins {
969                                 pins = "PH12", "PH13";
970                                 function = "ps2";
971                         };
972
973                         /omit-if-no-ref/
974                         pwm0_pin: pwm0-pin {
975                                 pins = "PB2";
976                                 function = "pwm";
977                         };
978
979                         /omit-if-no-ref/
980                         pwm1_pin: pwm1-pin {
981                                 pins = "PI3";
982                                 function = "pwm";
983                         };
984
985                         /omit-if-no-ref/
986                         spdif_tx_pin: spdif-tx-pin {
987                                 pins = "PB13";
988                                 function = "spdif";
989                                 bias-pull-up;
990                         };
991
992                         /omit-if-no-ref/
993                         spi0_pi_pins: spi0-pi-pins {
994                                 pins = "PI11", "PI12", "PI13";
995                                 function = "spi0";
996                         };
997
998                         /omit-if-no-ref/
999                         spi0_cs0_pi_pin: spi0-cs0-pi-pin {
1000                                 pins = "PI10";
1001                                 function = "spi0";
1002                         };
1003
1004                         /omit-if-no-ref/
1005                         spi0_cs1_pi_pin: spi0-cs1-pi-pin {
1006                                 pins = "PI14";
1007                                 function = "spi0";
1008                         };
1009
1010                         /omit-if-no-ref/
1011                         spi1_pi_pins: spi1-pi-pins {
1012                                 pins = "PI17", "PI18", "PI19";
1013                                 function = "spi1";
1014                         };
1015
1016                         /omit-if-no-ref/
1017                         spi1_cs0_pi_pin: spi1-cs0-pi-pin {
1018                                 pins = "PI16";
1019                                 function = "spi1";
1020                         };
1021
1022                         /omit-if-no-ref/
1023                         spi2_pb_pins: spi2-pb-pins {
1024                                 pins = "PB15", "PB16", "PB17";
1025                                 function = "spi2";
1026                         };
1027
1028                         /omit-if-no-ref/
1029                         spi2_cs0_pb_pin: spi2-cs0-pb-pin {
1030                                 pins = "PB14";
1031                                 function = "spi2";
1032                         };
1033
1034                         /omit-if-no-ref/
1035                         spi2_pc_pins: spi2-pc-pins {
1036                                 pins = "PC20", "PC21", "PC22";
1037                                 function = "spi2";
1038                         };
1039
1040                         /omit-if-no-ref/
1041                         spi2_cs0_pc_pin: spi2-cs0-pc-pin {
1042                                 pins = "PC19";
1043                                 function = "spi2";
1044                         };
1045
1046                         /omit-if-no-ref/
1047                         uart0_pb_pins: uart0-pb-pins {
1048                                 pins = "PB22", "PB23";
1049                                 function = "uart0";
1050                         };
1051
1052                         /omit-if-no-ref/
1053                         uart0_pf_pins: uart0-pf-pins {
1054                                 pins = "PF2", "PF4";
1055                                 function = "uart0";
1056                         };
1057
1058                         /omit-if-no-ref/
1059                         uart1_pa_pins: uart1-pa-pins {
1060                                 pins = "PA10", "PA11";
1061                                 function = "uart1";
1062                         };
1063
1064                         /omit-if-no-ref/
1065                         uart1_cts_rts_pa_pins: uart1-cts-rts-pa-pins {
1066                                 pins = "PA12", "PA13";
1067                                 function = "uart1";
1068                         };
1069
1070                         /omit-if-no-ref/
1071                         uart2_pa_pins: uart2-pa-pins {
1072                                 pins = "PA2", "PA3";
1073                                 function = "uart2";
1074                         };
1075
1076                         /omit-if-no-ref/
1077                         uart2_cts_rts_pa_pins: uart2-cts-rts-pa-pins {
1078                                 pins = "PA0", "PA1";
1079                                 function = "uart2";
1080                         };
1081
1082                         /omit-if-no-ref/
1083                         uart2_pi_pins: uart2-pi-pins {
1084                                 pins = "PI18", "PI19";
1085                                 function = "uart2";
1086                         };
1087
1088                         /omit-if-no-ref/
1089                         uart2_cts_rts_pi_pins: uart2-cts-rts-pi-pins {
1090                                 pins = "PI16", "PI17";
1091                                 function = "uart2";
1092                         };
1093
1094                         /omit-if-no-ref/
1095                         uart3_pg_pins: uart3-pg-pins {
1096                                 pins = "PG6", "PG7";
1097                                 function = "uart3";
1098                         };
1099
1100                         /omit-if-no-ref/
1101                         uart3_cts_rts_pg_pins: uart3-cts-rts-pg-pins {
1102                                 pins = "PG8", "PG9";
1103                                 function = "uart3";
1104                         };
1105
1106                         /omit-if-no-ref/
1107                         uart3_ph_pins: uart3-ph-pins {
1108                                 pins = "PH0", "PH1";
1109                                 function = "uart3";
1110                         };
1111
1112                         /omit-if-no-ref/
1113                         uart3_cts_rts_ph_pins: uart3-cts-rts-ph-pins {
1114                                 pins = "PH2", "PH3";
1115                                 function = "uart3";
1116                         };
1117
1118                         /omit-if-no-ref/
1119                         uart4_pg_pins: uart4-pg-pins {
1120                                 pins = "PG10", "PG11";
1121                                 function = "uart4";
1122                         };
1123
1124                         /omit-if-no-ref/
1125                         uart4_ph_pins: uart4-ph-pins {
1126                                 pins = "PH4", "PH5";
1127                                 function = "uart4";
1128                         };
1129
1130                         /omit-if-no-ref/
1131                         uart5_ph_pins: uart5-ph-pins {
1132                                 pins = "PH6", "PH7";
1133                                 function = "uart5";
1134                         };
1135
1136                         /omit-if-no-ref/
1137                         uart5_pi_pins: uart5-pi-pins {
1138                                 pins = "PI10", "PI11";
1139                                 function = "uart5";
1140                         };
1141
1142                         /omit-if-no-ref/
1143                         uart6_pa_pins: uart6-pa-pins {
1144                                 pins = "PA12", "PA13";
1145                                 function = "uart6";
1146                         };
1147
1148                         /omit-if-no-ref/
1149                         uart6_pi_pins: uart6-pi-pins {
1150                                 pins = "PI12", "PI13";
1151                                 function = "uart6";
1152                         };
1153
1154                         /omit-if-no-ref/
1155                         uart7_pa_pins: uart7-pa-pins {
1156                                 pins = "PA14", "PA15";
1157                                 function = "uart7";
1158                         };
1159
1160                         /omit-if-no-ref/
1161                         uart7_pi_pins: uart7-pi-pins {
1162                                 pins = "PI20", "PI21";
1163                                 function = "uart7";
1164                         };
1165                 };
1166
1167                 timer@1c20c00 {
1168                         compatible = "allwinner,sun4i-a10-timer";
1169                         reg = <0x01c20c00 0x90>;
1170                         interrupts = <GIC_SPI 22 IRQ_TYPE_LEVEL_HIGH>,
1171                                      <GIC_SPI 23 IRQ_TYPE_LEVEL_HIGH>,
1172                                      <GIC_SPI 24 IRQ_TYPE_LEVEL_HIGH>,
1173                                      <GIC_SPI 25 IRQ_TYPE_LEVEL_HIGH>,
1174                                      <GIC_SPI 67 IRQ_TYPE_LEVEL_HIGH>,
1175                                      <GIC_SPI 68 IRQ_TYPE_LEVEL_HIGH>;
1176                         clocks = <&osc24M>;
1177                 };
1178
1179                 wdt: watchdog@1c20c90 {
1180                         compatible = "allwinner,sun4i-a10-wdt";
1181                         reg = <0x01c20c90 0x10>;
1182                         interrupts = <GIC_SPI 24 IRQ_TYPE_LEVEL_HIGH>;
1183                         clocks = <&osc24M>;
1184                 };
1185
1186                 rtc: rtc@1c20d00 {
1187                         compatible = "allwinner,sun7i-a20-rtc";
1188                         reg = <0x01c20d00 0x20>;
1189                         interrupts = <GIC_SPI 24 IRQ_TYPE_LEVEL_HIGH>;
1190                 };
1191
1192                 pwm: pwm@1c20e00 {
1193                         compatible = "allwinner,sun7i-a20-pwm";
1194                         reg = <0x01c20e00 0xc>;
1195                         clocks = <&osc24M>;
1196                         #pwm-cells = <3>;
1197                         status = "disabled";
1198                 };
1199
1200                 spdif: spdif@1c21000 {
1201                         #sound-dai-cells = <0>;
1202                         compatible = "allwinner,sun4i-a10-spdif";
1203                         reg = <0x01c21000 0x400>;
1204                         interrupts = <GIC_SPI 13 IRQ_TYPE_LEVEL_HIGH>;
1205                         clocks = <&ccu CLK_APB0_SPDIF>, <&ccu CLK_SPDIF>;
1206                         clock-names = "apb", "spdif";
1207                         dmas = <&dma SUN4I_DMA_NORMAL 2>,
1208                                <&dma SUN4I_DMA_NORMAL 2>;
1209                         dma-names = "rx", "tx";
1210                         status = "disabled";
1211                 };
1212
1213                 ir0: ir@1c21800 {
1214                         compatible = "allwinner,sun4i-a10-ir";
1215                         clocks = <&ccu CLK_APB0_IR0>, <&ccu CLK_IR0>;
1216                         clock-names = "apb", "ir";
1217                         interrupts = <GIC_SPI 5 IRQ_TYPE_LEVEL_HIGH>;
1218                         reg = <0x01c21800 0x40>;
1219                         status = "disabled";
1220                 };
1221
1222                 ir1: ir@1c21c00 {
1223                         compatible = "allwinner,sun4i-a10-ir";
1224                         clocks = <&ccu CLK_APB0_IR1>, <&ccu CLK_IR1>;
1225                         clock-names = "apb", "ir";
1226                         interrupts = <GIC_SPI 6 IRQ_TYPE_LEVEL_HIGH>;
1227                         reg = <0x01c21c00 0x40>;
1228                         status = "disabled";
1229                 };
1230
1231                 i2s1: i2s@1c22000 {
1232                         #sound-dai-cells = <0>;
1233                         compatible = "allwinner,sun4i-a10-i2s";
1234                         reg = <0x01c22000 0x400>;
1235                         interrupts = <GIC_SPI 87 IRQ_TYPE_LEVEL_HIGH>;
1236                         clocks = <&ccu CLK_APB0_I2S1>, <&ccu CLK_I2S1>;
1237                         clock-names = "apb", "mod";
1238                         dmas = <&dma SUN4I_DMA_NORMAL 4>,
1239                                <&dma SUN4I_DMA_NORMAL 4>;
1240                         dma-names = "rx", "tx";
1241                         status = "disabled";
1242                 };
1243
1244                 i2s0: i2s@1c22400 {
1245                         #sound-dai-cells = <0>;
1246                         compatible = "allwinner,sun4i-a10-i2s";
1247                         reg = <0x01c22400 0x400>;
1248                         interrupts = <GIC_SPI 16 IRQ_TYPE_LEVEL_HIGH>;
1249                         clocks = <&ccu CLK_APB0_I2S0>, <&ccu CLK_I2S0>;
1250                         clock-names = "apb", "mod";
1251                         dmas = <&dma SUN4I_DMA_NORMAL 3>,
1252                                <&dma SUN4I_DMA_NORMAL 3>;
1253                         dma-names = "rx", "tx";
1254                         status = "disabled";
1255                 };
1256
1257                 lradc: lradc@1c22800 {
1258                         compatible = "allwinner,sun4i-a10-lradc-keys";
1259                         reg = <0x01c22800 0x100>;
1260                         interrupts = <GIC_SPI 31 IRQ_TYPE_LEVEL_HIGH>;
1261                         status = "disabled";
1262                 };
1263
1264                 codec: codec@1c22c00 {
1265                         #sound-dai-cells = <0>;
1266                         compatible = "allwinner,sun7i-a20-codec";
1267                         reg = <0x01c22c00 0x40>;
1268                         interrupts = <GIC_SPI 30 IRQ_TYPE_LEVEL_HIGH>;
1269                         clocks = <&ccu CLK_APB0_CODEC>, <&ccu CLK_CODEC>;
1270                         clock-names = "apb", "codec";
1271                         dmas = <&dma SUN4I_DMA_NORMAL 19>,
1272                                <&dma SUN4I_DMA_NORMAL 19>;
1273                         dma-names = "rx", "tx";
1274                         status = "disabled";
1275                 };
1276
1277                 sid: eeprom@1c23800 {
1278                         compatible = "allwinner,sun7i-a20-sid";
1279                         reg = <0x01c23800 0x200>;
1280                 };
1281
1282                 i2s2: i2s@1c24400 {
1283                         #sound-dai-cells = <0>;
1284                         compatible = "allwinner,sun4i-a10-i2s";
1285                         reg = <0x01c24400 0x400>;
1286                         interrupts = <GIC_SPI 90 IRQ_TYPE_LEVEL_HIGH>;
1287                         clocks = <&ccu CLK_APB0_I2S2>, <&ccu CLK_I2S2>;
1288                         clock-names = "apb", "mod";
1289                         dmas = <&dma SUN4I_DMA_NORMAL 6>,
1290                                <&dma SUN4I_DMA_NORMAL 6>;
1291                         dma-names = "rx", "tx";
1292                         status = "disabled";
1293                 };
1294
1295                 rtp: rtp@1c25000 {
1296                         compatible = "allwinner,sun5i-a13-ts";
1297                         reg = <0x01c25000 0x100>;
1298                         interrupts = <GIC_SPI 29 IRQ_TYPE_LEVEL_HIGH>;
1299                         #thermal-sensor-cells = <0>;
1300                 };
1301
1302                 uart0: serial@1c28000 {
1303                         compatible = "snps,dw-apb-uart";
1304                         reg = <0x01c28000 0x400>;
1305                         interrupts = <GIC_SPI 1 IRQ_TYPE_LEVEL_HIGH>;
1306                         reg-shift = <2>;
1307                         reg-io-width = <4>;
1308                         clocks = <&ccu CLK_APB1_UART0>;
1309                         status = "disabled";
1310                 };
1311
1312                 uart1: serial@1c28400 {
1313                         compatible = "snps,dw-apb-uart";
1314                         reg = <0x01c28400 0x400>;
1315                         interrupts = <GIC_SPI 2 IRQ_TYPE_LEVEL_HIGH>;
1316                         reg-shift = <2>;
1317                         reg-io-width = <4>;
1318                         clocks = <&ccu CLK_APB1_UART1>;
1319                         status = "disabled";
1320                 };
1321
1322                 uart2: serial@1c28800 {
1323                         compatible = "snps,dw-apb-uart";
1324                         reg = <0x01c28800 0x400>;
1325                         interrupts = <GIC_SPI 3 IRQ_TYPE_LEVEL_HIGH>;
1326                         reg-shift = <2>;
1327                         reg-io-width = <4>;
1328                         clocks = <&ccu CLK_APB1_UART2>;
1329                         status = "disabled";
1330                 };
1331
1332                 uart3: serial@1c28c00 {
1333                         compatible = "snps,dw-apb-uart";
1334                         reg = <0x01c28c00 0x400>;
1335                         interrupts = <GIC_SPI 4 IRQ_TYPE_LEVEL_HIGH>;
1336                         reg-shift = <2>;
1337                         reg-io-width = <4>;
1338                         clocks = <&ccu CLK_APB1_UART3>;
1339                         status = "disabled";
1340                 };
1341
1342                 uart4: serial@1c29000 {
1343                         compatible = "snps,dw-apb-uart";
1344                         reg = <0x01c29000 0x400>;
1345                         interrupts = <GIC_SPI 17 IRQ_TYPE_LEVEL_HIGH>;
1346                         reg-shift = <2>;
1347                         reg-io-width = <4>;
1348                         clocks = <&ccu CLK_APB1_UART4>;
1349                         status = "disabled";
1350                 };
1351
1352                 uart5: serial@1c29400 {
1353                         compatible = "snps,dw-apb-uart";
1354                         reg = <0x01c29400 0x400>;
1355                         interrupts = <GIC_SPI 18 IRQ_TYPE_LEVEL_HIGH>;
1356                         reg-shift = <2>;
1357                         reg-io-width = <4>;
1358                         clocks = <&ccu CLK_APB1_UART5>;
1359                         status = "disabled";
1360                 };
1361
1362                 uart6: serial@1c29800 {
1363                         compatible = "snps,dw-apb-uart";
1364                         reg = <0x01c29800 0x400>;
1365                         interrupts = <GIC_SPI 19 IRQ_TYPE_LEVEL_HIGH>;
1366                         reg-shift = <2>;
1367                         reg-io-width = <4>;
1368                         clocks = <&ccu CLK_APB1_UART6>;
1369                         status = "disabled";
1370                 };
1371
1372                 uart7: serial@1c29c00 {
1373                         compatible = "snps,dw-apb-uart";
1374                         reg = <0x01c29c00 0x400>;
1375                         interrupts = <GIC_SPI 20 IRQ_TYPE_LEVEL_HIGH>;
1376                         reg-shift = <2>;
1377                         reg-io-width = <4>;
1378                         clocks = <&ccu CLK_APB1_UART7>;
1379                         status = "disabled";
1380                 };
1381
1382                 ps20: ps2@1c2a000 {
1383                         compatible = "allwinner,sun4i-a10-ps2";
1384                         reg = <0x01c2a000 0x400>;
1385                         interrupts = <GIC_SPI 62 IRQ_TYPE_LEVEL_HIGH>;
1386                         clocks = <&ccu CLK_APB1_PS20>;
1387                         status = "disabled";
1388                 };
1389
1390                 ps21: ps2@1c2a400 {
1391                         compatible = "allwinner,sun4i-a10-ps2";
1392                         reg = <0x01c2a400 0x400>;
1393                         interrupts = <GIC_SPI 63 IRQ_TYPE_LEVEL_HIGH>;
1394                         clocks = <&ccu CLK_APB1_PS21>;
1395                         status = "disabled";
1396                 };
1397
1398                 i2c0: i2c@1c2ac00 {
1399                         compatible = "allwinner,sun7i-a20-i2c",
1400                                      "allwinner,sun4i-a10-i2c";
1401                         reg = <0x01c2ac00 0x400>;
1402                         interrupts = <GIC_SPI 7 IRQ_TYPE_LEVEL_HIGH>;
1403                         clocks = <&ccu CLK_APB1_I2C0>;
1404                         pinctrl-names = "default";
1405                         pinctrl-0 = <&i2c0_pins>;
1406                         status = "disabled";
1407                         #address-cells = <1>;
1408                         #size-cells = <0>;
1409                 };
1410
1411                 i2c1: i2c@1c2b000 {
1412                         compatible = "allwinner,sun7i-a20-i2c",
1413                                      "allwinner,sun4i-a10-i2c";
1414                         reg = <0x01c2b000 0x400>;
1415                         interrupts = <GIC_SPI 8 IRQ_TYPE_LEVEL_HIGH>;
1416                         clocks = <&ccu CLK_APB1_I2C1>;
1417                         pinctrl-names = "default";
1418                         pinctrl-0 = <&i2c1_pins>;
1419                         status = "disabled";
1420                         #address-cells = <1>;
1421                         #size-cells = <0>;
1422                 };
1423
1424                 i2c2: i2c@1c2b400 {
1425                         compatible = "allwinner,sun7i-a20-i2c",
1426                                      "allwinner,sun4i-a10-i2c";
1427                         reg = <0x01c2b400 0x400>;
1428                         interrupts = <GIC_SPI 9 IRQ_TYPE_LEVEL_HIGH>;
1429                         clocks = <&ccu CLK_APB1_I2C2>;
1430                         pinctrl-names = "default";
1431                         pinctrl-0 = <&i2c2_pins>;
1432                         status = "disabled";
1433                         #address-cells = <1>;
1434                         #size-cells = <0>;
1435                 };
1436
1437                 i2c3: i2c@1c2b800 {
1438                         compatible = "allwinner,sun7i-a20-i2c",
1439                                      "allwinner,sun4i-a10-i2c";
1440                         reg = <0x01c2b800 0x400>;
1441                         interrupts = <GIC_SPI 88 IRQ_TYPE_LEVEL_HIGH>;
1442                         clocks = <&ccu CLK_APB1_I2C3>;
1443                         pinctrl-names = "default";
1444                         pinctrl-0 = <&i2c3_pins>;
1445                         status = "disabled";
1446                         #address-cells = <1>;
1447                         #size-cells = <0>;
1448                 };
1449
1450                 can0: can@1c2bc00 {
1451                         compatible = "allwinner,sun7i-a20-can",
1452                                      "allwinner,sun4i-a10-can";
1453                         reg = <0x01c2bc00 0x400>;
1454                         interrupts = <GIC_SPI 26 IRQ_TYPE_LEVEL_HIGH>;
1455                         clocks = <&ccu CLK_APB1_CAN>;
1456                         status = "disabled";
1457                 };
1458
1459                 i2c4: i2c@1c2c000 {
1460                         compatible = "allwinner,sun7i-a20-i2c",
1461                                      "allwinner,sun4i-a10-i2c";
1462                         reg = <0x01c2c000 0x400>;
1463                         interrupts = <GIC_SPI 89 IRQ_TYPE_LEVEL_HIGH>;
1464                         clocks = <&ccu CLK_APB1_I2C4>;
1465                         status = "disabled";
1466                         #address-cells = <1>;
1467                         #size-cells = <0>;
1468                 };
1469
1470                 mali: gpu@1c40000 {
1471                         compatible = "allwinner,sun7i-a20-mali", "arm,mali-400";
1472                         reg = <0x01c40000 0x10000>;
1473                         interrupts = <GIC_SPI 69 IRQ_TYPE_LEVEL_HIGH>,
1474                                      <GIC_SPI 70 IRQ_TYPE_LEVEL_HIGH>,
1475                                      <GIC_SPI 71 IRQ_TYPE_LEVEL_HIGH>,
1476                                      <GIC_SPI 72 IRQ_TYPE_LEVEL_HIGH>,
1477                                      <GIC_SPI 74 IRQ_TYPE_LEVEL_HIGH>,
1478                                      <GIC_SPI 75 IRQ_TYPE_LEVEL_HIGH>,
1479                                      <GIC_SPI 73 IRQ_TYPE_LEVEL_HIGH>;
1480                         interrupt-names = "gp",
1481                                           "gpmmu",
1482                                           "pp0",
1483                                           "ppmmu0",
1484                                           "pp1",
1485                                           "ppmmu1",
1486                                           "pmu";
1487                         clocks = <&ccu CLK_AHB_GPU>, <&ccu CLK_GPU>;
1488                         clock-names = "bus", "core";
1489                         resets = <&ccu RST_GPU>;
1490
1491                         assigned-clocks = <&ccu CLK_GPU>;
1492                         assigned-clock-rates = <384000000>;
1493                 };
1494
1495                 gmac: ethernet@1c50000 {
1496                         compatible = "allwinner,sun7i-a20-gmac";
1497                         reg = <0x01c50000 0x10000>;
1498                         interrupts = <GIC_SPI 85 IRQ_TYPE_LEVEL_HIGH>;
1499                         interrupt-names = "macirq";
1500                         clocks = <&ccu CLK_AHB_GMAC>, <&gmac_tx_clk>;
1501                         clock-names = "stmmaceth", "allwinner_gmac_tx";
1502                         snps,pbl = <2>;
1503                         snps,fixed-burst;
1504                         snps,force_sf_dma_mode;
1505                         status = "disabled";
1506
1507                         gmac_mdio: mdio {
1508                                 compatible = "snps,dwmac-mdio";
1509                                 #address-cells = <1>;
1510                                 #size-cells = <0>;
1511                         };
1512                 };
1513
1514                 hstimer@1c60000 {
1515                         compatible = "allwinner,sun7i-a20-hstimer";
1516                         reg = <0x01c60000 0x1000>;
1517                         interrupts = <GIC_SPI 81 IRQ_TYPE_LEVEL_HIGH>,
1518                                      <GIC_SPI 82 IRQ_TYPE_LEVEL_HIGH>,
1519                                      <GIC_SPI 83 IRQ_TYPE_LEVEL_HIGH>,
1520                                      <GIC_SPI 84 IRQ_TYPE_LEVEL_HIGH>;
1521                         clocks = <&ccu CLK_AHB_HSTIMER>;
1522                 };
1523
1524                 gic: interrupt-controller@1c81000 {
1525                         compatible = "arm,gic-400";
1526                         reg = <0x01c81000 0x1000>,
1527                               <0x01c82000 0x2000>,
1528                               <0x01c84000 0x2000>,
1529                               <0x01c86000 0x2000>;
1530                         interrupt-controller;
1531                         #interrupt-cells = <3>;
1532                         interrupts = <GIC_PPI 9 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>;
1533                 };
1534
1535                 fe0: display-frontend@1e00000 {
1536                         compatible = "allwinner,sun7i-a20-display-frontend";
1537                         reg = <0x01e00000 0x20000>;
1538                         interrupts = <GIC_SPI 47 IRQ_TYPE_LEVEL_HIGH>;
1539                         clocks = <&ccu CLK_AHB_DE_FE0>, <&ccu CLK_DE_FE0>,
1540                                  <&ccu CLK_DRAM_DE_FE0>;
1541                         clock-names = "ahb", "mod",
1542                                       "ram";
1543                         resets = <&ccu RST_DE_FE0>;
1544
1545                         ports {
1546                                 #address-cells = <1>;
1547                                 #size-cells = <0>;
1548
1549                                 fe0_out: port@1 {
1550                                         #address-cells = <1>;
1551                                         #size-cells = <0>;
1552                                         reg = <1>;
1553
1554                                         fe0_out_be0: endpoint@0 {
1555                                                 reg = <0>;
1556                                                 remote-endpoint = <&be0_in_fe0>;
1557                                         };
1558
1559                                         fe0_out_be1: endpoint@1 {
1560                                                 reg = <1>;
1561                                                 remote-endpoint = <&be1_in_fe0>;
1562                                         };
1563                                 };
1564                         };
1565                 };
1566
1567                 fe1: display-frontend@1e20000 {
1568                         compatible = "allwinner,sun7i-a20-display-frontend";
1569                         reg = <0x01e20000 0x20000>;
1570                         interrupts = <GIC_SPI 48 IRQ_TYPE_LEVEL_HIGH>;
1571                         clocks = <&ccu CLK_AHB_DE_FE1>, <&ccu CLK_DE_FE1>,
1572                                  <&ccu CLK_DRAM_DE_FE1>;
1573                         clock-names = "ahb", "mod",
1574                                       "ram";
1575                         resets = <&ccu RST_DE_FE1>;
1576
1577                         ports {
1578                                 #address-cells = <1>;
1579                                 #size-cells = <0>;
1580
1581                                 fe1_out: port@1 {
1582                                         #address-cells = <1>;
1583                                         #size-cells = <0>;
1584                                         reg = <1>;
1585
1586                                         fe1_out_be0: endpoint@0 {
1587                                                 reg = <0>;
1588                                                 remote-endpoint = <&be0_in_fe1>;
1589                                         };
1590
1591                                         fe1_out_be1: endpoint@1 {
1592                                                 reg = <1>;
1593                                                 remote-endpoint = <&be1_in_fe1>;
1594                                         };
1595                                 };
1596                         };
1597                 };
1598
1599                 be1: display-backend@1e40000 {
1600                         compatible = "allwinner,sun7i-a20-display-backend";
1601                         reg = <0x01e40000 0x10000>;
1602                         interrupts = <GIC_SPI 48 IRQ_TYPE_LEVEL_HIGH>;
1603                         clocks = <&ccu CLK_AHB_DE_BE1>, <&ccu CLK_DE_BE1>,
1604                                  <&ccu CLK_DRAM_DE_BE1>;
1605                         clock-names = "ahb", "mod",
1606                                       "ram";
1607                         resets = <&ccu RST_DE_BE1>;
1608
1609                         ports {
1610                                 #address-cells = <1>;
1611                                 #size-cells = <0>;
1612
1613                                 be1_in: port@0 {
1614                                         #address-cells = <1>;
1615                                         #size-cells = <0>;
1616                                         reg = <0>;
1617
1618                                         be1_in_fe0: endpoint@0 {
1619                                                 reg = <0>;
1620                                                 remote-endpoint = <&fe0_out_be1>;
1621                                         };
1622
1623                                         be1_in_fe1: endpoint@1 {
1624                                                 reg = <1>;
1625                                                 remote-endpoint = <&fe1_out_be1>;
1626                                         };
1627                                 };
1628
1629                                 be1_out: port@1 {
1630                                         #address-cells = <1>;
1631                                         #size-cells = <0>;
1632                                         reg = <1>;
1633
1634                                         be1_out_tcon0: endpoint@0 {
1635                                                 reg = <0>;
1636                                                 remote-endpoint = <&tcon0_in_be1>;
1637                                         };
1638
1639                                         be1_out_tcon1: endpoint@1 {
1640                                                 reg = <1>;
1641                                                 remote-endpoint = <&tcon1_in_be1>;
1642                                         };
1643                                 };
1644                         };
1645                 };
1646
1647                 be0: display-backend@1e60000 {
1648                         compatible = "allwinner,sun7i-a20-display-backend";
1649                         reg = <0x01e60000 0x10000>;
1650                         interrupts = <GIC_SPI 47 IRQ_TYPE_LEVEL_HIGH>;
1651                         clocks = <&ccu CLK_AHB_DE_BE0>, <&ccu CLK_DE_BE0>,
1652                                  <&ccu CLK_DRAM_DE_BE0>;
1653                         clock-names = "ahb", "mod",
1654                                       "ram";
1655                         resets = <&ccu RST_DE_BE0>;
1656
1657                         ports {
1658                                 #address-cells = <1>;
1659                                 #size-cells = <0>;
1660
1661                                 be0_in: port@0 {
1662                                         #address-cells = <1>;
1663                                         #size-cells = <0>;
1664                                         reg = <0>;
1665
1666                                         be0_in_fe0: endpoint@0 {
1667                                                 reg = <0>;
1668                                                 remote-endpoint = <&fe0_out_be0>;
1669                                         };
1670
1671                                         be0_in_fe1: endpoint@1 {
1672                                                 reg = <1>;
1673                                                 remote-endpoint = <&fe1_out_be0>;
1674                                         };
1675                                 };
1676
1677                                 be0_out: port@1 {
1678                                         #address-cells = <1>;
1679                                         #size-cells = <0>;
1680                                         reg = <1>;
1681
1682                                         be0_out_tcon0: endpoint@0 {
1683                                                 reg = <0>;
1684                                                 remote-endpoint = <&tcon0_in_be0>;
1685                                         };
1686
1687                                         be0_out_tcon1: endpoint@1 {
1688                                                 reg = <1>;
1689                                                 remote-endpoint = <&tcon1_in_be0>;
1690                                         };
1691                                 };
1692                         };
1693                 };
1694         };
1695 };