2 * Copyright 2017 Chen-Yu Tsai <wens@csie.org>
3 * Copyright 2017 Icenowy Zheng <icenowy@aosc.io>
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
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.
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.
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
31 * The above copyright notice and this permission notice shall be
32 * included in all copies or substantial portions of the Software.
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.
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/clock/sun8i-tcon-top.h>
48 #include <dt-bindings/reset/sun8i-r40-ccu.h>
49 #include <dt-bindings/reset/sun8i-de2.h>
50 #include <dt-bindings/thermal/thermal.h>
55 interrupt-parent = <&gic>;
64 compatible = "fixed-clock";
65 clock-frequency = <24000000>;
66 clock-accuracy = <50000>;
67 clock-output-names = "osc24M";
72 compatible = "fixed-clock";
73 clock-frequency = <32768>;
74 clock-accuracy = <20000>;
75 clock-output-names = "ext-osc32k";
84 compatible = "arm,cortex-a7";
90 compatible = "arm,cortex-a7";
96 compatible = "arm,cortex-a7";
102 compatible = "arm,cortex-a7";
109 compatible = "allwinner,sun8i-r40-display-engine";
110 allwinner,pipelines = <&mixer0>, <&mixer1>;
115 cpu_thermal: cpu0-thermal {
117 polling-delay-passive = <0>;
119 thermal-sensors = <&ths 0>;
122 gpu_thermal: gpu-thermal {
124 polling-delay-passive = <0>;
126 thermal-sensors = <&ths 1>;
131 compatible = "simple-bus";
132 #address-cells = <1>;
136 display_clocks: clock@1000000 {
137 compatible = "allwinner,sun8i-r40-de2-clk",
138 "allwinner,sun8i-h3-de2-clk";
139 reg = <0x01000000 0x10000>;
140 clocks = <&ccu CLK_BUS_DE>,
144 resets = <&ccu RST_BUS_DE>;
149 mixer0: mixer@1100000 {
150 compatible = "allwinner,sun8i-r40-de2-mixer-0";
151 reg = <0x01100000 0x100000>;
152 clocks = <&display_clocks CLK_BUS_MIXER0>,
153 <&display_clocks CLK_MIXER0>;
156 resets = <&display_clocks RST_MIXER0>;
159 #address-cells = <1>;
164 mixer0_out_tcon_top: endpoint {
165 remote-endpoint = <&tcon_top_mixer0_in_mixer0>;
171 mixer1: mixer@1200000 {
172 compatible = "allwinner,sun8i-r40-de2-mixer-1";
173 reg = <0x01200000 0x100000>;
174 clocks = <&display_clocks CLK_BUS_MIXER1>,
175 <&display_clocks CLK_MIXER1>;
178 resets = <&display_clocks RST_WB>;
181 #address-cells = <1>;
186 mixer1_out_tcon_top: endpoint {
187 remote-endpoint = <&tcon_top_mixer1_in_mixer1>;
193 syscon: system-control@1c00000 {
194 compatible = "allwinner,sun8i-r40-system-control",
195 "allwinner,sun4i-a10-system-control";
196 reg = <0x01c00000 0x30>;
197 #address-cells = <1>;
201 sram_c: sram@1d00000 {
202 compatible = "mmio-sram";
203 reg = <0x01d00000 0xd0000>;
204 #address-cells = <1>;
206 ranges = <0 0x01d00000 0xd0000>;
208 ve_sram: sram-section@0 {
209 compatible = "allwinner,sun8i-r40-sram-c1",
210 "allwinner,sun4i-a10-sram-c1";
211 reg = <0x000000 0x80000>;
216 nmi_intc: interrupt-controller@1c00030 {
217 compatible = "allwinner,sun7i-a20-sc-nmi";
218 interrupt-controller;
219 #interrupt-cells = <2>;
220 reg = <0x01c00030 0x0c>;
221 interrupts = <GIC_SPI 0 IRQ_TYPE_LEVEL_HIGH>;
224 dma: dma-controller@1c02000 {
225 compatible = "allwinner,sun8i-r40-dma",
226 "allwinner,sun50i-a64-dma";
227 reg = <0x01c02000 0x1000>;
228 interrupts = <GIC_SPI 27 IRQ_TYPE_LEVEL_HIGH>;
229 clocks = <&ccu CLK_BUS_DMA>;
232 resets = <&ccu RST_BUS_DMA>;
237 compatible = "allwinner,sun8i-r40-spi",
238 "allwinner,sun8i-h3-spi";
239 reg = <0x01c05000 0x1000>;
240 interrupts = <GIC_SPI 10 IRQ_TYPE_LEVEL_HIGH>;
241 clocks = <&ccu CLK_BUS_SPI0>, <&ccu CLK_SPI0>;
242 clock-names = "ahb", "mod";
243 resets = <&ccu RST_BUS_SPI0>;
245 #address-cells = <1>;
250 compatible = "allwinner,sun8i-r40-spi",
251 "allwinner,sun8i-h3-spi";
252 reg = <0x01c06000 0x1000>;
253 interrupts = <GIC_SPI 11 IRQ_TYPE_LEVEL_HIGH>;
254 clocks = <&ccu CLK_BUS_SPI1>, <&ccu CLK_SPI1>;
255 clock-names = "ahb", "mod";
256 resets = <&ccu RST_BUS_SPI1>;
258 #address-cells = <1>;
263 compatible = "allwinner,sun8i-r40-csi0",
264 "allwinner,sun7i-a20-csi0";
265 reg = <0x01c09000 0x1000>;
266 interrupts = <GIC_SPI 42 IRQ_TYPE_LEVEL_HIGH>;
267 clocks = <&ccu CLK_BUS_CSI0>, <&ccu CLK_CSI_SCLK>,
268 <&ccu CLK_DRAM_CSI0>;
269 clock-names = "bus", "isp", "ram";
270 resets = <&ccu RST_BUS_CSI0>;
271 interconnects = <&mbus 5>;
272 interconnect-names = "dma-mem";
276 video-codec@1c0e000 {
277 compatible = "allwinner,sun8i-r40-video-engine";
278 reg = <0x01c0e000 0x1000>;
279 clocks = <&ccu CLK_BUS_VE>, <&ccu CLK_VE>,
281 clock-names = "ahb", "mod", "ram";
282 resets = <&ccu RST_BUS_VE>;
283 interrupts = <GIC_SPI 53 IRQ_TYPE_LEVEL_HIGH>;
284 allwinner,sram = <&ve_sram 1>;
288 compatible = "allwinner,sun8i-r40-mmc",
289 "allwinner,sun50i-a64-mmc";
290 reg = <0x01c0f000 0x1000>;
291 clocks = <&ccu CLK_BUS_MMC0>, <&ccu CLK_MMC0>;
292 clock-names = "ahb", "mmc";
293 resets = <&ccu RST_BUS_MMC0>;
295 pinctrl-0 = <&mmc0_pins>;
296 pinctrl-names = "default";
297 interrupts = <GIC_SPI 32 IRQ_TYPE_LEVEL_HIGH>;
299 #address-cells = <1>;
304 compatible = "allwinner,sun8i-r40-mmc",
305 "allwinner,sun50i-a64-mmc";
306 reg = <0x01c10000 0x1000>;
307 clocks = <&ccu CLK_BUS_MMC1>, <&ccu CLK_MMC1>;
308 clock-names = "ahb", "mmc";
309 resets = <&ccu RST_BUS_MMC1>;
311 interrupts = <GIC_SPI 33 IRQ_TYPE_LEVEL_HIGH>;
313 #address-cells = <1>;
318 compatible = "allwinner,sun8i-r40-emmc",
319 "allwinner,sun50i-a64-emmc";
320 reg = <0x01c11000 0x1000>;
321 clocks = <&ccu CLK_BUS_MMC2>, <&ccu CLK_MMC2>;
322 clock-names = "ahb", "mmc";
323 resets = <&ccu RST_BUS_MMC2>;
325 pinctrl-0 = <&mmc2_pins>;
326 pinctrl-names = "default";
327 interrupts = <GIC_SPI 34 IRQ_TYPE_LEVEL_HIGH>;
329 #address-cells = <1>;
334 compatible = "allwinner,sun8i-r40-mmc",
335 "allwinner,sun50i-a64-mmc";
336 reg = <0x01c12000 0x1000>;
337 clocks = <&ccu CLK_BUS_MMC3>, <&ccu CLK_MMC3>;
338 clock-names = "ahb", "mmc";
339 resets = <&ccu RST_BUS_MMC3>;
341 interrupts = <GIC_SPI 35 IRQ_TYPE_LEVEL_HIGH>;
343 #address-cells = <1>;
347 usbphy: phy@1c13400 {
348 compatible = "allwinner,sun8i-r40-usb-phy";
349 reg = <0x01c13400 0x14>,
353 reg-names = "phy_ctrl",
357 clocks = <&ccu CLK_USB_PHY0>,
360 clock-names = "usb0_phy",
363 resets = <&ccu RST_USB_PHY0>,
366 reset-names = "usb0_reset",
373 crypto: crypto@1c15000 {
374 compatible = "allwinner,sun8i-r40-crypto";
375 reg = <0x01c15000 0x1000>;
376 interrupts = <GIC_SPI 94 IRQ_TYPE_LEVEL_HIGH>;
377 clocks = <&ccu CLK_BUS_CE>, <&ccu CLK_CE>;
378 clock-names = "bus", "mod";
379 resets = <&ccu RST_BUS_CE>;
383 compatible = "allwinner,sun8i-r40-spi",
384 "allwinner,sun8i-h3-spi";
385 reg = <0x01c17000 0x1000>;
386 interrupts = <GIC_SPI 12 IRQ_TYPE_LEVEL_HIGH>;
387 clocks = <&ccu CLK_BUS_SPI2>, <&ccu CLK_SPI2>;
388 clock-names = "ahb", "mod";
389 resets = <&ccu RST_BUS_SPI2>;
391 #address-cells = <1>;
396 compatible = "allwinner,sun8i-r40-ahci";
397 reg = <0x01c18000 0x1000>;
398 interrupts = <GIC_SPI 56 IRQ_TYPE_LEVEL_HIGH>;
399 clocks = <&ccu CLK_BUS_SATA>, <&ccu CLK_SATA>;
400 resets = <&ccu RST_BUS_SATA>;
401 reset-names = "ahci";
406 compatible = "allwinner,sun8i-r40-ehci", "generic-ehci";
407 reg = <0x01c19000 0x100>;
408 interrupts = <GIC_SPI 76 IRQ_TYPE_LEVEL_HIGH>;
409 clocks = <&ccu CLK_BUS_EHCI1>;
410 resets = <&ccu RST_BUS_EHCI1>;
417 compatible = "allwinner,sun8i-r40-ohci", "generic-ohci";
418 reg = <0x01c19400 0x100>;
419 interrupts = <GIC_SPI 64 IRQ_TYPE_LEVEL_HIGH>;
420 clocks = <&ccu CLK_BUS_OHCI1>,
421 <&ccu CLK_USB_OHCI1>;
422 resets = <&ccu RST_BUS_OHCI1>;
429 compatible = "allwinner,sun8i-r40-ehci", "generic-ehci";
430 reg = <0x01c1c000 0x100>;
431 interrupts = <GIC_SPI 78 IRQ_TYPE_LEVEL_HIGH>;
432 clocks = <&ccu CLK_BUS_EHCI2>;
433 resets = <&ccu RST_BUS_EHCI2>;
440 compatible = "allwinner,sun8i-r40-ohci", "generic-ohci";
441 reg = <0x01c1c400 0x100>;
442 interrupts = <GIC_SPI 65 IRQ_TYPE_LEVEL_HIGH>;
443 clocks = <&ccu CLK_BUS_OHCI2>,
444 <&ccu CLK_USB_OHCI2>;
445 resets = <&ccu RST_BUS_OHCI2>;
452 compatible = "allwinner,sun8i-r40-spi",
453 "allwinner,sun8i-h3-spi";
454 reg = <0x01c1f000 0x1000>;
455 interrupts = <GIC_SPI 50 IRQ_TYPE_LEVEL_HIGH>;
456 clocks = <&ccu CLK_BUS_SPI3>, <&ccu CLK_SPI3>;
457 clock-names = "ahb", "mod";
458 resets = <&ccu RST_BUS_SPI3>;
460 #address-cells = <1>;
465 compatible = "allwinner,sun8i-r40-ccu";
466 reg = <0x01c20000 0x400>;
467 clocks = <&osc24M>, <&rtc 0>;
468 clock-names = "hosc", "losc";
474 compatible = "allwinner,sun8i-r40-rtc";
475 reg = <0x01c20400 0x400>;
476 interrupts = <GIC_SPI 24 IRQ_TYPE_LEVEL_HIGH>;
477 clock-output-names = "osc32k", "osc32k-out";
482 pio: pinctrl@1c20800 {
483 compatible = "allwinner,sun8i-r40-pinctrl";
484 reg = <0x01c20800 0x400>;
485 interrupts = <GIC_SPI 28 IRQ_TYPE_LEVEL_HIGH>;
486 clocks = <&ccu CLK_BUS_PIO>, <&osc24M>, <&rtc 0>;
487 clock-names = "apb", "hosc", "losc";
489 interrupt-controller;
490 #interrupt-cells = <3>;
493 clk_out_a_pin: clk-out-a-pin {
495 function = "clk_out_a";
499 csi0_8bits_pins: csi0-8bits-pins {
500 pins = "PE0", "PE2", "PE3", "PE4", "PE5",
501 "PE6", "PE7", "PE8", "PE9", "PE10",
507 csi0_mclk_pin: csi0-mclk-pin {
512 gmac_rgmii_pins: gmac-rgmii-pins {
513 pins = "PA0", "PA1", "PA2", "PA3",
514 "PA4", "PA5", "PA6", "PA7",
515 "PA8", "PA10", "PA11", "PA12",
516 "PA13", "PA15", "PA16";
519 * data lines in RGMII mode use DDR mode
520 * and need a higher signal drive strength
522 drive-strength = <40>;
525 i2c0_pins: i2c0-pins {
530 i2c1_pins: i2c1-pins {
531 pins = "PB18", "PB19";
535 i2c2_pins: i2c2-pins {
536 pins = "PB20", "PB21";
540 i2c3_pins: i2c3-pins {
545 i2c4_pins: i2c4-pins {
560 mmc0_pins: mmc0-pins {
561 pins = "PF0", "PF1", "PF2",
564 drive-strength = <30>;
568 mmc1_pg_pins: mmc1-pg-pins {
569 pins = "PG0", "PG1", "PG2",
572 drive-strength = <30>;
576 mmc2_pins: mmc2-pins {
577 pins = "PC5", "PC6", "PC7", "PC8", "PC9",
578 "PC10", "PC11", "PC12", "PC13", "PC14",
581 drive-strength = <30>;
586 spi0_pc_pins: spi0-pc-pins {
587 pins = "PC0", "PC1", "PC2";
592 spi0_cs0_pc_pin: spi0-cs0-pc-pin {
598 spi1_pi_pins: spi1-pi-pins {
599 pins = "PI17", "PI18", "PI19";
604 spi1_cs0_pi_pin: spi1-cs0-pi-pin {
610 spi1_cs1_pi_pin: spi1-cs1-pi-pin {
615 uart0_pb_pins: uart0-pb-pins {
616 pins = "PB22", "PB23";
620 uart3_pg_pins: uart3-pg-pins {
625 uart3_rts_cts_pg_pins: uart3-rts-cts-pg-pins {
631 wdt: watchdog@1c20c90 {
632 compatible = "allwinner,sun4i-a10-wdt";
633 reg = <0x01c20c90 0x10>;
634 interrupts = <GIC_SPI 24 IRQ_TYPE_LEVEL_HIGH>;
639 compatible = "allwinner,sun8i-r40-ir",
640 "allwinner,sun6i-a31-ir";
641 reg = <0x01c21800 0x400>;
642 pinctrl-0 = <&ir0_pins>;
643 pinctrl-names = "default";
644 clocks = <&ccu CLK_BUS_IR0>, <&ccu CLK_IR0>;
645 clock-names = "apb", "ir";
646 interrupts = <GIC_SPI 5 IRQ_TYPE_LEVEL_HIGH>;
647 resets = <&ccu RST_BUS_IR0>;
652 compatible = "allwinner,sun8i-r40-ir",
653 "allwinner,sun6i-a31-ir";
654 reg = <0x01c21c00 0x400>;
655 pinctrl-0 = <&ir1_pins>;
656 pinctrl-names = "default";
657 clocks = <&ccu CLK_BUS_IR1>, <&ccu CLK_IR1>;
658 clock-names = "apb", "ir";
659 interrupts = <GIC_SPI 6 IRQ_TYPE_LEVEL_HIGH>;
660 resets = <&ccu RST_BUS_IR1>;
664 ths: thermal-sensor@1c24c00 {
665 compatible = "allwinner,sun8i-r40-ths";
666 reg = <0x01c24c00 0x100>;
667 clocks = <&ccu CLK_BUS_THS>, <&ccu CLK_THS>;
668 clock-names = "bus", "mod";
669 interrupts = <GIC_SPI 36 IRQ_TYPE_LEVEL_HIGH>;
670 resets = <&ccu RST_BUS_THS>;
671 /* TODO: add nvmem-cells for calibration */
672 #thermal-sensor-cells = <1>;
675 uart0: serial@1c28000 {
676 compatible = "snps,dw-apb-uart";
677 reg = <0x01c28000 0x400>;
678 interrupts = <GIC_SPI 1 IRQ_TYPE_LEVEL_HIGH>;
681 clocks = <&ccu CLK_BUS_UART0>;
682 resets = <&ccu RST_BUS_UART0>;
686 uart1: serial@1c28400 {
687 compatible = "snps,dw-apb-uart";
688 reg = <0x01c28400 0x400>;
689 interrupts = <GIC_SPI 2 IRQ_TYPE_LEVEL_HIGH>;
692 clocks = <&ccu CLK_BUS_UART1>;
693 resets = <&ccu RST_BUS_UART1>;
697 uart2: serial@1c28800 {
698 compatible = "snps,dw-apb-uart";
699 reg = <0x01c28800 0x400>;
700 interrupts = <GIC_SPI 3 IRQ_TYPE_LEVEL_HIGH>;
703 clocks = <&ccu CLK_BUS_UART2>;
704 resets = <&ccu RST_BUS_UART2>;
708 uart3: serial@1c28c00 {
709 compatible = "snps,dw-apb-uart";
710 reg = <0x01c28c00 0x400>;
711 interrupts = <GIC_SPI 4 IRQ_TYPE_LEVEL_HIGH>;
714 clocks = <&ccu CLK_BUS_UART3>;
715 resets = <&ccu RST_BUS_UART3>;
719 uart4: serial@1c29000 {
720 compatible = "snps,dw-apb-uart";
721 reg = <0x01c29000 0x400>;
722 interrupts = <GIC_SPI 17 IRQ_TYPE_LEVEL_HIGH>;
725 clocks = <&ccu CLK_BUS_UART4>;
726 resets = <&ccu RST_BUS_UART4>;
730 uart5: serial@1c29400 {
731 compatible = "snps,dw-apb-uart";
732 reg = <0x01c29400 0x400>;
733 interrupts = <GIC_SPI 18 IRQ_TYPE_LEVEL_HIGH>;
736 clocks = <&ccu CLK_BUS_UART5>;
737 resets = <&ccu RST_BUS_UART5>;
741 uart6: serial@1c29800 {
742 compatible = "snps,dw-apb-uart";
743 reg = <0x01c29800 0x400>;
744 interrupts = <GIC_SPI 19 IRQ_TYPE_LEVEL_HIGH>;
747 clocks = <&ccu CLK_BUS_UART6>;
748 resets = <&ccu RST_BUS_UART6>;
752 uart7: serial@1c29c00 {
753 compatible = "snps,dw-apb-uart";
754 reg = <0x01c29c00 0x400>;
755 interrupts = <GIC_SPI 20 IRQ_TYPE_LEVEL_HIGH>;
758 clocks = <&ccu CLK_BUS_UART7>;
759 resets = <&ccu RST_BUS_UART7>;
764 compatible = "allwinner,sun6i-a31-i2c";
765 reg = <0x01c2ac00 0x400>;
766 interrupts = <GIC_SPI 7 IRQ_TYPE_LEVEL_HIGH>;
767 clocks = <&ccu CLK_BUS_I2C0>;
768 resets = <&ccu RST_BUS_I2C0>;
769 pinctrl-0 = <&i2c0_pins>;
770 pinctrl-names = "default";
772 #address-cells = <1>;
777 compatible = "allwinner,sun6i-a31-i2c";
778 reg = <0x01c2b000 0x400>;
779 interrupts = <GIC_SPI 8 IRQ_TYPE_LEVEL_HIGH>;
780 clocks = <&ccu CLK_BUS_I2C1>;
781 resets = <&ccu RST_BUS_I2C1>;
782 pinctrl-0 = <&i2c1_pins>;
783 pinctrl-names = "default";
785 #address-cells = <1>;
790 compatible = "allwinner,sun6i-a31-i2c";
791 reg = <0x01c2b400 0x400>;
792 interrupts = <GIC_SPI 9 IRQ_TYPE_LEVEL_HIGH>;
793 clocks = <&ccu CLK_BUS_I2C2>;
794 resets = <&ccu RST_BUS_I2C2>;
795 pinctrl-0 = <&i2c2_pins>;
796 pinctrl-names = "default";
798 #address-cells = <1>;
803 compatible = "allwinner,sun6i-a31-i2c";
804 reg = <0x01c2b800 0x400>;
805 interrupts = <GIC_SPI 88 IRQ_TYPE_LEVEL_HIGH>;
806 clocks = <&ccu CLK_BUS_I2C3>;
807 resets = <&ccu RST_BUS_I2C3>;
808 pinctrl-0 = <&i2c3_pins>;
809 pinctrl-names = "default";
811 #address-cells = <1>;
816 compatible = "allwinner,sun6i-a31-i2c";
817 reg = <0x01c2c000 0x400>;
818 interrupts = <GIC_SPI 89 IRQ_TYPE_LEVEL_HIGH>;
819 clocks = <&ccu CLK_BUS_I2C4>;
820 resets = <&ccu RST_BUS_I2C4>;
821 pinctrl-0 = <&i2c4_pins>;
822 pinctrl-names = "default";
824 #address-cells = <1>;
829 compatible = "allwinner,sun8i-r40-mali", "arm,mali-400";
830 reg = <0x01c40000 0x10000>;
831 interrupts = <GIC_SPI 69 IRQ_TYPE_LEVEL_HIGH>,
832 <GIC_SPI 70 IRQ_TYPE_LEVEL_HIGH>,
833 <GIC_SPI 71 IRQ_TYPE_LEVEL_HIGH>,
834 <GIC_SPI 72 IRQ_TYPE_LEVEL_HIGH>,
835 <GIC_SPI 74 IRQ_TYPE_LEVEL_HIGH>,
836 <GIC_SPI 75 IRQ_TYPE_LEVEL_HIGH>,
837 <GIC_SPI 73 IRQ_TYPE_LEVEL_HIGH>;
838 interrupt-names = "gp",
845 clocks = <&ccu CLK_BUS_GPU>, <&ccu CLK_GPU>;
846 clock-names = "bus", "core";
847 resets = <&ccu RST_BUS_GPU>;
850 gmac: ethernet@1c50000 {
851 compatible = "allwinner,sun8i-r40-gmac";
853 reg = <0x01c50000 0x10000>;
854 interrupts = <GIC_SPI 85 IRQ_TYPE_LEVEL_HIGH>;
855 interrupt-names = "macirq";
856 resets = <&ccu RST_BUS_GMAC>;
857 reset-names = "stmmaceth";
858 clocks = <&ccu CLK_BUS_GMAC>;
859 clock-names = "stmmaceth";
863 compatible = "snps,dwmac-mdio";
864 #address-cells = <1>;
869 mbus: dram-controller@1c62000 {
870 compatible = "allwinner,sun8i-r40-mbus";
871 reg = <0x01c62000 0x1000>;
873 #address-cells = <1>;
875 dma-ranges = <0x00000000 0x40000000 0x80000000>;
876 #interconnect-cells = <1>;
879 tcon_top: tcon-top@1c70000 {
880 compatible = "allwinner,sun8i-r40-tcon-top";
881 reg = <0x01c70000 0x1000>;
882 clocks = <&ccu CLK_BUS_TCON_TOP>,
894 clock-output-names = "tcon-top-tv0",
897 resets = <&ccu RST_BUS_TCON_TOP>;
901 #address-cells = <1>;
904 tcon_top_mixer0_in: port@0 {
907 tcon_top_mixer0_in_mixer0: endpoint {
908 remote-endpoint = <&mixer0_out_tcon_top>;
912 tcon_top_mixer0_out: port@1 {
913 #address-cells = <1>;
917 tcon_top_mixer0_out_tcon_lcd0: endpoint@0 {
921 tcon_top_mixer0_out_tcon_lcd1: endpoint@1 {
925 tcon_top_mixer0_out_tcon_tv0: endpoint@2 {
927 remote-endpoint = <&tcon_tv0_in_tcon_top_mixer0>;
930 tcon_top_mixer0_out_tcon_tv1: endpoint@3 {
932 remote-endpoint = <&tcon_tv1_in_tcon_top_mixer0>;
936 tcon_top_mixer1_in: port@2 {
937 #address-cells = <1>;
941 tcon_top_mixer1_in_mixer1: endpoint@1 {
943 remote-endpoint = <&mixer1_out_tcon_top>;
947 tcon_top_mixer1_out: port@3 {
948 #address-cells = <1>;
952 tcon_top_mixer1_out_tcon_lcd0: endpoint@0 {
956 tcon_top_mixer1_out_tcon_lcd1: endpoint@1 {
960 tcon_top_mixer1_out_tcon_tv0: endpoint@2 {
962 remote-endpoint = <&tcon_tv0_in_tcon_top_mixer1>;
965 tcon_top_mixer1_out_tcon_tv1: endpoint@3 {
967 remote-endpoint = <&tcon_tv1_in_tcon_top_mixer1>;
971 tcon_top_hdmi_in: port@4 {
972 #address-cells = <1>;
976 tcon_top_hdmi_in_tcon_tv0: endpoint@0 {
978 remote-endpoint = <&tcon_tv0_out_tcon_top>;
981 tcon_top_hdmi_in_tcon_tv1: endpoint@1 {
983 remote-endpoint = <&tcon_tv1_out_tcon_top>;
987 tcon_top_hdmi_out: port@5 {
990 tcon_top_hdmi_out_hdmi: endpoint {
991 remote-endpoint = <&hdmi_in_tcon_top>;
997 tcon_tv0: lcd-controller@1c73000 {
998 compatible = "allwinner,sun8i-r40-tcon-tv";
999 reg = <0x01c73000 0x1000>;
1000 interrupts = <GIC_SPI 51 IRQ_TYPE_LEVEL_HIGH>;
1001 clocks = <&ccu CLK_BUS_TCON_TV0>, <&tcon_top CLK_TCON_TOP_TV0>;
1002 clock-names = "ahb", "tcon-ch1";
1003 resets = <&ccu RST_BUS_TCON_TV0>;
1004 reset-names = "lcd";
1005 status = "disabled";
1008 #address-cells = <1>;
1011 tcon_tv0_in: port@0 {
1012 #address-cells = <1>;
1016 tcon_tv0_in_tcon_top_mixer0: endpoint@0 {
1018 remote-endpoint = <&tcon_top_mixer0_out_tcon_tv0>;
1021 tcon_tv0_in_tcon_top_mixer1: endpoint@1 {
1023 remote-endpoint = <&tcon_top_mixer1_out_tcon_tv0>;
1027 tcon_tv0_out: port@1 {
1028 #address-cells = <1>;
1032 tcon_tv0_out_tcon_top: endpoint@1 {
1034 remote-endpoint = <&tcon_top_hdmi_in_tcon_tv0>;
1040 tcon_tv1: lcd-controller@1c74000 {
1041 compatible = "allwinner,sun8i-r40-tcon-tv";
1042 reg = <0x01c74000 0x1000>;
1043 interrupts = <GIC_SPI 52 IRQ_TYPE_LEVEL_HIGH>;
1044 clocks = <&ccu CLK_BUS_TCON_TV1>, <&tcon_top CLK_TCON_TOP_TV1>;
1045 clock-names = "ahb", "tcon-ch1";
1046 resets = <&ccu RST_BUS_TCON_TV1>;
1047 reset-names = "lcd";
1048 status = "disabled";
1051 #address-cells = <1>;
1054 tcon_tv1_in: port@0 {
1055 #address-cells = <1>;
1059 tcon_tv1_in_tcon_top_mixer0: endpoint@0 {
1061 remote-endpoint = <&tcon_top_mixer0_out_tcon_tv1>;
1064 tcon_tv1_in_tcon_top_mixer1: endpoint@1 {
1066 remote-endpoint = <&tcon_top_mixer1_out_tcon_tv1>;
1070 tcon_tv1_out: port@1 {
1071 #address-cells = <1>;
1075 tcon_tv1_out_tcon_top: endpoint@1 {
1077 remote-endpoint = <&tcon_top_hdmi_in_tcon_tv1>;
1083 gic: interrupt-controller@1c81000 {
1084 compatible = "arm,gic-400";
1085 reg = <0x01c81000 0x1000>,
1086 <0x01c82000 0x2000>,
1087 <0x01c84000 0x2000>,
1088 <0x01c86000 0x2000>;
1089 interrupt-controller;
1090 #interrupt-cells = <3>;
1091 interrupts = <GIC_PPI 9 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>;
1094 hdmi: hdmi@1ee0000 {
1095 compatible = "allwinner,sun8i-r40-dw-hdmi",
1096 "allwinner,sun8i-a83t-dw-hdmi";
1097 reg = <0x01ee0000 0x10000>;
1099 interrupts = <GIC_SPI 58 IRQ_TYPE_LEVEL_HIGH>;
1100 clocks = <&ccu CLK_BUS_HDMI0>, <&ccu CLK_HDMI_SLOW>,
1102 clock-names = "iahb", "isfr", "tmds";
1103 resets = <&ccu RST_BUS_HDMI1>;
1104 reset-names = "ctrl";
1107 status = "disabled";
1110 #address-cells = <1>;
1116 hdmi_in_tcon_top: endpoint {
1117 remote-endpoint = <&tcon_top_hdmi_out_hdmi>;
1127 hdmi_phy: hdmi-phy@1ef0000 {
1128 compatible = "allwinner,sun8i-r40-hdmi-phy";
1129 reg = <0x01ef0000 0x10000>;
1130 clocks = <&ccu CLK_BUS_HDMI1>, <&ccu CLK_HDMI_SLOW>,
1131 <&ccu CLK_PLL_VIDEO0>, <&ccu CLK_PLL_VIDEO1>;
1132 clock-names = "bus", "mod", "pll-0", "pll-1";
1133 resets = <&ccu RST_BUS_HDMI0>;
1134 reset-names = "phy";
1140 compatible = "arm,cortex-a7-pmu";
1141 interrupts = <GIC_SPI 120 IRQ_TYPE_LEVEL_HIGH>,
1142 <GIC_SPI 121 IRQ_TYPE_LEVEL_HIGH>,
1143 <GIC_SPI 122 IRQ_TYPE_LEVEL_HIGH>,
1144 <GIC_SPI 123 IRQ_TYPE_LEVEL_HIGH>;
1145 interrupt-affinity = <&cpu0>, <&cpu1>, <&cpu2>, <&cpu3>;
1149 compatible = "arm,armv7-timer";
1150 interrupts = <GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
1151 <GIC_PPI 14 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
1152 <GIC_PPI 11 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
1153 <GIC_PPI 10 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>;