2 * Copyright 2014 Chen-Yu Tsai
4 * Chen-Yu Tsai <wens@csie.org>
6 * This file is dual-licensed: you can use it either under the terms
7 * of the GPL or the X11 license, at your option. Note that this dual
8 * licensing only applies to this file, and not this project as a
11 * a) This file is free software; you can redistribute it and/or
12 * modify it under the terms of the GNU General Public License as
13 * published by the Free Software Foundation; either version 2 of the
14 * License, or (at your option) any later version.
16 * This file is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 * GNU General Public License for more details.
23 * b) Permission is hereby granted, free of charge, to any person
24 * obtaining a copy of this software and associated documentation
25 * files (the "Software"), to deal in the Software without
26 * restriction, including without limitation the rights to use,
27 * copy, modify, merge, publish, distribute, sublicense, and/or
28 * sell copies of the Software, and to permit persons to whom the
29 * Software is furnished to do so, subject to the following
32 * The above copyright notice and this permission notice shall be
33 * included in all copies or substantial portions of the Software.
35 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
36 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
37 * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
38 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
39 * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
40 * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
41 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
42 * OTHER DEALINGS IN THE SOFTWARE.
45 #include <dt-bindings/interrupt-controller/arm-gic.h>
47 #include <dt-bindings/clock/sun9i-a80-ccu.h>
48 #include <dt-bindings/clock/sun9i-a80-de.h>
49 #include <dt-bindings/clock/sun9i-a80-usb.h>
50 #include <dt-bindings/reset/sun9i-a80-ccu.h>
51 #include <dt-bindings/reset/sun9i-a80-de.h>
52 #include <dt-bindings/reset/sun9i-a80-usb.h>
57 interrupt-parent = <&gic>;
68 compatible = "arm,cortex-a7";
70 cci-control-port = <&cci_control0>;
71 clock-frequency = <12000000>;
72 enable-method = "allwinner,sun9i-a80-smp";
77 compatible = "arm,cortex-a7";
79 cci-control-port = <&cci_control0>;
80 clock-frequency = <12000000>;
81 enable-method = "allwinner,sun9i-a80-smp";
86 compatible = "arm,cortex-a7";
88 cci-control-port = <&cci_control0>;
89 clock-frequency = <12000000>;
90 enable-method = "allwinner,sun9i-a80-smp";
95 compatible = "arm,cortex-a7";
97 cci-control-port = <&cci_control0>;
98 clock-frequency = <12000000>;
99 enable-method = "allwinner,sun9i-a80-smp";
104 compatible = "arm,cortex-a15";
106 cci-control-port = <&cci_control1>;
107 clock-frequency = <18000000>;
108 enable-method = "allwinner,sun9i-a80-smp";
113 compatible = "arm,cortex-a15";
115 cci-control-port = <&cci_control1>;
116 clock-frequency = <18000000>;
117 enable-method = "allwinner,sun9i-a80-smp";
122 compatible = "arm,cortex-a15";
124 cci-control-port = <&cci_control1>;
125 clock-frequency = <18000000>;
126 enable-method = "allwinner,sun9i-a80-smp";
131 compatible = "arm,cortex-a15";
133 cci-control-port = <&cci_control1>;
134 clock-frequency = <18000000>;
135 enable-method = "allwinner,sun9i-a80-smp";
141 compatible = "arm,armv7-timer";
142 interrupts = <GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
143 <GIC_PPI 14 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
144 <GIC_PPI 11 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
145 <GIC_PPI 10 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>;
146 clock-frequency = <24000000>;
147 arm,cpu-registers-not-fw-configured;
151 #address-cells = <1>;
154 * map 64 bit address range down to 32 bits,
155 * as the peripherals are all under 512MB.
157 ranges = <0 0 0 0x20000000>;
160 * This clock is actually configurable from the PRCM address
161 * space. The external 24M oscillator can be turned off, and
162 * the clock switched to an internal 16M RC oscillator. Under
163 * normal operation there's no reason to do this, and the
164 * default is to use the external good one, so just model this
165 * as a fixed clock. Also it is not entirely clear if the
166 * osc24M mux in the PRCM affects the entire clock tree, which
167 * would also throw all the PLL clock rates off, or just the
168 * downstream clocks in the PRCM.
172 compatible = "fixed-clock";
173 clock-frequency = <24000000>;
174 clock-output-names = "osc24M";
178 * The 32k clock is from an external source, normally the
179 * AC100 codec/RTC chip. This serves as a placeholder for
180 * board dts files to specify the source.
184 compatible = "fixed-factor-clock";
187 clock-output-names = "osc32k";
191 * The following two are dummy clocks, placeholders
192 * used in the gmac_tx clock. The gmac driver will
193 * choose one parent depending on the PHY interface
194 * mode, using clk_set_rate auto-reparenting.
196 * The actual TX clock rate is not controlled by the
199 mii_phy_tx_clk: mii-phy-tx-clk {
201 compatible = "fixed-clock";
202 clock-frequency = <25000000>;
203 clock-output-names = "mii_phy_tx";
206 gmac_int_tx_clk: gmac-int-tx-clk {
208 compatible = "fixed-clock";
209 clock-frequency = <125000000>;
210 clock-output-names = "gmac_int_tx";
213 gmac_tx_clk: clk@800030 {
215 compatible = "allwinner,sun7i-a20-gmac-clk";
216 reg = <0x00800030 0x4>;
217 clocks = <&mii_phy_tx_clk>, <&gmac_int_tx_clk>;
218 clock-output-names = "gmac_tx";
221 cpus_clk: clk@8001410 {
222 compatible = "allwinner,sun9i-a80-cpus-clk";
223 reg = <0x08001410 0x4>;
225 clocks = <&osc32k>, <&osc24M>,
226 <&ccu CLK_PLL_PERIPH0>,
227 <&ccu CLK_PLL_AUDIO>;
228 clock-output-names = "cpus";
232 compatible = "fixed-factor-clock";
236 clocks = <&cpus_clk>;
237 clock-output-names = "ahbs";
241 compatible = "allwinner,sun8i-a23-apb0-clk";
242 reg = <0x0800141c 0x4>;
245 clock-output-names = "apbs";
248 apbs_gates: clk@8001428 {
249 compatible = "allwinner,sun9i-a80-apbs-gates-clk";
250 reg = <0x08001428 0x4>;
253 clock-indices = <0>, <1>,
260 clock-output-names = "apbs_pio", "apbs_ir",
261 "apbs_timer", "apbs_rsb",
262 "apbs_uart", "apbs_1wire",
263 "apbs_i2c0", "apbs_i2c1",
264 "apbs_ps2_0", "apbs_ps2_1",
265 "apbs_dma", "apbs_i2s0",
266 "apbs_i2s1", "apbs_twd";
269 r_1wire_clk: clk@8001450 {
270 reg = <0x08001450 0x4>;
272 compatible = "allwinner,sun4i-a10-mod0-clk";
273 clocks = <&osc32k>, <&osc24M>;
274 clock-output-names = "r_1wire";
277 r_ir_clk: clk@8001454 {
278 reg = <0x08001454 0x4>;
280 compatible = "allwinner,sun4i-a10-mod0-clk";
281 clocks = <&osc32k>, <&osc24M>;
282 clock-output-names = "r_ir";
287 compatible = "allwinner,sun9i-a80-display-engine";
288 allwinner,pipelines = <&fe0>, <&fe1>;
293 compatible = "simple-bus";
294 #address-cells = <1>;
297 * map 64 bit address range down to 32 bits,
298 * as the peripherals are all under 512MB.
300 ranges = <0 0 0 0x20000000>;
303 /* 256 KiB secure SRAM at 0x20000 */
304 compatible = "mmio-sram";
305 reg = <0x00020000 0x40000>;
307 #address-cells = <1>;
309 ranges = <0 0x00020000 0x40000>;
313 * This is checked by BROM to determine if
314 * cpu0 should jump to SMP entry vector
316 compatible = "allwinner,sun9i-a80-smp-sram";
321 gmac: ethernet@830000 {
322 compatible = "allwinner,sun7i-a20-gmac";
323 reg = <0x00830000 0x1054>;
324 interrupts = <GIC_SPI 82 IRQ_TYPE_LEVEL_HIGH>;
325 interrupt-names = "macirq";
326 clocks = <&ccu CLK_BUS_GMAC>, <&gmac_tx_clk>;
327 clock-names = "stmmaceth", "allwinner_gmac_tx";
328 resets = <&ccu RST_BUS_GMAC>;
329 reset-names = "stmmaceth";
332 snps,force_sf_dma_mode;
336 compatible = "snps,dwmac-mdio";
337 #address-cells = <1>;
343 compatible = "allwinner,sun9i-a80-ehci", "generic-ehci";
344 reg = <0x00a00000 0x100>;
345 interrupts = <GIC_SPI 72 IRQ_TYPE_LEVEL_HIGH>;
346 clocks = <&usb_clocks CLK_BUS_HCI0>;
347 resets = <&usb_clocks RST_USB0_HCI>;
354 compatible = "allwinner,sun9i-a80-ohci", "generic-ohci";
355 reg = <0x00a00400 0x100>;
356 interrupts = <GIC_SPI 73 IRQ_TYPE_LEVEL_HIGH>;
357 clocks = <&usb_clocks CLK_BUS_HCI0>,
358 <&usb_clocks CLK_USB_OHCI0>;
359 resets = <&usb_clocks RST_USB0_HCI>;
365 usbphy1: phy@a00800 {
366 compatible = "allwinner,sun9i-a80-usb-phy";
367 reg = <0x00a00800 0x4>;
368 clocks = <&usb_clocks CLK_USB0_PHY>;
370 resets = <&usb_clocks RST_USB0_PHY>;
377 compatible = "allwinner,sun9i-a80-ehci", "generic-ehci";
378 reg = <0x00a01000 0x100>;
379 interrupts = <GIC_SPI 74 IRQ_TYPE_LEVEL_HIGH>;
380 clocks = <&usb_clocks CLK_BUS_HCI1>;
381 resets = <&usb_clocks RST_USB1_HCI>;
387 usbphy2: phy@a01800 {
388 compatible = "allwinner,sun9i-a80-usb-phy";
389 reg = <0x00a01800 0x4>;
390 clocks = <&usb_clocks CLK_USB1_PHY>,
391 <&usb_clocks CLK_USB_HSIC>,
392 <&usb_clocks CLK_USB1_HSIC>;
396 resets = <&usb_clocks RST_USB1_PHY>,
397 <&usb_clocks RST_USB1_HSIC>;
402 /* usb1 is always used with HSIC */
407 compatible = "allwinner,sun9i-a80-ehci", "generic-ehci";
408 reg = <0x00a02000 0x100>;
409 interrupts = <GIC_SPI 76 IRQ_TYPE_LEVEL_HIGH>;
410 clocks = <&usb_clocks CLK_BUS_HCI2>;
411 resets = <&usb_clocks RST_USB2_HCI>;
418 compatible = "allwinner,sun9i-a80-ohci", "generic-ohci";
419 reg = <0x00a02400 0x100>;
420 interrupts = <GIC_SPI 77 IRQ_TYPE_LEVEL_HIGH>;
421 clocks = <&usb_clocks CLK_BUS_HCI2>,
422 <&usb_clocks CLK_USB_OHCI2>;
423 resets = <&usb_clocks RST_USB2_HCI>;
429 usbphy3: phy@a02800 {
430 compatible = "allwinner,sun9i-a80-usb-phy";
431 reg = <0x00a02800 0x4>;
432 clocks = <&usb_clocks CLK_USB2_PHY>,
433 <&usb_clocks CLK_USB_HSIC>,
434 <&usb_clocks CLK_USB2_HSIC>;
438 resets = <&usb_clocks RST_USB2_PHY>,
439 <&usb_clocks RST_USB2_HSIC>;
446 usb_clocks: clock@a08000 {
447 compatible = "allwinner,sun9i-a80-usb-clks";
448 reg = <0x00a08000 0x8>;
449 clocks = <&ccu CLK_BUS_USB>, <&osc24M>;
450 clock-names = "bus", "hosc";
456 compatible = "allwinner,sun9i-a80-cpucfg";
457 reg = <0x01700000 0x100>;
460 crypto: crypto@1c02000 {
461 compatible = "allwinner,sun9i-a80-crypto";
462 reg = <0x01c02000 0x1000>;
463 interrupts = <GIC_SPI 80 IRQ_TYPE_LEVEL_HIGH>;
464 resets = <&ccu RST_BUS_SS>;
465 clocks = <&ccu CLK_BUS_SS>, <&ccu CLK_SS>;
466 clock-names = "bus", "mod";
470 compatible = "allwinner,sun9i-a80-mmc";
471 reg = <0x01c0f000 0x1000>;
472 clocks = <&mmc_config_clk 0>, <&ccu CLK_MMC0>,
473 <&ccu CLK_MMC0_OUTPUT>,
474 <&ccu CLK_MMC0_SAMPLE>;
475 clock-names = "ahb", "mmc", "output", "sample";
476 resets = <&mmc_config_clk 0>;
478 interrupts = <GIC_SPI 60 IRQ_TYPE_LEVEL_HIGH>;
480 #address-cells = <1>;
485 compatible = "allwinner,sun9i-a80-mmc";
486 reg = <0x01c10000 0x1000>;
487 clocks = <&mmc_config_clk 1>, <&ccu CLK_MMC1>,
488 <&ccu CLK_MMC1_OUTPUT>,
489 <&ccu CLK_MMC1_SAMPLE>;
490 clock-names = "ahb", "mmc", "output", "sample";
491 resets = <&mmc_config_clk 1>;
493 interrupts = <GIC_SPI 61 IRQ_TYPE_LEVEL_HIGH>;
495 #address-cells = <1>;
500 compatible = "allwinner,sun9i-a80-mmc";
501 reg = <0x01c11000 0x1000>;
502 clocks = <&mmc_config_clk 2>, <&ccu CLK_MMC2>,
503 <&ccu CLK_MMC2_OUTPUT>,
504 <&ccu CLK_MMC2_SAMPLE>;
505 clock-names = "ahb", "mmc", "output", "sample";
506 resets = <&mmc_config_clk 2>;
508 interrupts = <GIC_SPI 62 IRQ_TYPE_LEVEL_HIGH>;
510 #address-cells = <1>;
515 compatible = "allwinner,sun9i-a80-mmc";
516 reg = <0x01c12000 0x1000>;
517 clocks = <&mmc_config_clk 3>, <&ccu CLK_MMC3>,
518 <&ccu CLK_MMC3_OUTPUT>,
519 <&ccu CLK_MMC3_SAMPLE>;
520 clock-names = "ahb", "mmc", "output", "sample";
521 resets = <&mmc_config_clk 3>;
523 interrupts = <GIC_SPI 63 IRQ_TYPE_LEVEL_HIGH>;
525 #address-cells = <1>;
529 mmc_config_clk: clk@1c13000 {
530 compatible = "allwinner,sun9i-a80-mmc-config-clk";
531 reg = <0x01c13000 0x10>;
532 clocks = <&ccu CLK_BUS_MMC>;
533 resets = <&ccu RST_BUS_MMC>;
536 clock-output-names = "mmc0_config", "mmc1_config",
537 "mmc2_config", "mmc3_config";
540 gic: interrupt-controller@1c41000 {
541 compatible = "arm,gic-400";
542 reg = <0x01c41000 0x1000>,
546 interrupt-controller;
547 #interrupt-cells = <3>;
548 interrupts = <GIC_PPI 9 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>;
552 compatible = "arm,cci-400";
553 #address-cells = <1>;
555 reg = <0x01c90000 0x1000>;
556 ranges = <0x0 0x01c90000 0x10000>;
558 cci_control0: slave-if@4000 {
559 compatible = "arm,cci-400-ctrl-if";
560 interface-type = "ace";
561 reg = <0x4000 0x1000>;
564 cci_control1: slave-if@5000 {
565 compatible = "arm,cci-400-ctrl-if";
566 interface-type = "ace";
567 reg = <0x5000 0x1000>;
571 compatible = "arm,cci-400-pmu,r1";
572 reg = <0x9000 0x5000>;
573 interrupts = <GIC_SPI 134 IRQ_TYPE_LEVEL_HIGH>,
574 <GIC_SPI 134 IRQ_TYPE_LEVEL_HIGH>,
575 <GIC_SPI 134 IRQ_TYPE_LEVEL_HIGH>,
576 <GIC_SPI 134 IRQ_TYPE_LEVEL_HIGH>,
577 <GIC_SPI 134 IRQ_TYPE_LEVEL_HIGH>;
581 de_clocks: clock@3000000 {
582 compatible = "allwinner,sun9i-a80-de-clks";
583 reg = <0x03000000 0x30>;
584 clocks = <&ccu CLK_DE>,
590 resets = <&ccu RST_BUS_DE>;
595 fe0: display-frontend@3100000 {
596 compatible = "allwinner,sun9i-a80-display-frontend";
597 reg = <0x03100000 0x40000>;
598 interrupts = <GIC_SPI 93 IRQ_TYPE_LEVEL_HIGH>;
599 clocks = <&de_clocks CLK_BUS_FE0>, <&de_clocks CLK_FE0>,
600 <&de_clocks CLK_DRAM_FE0>;
601 clock-names = "ahb", "mod",
603 resets = <&de_clocks RST_FE0>;
606 #address-cells = <1>;
612 fe0_out_deu0: endpoint {
613 remote-endpoint = <&deu0_in_fe0>;
619 fe1: display-frontend@3140000 {
620 compatible = "allwinner,sun9i-a80-display-frontend";
621 reg = <0x03140000 0x40000>;
622 interrupts = <GIC_SPI 94 IRQ_TYPE_LEVEL_HIGH>;
623 clocks = <&de_clocks CLK_BUS_FE1>, <&de_clocks CLK_FE1>,
624 <&de_clocks CLK_DRAM_FE1>;
625 clock-names = "ahb", "mod",
627 resets = <&de_clocks RST_FE0>;
630 #address-cells = <1>;
636 fe1_out_deu1: endpoint {
637 remote-endpoint = <&deu1_in_fe1>;
643 be0: display-backend@3200000 {
644 compatible = "allwinner,sun9i-a80-display-backend";
645 reg = <0x03200000 0x40000>;
646 interrupts = <GIC_SPI 95 IRQ_TYPE_LEVEL_HIGH>;
647 clocks = <&de_clocks CLK_BUS_BE0>, <&de_clocks CLK_BE0>,
648 <&de_clocks CLK_DRAM_BE0>;
649 clock-names = "ahb", "mod",
651 resets = <&de_clocks RST_BE0>;
654 #address-cells = <1>;
658 #address-cells = <1>;
662 be0_in_deu0: endpoint@0 {
664 remote-endpoint = <&deu0_out_be0>;
667 be0_in_deu1: endpoint@1 {
669 remote-endpoint = <&deu1_out_be0>;
676 be0_out_drc0: endpoint {
677 remote-endpoint = <&drc0_in_be0>;
683 be1: display-backend@3240000 {
684 compatible = "allwinner,sun9i-a80-display-backend";
685 reg = <0x03240000 0x40000>;
686 interrupts = <GIC_SPI 96 IRQ_TYPE_LEVEL_HIGH>;
687 clocks = <&de_clocks CLK_BUS_BE1>, <&de_clocks CLK_BE1>,
688 <&de_clocks CLK_DRAM_BE1>;
689 clock-names = "ahb", "mod",
691 resets = <&de_clocks RST_BE1>;
694 #address-cells = <1>;
698 #address-cells = <1>;
702 be1_in_deu0: endpoint@0 {
704 remote-endpoint = <&deu0_out_be1>;
707 be1_in_deu1: endpoint@1 {
709 remote-endpoint = <&deu1_out_be1>;
716 be1_out_drc1: endpoint {
717 remote-endpoint = <&drc1_in_be1>;
724 compatible = "allwinner,sun9i-a80-deu";
725 reg = <0x03300000 0x40000>;
726 interrupts = <GIC_SPI 92 IRQ_TYPE_LEVEL_HIGH>;
727 clocks = <&de_clocks CLK_BUS_DEU0>,
728 <&de_clocks CLK_IEP_DEU0>,
729 <&de_clocks CLK_DRAM_DEU0>;
733 resets = <&de_clocks RST_DEU0>;
736 #address-cells = <1>;
742 deu0_in_fe0: endpoint {
743 remote-endpoint = <&fe0_out_deu0>;
748 #address-cells = <1>;
752 deu0_out_be0: endpoint@0 {
754 remote-endpoint = <&be0_in_deu0>;
757 deu0_out_be1: endpoint@1 {
759 remote-endpoint = <&be1_in_deu0>;
766 compatible = "allwinner,sun9i-a80-deu";
767 reg = <0x03340000 0x40000>;
768 interrupts = <GIC_SPI 92 IRQ_TYPE_LEVEL_HIGH>;
769 clocks = <&de_clocks CLK_BUS_DEU1>,
770 <&de_clocks CLK_IEP_DEU1>,
771 <&de_clocks CLK_DRAM_DEU1>;
775 resets = <&de_clocks RST_DEU1>;
778 #address-cells = <1>;
784 deu1_in_fe1: endpoint {
785 remote-endpoint = <&fe1_out_deu1>;
790 #address-cells = <1>;
794 deu1_out_be0: endpoint@0 {
796 remote-endpoint = <&be0_in_deu1>;
799 deu1_out_be1: endpoint@1 {
801 remote-endpoint = <&be1_in_deu1>;
808 compatible = "allwinner,sun9i-a80-drc";
809 reg = <0x03400000 0x40000>;
810 interrupts = <GIC_SPI 91 IRQ_TYPE_LEVEL_HIGH>;
811 clocks = <&de_clocks CLK_BUS_DRC0>,
812 <&de_clocks CLK_IEP_DRC0>,
813 <&de_clocks CLK_DRAM_DRC0>;
817 resets = <&de_clocks RST_DRC0>;
820 #address-cells = <1>;
826 drc0_in_be0: endpoint {
827 remote-endpoint = <&be0_out_drc0>;
834 drc0_out_tcon0: endpoint {
835 remote-endpoint = <&tcon0_in_drc0>;
842 compatible = "allwinner,sun9i-a80-drc";
843 reg = <0x03440000 0x40000>;
844 interrupts = <GIC_SPI 91 IRQ_TYPE_LEVEL_HIGH>;
845 clocks = <&de_clocks CLK_BUS_DRC1>,
846 <&de_clocks CLK_IEP_DRC1>,
847 <&de_clocks CLK_DRAM_DRC1>;
851 resets = <&de_clocks RST_DRC1>;
854 #address-cells = <1>;
860 drc1_in_be1: endpoint {
861 remote-endpoint = <&be1_out_drc1>;
868 drc1_out_tcon1: endpoint {
869 remote-endpoint = <&tcon1_in_drc1>;
875 tcon0: lcd-controller@3c00000 {
876 compatible = "allwinner,sun9i-a80-tcon-lcd";
877 reg = <0x03c00000 0x10000>;
878 interrupts = <GIC_SPI 86 IRQ_TYPE_LEVEL_HIGH>;
879 clocks = <&ccu CLK_BUS_LCD0>, <&ccu CLK_LCD0>;
880 clock-names = "ahb", "tcon-ch0";
881 resets = <&ccu RST_BUS_LCD0>,
887 clock-output-names = "tcon0-pixel-clock";
891 #address-cells = <1>;
897 tcon0_in_drc0: endpoint {
898 remote-endpoint = <&drc0_out_tcon0>;
908 tcon1: lcd-controller@3c10000 {
909 compatible = "allwinner,sun9i-a80-tcon-tv";
910 reg = <0x03c10000 0x10000>;
911 interrupts = <GIC_SPI 87 IRQ_TYPE_LEVEL_HIGH>;
912 clocks = <&ccu CLK_BUS_LCD1>, <&ccu CLK_LCD1>;
913 clock-names = "ahb", "tcon-ch1";
914 resets = <&ccu RST_BUS_LCD1>, <&ccu RST_BUS_EDP>;
915 reset-names = "lcd", "edp";
918 #address-cells = <1>;
924 tcon1_in_drc1: endpoint {
925 remote-endpoint = <&drc1_out_tcon1>;
936 compatible = "allwinner,sun9i-a80-ccu";
937 reg = <0x06000000 0x800>;
938 clocks = <&osc24M>, <&osc32k>;
939 clock-names = "hosc", "losc";
945 compatible = "allwinner,sun4i-a10-timer";
946 reg = <0x06000c00 0xa0>;
947 interrupts = <GIC_SPI 18 IRQ_TYPE_LEVEL_HIGH>,
948 <GIC_SPI 19 IRQ_TYPE_LEVEL_HIGH>,
949 <GIC_SPI 20 IRQ_TYPE_LEVEL_HIGH>,
950 <GIC_SPI 21 IRQ_TYPE_LEVEL_HIGH>,
951 <GIC_SPI 22 IRQ_TYPE_LEVEL_HIGH>,
952 <GIC_SPI 23 IRQ_TYPE_LEVEL_HIGH>;
957 wdt: watchdog@6000ca0 {
958 compatible = "allwinner,sun6i-a31-wdt";
959 reg = <0x06000ca0 0x20>;
960 interrupts = <GIC_SPI 24 IRQ_TYPE_LEVEL_HIGH>;
964 pio: pinctrl@6000800 {
965 compatible = "allwinner,sun9i-a80-pinctrl";
966 reg = <0x06000800 0x400>;
967 interrupts = <GIC_SPI 11 IRQ_TYPE_LEVEL_HIGH>,
968 <GIC_SPI 15 IRQ_TYPE_LEVEL_HIGH>,
969 <GIC_SPI 16 IRQ_TYPE_LEVEL_HIGH>,
970 <GIC_SPI 17 IRQ_TYPE_LEVEL_HIGH>,
971 <GIC_SPI 120 IRQ_TYPE_LEVEL_HIGH>;
972 clocks = <&ccu CLK_BUS_PIO>, <&osc24M>, <&osc32k>;
973 clock-names = "apb", "hosc", "losc";
975 interrupt-controller;
976 #interrupt-cells = <3>;
979 gmac_rgmii_pins: gmac-rgmii-pins {
980 pins = "PA0", "PA1", "PA2", "PA3", "PA4", "PA5",
981 "PA7", "PA8", "PA9", "PA10", "PA12",
982 "PA13", "PA15", "PA16", "PA17";
985 * data lines in RGMII mode use DDR mode
986 * and need a higher signal drive strength
988 drive-strength = <40>;
991 i2c3_pins: i2c3-pins {
992 pins = "PG10", "PG11";
996 lcd0_rgb888_pins: lcd0-rgb888-pins {
997 pins = "PD0", "PD1", "PD2", "PD3",
998 "PD4", "PD5", "PD6", "PD7",
999 "PD8", "PD9", "PD10", "PD11",
1000 "PD12", "PD13", "PD14", "PD15",
1001 "PD16", "PD17", "PD18", "PD19",
1002 "PD20", "PD21", "PD22", "PD23",
1003 "PD24", "PD25", "PD26", "PD27";
1007 mmc0_pins: mmc0-pins {
1008 pins = "PF0", "PF1" ,"PF2", "PF3",
1011 drive-strength = <30>;
1015 mmc1_pins: mmc1-pins {
1016 pins = "PG0", "PG1" ,"PG2", "PG3",
1019 drive-strength = <30>;
1023 mmc2_8bit_pins: mmc2-8bit-pins {
1024 pins = "PC6", "PC7", "PC8", "PC9",
1025 "PC10", "PC11", "PC12",
1026 "PC13", "PC14", "PC15",
1029 drive-strength = <30>;
1033 uart0_ph_pins: uart0-ph-pins {
1034 pins = "PH12", "PH13";
1038 uart4_pins: uart4-pins {
1039 pins = "PG12", "PG13", "PG14", "PG15";
1044 uart0: serial@7000000 {
1045 compatible = "snps,dw-apb-uart";
1046 reg = <0x07000000 0x400>;
1047 interrupts = <GIC_SPI 0 IRQ_TYPE_LEVEL_HIGH>;
1050 clocks = <&ccu CLK_BUS_UART0>;
1051 resets = <&ccu RST_BUS_UART0>;
1052 status = "disabled";
1055 uart1: serial@7000400 {
1056 compatible = "snps,dw-apb-uart";
1057 reg = <0x07000400 0x400>;
1058 interrupts = <GIC_SPI 1 IRQ_TYPE_LEVEL_HIGH>;
1061 clocks = <&ccu CLK_BUS_UART1>;
1062 resets = <&ccu RST_BUS_UART1>;
1063 status = "disabled";
1066 uart2: serial@7000800 {
1067 compatible = "snps,dw-apb-uart";
1068 reg = <0x07000800 0x400>;
1069 interrupts = <GIC_SPI 2 IRQ_TYPE_LEVEL_HIGH>;
1072 clocks = <&ccu CLK_BUS_UART2>;
1073 resets = <&ccu RST_BUS_UART2>;
1074 status = "disabled";
1077 uart3: serial@7000c00 {
1078 compatible = "snps,dw-apb-uart";
1079 reg = <0x07000c00 0x400>;
1080 interrupts = <GIC_SPI 3 IRQ_TYPE_LEVEL_HIGH>;
1083 clocks = <&ccu CLK_BUS_UART3>;
1084 resets = <&ccu RST_BUS_UART3>;
1085 status = "disabled";
1088 uart4: serial@7001000 {
1089 compatible = "snps,dw-apb-uart";
1090 reg = <0x07001000 0x400>;
1091 interrupts = <GIC_SPI 4 IRQ_TYPE_LEVEL_HIGH>;
1094 clocks = <&ccu CLK_BUS_UART4>;
1095 resets = <&ccu RST_BUS_UART4>;
1096 status = "disabled";
1099 uart5: serial@7001400 {
1100 compatible = "snps,dw-apb-uart";
1101 reg = <0x07001400 0x400>;
1102 interrupts = <GIC_SPI 5 IRQ_TYPE_LEVEL_HIGH>;
1105 clocks = <&ccu CLK_BUS_UART5>;
1106 resets = <&ccu RST_BUS_UART5>;
1107 status = "disabled";
1111 compatible = "allwinner,sun6i-a31-i2c";
1112 reg = <0x07002800 0x400>;
1113 interrupts = <GIC_SPI 6 IRQ_TYPE_LEVEL_HIGH>;
1114 clocks = <&ccu CLK_BUS_I2C0>;
1115 resets = <&ccu RST_BUS_I2C0>;
1116 status = "disabled";
1117 #address-cells = <1>;
1122 compatible = "allwinner,sun6i-a31-i2c";
1123 reg = <0x07002c00 0x400>;
1124 interrupts = <GIC_SPI 7 IRQ_TYPE_LEVEL_HIGH>;
1125 clocks = <&ccu CLK_BUS_I2C1>;
1126 resets = <&ccu RST_BUS_I2C1>;
1127 status = "disabled";
1128 #address-cells = <1>;
1133 compatible = "allwinner,sun6i-a31-i2c";
1134 reg = <0x07003000 0x400>;
1135 interrupts = <GIC_SPI 8 IRQ_TYPE_LEVEL_HIGH>;
1136 clocks = <&ccu CLK_BUS_I2C2>;
1137 resets = <&ccu RST_BUS_I2C2>;
1138 status = "disabled";
1139 #address-cells = <1>;
1144 compatible = "allwinner,sun6i-a31-i2c";
1145 reg = <0x07003400 0x400>;
1146 interrupts = <GIC_SPI 9 IRQ_TYPE_LEVEL_HIGH>;
1147 clocks = <&ccu CLK_BUS_I2C3>;
1148 resets = <&ccu RST_BUS_I2C3>;
1149 status = "disabled";
1150 #address-cells = <1>;
1155 compatible = "allwinner,sun6i-a31-i2c";
1156 reg = <0x07003800 0x400>;
1157 interrupts = <GIC_SPI 10 IRQ_TYPE_LEVEL_HIGH>;
1158 clocks = <&ccu CLK_BUS_I2C4>;
1159 resets = <&ccu RST_BUS_I2C4>;
1160 status = "disabled";
1161 #address-cells = <1>;
1165 r_wdt: watchdog@8001000 {
1166 compatible = "allwinner,sun6i-a31-wdt";
1167 reg = <0x08001000 0x20>;
1168 interrupts = <GIC_SPI 36 IRQ_TYPE_LEVEL_HIGH>;
1173 compatible = "allwinner,sun9i-a80-prcm";
1174 reg = <0x08001400 0x200>;
1177 apbs_rst: reset@80014b0 {
1178 reg = <0x080014b0 0x4>;
1179 compatible = "allwinner,sun6i-a31-clock-reset";
1183 nmi_intc: interrupt-controller@80015a0 {
1184 compatible = "allwinner,sun9i-a80-nmi";
1185 interrupt-controller;
1186 #interrupt-cells = <2>;
1187 reg = <0x080015a0 0xc>;
1188 interrupts = <GIC_SPI 32 IRQ_TYPE_LEVEL_HIGH>;
1192 compatible = "allwinner,sun6i-a31-ir";
1193 interrupts = <GIC_SPI 37 IRQ_TYPE_LEVEL_HIGH>;
1194 pinctrl-names = "default";
1195 pinctrl-0 = <&r_ir_pins>;
1196 clocks = <&apbs_gates 1>, <&r_ir_clk>;
1197 clock-names = "apb", "ir";
1198 resets = <&apbs_rst 1>;
1199 reg = <0x08002000 0x40>;
1200 status = "disabled";
1203 r_uart: serial@8002800 {
1204 compatible = "snps,dw-apb-uart";
1205 reg = <0x08002800 0x400>;
1206 interrupts = <GIC_SPI 38 IRQ_TYPE_LEVEL_HIGH>;
1209 clocks = <&apbs_gates 4>;
1210 resets = <&apbs_rst 4>;
1211 status = "disabled";
1214 r_pio: pinctrl@8002c00 {
1215 compatible = "allwinner,sun9i-a80-r-pinctrl";
1216 reg = <0x08002c00 0x400>;
1217 interrupts = <GIC_SPI 45 IRQ_TYPE_LEVEL_HIGH>,
1218 <GIC_SPI 46 IRQ_TYPE_LEVEL_HIGH>;
1219 clocks = <&apbs_gates 0>, <&osc24M>, <&osc32k>;
1220 clock-names = "apb", "hosc", "losc";
1222 interrupt-controller;
1223 #interrupt-cells = <3>;
1226 r_ir_pins: r-ir-pins {
1228 function = "s_cir_rx";
1231 r_rsb_pins: r-rsb-pins {
1232 pins = "PN0", "PN1";
1234 drive-strength = <20>;
1239 r_rsb: rsb@8003400 {
1240 compatible = "allwinner,sun8i-a23-rsb";
1241 reg = <0x08003400 0x400>;
1242 interrupts = <GIC_SPI 39 IRQ_TYPE_LEVEL_HIGH>;
1243 clocks = <&apbs_gates 3>;
1244 clock-frequency = <3000000>;
1245 resets = <&apbs_rst 3>;
1246 pinctrl-names = "default";
1247 pinctrl-0 = <&r_rsb_pins>;
1248 status = "disabled";
1249 #address-cells = <1>;