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/sun6i-rtc.h>
46 #include <dt-bindings/clock/sun8i-de2.h>
47 #include <dt-bindings/clock/sun8i-r40-ccu.h>
48 #include <dt-bindings/clock/sun8i-tcon-top.h>
49 #include <dt-bindings/reset/sun8i-r40-ccu.h>
50 #include <dt-bindings/reset/sun8i-de2.h>
51 #include <dt-bindings/thermal/thermal.h>
56 interrupt-parent = <&gic>;
65 compatible = "fixed-clock";
66 clock-frequency = <24000000>;
67 clock-accuracy = <50000>;
68 clock-output-names = "osc24M";
73 compatible = "fixed-clock";
74 clock-frequency = <32768>;
75 clock-accuracy = <20000>;
76 clock-output-names = "ext-osc32k";
85 compatible = "arm,cortex-a7";
88 clocks = <&ccu CLK_CPU>;
94 compatible = "arm,cortex-a7";
97 clocks = <&ccu CLK_CPU>;
103 compatible = "arm,cortex-a7";
106 clocks = <&ccu CLK_CPU>;
108 #cooling-cells = <2>;
112 compatible = "arm,cortex-a7";
115 clocks = <&ccu CLK_CPU>;
117 #cooling-cells = <2>;
122 compatible = "allwinner,sun8i-r40-display-engine";
123 allwinner,pipelines = <&mixer0>, <&mixer1>;
128 cpu_thermal: cpu0-thermal {
130 polling-delay-passive = <0>;
132 thermal-sensors = <&ths 0>;
135 cpu_hot_trip: cpu-hot {
136 temperature = <80000>;
141 cpu_very_hot_trip: cpu-very-hot {
142 temperature = <115000>;
150 trip = <&cpu_hot_trip>;
151 cooling-device = <&cpu0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
152 <&cpu1 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
153 <&cpu2 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
154 <&cpu3 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
159 gpu_thermal: gpu-thermal {
161 polling-delay-passive = <0>;
163 thermal-sensors = <&ths 1>;
168 compatible = "simple-bus";
169 #address-cells = <1>;
173 display_clocks: clock@1000000 {
174 compatible = "allwinner,sun8i-r40-de2-clk",
175 "allwinner,sun8i-h3-de2-clk";
176 reg = <0x01000000 0x10000>;
177 clocks = <&ccu CLK_BUS_DE>,
181 resets = <&ccu RST_BUS_DE>;
186 mixer0: mixer@1100000 {
187 compatible = "allwinner,sun8i-r40-de2-mixer-0";
188 reg = <0x01100000 0x100000>;
189 clocks = <&display_clocks CLK_BUS_MIXER0>,
190 <&display_clocks CLK_MIXER0>;
193 resets = <&display_clocks RST_MIXER0>;
196 #address-cells = <1>;
201 mixer0_out_tcon_top: endpoint {
202 remote-endpoint = <&tcon_top_mixer0_in_mixer0>;
208 mixer1: mixer@1200000 {
209 compatible = "allwinner,sun8i-r40-de2-mixer-1";
210 reg = <0x01200000 0x100000>;
211 clocks = <&display_clocks CLK_BUS_MIXER1>,
212 <&display_clocks CLK_MIXER1>;
215 resets = <&display_clocks RST_WB>;
218 #address-cells = <1>;
223 mixer1_out_tcon_top: endpoint {
224 remote-endpoint = <&tcon_top_mixer1_in_mixer1>;
230 deinterlace: deinterlace@1400000 {
231 compatible = "allwinner,sun8i-r40-deinterlace",
232 "allwinner,sun8i-h3-deinterlace";
233 reg = <0x01400000 0x20000>;
234 clocks = <&ccu CLK_BUS_DEINTERLACE>,
235 <&ccu CLK_DEINTERLACE>,
237 * NOTE: Contrary to what datasheet claims,
238 * DRAM deinterlace gate doesn't exist and
239 * it's shared with CSI1.
241 <&ccu CLK_DRAM_CSI1>;
242 clock-names = "bus", "mod", "ram";
243 resets = <&ccu RST_BUS_DEINTERLACE>;
244 interrupts = <GIC_SPI 93 IRQ_TYPE_LEVEL_HIGH>;
245 interconnects = <&mbus 9>;
246 interconnect-names = "dma-mem";
249 syscon: system-control@1c00000 {
250 compatible = "allwinner,sun8i-r40-system-control",
251 "allwinner,sun4i-a10-system-control";
252 reg = <0x01c00000 0x30>;
253 #address-cells = <1>;
257 sram_c: sram@1d00000 {
258 compatible = "mmio-sram";
259 reg = <0x01d00000 0xd0000>;
260 #address-cells = <1>;
262 ranges = <0 0x01d00000 0xd0000>;
264 ve_sram: sram-section@0 {
265 compatible = "allwinner,sun8i-r40-sram-c1",
266 "allwinner,sun4i-a10-sram-c1";
267 reg = <0x000000 0x80000>;
272 nmi_intc: interrupt-controller@1c00030 {
273 compatible = "allwinner,sun7i-a20-sc-nmi";
274 interrupt-controller;
275 #interrupt-cells = <2>;
276 reg = <0x01c00030 0x0c>;
277 interrupts = <GIC_SPI 0 IRQ_TYPE_LEVEL_HIGH>;
280 dma: dma-controller@1c02000 {
281 compatible = "allwinner,sun8i-r40-dma",
282 "allwinner,sun50i-a64-dma";
283 reg = <0x01c02000 0x1000>;
284 interrupts = <GIC_SPI 27 IRQ_TYPE_LEVEL_HIGH>;
285 clocks = <&ccu CLK_BUS_DMA>;
288 resets = <&ccu RST_BUS_DMA>;
293 compatible = "allwinner,sun8i-r40-spi",
294 "allwinner,sun8i-h3-spi";
295 reg = <0x01c05000 0x1000>;
296 interrupts = <GIC_SPI 10 IRQ_TYPE_LEVEL_HIGH>;
297 clocks = <&ccu CLK_BUS_SPI0>, <&ccu CLK_SPI0>;
298 clock-names = "ahb", "mod";
299 resets = <&ccu RST_BUS_SPI0>;
301 #address-cells = <1>;
306 compatible = "allwinner,sun8i-r40-spi",
307 "allwinner,sun8i-h3-spi";
308 reg = <0x01c06000 0x1000>;
309 interrupts = <GIC_SPI 11 IRQ_TYPE_LEVEL_HIGH>;
310 clocks = <&ccu CLK_BUS_SPI1>, <&ccu CLK_SPI1>;
311 clock-names = "ahb", "mod";
312 resets = <&ccu RST_BUS_SPI1>;
314 #address-cells = <1>;
319 compatible = "allwinner,sun8i-r40-csi0",
320 "allwinner,sun7i-a20-csi0";
321 reg = <0x01c09000 0x1000>;
322 interrupts = <GIC_SPI 42 IRQ_TYPE_LEVEL_HIGH>;
323 clocks = <&ccu CLK_BUS_CSI0>, <&ccu CLK_CSI_SCLK>,
324 <&ccu CLK_DRAM_CSI0>;
325 clock-names = "bus", "isp", "ram";
326 resets = <&ccu RST_BUS_CSI0>;
327 interconnects = <&mbus 5>;
328 interconnect-names = "dma-mem";
332 video-codec@1c0e000 {
333 compatible = "allwinner,sun8i-r40-video-engine";
334 reg = <0x01c0e000 0x1000>;
335 clocks = <&ccu CLK_BUS_VE>, <&ccu CLK_VE>,
337 clock-names = "ahb", "mod", "ram";
338 resets = <&ccu RST_BUS_VE>;
339 interrupts = <GIC_SPI 53 IRQ_TYPE_LEVEL_HIGH>;
340 allwinner,sram = <&ve_sram 1>;
341 interconnects = <&mbus 4>;
342 interconnect-names = "dma-mem";
346 compatible = "allwinner,sun8i-r40-mmc",
347 "allwinner,sun50i-a64-mmc";
348 reg = <0x01c0f000 0x1000>;
349 clocks = <&ccu CLK_BUS_MMC0>, <&ccu CLK_MMC0>;
350 clock-names = "ahb", "mmc";
351 resets = <&ccu RST_BUS_MMC0>;
353 pinctrl-0 = <&mmc0_pins>;
354 pinctrl-names = "default";
355 interrupts = <GIC_SPI 32 IRQ_TYPE_LEVEL_HIGH>;
357 #address-cells = <1>;
362 compatible = "allwinner,sun8i-r40-mmc",
363 "allwinner,sun50i-a64-mmc";
364 reg = <0x01c10000 0x1000>;
365 clocks = <&ccu CLK_BUS_MMC1>, <&ccu CLK_MMC1>;
366 clock-names = "ahb", "mmc";
367 resets = <&ccu RST_BUS_MMC1>;
369 interrupts = <GIC_SPI 33 IRQ_TYPE_LEVEL_HIGH>;
371 #address-cells = <1>;
376 compatible = "allwinner,sun8i-r40-emmc",
377 "allwinner,sun50i-a64-emmc";
378 reg = <0x01c11000 0x1000>;
379 clocks = <&ccu CLK_BUS_MMC2>, <&ccu CLK_MMC2>;
380 clock-names = "ahb", "mmc";
381 resets = <&ccu RST_BUS_MMC2>;
383 pinctrl-0 = <&mmc2_pins>;
384 pinctrl-names = "default";
385 interrupts = <GIC_SPI 34 IRQ_TYPE_LEVEL_HIGH>;
387 #address-cells = <1>;
392 compatible = "allwinner,sun8i-r40-mmc",
393 "allwinner,sun50i-a64-mmc";
394 reg = <0x01c12000 0x1000>;
395 clocks = <&ccu CLK_BUS_MMC3>, <&ccu CLK_MMC3>;
396 clock-names = "ahb", "mmc";
397 resets = <&ccu RST_BUS_MMC3>;
399 pinctrl-0 = <&mmc3_pins>;
400 pinctrl-names = "default";
401 interrupts = <GIC_SPI 35 IRQ_TYPE_LEVEL_HIGH>;
403 #address-cells = <1>;
407 usbphy: phy@1c13400 {
408 compatible = "allwinner,sun8i-r40-usb-phy";
409 reg = <0x01c13400 0x14>,
413 reg-names = "phy_ctrl",
417 clocks = <&ccu CLK_USB_PHY0>,
420 clock-names = "usb0_phy",
423 resets = <&ccu RST_USB_PHY0>,
426 reset-names = "usb0_reset",
433 crypto: crypto@1c15000 {
434 compatible = "allwinner,sun8i-r40-crypto";
435 reg = <0x01c15000 0x1000>;
436 interrupts = <GIC_SPI 94 IRQ_TYPE_LEVEL_HIGH>;
437 clocks = <&ccu CLK_BUS_CE>, <&ccu CLK_CE>;
438 clock-names = "bus", "mod";
439 resets = <&ccu RST_BUS_CE>;
443 compatible = "allwinner,sun8i-r40-spi",
444 "allwinner,sun8i-h3-spi";
445 reg = <0x01c17000 0x1000>;
446 interrupts = <GIC_SPI 12 IRQ_TYPE_LEVEL_HIGH>;
447 clocks = <&ccu CLK_BUS_SPI2>, <&ccu CLK_SPI2>;
448 clock-names = "ahb", "mod";
449 resets = <&ccu RST_BUS_SPI2>;
451 #address-cells = <1>;
456 compatible = "allwinner,sun8i-r40-ahci";
457 reg = <0x01c18000 0x1000>;
458 interrupts = <GIC_SPI 56 IRQ_TYPE_LEVEL_HIGH>;
459 clocks = <&ccu CLK_BUS_SATA>, <&ccu CLK_SATA>;
460 resets = <&ccu RST_BUS_SATA>;
461 reset-names = "ahci";
466 compatible = "allwinner,sun8i-r40-ehci", "generic-ehci";
467 reg = <0x01c19000 0x100>;
468 interrupts = <GIC_SPI 76 IRQ_TYPE_LEVEL_HIGH>;
469 clocks = <&ccu CLK_BUS_EHCI1>;
470 resets = <&ccu RST_BUS_EHCI1>;
477 compatible = "allwinner,sun8i-r40-ohci", "generic-ohci";
478 reg = <0x01c19400 0x100>;
479 interrupts = <GIC_SPI 64 IRQ_TYPE_LEVEL_HIGH>;
480 clocks = <&ccu CLK_BUS_OHCI1>,
481 <&ccu CLK_USB_OHCI1>;
482 resets = <&ccu RST_BUS_OHCI1>;
489 compatible = "allwinner,sun8i-r40-ehci", "generic-ehci";
490 reg = <0x01c1c000 0x100>;
491 interrupts = <GIC_SPI 78 IRQ_TYPE_LEVEL_HIGH>;
492 clocks = <&ccu CLK_BUS_EHCI2>;
493 resets = <&ccu RST_BUS_EHCI2>;
500 compatible = "allwinner,sun8i-r40-ohci", "generic-ohci";
501 reg = <0x01c1c400 0x100>;
502 interrupts = <GIC_SPI 65 IRQ_TYPE_LEVEL_HIGH>;
503 clocks = <&ccu CLK_BUS_OHCI2>,
504 <&ccu CLK_USB_OHCI2>;
505 resets = <&ccu RST_BUS_OHCI2>;
512 compatible = "allwinner,sun8i-r40-spi",
513 "allwinner,sun8i-h3-spi";
514 reg = <0x01c1f000 0x1000>;
515 interrupts = <GIC_SPI 50 IRQ_TYPE_LEVEL_HIGH>;
516 clocks = <&ccu CLK_BUS_SPI3>, <&ccu CLK_SPI3>;
517 clock-names = "ahb", "mod";
518 resets = <&ccu RST_BUS_SPI3>;
520 #address-cells = <1>;
525 compatible = "allwinner,sun8i-r40-ccu";
526 reg = <0x01c20000 0x400>;
527 clocks = <&osc24M>, <&rtc CLK_OSC32K>;
528 clock-names = "hosc", "losc";
534 compatible = "allwinner,sun8i-r40-rtc";
535 reg = <0x01c20400 0x400>;
536 interrupts = <GIC_SPI 24 IRQ_TYPE_LEVEL_HIGH>;
537 clock-output-names = "osc32k", "osc32k-out";
542 pio: pinctrl@1c20800 {
543 compatible = "allwinner,sun8i-r40-pinctrl";
544 reg = <0x01c20800 0x400>;
545 interrupts = <GIC_SPI 28 IRQ_TYPE_LEVEL_HIGH>;
546 clocks = <&ccu CLK_BUS_PIO>, <&osc24M>,
548 clock-names = "apb", "hosc", "losc";
550 interrupt-controller;
551 #interrupt-cells = <3>;
554 can_ph_pins: can-ph-pins {
555 pins = "PH20", "PH21";
559 can_pa_pins: can-pa-pins {
560 pins = "PA16", "PA17";
564 clk_out_a_pin: clk-out-a-pin {
566 function = "clk_out_a";
570 csi0_8bits_pins: csi0-8bits-pins {
571 pins = "PE0", "PE2", "PE3", "PE4", "PE5",
572 "PE6", "PE7", "PE8", "PE9", "PE10",
578 csi0_mclk_pin: csi0-mclk-pin {
583 gmac_rgmii_pins: gmac-rgmii-pins {
584 pins = "PA0", "PA1", "PA2", "PA3",
585 "PA4", "PA5", "PA6", "PA7",
586 "PA8", "PA10", "PA11", "PA12",
587 "PA13", "PA15", "PA16";
590 * data lines in RGMII mode use DDR mode
591 * and need a higher signal drive strength
593 drive-strength = <40>;
596 i2c0_pins: i2c0-pins {
601 i2c1_pins: i2c1-pins {
602 pins = "PB18", "PB19";
606 i2c2_pins: i2c2-pins {
607 pins = "PB20", "PB21";
611 i2c3_pins: i2c3-pins {
616 i2c4_pins: i2c4-pins {
631 mmc0_pins: mmc0-pins {
632 pins = "PF0", "PF1", "PF2",
635 drive-strength = <30>;
639 mmc1_pg_pins: mmc1-pg-pins {
640 pins = "PG0", "PG1", "PG2",
643 drive-strength = <30>;
647 mmc2_pins: mmc2-pins {
648 pins = "PC5", "PC6", "PC7", "PC8", "PC9",
649 "PC10", "PC11", "PC12", "PC13", "PC14",
652 drive-strength = <30>;
657 mmc3_pins: mmc3-pins {
658 pins = "PI4", "PI5", "PI6",
661 drive-strength = <30>;
666 spi0_pc_pins: spi0-pc-pins {
667 pins = "PC0", "PC1", "PC2";
672 spi0_cs0_pc_pin: spi0-cs0-pc-pin {
678 spi1_pi_pins: spi1-pi-pins {
679 pins = "PI17", "PI18", "PI19";
684 spi1_cs0_pi_pin: spi1-cs0-pi-pin {
690 spi1_cs1_pi_pin: spi1-cs1-pi-pin {
696 uart0_pb_pins: uart0-pb-pins {
697 pins = "PB22", "PB23";
702 uart2_pi_pins: uart2-pi-pins {
703 pins = "PI18", "PI19";
708 uart2_rts_cts_pi_pins: uart2-rts-cts-pi-pins{
709 pins = "PI16", "PI17";
714 uart3_pg_pins: uart3-pg-pins {
720 uart3_rts_cts_pg_pins: uart3-rts-cts-pg-pins {
726 uart4_pg_pins: uart4-pg-pins {
727 pins = "PG10", "PG11";
732 uart5_ph_pins: uart5-ph-pins {
738 uart7_pi_pins: uart7-pi-pins {
739 pins = "PI20", "PI21";
745 compatible = "allwinner,sun4i-a10-timer";
746 reg = <0x01c20c00 0x90>;
747 interrupts = <GIC_SPI 22 IRQ_TYPE_LEVEL_HIGH>,
748 <GIC_SPI 23 IRQ_TYPE_LEVEL_HIGH>,
749 <GIC_SPI 24 IRQ_TYPE_LEVEL_HIGH>,
750 <GIC_SPI 25 IRQ_TYPE_LEVEL_HIGH>,
751 <GIC_SPI 67 IRQ_TYPE_LEVEL_HIGH>,
752 <GIC_SPI 68 IRQ_TYPE_LEVEL_HIGH>;
756 wdt: watchdog@1c20c90 {
757 compatible = "allwinner,sun4i-a10-wdt";
758 reg = <0x01c20c90 0x10>;
759 interrupts = <GIC_SPI 24 IRQ_TYPE_LEVEL_HIGH>;
764 compatible = "allwinner,sun8i-r40-ir",
765 "allwinner,sun6i-a31-ir";
766 reg = <0x01c21800 0x400>;
767 pinctrl-0 = <&ir0_pins>;
768 pinctrl-names = "default";
769 clocks = <&ccu CLK_BUS_IR0>, <&ccu CLK_IR0>;
770 clock-names = "apb", "ir";
771 interrupts = <GIC_SPI 5 IRQ_TYPE_LEVEL_HIGH>;
772 resets = <&ccu RST_BUS_IR0>;
777 compatible = "allwinner,sun8i-r40-ir",
778 "allwinner,sun6i-a31-ir";
779 reg = <0x01c21c00 0x400>;
780 pinctrl-0 = <&ir1_pins>;
781 pinctrl-names = "default";
782 clocks = <&ccu CLK_BUS_IR1>, <&ccu CLK_IR1>;
783 clock-names = "apb", "ir";
784 interrupts = <GIC_SPI 6 IRQ_TYPE_LEVEL_HIGH>;
785 resets = <&ccu RST_BUS_IR1>;
790 #sound-dai-cells = <0>;
791 compatible = "allwinner,sun8i-r40-i2s",
792 "allwinner,sun8i-h3-i2s";
793 reg = <0x01c22000 0x400>;
794 interrupts = <GIC_SPI 16 IRQ_TYPE_LEVEL_HIGH>;
795 clocks = <&ccu CLK_BUS_I2S0>, <&ccu CLK_I2S0>;
796 clock-names = "apb", "mod";
797 resets = <&ccu RST_BUS_I2S0>;
798 dmas = <&dma 3>, <&dma 3>;
799 dma-names = "rx", "tx";
803 #sound-dai-cells = <0>;
804 compatible = "allwinner,sun8i-r40-i2s",
805 "allwinner,sun8i-h3-i2s";
806 reg = <0x01c22400 0x400>;
807 interrupts = <GIC_SPI 87 IRQ_TYPE_LEVEL_HIGH>;
808 clocks = <&ccu CLK_BUS_I2S1>, <&ccu CLK_I2S1>;
809 clock-names = "apb", "mod";
810 resets = <&ccu RST_BUS_I2S1>;
811 dmas = <&dma 4>, <&dma 4>;
812 dma-names = "rx", "tx";
816 #sound-dai-cells = <0>;
817 compatible = "allwinner,sun8i-r40-i2s",
818 "allwinner,sun8i-h3-i2s";
819 reg = <0x01c22800 0x400>;
820 interrupts = <GIC_SPI 90 IRQ_TYPE_LEVEL_HIGH>;
821 clocks = <&ccu CLK_BUS_I2S2>, <&ccu CLK_I2S2>;
822 clock-names = "apb", "mod";
823 resets = <&ccu RST_BUS_I2S2>;
824 dmas = <&dma 6>, <&dma 6>;
825 dma-names = "rx", "tx";
828 ths: thermal-sensor@1c24c00 {
829 compatible = "allwinner,sun8i-r40-ths";
830 reg = <0x01c24c00 0x100>;
831 clocks = <&ccu CLK_BUS_THS>, <&ccu CLK_THS>;
832 clock-names = "bus", "mod";
833 interrupts = <GIC_SPI 36 IRQ_TYPE_LEVEL_HIGH>;
834 resets = <&ccu RST_BUS_THS>;
835 /* TODO: add nvmem-cells for calibration */
836 #thermal-sensor-cells = <1>;
839 uart0: serial@1c28000 {
840 compatible = "snps,dw-apb-uart";
841 reg = <0x01c28000 0x400>;
842 interrupts = <GIC_SPI 1 IRQ_TYPE_LEVEL_HIGH>;
845 clocks = <&ccu CLK_BUS_UART0>;
846 resets = <&ccu RST_BUS_UART0>;
850 uart1: serial@1c28400 {
851 compatible = "snps,dw-apb-uart";
852 reg = <0x01c28400 0x400>;
853 interrupts = <GIC_SPI 2 IRQ_TYPE_LEVEL_HIGH>;
856 clocks = <&ccu CLK_BUS_UART1>;
857 resets = <&ccu RST_BUS_UART1>;
861 uart2: serial@1c28800 {
862 compatible = "snps,dw-apb-uart";
863 reg = <0x01c28800 0x400>;
864 interrupts = <GIC_SPI 3 IRQ_TYPE_LEVEL_HIGH>;
867 clocks = <&ccu CLK_BUS_UART2>;
868 resets = <&ccu RST_BUS_UART2>;
872 uart3: serial@1c28c00 {
873 compatible = "snps,dw-apb-uart";
874 reg = <0x01c28c00 0x400>;
875 interrupts = <GIC_SPI 4 IRQ_TYPE_LEVEL_HIGH>;
878 clocks = <&ccu CLK_BUS_UART3>;
879 resets = <&ccu RST_BUS_UART3>;
883 uart4: serial@1c29000 {
884 compatible = "snps,dw-apb-uart";
885 reg = <0x01c29000 0x400>;
886 interrupts = <GIC_SPI 17 IRQ_TYPE_LEVEL_HIGH>;
889 clocks = <&ccu CLK_BUS_UART4>;
890 resets = <&ccu RST_BUS_UART4>;
894 uart5: serial@1c29400 {
895 compatible = "snps,dw-apb-uart";
896 reg = <0x01c29400 0x400>;
897 interrupts = <GIC_SPI 18 IRQ_TYPE_LEVEL_HIGH>;
900 clocks = <&ccu CLK_BUS_UART5>;
901 resets = <&ccu RST_BUS_UART5>;
905 uart6: serial@1c29800 {
906 compatible = "snps,dw-apb-uart";
907 reg = <0x01c29800 0x400>;
908 interrupts = <GIC_SPI 19 IRQ_TYPE_LEVEL_HIGH>;
911 clocks = <&ccu CLK_BUS_UART6>;
912 resets = <&ccu RST_BUS_UART6>;
916 uart7: serial@1c29c00 {
917 compatible = "snps,dw-apb-uart";
918 reg = <0x01c29c00 0x400>;
919 interrupts = <GIC_SPI 20 IRQ_TYPE_LEVEL_HIGH>;
922 clocks = <&ccu CLK_BUS_UART7>;
923 resets = <&ccu RST_BUS_UART7>;
928 compatible = "allwinner,sun6i-a31-i2c";
929 reg = <0x01c2ac00 0x400>;
930 interrupts = <GIC_SPI 7 IRQ_TYPE_LEVEL_HIGH>;
931 clocks = <&ccu CLK_BUS_I2C0>;
932 resets = <&ccu RST_BUS_I2C0>;
933 pinctrl-0 = <&i2c0_pins>;
934 pinctrl-names = "default";
936 #address-cells = <1>;
941 compatible = "allwinner,sun6i-a31-i2c";
942 reg = <0x01c2b000 0x400>;
943 interrupts = <GIC_SPI 8 IRQ_TYPE_LEVEL_HIGH>;
944 clocks = <&ccu CLK_BUS_I2C1>;
945 resets = <&ccu RST_BUS_I2C1>;
946 pinctrl-0 = <&i2c1_pins>;
947 pinctrl-names = "default";
949 #address-cells = <1>;
954 compatible = "allwinner,sun6i-a31-i2c";
955 reg = <0x01c2b400 0x400>;
956 interrupts = <GIC_SPI 9 IRQ_TYPE_LEVEL_HIGH>;
957 clocks = <&ccu CLK_BUS_I2C2>;
958 resets = <&ccu RST_BUS_I2C2>;
959 pinctrl-0 = <&i2c2_pins>;
960 pinctrl-names = "default";
962 #address-cells = <1>;
967 compatible = "allwinner,sun6i-a31-i2c";
968 reg = <0x01c2b800 0x400>;
969 interrupts = <GIC_SPI 88 IRQ_TYPE_LEVEL_HIGH>;
970 clocks = <&ccu CLK_BUS_I2C3>;
971 resets = <&ccu RST_BUS_I2C3>;
972 pinctrl-0 = <&i2c3_pins>;
973 pinctrl-names = "default";
975 #address-cells = <1>;
980 compatible = "allwinner,sun8i-r40-can";
981 reg = <0x01c2bc00 0x400>;
982 interrupts = <GIC_SPI 26 IRQ_TYPE_LEVEL_HIGH>;
983 clocks = <&ccu CLK_BUS_CAN>;
984 resets = <&ccu RST_BUS_CAN>;
989 compatible = "allwinner,sun6i-a31-i2c";
990 reg = <0x01c2c000 0x400>;
991 interrupts = <GIC_SPI 89 IRQ_TYPE_LEVEL_HIGH>;
992 clocks = <&ccu CLK_BUS_I2C4>;
993 resets = <&ccu RST_BUS_I2C4>;
994 pinctrl-0 = <&i2c4_pins>;
995 pinctrl-names = "default";
997 #address-cells = <1>;
1002 compatible = "allwinner,sun8i-r40-mali", "arm,mali-400";
1003 reg = <0x01c40000 0x10000>;
1004 interrupts = <GIC_SPI 69 IRQ_TYPE_LEVEL_HIGH>,
1005 <GIC_SPI 70 IRQ_TYPE_LEVEL_HIGH>,
1006 <GIC_SPI 71 IRQ_TYPE_LEVEL_HIGH>,
1007 <GIC_SPI 72 IRQ_TYPE_LEVEL_HIGH>,
1008 <GIC_SPI 74 IRQ_TYPE_LEVEL_HIGH>,
1009 <GIC_SPI 75 IRQ_TYPE_LEVEL_HIGH>,
1010 <GIC_SPI 73 IRQ_TYPE_LEVEL_HIGH>;
1011 interrupt-names = "gp",
1018 clocks = <&ccu CLK_BUS_GPU>, <&ccu CLK_GPU>;
1019 clock-names = "bus", "core";
1020 resets = <&ccu RST_BUS_GPU>;
1023 gmac: ethernet@1c50000 {
1024 compatible = "allwinner,sun8i-r40-gmac";
1026 reg = <0x01c50000 0x10000>;
1027 interrupts = <GIC_SPI 85 IRQ_TYPE_LEVEL_HIGH>;
1028 interrupt-names = "macirq";
1029 resets = <&ccu RST_BUS_GMAC>;
1030 reset-names = "stmmaceth";
1031 clocks = <&ccu CLK_BUS_GMAC>;
1032 clock-names = "stmmaceth";
1033 status = "disabled";
1036 compatible = "snps,dwmac-mdio";
1037 #address-cells = <1>;
1042 mbus: dram-controller@1c62000 {
1043 compatible = "allwinner,sun8i-r40-mbus";
1044 reg = <0x01c62000 0x1000>;
1045 clocks = <&ccu 155>;
1046 #address-cells = <1>;
1048 dma-ranges = <0x00000000 0x40000000 0x80000000>;
1049 #interconnect-cells = <1>;
1052 tcon_top: tcon-top@1c70000 {
1053 compatible = "allwinner,sun8i-r40-tcon-top";
1054 reg = <0x01c70000 0x1000>;
1055 clocks = <&ccu CLK_BUS_TCON_TOP>,
1056 <&ccu CLK_TCON_TV0>,
1058 <&ccu CLK_TCON_TV1>,
1060 <&ccu CLK_DSI_DPHY>;
1061 clock-names = "bus",
1067 clock-output-names = "tcon-top-tv0",
1070 resets = <&ccu RST_BUS_TCON_TOP>;
1074 #address-cells = <1>;
1077 tcon_top_mixer0_in: port@0 {
1080 tcon_top_mixer0_in_mixer0: endpoint {
1081 remote-endpoint = <&mixer0_out_tcon_top>;
1085 tcon_top_mixer0_out: port@1 {
1086 #address-cells = <1>;
1090 tcon_top_mixer0_out_tcon_lcd0: endpoint@0 {
1094 tcon_top_mixer0_out_tcon_lcd1: endpoint@1 {
1098 tcon_top_mixer0_out_tcon_tv0: endpoint@2 {
1100 remote-endpoint = <&tcon_tv0_in_tcon_top_mixer0>;
1103 tcon_top_mixer0_out_tcon_tv1: endpoint@3 {
1105 remote-endpoint = <&tcon_tv1_in_tcon_top_mixer0>;
1109 tcon_top_mixer1_in: port@2 {
1110 #address-cells = <1>;
1114 tcon_top_mixer1_in_mixer1: endpoint@1 {
1116 remote-endpoint = <&mixer1_out_tcon_top>;
1120 tcon_top_mixer1_out: port@3 {
1121 #address-cells = <1>;
1125 tcon_top_mixer1_out_tcon_lcd0: endpoint@0 {
1129 tcon_top_mixer1_out_tcon_lcd1: endpoint@1 {
1133 tcon_top_mixer1_out_tcon_tv0: endpoint@2 {
1135 remote-endpoint = <&tcon_tv0_in_tcon_top_mixer1>;
1138 tcon_top_mixer1_out_tcon_tv1: endpoint@3 {
1140 remote-endpoint = <&tcon_tv1_in_tcon_top_mixer1>;
1144 tcon_top_hdmi_in: port@4 {
1145 #address-cells = <1>;
1149 tcon_top_hdmi_in_tcon_tv0: endpoint@0 {
1151 remote-endpoint = <&tcon_tv0_out_tcon_top>;
1154 tcon_top_hdmi_in_tcon_tv1: endpoint@1 {
1156 remote-endpoint = <&tcon_tv1_out_tcon_top>;
1160 tcon_top_hdmi_out: port@5 {
1163 tcon_top_hdmi_out_hdmi: endpoint {
1164 remote-endpoint = <&hdmi_in_tcon_top>;
1170 tcon_tv0: lcd-controller@1c73000 {
1171 compatible = "allwinner,sun8i-r40-tcon-tv";
1172 reg = <0x01c73000 0x1000>;
1173 interrupts = <GIC_SPI 51 IRQ_TYPE_LEVEL_HIGH>;
1174 clocks = <&ccu CLK_BUS_TCON_TV0>, <&tcon_top CLK_TCON_TOP_TV0>;
1175 clock-names = "ahb", "tcon-ch1";
1176 resets = <&ccu RST_BUS_TCON_TV0>;
1177 reset-names = "lcd";
1178 status = "disabled";
1181 #address-cells = <1>;
1184 tcon_tv0_in: port@0 {
1185 #address-cells = <1>;
1189 tcon_tv0_in_tcon_top_mixer0: endpoint@0 {
1191 remote-endpoint = <&tcon_top_mixer0_out_tcon_tv0>;
1194 tcon_tv0_in_tcon_top_mixer1: endpoint@1 {
1196 remote-endpoint = <&tcon_top_mixer1_out_tcon_tv0>;
1200 tcon_tv0_out: port@1 {
1201 #address-cells = <1>;
1205 tcon_tv0_out_tcon_top: endpoint@1 {
1207 remote-endpoint = <&tcon_top_hdmi_in_tcon_tv0>;
1213 tcon_tv1: lcd-controller@1c74000 {
1214 compatible = "allwinner,sun8i-r40-tcon-tv";
1215 reg = <0x01c74000 0x1000>;
1216 interrupts = <GIC_SPI 52 IRQ_TYPE_LEVEL_HIGH>;
1217 clocks = <&ccu CLK_BUS_TCON_TV1>, <&tcon_top CLK_TCON_TOP_TV1>;
1218 clock-names = "ahb", "tcon-ch1";
1219 resets = <&ccu RST_BUS_TCON_TV1>;
1220 reset-names = "lcd";
1221 status = "disabled";
1224 #address-cells = <1>;
1227 tcon_tv1_in: port@0 {
1228 #address-cells = <1>;
1232 tcon_tv1_in_tcon_top_mixer0: endpoint@0 {
1234 remote-endpoint = <&tcon_top_mixer0_out_tcon_tv1>;
1237 tcon_tv1_in_tcon_top_mixer1: endpoint@1 {
1239 remote-endpoint = <&tcon_top_mixer1_out_tcon_tv1>;
1243 tcon_tv1_out: port@1 {
1244 #address-cells = <1>;
1248 tcon_tv1_out_tcon_top: endpoint@1 {
1250 remote-endpoint = <&tcon_top_hdmi_in_tcon_tv1>;
1256 gic: interrupt-controller@1c81000 {
1257 compatible = "arm,gic-400";
1258 reg = <0x01c81000 0x1000>,
1259 <0x01c82000 0x2000>,
1260 <0x01c84000 0x2000>,
1261 <0x01c86000 0x2000>;
1262 interrupt-controller;
1263 #interrupt-cells = <3>;
1264 interrupts = <GIC_PPI 9 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>;
1267 hdmi: hdmi@1ee0000 {
1268 compatible = "allwinner,sun8i-r40-dw-hdmi",
1269 "allwinner,sun8i-a83t-dw-hdmi";
1270 reg = <0x01ee0000 0x10000>;
1272 interrupts = <GIC_SPI 58 IRQ_TYPE_LEVEL_HIGH>;
1273 clocks = <&ccu CLK_BUS_HDMI0>, <&ccu CLK_HDMI_SLOW>,
1274 <&ccu CLK_HDMI>, <&rtc CLK_OSC32K>;
1275 clock-names = "iahb", "isfr", "tmds", "cec";
1276 resets = <&ccu RST_BUS_HDMI1>;
1277 reset-names = "ctrl";
1280 status = "disabled";
1283 #address-cells = <1>;
1289 hdmi_in_tcon_top: endpoint {
1290 remote-endpoint = <&tcon_top_hdmi_out_hdmi>;
1300 hdmi_phy: hdmi-phy@1ef0000 {
1301 compatible = "allwinner,sun8i-r40-hdmi-phy";
1302 reg = <0x01ef0000 0x10000>;
1303 clocks = <&ccu CLK_BUS_HDMI1>, <&ccu CLK_HDMI_SLOW>,
1304 <&ccu CLK_PLL_VIDEO0>, <&ccu CLK_PLL_VIDEO1>;
1305 clock-names = "bus", "mod", "pll-0", "pll-1";
1306 resets = <&ccu RST_BUS_HDMI0>;
1307 reset-names = "phy";
1313 compatible = "arm,cortex-a7-pmu";
1314 interrupts = <GIC_SPI 120 IRQ_TYPE_LEVEL_HIGH>,
1315 <GIC_SPI 121 IRQ_TYPE_LEVEL_HIGH>,
1316 <GIC_SPI 122 IRQ_TYPE_LEVEL_HIGH>,
1317 <GIC_SPI 123 IRQ_TYPE_LEVEL_HIGH>;
1318 interrupt-affinity = <&cpu0>, <&cpu1>, <&cpu2>, <&cpu3>;
1322 compatible = "arm,armv7-timer";
1323 interrupts = <GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
1324 <GIC_PPI 14 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
1325 <GIC_PPI 11 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
1326 <GIC_PPI 10 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>;