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>;
344 compatible = "allwinner,sun8i-r40-mmc",
345 "allwinner,sun50i-a64-mmc";
346 reg = <0x01c0f000 0x1000>;
347 clocks = <&ccu CLK_BUS_MMC0>, <&ccu CLK_MMC0>;
348 clock-names = "ahb", "mmc";
349 resets = <&ccu RST_BUS_MMC0>;
351 pinctrl-0 = <&mmc0_pins>;
352 pinctrl-names = "default";
353 interrupts = <GIC_SPI 32 IRQ_TYPE_LEVEL_HIGH>;
355 #address-cells = <1>;
360 compatible = "allwinner,sun8i-r40-mmc",
361 "allwinner,sun50i-a64-mmc";
362 reg = <0x01c10000 0x1000>;
363 clocks = <&ccu CLK_BUS_MMC1>, <&ccu CLK_MMC1>;
364 clock-names = "ahb", "mmc";
365 resets = <&ccu RST_BUS_MMC1>;
367 interrupts = <GIC_SPI 33 IRQ_TYPE_LEVEL_HIGH>;
369 #address-cells = <1>;
374 compatible = "allwinner,sun8i-r40-emmc",
375 "allwinner,sun50i-a64-emmc";
376 reg = <0x01c11000 0x1000>;
377 clocks = <&ccu CLK_BUS_MMC2>, <&ccu CLK_MMC2>;
378 clock-names = "ahb", "mmc";
379 resets = <&ccu RST_BUS_MMC2>;
381 pinctrl-0 = <&mmc2_pins>;
382 pinctrl-names = "default";
383 interrupts = <GIC_SPI 34 IRQ_TYPE_LEVEL_HIGH>;
385 #address-cells = <1>;
390 compatible = "allwinner,sun8i-r40-mmc",
391 "allwinner,sun50i-a64-mmc";
392 reg = <0x01c12000 0x1000>;
393 clocks = <&ccu CLK_BUS_MMC3>, <&ccu CLK_MMC3>;
394 clock-names = "ahb", "mmc";
395 resets = <&ccu RST_BUS_MMC3>;
397 pinctrl-0 = <&mmc3_pins>;
398 pinctrl-names = "default";
399 interrupts = <GIC_SPI 35 IRQ_TYPE_LEVEL_HIGH>;
401 #address-cells = <1>;
405 usbphy: phy@1c13400 {
406 compatible = "allwinner,sun8i-r40-usb-phy";
407 reg = <0x01c13400 0x14>,
411 reg-names = "phy_ctrl",
415 clocks = <&ccu CLK_USB_PHY0>,
418 clock-names = "usb0_phy",
421 resets = <&ccu RST_USB_PHY0>,
424 reset-names = "usb0_reset",
431 crypto: crypto@1c15000 {
432 compatible = "allwinner,sun8i-r40-crypto";
433 reg = <0x01c15000 0x1000>;
434 interrupts = <GIC_SPI 94 IRQ_TYPE_LEVEL_HIGH>;
435 clocks = <&ccu CLK_BUS_CE>, <&ccu CLK_CE>;
436 clock-names = "bus", "mod";
437 resets = <&ccu RST_BUS_CE>;
441 compatible = "allwinner,sun8i-r40-spi",
442 "allwinner,sun8i-h3-spi";
443 reg = <0x01c17000 0x1000>;
444 interrupts = <GIC_SPI 12 IRQ_TYPE_LEVEL_HIGH>;
445 clocks = <&ccu CLK_BUS_SPI2>, <&ccu CLK_SPI2>;
446 clock-names = "ahb", "mod";
447 resets = <&ccu RST_BUS_SPI2>;
449 #address-cells = <1>;
454 compatible = "allwinner,sun8i-r40-ahci";
455 reg = <0x01c18000 0x1000>;
456 interrupts = <GIC_SPI 56 IRQ_TYPE_LEVEL_HIGH>;
457 clocks = <&ccu CLK_BUS_SATA>, <&ccu CLK_SATA>;
458 resets = <&ccu RST_BUS_SATA>;
459 reset-names = "ahci";
464 compatible = "allwinner,sun8i-r40-ehci", "generic-ehci";
465 reg = <0x01c19000 0x100>;
466 interrupts = <GIC_SPI 76 IRQ_TYPE_LEVEL_HIGH>;
467 clocks = <&ccu CLK_BUS_EHCI1>;
468 resets = <&ccu RST_BUS_EHCI1>;
475 compatible = "allwinner,sun8i-r40-ohci", "generic-ohci";
476 reg = <0x01c19400 0x100>;
477 interrupts = <GIC_SPI 64 IRQ_TYPE_LEVEL_HIGH>;
478 clocks = <&ccu CLK_BUS_OHCI1>,
479 <&ccu CLK_USB_OHCI1>;
480 resets = <&ccu RST_BUS_OHCI1>;
487 compatible = "allwinner,sun8i-r40-ehci", "generic-ehci";
488 reg = <0x01c1c000 0x100>;
489 interrupts = <GIC_SPI 78 IRQ_TYPE_LEVEL_HIGH>;
490 clocks = <&ccu CLK_BUS_EHCI2>;
491 resets = <&ccu RST_BUS_EHCI2>;
498 compatible = "allwinner,sun8i-r40-ohci", "generic-ohci";
499 reg = <0x01c1c400 0x100>;
500 interrupts = <GIC_SPI 65 IRQ_TYPE_LEVEL_HIGH>;
501 clocks = <&ccu CLK_BUS_OHCI2>,
502 <&ccu CLK_USB_OHCI2>;
503 resets = <&ccu RST_BUS_OHCI2>;
510 compatible = "allwinner,sun8i-r40-spi",
511 "allwinner,sun8i-h3-spi";
512 reg = <0x01c1f000 0x1000>;
513 interrupts = <GIC_SPI 50 IRQ_TYPE_LEVEL_HIGH>;
514 clocks = <&ccu CLK_BUS_SPI3>, <&ccu CLK_SPI3>;
515 clock-names = "ahb", "mod";
516 resets = <&ccu RST_BUS_SPI3>;
518 #address-cells = <1>;
523 compatible = "allwinner,sun8i-r40-ccu";
524 reg = <0x01c20000 0x400>;
525 clocks = <&osc24M>, <&rtc CLK_OSC32K>;
526 clock-names = "hosc", "losc";
532 compatible = "allwinner,sun8i-r40-rtc";
533 reg = <0x01c20400 0x400>;
534 interrupts = <GIC_SPI 24 IRQ_TYPE_LEVEL_HIGH>;
535 clock-output-names = "osc32k", "osc32k-out";
540 pio: pinctrl@1c20800 {
541 compatible = "allwinner,sun8i-r40-pinctrl";
542 reg = <0x01c20800 0x400>;
543 interrupts = <GIC_SPI 28 IRQ_TYPE_LEVEL_HIGH>;
544 clocks = <&ccu CLK_BUS_PIO>, <&osc24M>,
546 clock-names = "apb", "hosc", "losc";
548 interrupt-controller;
549 #interrupt-cells = <3>;
552 can_ph_pins: can-ph-pins {
553 pins = "PH20", "PH21";
557 can_pa_pins: can-pa-pins {
558 pins = "PA16", "PA17";
562 clk_out_a_pin: clk-out-a-pin {
564 function = "clk_out_a";
568 csi0_8bits_pins: csi0-8bits-pins {
569 pins = "PE0", "PE2", "PE3", "PE4", "PE5",
570 "PE6", "PE7", "PE8", "PE9", "PE10",
576 csi0_mclk_pin: csi0-mclk-pin {
581 gmac_rgmii_pins: gmac-rgmii-pins {
582 pins = "PA0", "PA1", "PA2", "PA3",
583 "PA4", "PA5", "PA6", "PA7",
584 "PA8", "PA10", "PA11", "PA12",
585 "PA13", "PA15", "PA16";
588 * data lines in RGMII mode use DDR mode
589 * and need a higher signal drive strength
591 drive-strength = <40>;
594 i2c0_pins: i2c0-pins {
599 i2c1_pins: i2c1-pins {
600 pins = "PB18", "PB19";
604 i2c2_pins: i2c2-pins {
605 pins = "PB20", "PB21";
609 i2c3_pins: i2c3-pins {
614 i2c4_pins: i2c4-pins {
629 mmc0_pins: mmc0-pins {
630 pins = "PF0", "PF1", "PF2",
633 drive-strength = <30>;
637 mmc1_pg_pins: mmc1-pg-pins {
638 pins = "PG0", "PG1", "PG2",
641 drive-strength = <30>;
645 mmc2_pins: mmc2-pins {
646 pins = "PC5", "PC6", "PC7", "PC8", "PC9",
647 "PC10", "PC11", "PC12", "PC13", "PC14",
650 drive-strength = <30>;
655 mmc3_pins: mmc3-pins {
656 pins = "PI4", "PI5", "PI6",
659 drive-strength = <30>;
664 spi0_pc_pins: spi0-pc-pins {
665 pins = "PC0", "PC1", "PC2";
670 spi0_cs0_pc_pin: spi0-cs0-pc-pin {
676 spi1_pi_pins: spi1-pi-pins {
677 pins = "PI17", "PI18", "PI19";
682 spi1_cs0_pi_pin: spi1-cs0-pi-pin {
688 spi1_cs1_pi_pin: spi1-cs1-pi-pin {
694 uart0_pb_pins: uart0-pb-pins {
695 pins = "PB22", "PB23";
700 uart2_pi_pins: uart2-pi-pins {
701 pins = "PI18", "PI19";
706 uart2_rts_cts_pi_pins: uart2-rts-cts-pi-pins{
707 pins = "PI16", "PI17";
712 uart3_pg_pins: uart3-pg-pins {
718 uart3_rts_cts_pg_pins: uart3-rts-cts-pg-pins {
724 uart4_pg_pins: uart4-pg-pins {
725 pins = "PG10", "PG11";
730 uart5_ph_pins: uart5-ph-pins {
736 uart7_pi_pins: uart7-pi-pins {
737 pins = "PI20", "PI21";
743 compatible = "allwinner,sun4i-a10-timer";
744 reg = <0x01c20c00 0x90>;
745 interrupts = <GIC_SPI 22 IRQ_TYPE_LEVEL_HIGH>,
746 <GIC_SPI 23 IRQ_TYPE_LEVEL_HIGH>,
747 <GIC_SPI 24 IRQ_TYPE_LEVEL_HIGH>,
748 <GIC_SPI 25 IRQ_TYPE_LEVEL_HIGH>,
749 <GIC_SPI 67 IRQ_TYPE_LEVEL_HIGH>,
750 <GIC_SPI 68 IRQ_TYPE_LEVEL_HIGH>;
754 wdt: watchdog@1c20c90 {
755 compatible = "allwinner,sun4i-a10-wdt";
756 reg = <0x01c20c90 0x10>;
757 interrupts = <GIC_SPI 24 IRQ_TYPE_LEVEL_HIGH>;
762 compatible = "allwinner,sun8i-r40-ir",
763 "allwinner,sun6i-a31-ir";
764 reg = <0x01c21800 0x400>;
765 pinctrl-0 = <&ir0_pins>;
766 pinctrl-names = "default";
767 clocks = <&ccu CLK_BUS_IR0>, <&ccu CLK_IR0>;
768 clock-names = "apb", "ir";
769 interrupts = <GIC_SPI 5 IRQ_TYPE_LEVEL_HIGH>;
770 resets = <&ccu RST_BUS_IR0>;
775 compatible = "allwinner,sun8i-r40-ir",
776 "allwinner,sun6i-a31-ir";
777 reg = <0x01c21c00 0x400>;
778 pinctrl-0 = <&ir1_pins>;
779 pinctrl-names = "default";
780 clocks = <&ccu CLK_BUS_IR1>, <&ccu CLK_IR1>;
781 clock-names = "apb", "ir";
782 interrupts = <GIC_SPI 6 IRQ_TYPE_LEVEL_HIGH>;
783 resets = <&ccu RST_BUS_IR1>;
788 #sound-dai-cells = <0>;
789 compatible = "allwinner,sun8i-r40-i2s",
790 "allwinner,sun8i-h3-i2s";
791 reg = <0x01c22000 0x400>;
792 interrupts = <GIC_SPI 16 IRQ_TYPE_LEVEL_HIGH>;
793 clocks = <&ccu CLK_BUS_I2S0>, <&ccu CLK_I2S0>;
794 clock-names = "apb", "mod";
795 resets = <&ccu RST_BUS_I2S0>;
796 dmas = <&dma 3>, <&dma 3>;
797 dma-names = "rx", "tx";
801 #sound-dai-cells = <0>;
802 compatible = "allwinner,sun8i-r40-i2s",
803 "allwinner,sun8i-h3-i2s";
804 reg = <0x01c22400 0x400>;
805 interrupts = <GIC_SPI 87 IRQ_TYPE_LEVEL_HIGH>;
806 clocks = <&ccu CLK_BUS_I2S1>, <&ccu CLK_I2S1>;
807 clock-names = "apb", "mod";
808 resets = <&ccu RST_BUS_I2S1>;
809 dmas = <&dma 4>, <&dma 4>;
810 dma-names = "rx", "tx";
814 #sound-dai-cells = <0>;
815 compatible = "allwinner,sun8i-r40-i2s",
816 "allwinner,sun8i-h3-i2s";
817 reg = <0x01c22800 0x400>;
818 interrupts = <GIC_SPI 90 IRQ_TYPE_LEVEL_HIGH>;
819 clocks = <&ccu CLK_BUS_I2S2>, <&ccu CLK_I2S2>;
820 clock-names = "apb", "mod";
821 resets = <&ccu RST_BUS_I2S2>;
822 dmas = <&dma 6>, <&dma 6>;
823 dma-names = "rx", "tx";
826 ths: thermal-sensor@1c24c00 {
827 compatible = "allwinner,sun8i-r40-ths";
828 reg = <0x01c24c00 0x100>;
829 clocks = <&ccu CLK_BUS_THS>, <&ccu CLK_THS>;
830 clock-names = "bus", "mod";
831 interrupts = <GIC_SPI 36 IRQ_TYPE_LEVEL_HIGH>;
832 resets = <&ccu RST_BUS_THS>;
833 /* TODO: add nvmem-cells for calibration */
834 #thermal-sensor-cells = <1>;
837 uart0: serial@1c28000 {
838 compatible = "snps,dw-apb-uart";
839 reg = <0x01c28000 0x400>;
840 interrupts = <GIC_SPI 1 IRQ_TYPE_LEVEL_HIGH>;
843 clocks = <&ccu CLK_BUS_UART0>;
844 resets = <&ccu RST_BUS_UART0>;
848 uart1: serial@1c28400 {
849 compatible = "snps,dw-apb-uart";
850 reg = <0x01c28400 0x400>;
851 interrupts = <GIC_SPI 2 IRQ_TYPE_LEVEL_HIGH>;
854 clocks = <&ccu CLK_BUS_UART1>;
855 resets = <&ccu RST_BUS_UART1>;
859 uart2: serial@1c28800 {
860 compatible = "snps,dw-apb-uart";
861 reg = <0x01c28800 0x400>;
862 interrupts = <GIC_SPI 3 IRQ_TYPE_LEVEL_HIGH>;
865 clocks = <&ccu CLK_BUS_UART2>;
866 resets = <&ccu RST_BUS_UART2>;
870 uart3: serial@1c28c00 {
871 compatible = "snps,dw-apb-uart";
872 reg = <0x01c28c00 0x400>;
873 interrupts = <GIC_SPI 4 IRQ_TYPE_LEVEL_HIGH>;
876 clocks = <&ccu CLK_BUS_UART3>;
877 resets = <&ccu RST_BUS_UART3>;
881 uart4: serial@1c29000 {
882 compatible = "snps,dw-apb-uart";
883 reg = <0x01c29000 0x400>;
884 interrupts = <GIC_SPI 17 IRQ_TYPE_LEVEL_HIGH>;
887 clocks = <&ccu CLK_BUS_UART4>;
888 resets = <&ccu RST_BUS_UART4>;
892 uart5: serial@1c29400 {
893 compatible = "snps,dw-apb-uart";
894 reg = <0x01c29400 0x400>;
895 interrupts = <GIC_SPI 18 IRQ_TYPE_LEVEL_HIGH>;
898 clocks = <&ccu CLK_BUS_UART5>;
899 resets = <&ccu RST_BUS_UART5>;
903 uart6: serial@1c29800 {
904 compatible = "snps,dw-apb-uart";
905 reg = <0x01c29800 0x400>;
906 interrupts = <GIC_SPI 19 IRQ_TYPE_LEVEL_HIGH>;
909 clocks = <&ccu CLK_BUS_UART6>;
910 resets = <&ccu RST_BUS_UART6>;
914 uart7: serial@1c29c00 {
915 compatible = "snps,dw-apb-uart";
916 reg = <0x01c29c00 0x400>;
917 interrupts = <GIC_SPI 20 IRQ_TYPE_LEVEL_HIGH>;
920 clocks = <&ccu CLK_BUS_UART7>;
921 resets = <&ccu RST_BUS_UART7>;
926 compatible = "allwinner,sun6i-a31-i2c";
927 reg = <0x01c2ac00 0x400>;
928 interrupts = <GIC_SPI 7 IRQ_TYPE_LEVEL_HIGH>;
929 clocks = <&ccu CLK_BUS_I2C0>;
930 resets = <&ccu RST_BUS_I2C0>;
931 pinctrl-0 = <&i2c0_pins>;
932 pinctrl-names = "default";
934 #address-cells = <1>;
939 compatible = "allwinner,sun6i-a31-i2c";
940 reg = <0x01c2b000 0x400>;
941 interrupts = <GIC_SPI 8 IRQ_TYPE_LEVEL_HIGH>;
942 clocks = <&ccu CLK_BUS_I2C1>;
943 resets = <&ccu RST_BUS_I2C1>;
944 pinctrl-0 = <&i2c1_pins>;
945 pinctrl-names = "default";
947 #address-cells = <1>;
952 compatible = "allwinner,sun6i-a31-i2c";
953 reg = <0x01c2b400 0x400>;
954 interrupts = <GIC_SPI 9 IRQ_TYPE_LEVEL_HIGH>;
955 clocks = <&ccu CLK_BUS_I2C2>;
956 resets = <&ccu RST_BUS_I2C2>;
957 pinctrl-0 = <&i2c2_pins>;
958 pinctrl-names = "default";
960 #address-cells = <1>;
965 compatible = "allwinner,sun6i-a31-i2c";
966 reg = <0x01c2b800 0x400>;
967 interrupts = <GIC_SPI 88 IRQ_TYPE_LEVEL_HIGH>;
968 clocks = <&ccu CLK_BUS_I2C3>;
969 resets = <&ccu RST_BUS_I2C3>;
970 pinctrl-0 = <&i2c3_pins>;
971 pinctrl-names = "default";
973 #address-cells = <1>;
978 compatible = "allwinner,sun8i-r40-can";
979 reg = <0x01c2bc00 0x400>;
980 interrupts = <GIC_SPI 26 IRQ_TYPE_LEVEL_HIGH>;
981 clocks = <&ccu CLK_BUS_CAN>;
982 resets = <&ccu RST_BUS_CAN>;
987 compatible = "allwinner,sun6i-a31-i2c";
988 reg = <0x01c2c000 0x400>;
989 interrupts = <GIC_SPI 89 IRQ_TYPE_LEVEL_HIGH>;
990 clocks = <&ccu CLK_BUS_I2C4>;
991 resets = <&ccu RST_BUS_I2C4>;
992 pinctrl-0 = <&i2c4_pins>;
993 pinctrl-names = "default";
995 #address-cells = <1>;
1000 compatible = "allwinner,sun8i-r40-mali", "arm,mali-400";
1001 reg = <0x01c40000 0x10000>;
1002 interrupts = <GIC_SPI 69 IRQ_TYPE_LEVEL_HIGH>,
1003 <GIC_SPI 70 IRQ_TYPE_LEVEL_HIGH>,
1004 <GIC_SPI 71 IRQ_TYPE_LEVEL_HIGH>,
1005 <GIC_SPI 72 IRQ_TYPE_LEVEL_HIGH>,
1006 <GIC_SPI 74 IRQ_TYPE_LEVEL_HIGH>,
1007 <GIC_SPI 75 IRQ_TYPE_LEVEL_HIGH>,
1008 <GIC_SPI 73 IRQ_TYPE_LEVEL_HIGH>;
1009 interrupt-names = "gp",
1016 clocks = <&ccu CLK_BUS_GPU>, <&ccu CLK_GPU>;
1017 clock-names = "bus", "core";
1018 resets = <&ccu RST_BUS_GPU>;
1021 gmac: ethernet@1c50000 {
1022 compatible = "allwinner,sun8i-r40-gmac";
1024 reg = <0x01c50000 0x10000>;
1025 interrupts = <GIC_SPI 85 IRQ_TYPE_LEVEL_HIGH>;
1026 interrupt-names = "macirq";
1027 resets = <&ccu RST_BUS_GMAC>;
1028 reset-names = "stmmaceth";
1029 clocks = <&ccu CLK_BUS_GMAC>;
1030 clock-names = "stmmaceth";
1031 status = "disabled";
1034 compatible = "snps,dwmac-mdio";
1035 #address-cells = <1>;
1040 mbus: dram-controller@1c62000 {
1041 compatible = "allwinner,sun8i-r40-mbus";
1042 reg = <0x01c62000 0x1000>;
1043 clocks = <&ccu 155>;
1044 #address-cells = <1>;
1046 dma-ranges = <0x00000000 0x40000000 0x80000000>;
1047 #interconnect-cells = <1>;
1050 tcon_top: tcon-top@1c70000 {
1051 compatible = "allwinner,sun8i-r40-tcon-top";
1052 reg = <0x01c70000 0x1000>;
1053 clocks = <&ccu CLK_BUS_TCON_TOP>,
1054 <&ccu CLK_TCON_TV0>,
1056 <&ccu CLK_TCON_TV1>,
1058 <&ccu CLK_DSI_DPHY>;
1059 clock-names = "bus",
1065 clock-output-names = "tcon-top-tv0",
1068 resets = <&ccu RST_BUS_TCON_TOP>;
1072 #address-cells = <1>;
1075 tcon_top_mixer0_in: port@0 {
1078 tcon_top_mixer0_in_mixer0: endpoint {
1079 remote-endpoint = <&mixer0_out_tcon_top>;
1083 tcon_top_mixer0_out: port@1 {
1084 #address-cells = <1>;
1088 tcon_top_mixer0_out_tcon_lcd0: endpoint@0 {
1092 tcon_top_mixer0_out_tcon_lcd1: endpoint@1 {
1096 tcon_top_mixer0_out_tcon_tv0: endpoint@2 {
1098 remote-endpoint = <&tcon_tv0_in_tcon_top_mixer0>;
1101 tcon_top_mixer0_out_tcon_tv1: endpoint@3 {
1103 remote-endpoint = <&tcon_tv1_in_tcon_top_mixer0>;
1107 tcon_top_mixer1_in: port@2 {
1108 #address-cells = <1>;
1112 tcon_top_mixer1_in_mixer1: endpoint@1 {
1114 remote-endpoint = <&mixer1_out_tcon_top>;
1118 tcon_top_mixer1_out: port@3 {
1119 #address-cells = <1>;
1123 tcon_top_mixer1_out_tcon_lcd0: endpoint@0 {
1127 tcon_top_mixer1_out_tcon_lcd1: endpoint@1 {
1131 tcon_top_mixer1_out_tcon_tv0: endpoint@2 {
1133 remote-endpoint = <&tcon_tv0_in_tcon_top_mixer1>;
1136 tcon_top_mixer1_out_tcon_tv1: endpoint@3 {
1138 remote-endpoint = <&tcon_tv1_in_tcon_top_mixer1>;
1142 tcon_top_hdmi_in: port@4 {
1143 #address-cells = <1>;
1147 tcon_top_hdmi_in_tcon_tv0: endpoint@0 {
1149 remote-endpoint = <&tcon_tv0_out_tcon_top>;
1152 tcon_top_hdmi_in_tcon_tv1: endpoint@1 {
1154 remote-endpoint = <&tcon_tv1_out_tcon_top>;
1158 tcon_top_hdmi_out: port@5 {
1161 tcon_top_hdmi_out_hdmi: endpoint {
1162 remote-endpoint = <&hdmi_in_tcon_top>;
1168 tcon_tv0: lcd-controller@1c73000 {
1169 compatible = "allwinner,sun8i-r40-tcon-tv";
1170 reg = <0x01c73000 0x1000>;
1171 interrupts = <GIC_SPI 51 IRQ_TYPE_LEVEL_HIGH>;
1172 clocks = <&ccu CLK_BUS_TCON_TV0>, <&tcon_top CLK_TCON_TOP_TV0>;
1173 clock-names = "ahb", "tcon-ch1";
1174 resets = <&ccu RST_BUS_TCON_TV0>;
1175 reset-names = "lcd";
1176 status = "disabled";
1179 #address-cells = <1>;
1182 tcon_tv0_in: port@0 {
1183 #address-cells = <1>;
1187 tcon_tv0_in_tcon_top_mixer0: endpoint@0 {
1189 remote-endpoint = <&tcon_top_mixer0_out_tcon_tv0>;
1192 tcon_tv0_in_tcon_top_mixer1: endpoint@1 {
1194 remote-endpoint = <&tcon_top_mixer1_out_tcon_tv0>;
1198 tcon_tv0_out: port@1 {
1199 #address-cells = <1>;
1203 tcon_tv0_out_tcon_top: endpoint@1 {
1205 remote-endpoint = <&tcon_top_hdmi_in_tcon_tv0>;
1211 tcon_tv1: lcd-controller@1c74000 {
1212 compatible = "allwinner,sun8i-r40-tcon-tv";
1213 reg = <0x01c74000 0x1000>;
1214 interrupts = <GIC_SPI 52 IRQ_TYPE_LEVEL_HIGH>;
1215 clocks = <&ccu CLK_BUS_TCON_TV1>, <&tcon_top CLK_TCON_TOP_TV1>;
1216 clock-names = "ahb", "tcon-ch1";
1217 resets = <&ccu RST_BUS_TCON_TV1>;
1218 reset-names = "lcd";
1219 status = "disabled";
1222 #address-cells = <1>;
1225 tcon_tv1_in: port@0 {
1226 #address-cells = <1>;
1230 tcon_tv1_in_tcon_top_mixer0: endpoint@0 {
1232 remote-endpoint = <&tcon_top_mixer0_out_tcon_tv1>;
1235 tcon_tv1_in_tcon_top_mixer1: endpoint@1 {
1237 remote-endpoint = <&tcon_top_mixer1_out_tcon_tv1>;
1241 tcon_tv1_out: port@1 {
1242 #address-cells = <1>;
1246 tcon_tv1_out_tcon_top: endpoint@1 {
1248 remote-endpoint = <&tcon_top_hdmi_in_tcon_tv1>;
1254 gic: interrupt-controller@1c81000 {
1255 compatible = "arm,gic-400";
1256 reg = <0x01c81000 0x1000>,
1257 <0x01c82000 0x2000>,
1258 <0x01c84000 0x2000>,
1259 <0x01c86000 0x2000>;
1260 interrupt-controller;
1261 #interrupt-cells = <3>;
1262 interrupts = <GIC_PPI 9 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>;
1265 hdmi: hdmi@1ee0000 {
1266 compatible = "allwinner,sun8i-r40-dw-hdmi",
1267 "allwinner,sun8i-a83t-dw-hdmi";
1268 reg = <0x01ee0000 0x10000>;
1270 interrupts = <GIC_SPI 58 IRQ_TYPE_LEVEL_HIGH>;
1271 clocks = <&ccu CLK_BUS_HDMI0>, <&ccu CLK_HDMI_SLOW>,
1272 <&ccu CLK_HDMI>, <&rtc CLK_OSC32K>;
1273 clock-names = "iahb", "isfr", "tmds", "cec";
1274 resets = <&ccu RST_BUS_HDMI1>;
1275 reset-names = "ctrl";
1278 status = "disabled";
1281 #address-cells = <1>;
1287 hdmi_in_tcon_top: endpoint {
1288 remote-endpoint = <&tcon_top_hdmi_out_hdmi>;
1298 hdmi_phy: hdmi-phy@1ef0000 {
1299 compatible = "allwinner,sun8i-r40-hdmi-phy";
1300 reg = <0x01ef0000 0x10000>;
1301 clocks = <&ccu CLK_BUS_HDMI1>, <&ccu CLK_HDMI_SLOW>,
1302 <&ccu CLK_PLL_VIDEO0>, <&ccu CLK_PLL_VIDEO1>;
1303 clock-names = "bus", "mod", "pll-0", "pll-1";
1304 resets = <&ccu RST_BUS_HDMI0>;
1305 reset-names = "phy";
1311 compatible = "arm,cortex-a7-pmu";
1312 interrupts = <GIC_SPI 120 IRQ_TYPE_LEVEL_HIGH>,
1313 <GIC_SPI 121 IRQ_TYPE_LEVEL_HIGH>,
1314 <GIC_SPI 122 IRQ_TYPE_LEVEL_HIGH>,
1315 <GIC_SPI 123 IRQ_TYPE_LEVEL_HIGH>;
1316 interrupt-affinity = <&cpu0>, <&cpu1>, <&cpu2>, <&cpu3>;
1320 compatible = "arm,armv7-timer";
1321 interrupts = <GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
1322 <GIC_PPI 14 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
1323 <GIC_PPI 11 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
1324 <GIC_PPI 10 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>;