Merge branch 'asoc-5.0' into asoc-linus
[sfrench/cifs-2.6.git] / arch / arm / boot / dts / sun8i-r40.dtsi
1 /*
2  * Copyright 2017 Chen-Yu Tsai <wens@csie.org>
3  * Copyright 2017 Icenowy Zheng <icenowy@aosc.io>
4  *
5  * 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.
9  *
10  *  a) This file 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 file 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  *
20  * 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.
42  */
43
44 #include <dt-bindings/interrupt-controller/arm-gic.h>
45 #include <dt-bindings/clock/sun8i-de2.h>
46 #include <dt-bindings/clock/sun8i-r40-ccu.h>
47 #include <dt-bindings/reset/sun8i-r40-ccu.h>
48 #include <dt-bindings/reset/sun8i-de2.h>
49
50 / {
51         #address-cells = <1>;
52         #size-cells = <1>;
53         interrupt-parent = <&gic>;
54
55         clocks {
56                 #address-cells = <1>;
57                 #size-cells = <1>;
58                 ranges;
59
60                 osc24M: osc24M {
61                         #clock-cells = <0>;
62                         compatible = "fixed-clock";
63                         clock-frequency = <24000000>;
64                         clock-accuracy = <50000>;
65                         clock-output-names = "osc24M";
66                 };
67
68                 osc32k: osc32k {
69                         #clock-cells = <0>;
70                         compatible = "fixed-clock";
71                         clock-frequency = <32768>;
72                         clock-accuracy = <20000>;
73                         clock-output-names = "ext-osc32k";
74                 };
75         };
76
77         cpus {
78                 #address-cells = <1>;
79                 #size-cells = <0>;
80
81                 cpu@0 {
82                         compatible = "arm,cortex-a7";
83                         device_type = "cpu";
84                         reg = <0>;
85                 };
86
87                 cpu@1 {
88                         compatible = "arm,cortex-a7";
89                         device_type = "cpu";
90                         reg = <1>;
91                 };
92
93                 cpu@2 {
94                         compatible = "arm,cortex-a7";
95                         device_type = "cpu";
96                         reg = <2>;
97                 };
98
99                 cpu@3 {
100                         compatible = "arm,cortex-a7";
101                         device_type = "cpu";
102                         reg = <3>;
103                 };
104         };
105
106         de: display-engine {
107                 compatible = "allwinner,sun8i-r40-display-engine";
108                 allwinner,pipelines = <&mixer0>, <&mixer1>;
109                 status = "disabled";
110         };
111
112         soc {
113                 compatible = "simple-bus";
114                 #address-cells = <1>;
115                 #size-cells = <1>;
116                 ranges;
117
118                 display_clocks: clock@1000000 {
119                         compatible = "allwinner,sun8i-r40-de2-clk",
120                                      "allwinner,sun8i-h3-de2-clk";
121                         reg = <0x01000000 0x100000>;
122                         clocks = <&ccu CLK_DE>,
123                                  <&ccu CLK_BUS_DE>;
124                         clock-names = "mod",
125                                       "bus";
126                         resets = <&ccu RST_BUS_DE>;
127                         #clock-cells = <1>;
128                         #reset-cells = <1>;
129                 };
130
131                 mixer0: mixer@1100000 {
132                         compatible = "allwinner,sun8i-r40-de2-mixer-0";
133                         reg = <0x01100000 0x100000>;
134                         clocks = <&display_clocks CLK_BUS_MIXER0>,
135                                  <&display_clocks CLK_MIXER0>;
136                         clock-names = "bus",
137                                       "mod";
138                         resets = <&display_clocks RST_MIXER0>;
139
140                         ports {
141                                 #address-cells = <1>;
142                                 #size-cells = <0>;
143
144                                 mixer0_out: port@1 {
145                                         reg = <1>;
146                                         mixer0_out_tcon_top: endpoint {
147                                                 remote-endpoint = <&tcon_top_mixer0_in_mixer0>;
148                                         };
149                                 };
150                         };
151                 };
152
153                 mixer1: mixer@1200000 {
154                         compatible = "allwinner,sun8i-r40-de2-mixer-1";
155                         reg = <0x01200000 0x100000>;
156                         clocks = <&display_clocks CLK_BUS_MIXER1>,
157                                  <&display_clocks CLK_MIXER1>;
158                         clock-names = "bus",
159                                       "mod";
160                         resets = <&display_clocks RST_WB>;
161
162                         ports {
163                                 #address-cells = <1>;
164                                 #size-cells = <0>;
165
166                                 mixer1_out: port@1 {
167                                         reg = <1>;
168                                         mixer1_out_tcon_top: endpoint {
169                                                 remote-endpoint = <&tcon_top_mixer1_in_mixer1>;
170                                         };
171                                 };
172                         };
173                 };
174
175                 nmi_intc: interrupt-controller@1c00030 {
176                         compatible = "allwinner,sun7i-a20-sc-nmi";
177                         interrupt-controller;
178                         #interrupt-cells = <2>;
179                         reg = <0x01c00030 0x0c>;
180                         interrupts = <GIC_SPI 0 IRQ_TYPE_LEVEL_HIGH>;
181                 };
182
183                 mmc0: mmc@1c0f000 {
184                         compatible = "allwinner,sun8i-r40-mmc",
185                                      "allwinner,sun50i-a64-mmc";
186                         reg = <0x01c0f000 0x1000>;
187                         clocks = <&ccu CLK_BUS_MMC0>, <&ccu CLK_MMC0>;
188                         clock-names = "ahb", "mmc";
189                         resets = <&ccu RST_BUS_MMC0>;
190                         reset-names = "ahb";
191                         pinctrl-0 = <&mmc0_pins>;
192                         pinctrl-names = "default";
193                         interrupts = <GIC_SPI 32 IRQ_TYPE_LEVEL_HIGH>;
194                         status = "disabled";
195                         #address-cells = <1>;
196                         #size-cells = <0>;
197                 };
198
199                 mmc1: mmc@1c10000 {
200                         compatible = "allwinner,sun8i-r40-mmc",
201                                      "allwinner,sun50i-a64-mmc";
202                         reg = <0x01c10000 0x1000>;
203                         clocks = <&ccu CLK_BUS_MMC1>, <&ccu CLK_MMC1>;
204                         clock-names = "ahb", "mmc";
205                         resets = <&ccu RST_BUS_MMC1>;
206                         reset-names = "ahb";
207                         interrupts = <GIC_SPI 33 IRQ_TYPE_LEVEL_HIGH>;
208                         status = "disabled";
209                         #address-cells = <1>;
210                         #size-cells = <0>;
211                 };
212
213                 mmc2: mmc@1c11000 {
214                         compatible = "allwinner,sun8i-r40-emmc",
215                                      "allwinner,sun50i-a64-emmc";
216                         reg = <0x01c11000 0x1000>;
217                         clocks = <&ccu CLK_BUS_MMC2>, <&ccu CLK_MMC2>;
218                         clock-names = "ahb", "mmc";
219                         resets = <&ccu RST_BUS_MMC2>;
220                         reset-names = "ahb";
221                         pinctrl-0 = <&mmc2_pins>;
222                         pinctrl-names = "default";
223                         interrupts = <GIC_SPI 34 IRQ_TYPE_LEVEL_HIGH>;
224                         status = "disabled";
225                         #address-cells = <1>;
226                         #size-cells = <0>;
227                 };
228
229                 mmc3: mmc@1c12000 {
230                         compatible = "allwinner,sun8i-r40-mmc",
231                                      "allwinner,sun50i-a64-mmc";
232                         reg = <0x01c12000 0x1000>;
233                         clocks = <&ccu CLK_BUS_MMC3>, <&ccu CLK_MMC3>;
234                         clock-names = "ahb", "mmc";
235                         resets = <&ccu RST_BUS_MMC3>;
236                         reset-names = "ahb";
237                         interrupts = <GIC_SPI 35 IRQ_TYPE_LEVEL_HIGH>;
238                         status = "disabled";
239                         #address-cells = <1>;
240                         #size-cells = <0>;
241                 };
242
243                 usbphy: phy@1c13400 {
244                         compatible = "allwinner,sun8i-r40-usb-phy";
245                         reg = <0x01c13400 0x14>,
246                               <0x01c14800 0x4>,
247                               <0x01c19800 0x4>,
248                               <0x01c1c800 0x4>;
249                         reg-names = "phy_ctrl",
250                                     "pmu0",
251                                     "pmu1",
252                                     "pmu2";
253                         clocks = <&ccu CLK_USB_PHY0>,
254                                  <&ccu CLK_USB_PHY1>,
255                                  <&ccu CLK_USB_PHY2>;
256                         clock-names = "usb0_phy",
257                                       "usb1_phy",
258                                       "usb2_phy";
259                         resets = <&ccu RST_USB_PHY0>,
260                                  <&ccu RST_USB_PHY1>,
261                                  <&ccu RST_USB_PHY2>;
262                         reset-names = "usb0_reset",
263                                       "usb1_reset",
264                                       "usb2_reset";
265                         status = "disabled";
266                         #phy-cells = <1>;
267                 };
268
269                 ehci1: usb@1c19000 {
270                         compatible = "allwinner,sun8i-r40-ehci", "generic-ehci";
271                         reg = <0x01c19000 0x100>;
272                         interrupts = <GIC_SPI 76 IRQ_TYPE_LEVEL_HIGH>;
273                         clocks = <&ccu CLK_BUS_EHCI1>;
274                         resets = <&ccu RST_BUS_EHCI1>;
275                         phys = <&usbphy 1>;
276                         phy-names = "usb";
277                         status = "disabled";
278                 };
279
280                 ohci1: usb@1c19400 {
281                         compatible = "allwinner,sun8i-r40-ohci", "generic-ohci";
282                         reg = <0x01c19400 0x100>;
283                         interrupts = <GIC_SPI 64 IRQ_TYPE_LEVEL_HIGH>;
284                         clocks = <&ccu CLK_BUS_OHCI1>,
285                                  <&ccu CLK_USB_OHCI1>;
286                         resets = <&ccu RST_BUS_OHCI1>;
287                         phys = <&usbphy 1>;
288                         phy-names = "usb";
289                         status = "disabled";
290                 };
291
292                 ehci2: usb@1c1c000 {
293                         compatible = "allwinner,sun8i-r40-ehci", "generic-ehci";
294                         reg = <0x01c1c000 0x100>;
295                         interrupts = <GIC_SPI 78 IRQ_TYPE_LEVEL_HIGH>;
296                         clocks = <&ccu CLK_BUS_EHCI2>;
297                         resets = <&ccu RST_BUS_EHCI2>;
298                         phys = <&usbphy 2>;
299                         phy-names = "usb";
300                         status = "disabled";
301                 };
302
303                 ohci2: usb@1c1c400 {
304                         compatible = "allwinner,sun8i-r40-ohci", "generic-ohci";
305                         reg = <0x01c1c400 0x100>;
306                         interrupts = <GIC_SPI 65 IRQ_TYPE_LEVEL_HIGH>;
307                         clocks = <&ccu CLK_BUS_OHCI2>,
308                                  <&ccu CLK_USB_OHCI2>;
309                         resets = <&ccu RST_BUS_OHCI2>;
310                         phys = <&usbphy 2>;
311                         phy-names = "usb";
312                         status = "disabled";
313                 };
314
315                 ccu: clock@1c20000 {
316                         compatible = "allwinner,sun8i-r40-ccu";
317                         reg = <0x01c20000 0x400>;
318                         clocks = <&osc24M>, <&rtc 0>;
319                         clock-names = "hosc", "losc";
320                         #clock-cells = <1>;
321                         #reset-cells = <1>;
322                 };
323
324                 rtc: rtc@1c20400 {
325                         compatible = "allwinner,sun8i-r40-rtc",
326                                      "allwinner,sun8i-h3-rtc";
327                         reg = <0x01c20400 0x400>;
328                         interrupts = <GIC_SPI 24 IRQ_TYPE_LEVEL_HIGH>;
329                         clock-output-names = "osc32k", "osc32k-out";
330                         clocks = <&osc32k>;
331                         #clock-cells = <1>;
332                 };
333
334                 pio: pinctrl@1c20800 {
335                         compatible = "allwinner,sun8i-r40-pinctrl";
336                         reg = <0x01c20800 0x400>;
337                         interrupts = <GIC_SPI 28 IRQ_TYPE_LEVEL_HIGH>;
338                         clocks = <&ccu CLK_BUS_PIO>, <&osc24M>, <&rtc 0>;
339                         clock-names = "apb", "hosc", "losc";
340                         gpio-controller;
341                         interrupt-controller;
342                         #interrupt-cells = <3>;
343                         #gpio-cells = <3>;
344
345                         gmac_rgmii_pins: gmac-rgmii-pins {
346                                 pins = "PA0", "PA1", "PA2", "PA3",
347                                        "PA4", "PA5", "PA6", "PA7",
348                                        "PA8", "PA10", "PA11", "PA12",
349                                        "PA13", "PA15", "PA16";
350                                 function = "gmac";
351                                 /*
352                                  * data lines in RGMII mode use DDR mode
353                                  * and need a higher signal drive strength
354                                  */
355                                 drive-strength = <40>;
356                         };
357
358                         i2c0_pins: i2c0-pins {
359                                 pins = "PB0", "PB1";
360                                 function = "i2c0";
361                         };
362
363                         mmc0_pins: mmc0-pins {
364                                 pins = "PF0", "PF1", "PF2",
365                                        "PF3", "PF4", "PF5";
366                                 function = "mmc0";
367                                 drive-strength = <30>;
368                                 bias-pull-up;
369                         };
370
371                         mmc1_pg_pins: mmc1-pg-pins {
372                                 pins = "PG0", "PG1", "PG2",
373                                        "PG3", "PG4", "PG5";
374                                 function = "mmc1";
375                                 drive-strength = <30>;
376                                 bias-pull-up;
377                         };
378
379                         mmc2_pins: mmc2-pins {
380                                 pins = "PC5", "PC6", "PC7", "PC8", "PC9",
381                                        "PC10", "PC11", "PC12", "PC13", "PC14",
382                                        "PC15", "PC24";
383                                 function = "mmc2";
384                                 drive-strength = <30>;
385                                 bias-pull-up;
386                         };
387
388                         uart0_pb_pins: uart0-pb-pins {
389                                 pins = "PB22", "PB23";
390                                 function = "uart0";
391                         };
392                 };
393
394                 wdt: watchdog@1c20c90 {
395                         compatible = "allwinner,sun4i-a10-wdt";
396                         reg = <0x01c20c90 0x10>;
397                 };
398
399                 uart0: serial@1c28000 {
400                         compatible = "snps,dw-apb-uart";
401                         reg = <0x01c28000 0x400>;
402                         interrupts = <GIC_SPI 1 IRQ_TYPE_LEVEL_HIGH>;
403                         reg-shift = <2>;
404                         reg-io-width = <4>;
405                         clocks = <&ccu CLK_BUS_UART0>;
406                         resets = <&ccu RST_BUS_UART0>;
407                         status = "disabled";
408                 };
409
410                 uart1: serial@1c28400 {
411                         compatible = "snps,dw-apb-uart";
412                         reg = <0x01c28400 0x400>;
413                         interrupts = <GIC_SPI 2 IRQ_TYPE_LEVEL_HIGH>;
414                         reg-shift = <2>;
415                         reg-io-width = <4>;
416                         clocks = <&ccu CLK_BUS_UART1>;
417                         resets = <&ccu RST_BUS_UART1>;
418                         status = "disabled";
419                 };
420
421                 uart2: serial@1c28800 {
422                         compatible = "snps,dw-apb-uart";
423                         reg = <0x01c28800 0x400>;
424                         interrupts = <GIC_SPI 3 IRQ_TYPE_LEVEL_HIGH>;
425                         reg-shift = <2>;
426                         reg-io-width = <4>;
427                         clocks = <&ccu CLK_BUS_UART2>;
428                         resets = <&ccu RST_BUS_UART2>;
429                         status = "disabled";
430                 };
431
432                 uart3: serial@1c28c00 {
433                         compatible = "snps,dw-apb-uart";
434                         reg = <0x01c28c00 0x400>;
435                         interrupts = <GIC_SPI 4 IRQ_TYPE_LEVEL_HIGH>;
436                         reg-shift = <2>;
437                         reg-io-width = <4>;
438                         clocks = <&ccu CLK_BUS_UART3>;
439                         resets = <&ccu RST_BUS_UART3>;
440                         status = "disabled";
441                 };
442
443                 uart4: serial@1c29000 {
444                         compatible = "snps,dw-apb-uart";
445                         reg = <0x01c29000 0x400>;
446                         interrupts = <GIC_SPI 17 IRQ_TYPE_LEVEL_HIGH>;
447                         reg-shift = <2>;
448                         reg-io-width = <4>;
449                         clocks = <&ccu CLK_BUS_UART4>;
450                         resets = <&ccu RST_BUS_UART4>;
451                         status = "disabled";
452                 };
453
454                 uart5: serial@1c29400 {
455                         compatible = "snps,dw-apb-uart";
456                         reg = <0x01c29400 0x400>;
457                         interrupts = <GIC_SPI 18 IRQ_TYPE_LEVEL_HIGH>;
458                         reg-shift = <2>;
459                         reg-io-width = <4>;
460                         clocks = <&ccu CLK_BUS_UART5>;
461                         resets = <&ccu RST_BUS_UART5>;
462                         status = "disabled";
463                 };
464
465                 uart6: serial@1c29800 {
466                         compatible = "snps,dw-apb-uart";
467                         reg = <0x01c29800 0x400>;
468                         interrupts = <GIC_SPI 19 IRQ_TYPE_LEVEL_HIGH>;
469                         reg-shift = <2>;
470                         reg-io-width = <4>;
471                         clocks = <&ccu CLK_BUS_UART6>;
472                         resets = <&ccu RST_BUS_UART6>;
473                         status = "disabled";
474                 };
475
476                 uart7: serial@1c29c00 {
477                         compatible = "snps,dw-apb-uart";
478                         reg = <0x01c29c00 0x400>;
479                         interrupts = <GIC_SPI 20 IRQ_TYPE_LEVEL_HIGH>;
480                         reg-shift = <2>;
481                         reg-io-width = <4>;
482                         clocks = <&ccu CLK_BUS_UART7>;
483                         resets = <&ccu RST_BUS_UART7>;
484                         status = "disabled";
485                 };
486
487                 i2c0: i2c@1c2ac00 {
488                         compatible = "allwinner,sun6i-a31-i2c";
489                         reg = <0x01c2ac00 0x400>;
490                         interrupts = <GIC_SPI 7 IRQ_TYPE_LEVEL_HIGH>;
491                         clocks = <&ccu CLK_BUS_I2C0>;
492                         resets = <&ccu RST_BUS_I2C0>;
493                         pinctrl-0 = <&i2c0_pins>;
494                         pinctrl-names = "default";
495                         status = "disabled";
496                         #address-cells = <1>;
497                         #size-cells = <0>;
498                 };
499
500                 i2c1: i2c@1c2b000 {
501                         compatible = "allwinner,sun6i-a31-i2c";
502                         reg = <0x01c2b000 0x400>;
503                         interrupts = <GIC_SPI 8 IRQ_TYPE_LEVEL_HIGH>;
504                         clocks = <&ccu CLK_BUS_I2C1>;
505                         resets = <&ccu RST_BUS_I2C1>;
506                         status = "disabled";
507                         #address-cells = <1>;
508                         #size-cells = <0>;
509                 };
510
511                 i2c2: i2c@1c2b400 {
512                         compatible = "allwinner,sun6i-a31-i2c";
513                         reg = <0x01c2b400 0x400>;
514                         interrupts = <GIC_SPI 9 IRQ_TYPE_LEVEL_HIGH>;
515                         clocks = <&ccu CLK_BUS_I2C2>;
516                         resets = <&ccu RST_BUS_I2C2>;
517                         status = "disabled";
518                         #address-cells = <1>;
519                         #size-cells = <0>;
520                 };
521
522                 i2c3: i2c@1c2b800 {
523                         compatible = "allwinner,sun6i-a31-i2c";
524                         reg = <0x01c2b800 0x400>;
525                         interrupts = <GIC_SPI 88 IRQ_TYPE_LEVEL_HIGH>;
526                         clocks = <&ccu CLK_BUS_I2C3>;
527                         resets = <&ccu RST_BUS_I2C3>;
528                         status = "disabled";
529                         #address-cells = <1>;
530                         #size-cells = <0>;
531                 };
532
533                 i2c4: i2c@1c2c000 {
534                         compatible = "allwinner,sun6i-a31-i2c";
535                         reg = <0x01c2c000 0x400>;
536                         interrupts = <GIC_SPI 89 IRQ_TYPE_LEVEL_HIGH>;
537                         clocks = <&ccu CLK_BUS_I2C4>;
538                         resets = <&ccu RST_BUS_I2C4>;
539                         status = "disabled";
540                         #address-cells = <1>;
541                         #size-cells = <0>;
542                 };
543
544                 ahci: sata@1c18000 {
545                         compatible = "allwinner,sun8i-r40-ahci";
546                         reg = <0x01c18000 0x1000>;
547                         interrupts = <GIC_SPI 56 IRQ_TYPE_LEVEL_HIGH>;
548                         clocks = <&ccu CLK_BUS_SATA>, <&ccu CLK_SATA>;
549                         resets = <&ccu RST_BUS_SATA>;
550                         resets-name = "ahci";
551                         #address-cells = <1>;
552                         #size-cells = <0>;
553                         status = "disabled";
554
555                 };
556
557                 gmac: ethernet@1c50000 {
558                         compatible = "allwinner,sun8i-r40-gmac";
559                         syscon = <&ccu>;
560                         reg = <0x01c50000 0x10000>;
561                         interrupts = <GIC_SPI 85 IRQ_TYPE_LEVEL_HIGH>;
562                         interrupt-names = "macirq";
563                         resets = <&ccu RST_BUS_GMAC>;
564                         reset-names = "stmmaceth";
565                         clocks = <&ccu CLK_BUS_GMAC>;
566                         clock-names = "stmmaceth";
567                         status = "disabled";
568
569                         gmac_mdio: mdio {
570                                 compatible = "snps,dwmac-mdio";
571                                 #address-cells = <1>;
572                                 #size-cells = <0>;
573                         };
574                 };
575
576                 tcon_top: tcon-top@1c70000 {
577                         compatible = "allwinner,sun8i-r40-tcon-top";
578                         reg = <0x01c70000 0x1000>;
579                         clocks = <&ccu CLK_BUS_TCON_TOP>,
580                                  <&ccu CLK_TCON_TV0>,
581                                  <&ccu CLK_TVE0>,
582                                  <&ccu CLK_TCON_TV1>,
583                                  <&ccu CLK_TVE1>,
584                                  <&ccu CLK_DSI_DPHY>;
585                         clock-names = "bus",
586                                       "tcon-tv0",
587                                       "tve0",
588                                       "tcon-tv1",
589                                       "tve1",
590                                       "dsi";
591                         clock-output-names = "tcon-top-tv0",
592                                              "tcon-top-tv1",
593                                              "tcon-top-dsi";
594                         resets = <&ccu RST_BUS_TCON_TOP>;
595                         #clock-cells = <1>;
596
597                         ports {
598                                 #address-cells = <1>;
599                                 #size-cells = <0>;
600
601                                 tcon_top_mixer0_in: port@0 {
602                                         #address-cells = <1>;
603                                         #size-cells = <0>;
604                                         reg = <0>;
605
606                                         tcon_top_mixer0_in_mixer0: endpoint@0 {
607                                                 reg = <0>;
608                                                 remote-endpoint = <&mixer0_out_tcon_top>;
609                                         };
610                                 };
611
612                                 tcon_top_mixer0_out: port@1 {
613                                         #address-cells = <1>;
614                                         #size-cells = <0>;
615                                         reg = <1>;
616
617                                         tcon_top_mixer0_out_tcon_lcd0: endpoint@0 {
618                                                 reg = <0>;
619                                         };
620
621                                         tcon_top_mixer0_out_tcon_lcd1: endpoint@1 {
622                                                 reg = <1>;
623                                         };
624
625                                         tcon_top_mixer0_out_tcon_tv0: endpoint@2 {
626                                                 reg = <2>;
627                                                 remote-endpoint = <&tcon_tv0_in_tcon_top_mixer0>;
628                                         };
629
630                                         tcon_top_mixer0_out_tcon_tv1: endpoint@3 {
631                                                 reg = <3>;
632                                                 remote-endpoint = <&tcon_tv1_in_tcon_top_mixer0>;
633                                         };
634                                 };
635
636                                 tcon_top_mixer1_in: port@2 {
637                                         #address-cells = <1>;
638                                         #size-cells = <0>;
639                                         reg = <2>;
640
641                                         tcon_top_mixer1_in_mixer1: endpoint@1 {
642                                                 reg = <1>;
643                                                 remote-endpoint = <&mixer1_out_tcon_top>;
644                                         };
645                                 };
646
647                                 tcon_top_mixer1_out: port@3 {
648                                         #address-cells = <1>;
649                                         #size-cells = <0>;
650                                         reg = <3>;
651
652                                         tcon_top_mixer1_out_tcon_lcd0: endpoint@0 {
653                                                 reg = <0>;
654                                         };
655
656                                         tcon_top_mixer1_out_tcon_lcd1: endpoint@1 {
657                                                 reg = <1>;
658                                         };
659
660                                         tcon_top_mixer1_out_tcon_tv0: endpoint@2 {
661                                                 reg = <2>;
662                                                 remote-endpoint = <&tcon_tv0_in_tcon_top_mixer1>;
663                                         };
664
665                                         tcon_top_mixer1_out_tcon_tv1: endpoint@3 {
666                                                 reg = <3>;
667                                                 remote-endpoint = <&tcon_tv1_in_tcon_top_mixer1>;
668                                         };
669                                 };
670
671                                 tcon_top_hdmi_in: port@4 {
672                                         #address-cells = <1>;
673                                         #size-cells = <0>;
674                                         reg = <4>;
675
676                                         tcon_top_hdmi_in_tcon_tv0: endpoint@0 {
677                                                 reg = <0>;
678                                                 remote-endpoint = <&tcon_tv0_out_tcon_top>;
679                                         };
680
681                                         tcon_top_hdmi_in_tcon_tv1: endpoint@1 {
682                                                 reg = <1>;
683                                                 remote-endpoint = <&tcon_tv1_out_tcon_top>;
684                                         };
685                                 };
686
687                                 tcon_top_hdmi_out: port@5 {
688                                         reg = <5>;
689
690                                         tcon_top_hdmi_out_hdmi: endpoint {
691                                                 remote-endpoint = <&hdmi_in_tcon_top>;
692                                         };
693                                 };
694                         };
695                 };
696
697                 tcon_tv0: lcd-controller@1c73000 {
698                         compatible = "allwinner,sun8i-r40-tcon-tv";
699                         reg = <0x01c73000 0x1000>;
700                         interrupts = <GIC_SPI 51 IRQ_TYPE_LEVEL_HIGH>;
701                         clocks = <&ccu CLK_BUS_TCON_TV0>, <&tcon_top 0>;
702                         clock-names = "ahb", "tcon-ch1";
703                         resets = <&ccu RST_BUS_TCON_TV0>;
704                         reset-names = "lcd";
705                         status = "disabled";
706
707                         ports {
708                                 #address-cells = <1>;
709                                 #size-cells = <0>;
710
711                                 tcon_tv0_in: port@0 {
712                                         #address-cells = <1>;
713                                         #size-cells = <0>;
714                                         reg = <0>;
715
716                                         tcon_tv0_in_tcon_top_mixer0: endpoint@0 {
717                                                 reg = <0>;
718                                                 remote-endpoint = <&tcon_top_mixer0_out_tcon_tv0>;
719                                         };
720
721                                         tcon_tv0_in_tcon_top_mixer1: endpoint@1 {
722                                                 reg = <1>;
723                                                 remote-endpoint = <&tcon_top_mixer1_out_tcon_tv0>;
724                                         };
725                                 };
726
727                                 tcon_tv0_out: port@1 {
728                                         #address-cells = <1>;
729                                         #size-cells = <0>;
730                                         reg = <1>;
731
732                                         tcon_tv0_out_tcon_top: endpoint@1 {
733                                                 reg = <1>;
734                                                 remote-endpoint = <&tcon_top_hdmi_in_tcon_tv0>;
735                                         };
736                                 };
737                         };
738                 };
739
740                 tcon_tv1: lcd-controller@1c74000 {
741                         compatible = "allwinner,sun8i-r40-tcon-tv";
742                         reg = <0x01c74000 0x1000>;
743                         interrupts = <GIC_SPI 52 IRQ_TYPE_LEVEL_HIGH>;
744                         clocks = <&ccu CLK_BUS_TCON_TV1>, <&tcon_top 1>;
745                         clock-names = "ahb", "tcon-ch1";
746                         resets = <&ccu RST_BUS_TCON_TV1>;
747                         reset-names = "lcd";
748                         status = "disabled";
749
750                         ports {
751                                 #address-cells = <1>;
752                                 #size-cells = <0>;
753
754                                 tcon_tv1_in: port@0 {
755                                         #address-cells = <1>;
756                                         #size-cells = <0>;
757                                         reg = <0>;
758
759                                         tcon_tv1_in_tcon_top_mixer0: endpoint@0 {
760                                                 reg = <0>;
761                                                 remote-endpoint = <&tcon_top_mixer0_out_tcon_tv1>;
762                                         };
763
764                                         tcon_tv1_in_tcon_top_mixer1: endpoint@1 {
765                                                 reg = <1>;
766                                                 remote-endpoint = <&tcon_top_mixer1_out_tcon_tv1>;
767                                         };
768                                 };
769
770                                 tcon_tv1_out: port@1 {
771                                         #address-cells = <1>;
772                                         #size-cells = <0>;
773                                         reg = <1>;
774
775                                         tcon_tv1_out_tcon_top: endpoint@1 {
776                                                 reg = <1>;
777                                                 remote-endpoint = <&tcon_top_hdmi_in_tcon_tv1>;
778                                         };
779                                 };
780                         };
781                 };
782
783                 gic: interrupt-controller@1c81000 {
784                         compatible = "arm,gic-400";
785                         reg = <0x01c81000 0x1000>,
786                               <0x01c82000 0x1000>,
787                               <0x01c84000 0x2000>,
788                               <0x01c86000 0x2000>;
789                         interrupt-controller;
790                         #interrupt-cells = <3>;
791                         interrupts = <GIC_PPI 9 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>;
792                 };
793
794                 hdmi: hdmi@1ee0000 {
795                         compatible = "allwinner,sun8i-r40-dw-hdmi",
796                                      "allwinner,sun8i-a83t-dw-hdmi";
797                         reg = <0x01ee0000 0x10000>;
798                         reg-io-width = <1>;
799                         interrupts = <GIC_SPI 58 IRQ_TYPE_LEVEL_HIGH>;
800                         clocks = <&ccu CLK_BUS_HDMI0>, <&ccu CLK_HDMI_SLOW>,
801                                  <&ccu CLK_HDMI>;
802                         clock-names = "iahb", "isfr", "tmds";
803                         resets = <&ccu RST_BUS_HDMI1>;
804                         reset-names = "ctrl";
805                         phys = <&hdmi_phy>;
806                         phy-names = "hdmi-phy";
807                         status = "disabled";
808
809                         ports {
810                                 #address-cells = <1>;
811                                 #size-cells = <0>;
812
813                                 hdmi_in: port@0 {
814                                         reg = <0>;
815
816                                         hdmi_in_tcon_top: endpoint {
817                                                 remote-endpoint = <&tcon_top_hdmi_out_hdmi>;
818                                         };
819                                 };
820
821                                 hdmi_out: port@1 {
822                                         reg = <1>;
823                                 };
824                         };
825                 };
826
827                 hdmi_phy: hdmi-phy@1ef0000 {
828                         compatible = "allwinner,sun8i-r40-hdmi-phy";
829                         reg = <0x01ef0000 0x10000>;
830                         clocks = <&ccu CLK_BUS_HDMI1>, <&ccu CLK_HDMI_SLOW>,
831                                  <&ccu 7>, <&ccu 16>;
832                         clock-names = "bus", "mod", "pll-0", "pll-1";
833                         resets = <&ccu RST_BUS_HDMI0>;
834                         reset-names = "phy";
835                         #phy-cells = <0>;
836                 };
837         };
838
839         timer {
840                 compatible = "arm,armv7-timer";
841                 interrupts = <GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
842                              <GIC_PPI 14 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
843                              <GIC_PPI 11 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
844                              <GIC_PPI 10 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>;
845         };
846 };