2 * Copyright 2015 Vishnu Patekar
4 * Vishnu Patekar <vishnupatekar0510@gmail.com>
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/sun8i-a83t-ccu.h>
48 #include <dt-bindings/clock/sun8i-de2.h>
49 #include <dt-bindings/clock/sun8i-r-ccu.h>
50 #include <dt-bindings/reset/sun8i-a83t-ccu.h>
51 #include <dt-bindings/reset/sun8i-de2.h>
52 #include <dt-bindings/reset/sun8i-r-ccu.h>
53 #include <dt-bindings/thermal/thermal.h>
56 interrupt-parent = <&gic>;
65 compatible = "arm,cortex-a7";
67 clocks = <&ccu CLK_C0CPUX>;
68 operating-points-v2 = <&cpu0_opp_table>;
69 cci-control-port = <&cci_control0>;
70 enable-method = "allwinner,sun8i-a83t-smp";
76 compatible = "arm,cortex-a7";
78 clocks = <&ccu CLK_C0CPUX>;
79 operating-points-v2 = <&cpu0_opp_table>;
80 cci-control-port = <&cci_control0>;
81 enable-method = "allwinner,sun8i-a83t-smp";
87 compatible = "arm,cortex-a7";
89 clocks = <&ccu CLK_C0CPUX>;
90 operating-points-v2 = <&cpu0_opp_table>;
91 cci-control-port = <&cci_control0>;
92 enable-method = "allwinner,sun8i-a83t-smp";
98 compatible = "arm,cortex-a7";
100 clocks = <&ccu CLK_C0CPUX>;
101 operating-points-v2 = <&cpu0_opp_table>;
102 cci-control-port = <&cci_control0>;
103 enable-method = "allwinner,sun8i-a83t-smp";
105 #cooling-cells = <2>;
109 compatible = "arm,cortex-a7";
111 clocks = <&ccu CLK_C1CPUX>;
112 operating-points-v2 = <&cpu1_opp_table>;
113 cci-control-port = <&cci_control1>;
114 enable-method = "allwinner,sun8i-a83t-smp";
116 #cooling-cells = <2>;
120 compatible = "arm,cortex-a7";
122 clocks = <&ccu CLK_C1CPUX>;
123 operating-points-v2 = <&cpu1_opp_table>;
124 cci-control-port = <&cci_control1>;
125 enable-method = "allwinner,sun8i-a83t-smp";
127 #cooling-cells = <2>;
131 compatible = "arm,cortex-a7";
133 clocks = <&ccu CLK_C1CPUX>;
134 operating-points-v2 = <&cpu1_opp_table>;
135 cci-control-port = <&cci_control1>;
136 enable-method = "allwinner,sun8i-a83t-smp";
138 #cooling-cells = <2>;
142 compatible = "arm,cortex-a7";
144 clocks = <&ccu CLK_C1CPUX>;
145 operating-points-v2 = <&cpu1_opp_table>;
146 cci-control-port = <&cci_control1>;
147 enable-method = "allwinner,sun8i-a83t-smp";
149 #cooling-cells = <2>;
154 compatible = "arm,armv7-timer";
155 interrupts = <GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(8) | IRQ_TYPE_LEVEL_LOW)>,
156 <GIC_PPI 14 (GIC_CPU_MASK_SIMPLE(8) | IRQ_TYPE_LEVEL_LOW)>,
157 <GIC_PPI 11 (GIC_CPU_MASK_SIMPLE(8) | IRQ_TYPE_LEVEL_LOW)>,
158 <GIC_PPI 10 (GIC_CPU_MASK_SIMPLE(8) | IRQ_TYPE_LEVEL_LOW)>;
162 #address-cells = <1>;
166 /* TODO: PRCM block has a mux for this. */
169 compatible = "fixed-clock";
170 clock-frequency = <24000000>;
171 clock-accuracy = <50000>;
172 clock-output-names = "osc24M";
176 * This is called "internal OSC" in some places.
177 * It is an internal RC-based oscillator.
178 * TODO: Its controls are in the PRCM block.
182 compatible = "fixed-clock";
183 clock-frequency = <16000000>;
184 clock-output-names = "osc16M";
187 osc16Md512: osc16Md512_clk {
189 compatible = "fixed-factor-clock";
193 clock-output-names = "osc16M-d512";
198 compatible = "allwinner,sun8i-a83t-display-engine";
199 allwinner,pipelines = <&mixer0>, <&mixer1>;
203 cpu0_opp_table: opp_table0 {
204 compatible = "operating-points-v2";
208 opp-hz = /bits/ 64 <480000000>;
209 opp-microvolt = <840000>;
210 clock-latency-ns = <244144>; /* 8 32k periods */
214 opp-hz = /bits/ 64 <600000000>;
215 opp-microvolt = <840000>;
216 clock-latency-ns = <244144>; /* 8 32k periods */
220 opp-hz = /bits/ 64 <720000000>;
221 opp-microvolt = <840000>;
222 clock-latency-ns = <244144>; /* 8 32k periods */
226 opp-hz = /bits/ 64 <864000000>;
227 opp-microvolt = <840000>;
228 clock-latency-ns = <244144>; /* 8 32k periods */
232 opp-hz = /bits/ 64 <912000000>;
233 opp-microvolt = <840000>;
234 clock-latency-ns = <244144>; /* 8 32k periods */
238 opp-hz = /bits/ 64 <1008000000>;
239 opp-microvolt = <840000>;
240 clock-latency-ns = <244144>; /* 8 32k periods */
244 opp-hz = /bits/ 64 <1128000000>;
245 opp-microvolt = <840000>;
246 clock-latency-ns = <244144>; /* 8 32k periods */
250 opp-hz = /bits/ 64 <1200000000>;
251 opp-microvolt = <840000>;
252 clock-latency-ns = <244144>; /* 8 32k periods */
256 cpu1_opp_table: opp_table1 {
257 compatible = "operating-points-v2";
261 opp-hz = /bits/ 64 <480000000>;
262 opp-microvolt = <840000>;
263 clock-latency-ns = <244144>; /* 8 32k periods */
267 opp-hz = /bits/ 64 <600000000>;
268 opp-microvolt = <840000>;
269 clock-latency-ns = <244144>; /* 8 32k periods */
273 opp-hz = /bits/ 64 <720000000>;
274 opp-microvolt = <840000>;
275 clock-latency-ns = <244144>; /* 8 32k periods */
279 opp-hz = /bits/ 64 <864000000>;
280 opp-microvolt = <840000>;
281 clock-latency-ns = <244144>; /* 8 32k periods */
285 opp-hz = /bits/ 64 <912000000>;
286 opp-microvolt = <840000>;
287 clock-latency-ns = <244144>; /* 8 32k periods */
291 opp-hz = /bits/ 64 <1008000000>;
292 opp-microvolt = <840000>;
293 clock-latency-ns = <244144>; /* 8 32k periods */
297 opp-hz = /bits/ 64 <1128000000>;
298 opp-microvolt = <840000>;
299 clock-latency-ns = <244144>; /* 8 32k periods */
303 opp-hz = /bits/ 64 <1200000000>;
304 opp-microvolt = <840000>;
305 clock-latency-ns = <244144>; /* 8 32k periods */
310 compatible = "simple-bus";
311 #address-cells = <1>;
315 display_clocks: clock@1000000 {
316 compatible = "allwinner,sun8i-a83t-de2-clk";
317 reg = <0x01000000 0x100000>;
318 clocks = <&ccu CLK_BUS_DE>,
322 resets = <&ccu RST_BUS_DE>;
327 mixer0: mixer@1100000 {
328 compatible = "allwinner,sun8i-a83t-de2-mixer-0";
329 reg = <0x01100000 0x100000>;
330 clocks = <&display_clocks CLK_BUS_MIXER0>,
331 <&display_clocks CLK_MIXER0>;
334 resets = <&display_clocks RST_MIXER0>;
337 #address-cells = <1>;
341 #address-cells = <1>;
345 mixer0_out_tcon0: endpoint@0 {
347 remote-endpoint = <&tcon0_in_mixer0>;
350 mixer0_out_tcon1: endpoint@1 {
352 remote-endpoint = <&tcon1_in_mixer0>;
358 mixer1: mixer@1200000 {
359 compatible = "allwinner,sun8i-a83t-de2-mixer-1";
360 reg = <0x01200000 0x100000>;
361 clocks = <&display_clocks CLK_BUS_MIXER1>,
362 <&display_clocks CLK_MIXER1>;
365 resets = <&display_clocks RST_WB>;
368 #address-cells = <1>;
372 #address-cells = <1>;
376 mixer1_out_tcon0: endpoint@0 {
378 remote-endpoint = <&tcon0_in_mixer1>;
381 mixer1_out_tcon1: endpoint@1 {
383 remote-endpoint = <&tcon1_in_mixer1>;
390 compatible = "allwinner,sun8i-a83t-cpucfg";
391 reg = <0x01700000 0x400>;
395 compatible = "arm,cci-400";
396 #address-cells = <1>;
398 reg = <0x01790000 0x10000>;
399 ranges = <0x0 0x01790000 0x10000>;
401 cci_control0: slave-if@4000 {
402 compatible = "arm,cci-400-ctrl-if";
403 interface-type = "ace";
404 reg = <0x4000 0x1000>;
407 cci_control1: slave-if@5000 {
408 compatible = "arm,cci-400-ctrl-if";
409 interface-type = "ace";
410 reg = <0x5000 0x1000>;
414 compatible = "arm,cci-400-pmu,r1";
415 reg = <0x9000 0x5000>;
416 interrupts = <GIC_SPI 132 IRQ_TYPE_LEVEL_HIGH>,
417 <GIC_SPI 133 IRQ_TYPE_LEVEL_HIGH>,
418 <GIC_SPI 134 IRQ_TYPE_LEVEL_HIGH>,
419 <GIC_SPI 135 IRQ_TYPE_LEVEL_HIGH>,
420 <GIC_SPI 151 IRQ_TYPE_LEVEL_HIGH>,
421 <GIC_SPI 152 IRQ_TYPE_LEVEL_HIGH>,
422 <GIC_SPI 153 IRQ_TYPE_LEVEL_HIGH>,
423 <GIC_SPI 154 IRQ_TYPE_LEVEL_HIGH>;
427 syscon: syscon@1c00000 {
428 compatible = "allwinner,sun8i-a83t-system-controller",
430 reg = <0x01c00000 0x1000>;
433 dma: dma-controller@1c02000 {
434 compatible = "allwinner,sun8i-a83t-dma";
435 reg = <0x01c02000 0x1000>;
436 interrupts = <GIC_SPI 50 IRQ_TYPE_LEVEL_HIGH>;
437 clocks = <&ccu CLK_BUS_DMA>;
438 resets = <&ccu RST_BUS_DMA>;
442 tcon0: lcd-controller@1c0c000 {
443 compatible = "allwinner,sun8i-a83t-tcon-lcd";
444 reg = <0x01c0c000 0x1000>;
445 interrupts = <GIC_SPI 86 IRQ_TYPE_LEVEL_HIGH>;
446 clocks = <&ccu CLK_BUS_TCON0>, <&ccu CLK_TCON0>;
447 clock-names = "ahb", "tcon-ch0";
448 clock-output-names = "tcon-pixel-clock";
450 resets = <&ccu RST_BUS_TCON0>, <&ccu RST_BUS_LVDS>;
451 reset-names = "lcd", "lvds";
454 #address-cells = <1>;
458 #address-cells = <1>;
462 tcon0_in_mixer0: endpoint@0 {
464 remote-endpoint = <&mixer0_out_tcon0>;
467 tcon0_in_mixer1: endpoint@1 {
469 remote-endpoint = <&mixer1_out_tcon0>;
479 tcon1: lcd-controller@1c0d000 {
480 compatible = "allwinner,sun8i-a83t-tcon-tv";
481 reg = <0x01c0d000 0x1000>;
482 interrupts = <GIC_SPI 87 IRQ_TYPE_LEVEL_HIGH>;
483 clocks = <&ccu CLK_BUS_TCON1>, <&ccu CLK_TCON1>;
484 clock-names = "ahb", "tcon-ch1";
485 resets = <&ccu RST_BUS_TCON1>;
489 #address-cells = <1>;
493 #address-cells = <1>;
497 tcon1_in_mixer0: endpoint@0 {
499 remote-endpoint = <&mixer0_out_tcon1>;
502 tcon1_in_mixer1: endpoint@1 {
504 remote-endpoint = <&mixer1_out_tcon1>;
509 #address-cells = <1>;
513 tcon1_out_hdmi: endpoint@1 {
515 remote-endpoint = <&hdmi_in_tcon1>;
522 compatible = "allwinner,sun8i-a83t-mmc",
523 "allwinner,sun7i-a20-mmc";
524 reg = <0x01c0f000 0x1000>;
525 clocks = <&ccu CLK_BUS_MMC0>,
527 <&ccu CLK_MMC0_OUTPUT>,
528 <&ccu CLK_MMC0_SAMPLE>;
533 resets = <&ccu RST_BUS_MMC0>;
535 interrupts = <GIC_SPI 60 IRQ_TYPE_LEVEL_HIGH>;
537 #address-cells = <1>;
542 compatible = "allwinner,sun8i-a83t-mmc",
543 "allwinner,sun7i-a20-mmc";
544 reg = <0x01c10000 0x1000>;
545 clocks = <&ccu CLK_BUS_MMC1>,
547 <&ccu CLK_MMC1_OUTPUT>,
548 <&ccu CLK_MMC1_SAMPLE>;
553 resets = <&ccu RST_BUS_MMC1>;
555 interrupts = <GIC_SPI 61 IRQ_TYPE_LEVEL_HIGH>;
556 pinctrl-names = "default";
557 pinctrl-0 = <&mmc1_pins>;
559 #address-cells = <1>;
564 compatible = "allwinner,sun8i-a83t-emmc";
565 reg = <0x01c11000 0x1000>;
566 clocks = <&ccu CLK_BUS_MMC2>,
568 <&ccu CLK_MMC2_OUTPUT>,
569 <&ccu CLK_MMC2_SAMPLE>;
574 resets = <&ccu RST_BUS_MMC2>;
576 interrupts = <GIC_SPI 62 IRQ_TYPE_LEVEL_HIGH>;
578 #address-cells = <1>;
582 sid: eeprom@1c14000 {
583 compatible = "allwinner,sun8i-a83t-sid";
584 reg = <0x1c14000 0x400>;
585 #address-cells = <1>;
588 ths_calibration: thermal-sensor-calibration@34 {
593 crypto: crypto@1c15000 {
594 compatible = "allwinner,sun8i-a83t-crypto";
595 reg = <0x01c15000 0x1000>;
596 interrupts = <GIC_SPI 80 IRQ_TYPE_LEVEL_HIGH>;
597 resets = <&ccu RST_BUS_SS>;
598 clocks = <&ccu CLK_BUS_SS>, <&ccu CLK_SS>;
599 clock-names = "bus", "mod";
602 usb_otg: usb@1c19000 {
603 compatible = "allwinner,sun8i-a83t-musb",
604 "allwinner,sun8i-a33-musb";
605 reg = <0x01c19000 0x0400>;
606 clocks = <&ccu CLK_BUS_OTG>;
607 resets = <&ccu RST_BUS_OTG>;
608 interrupts = <GIC_SPI 71 IRQ_TYPE_LEVEL_HIGH>;
609 interrupt-names = "mc";
612 extcon = <&usbphy 0>;
617 usbphy: phy@1c19400 {
618 compatible = "allwinner,sun8i-a83t-usb-phy";
619 reg = <0x01c19400 0x10>,
622 reg-names = "phy_ctrl",
625 clocks = <&ccu CLK_USB_PHY0>,
628 <&ccu CLK_USB_HSIC_12M>;
629 clock-names = "usb0_phy",
633 resets = <&ccu RST_USB_PHY0>,
636 reset-names = "usb0_reset",
644 compatible = "allwinner,sun8i-a83t-ehci",
646 reg = <0x01c1a000 0x100>;
647 interrupts = <GIC_SPI 72 IRQ_TYPE_LEVEL_HIGH>;
648 clocks = <&ccu CLK_BUS_EHCI0>;
649 resets = <&ccu RST_BUS_EHCI0>;
656 compatible = "allwinner,sun8i-a83t-ohci",
658 reg = <0x01c1a400 0x100>;
659 interrupts = <GIC_SPI 73 IRQ_TYPE_LEVEL_HIGH>;
660 clocks = <&ccu CLK_BUS_OHCI0>, <&ccu CLK_USB_OHCI0>;
661 resets = <&ccu RST_BUS_OHCI0>;
668 compatible = "allwinner,sun8i-a83t-ehci",
670 reg = <0x01c1b000 0x100>;
671 interrupts = <GIC_SPI 74 IRQ_TYPE_LEVEL_HIGH>;
672 clocks = <&ccu CLK_BUS_EHCI1>;
673 resets = <&ccu RST_BUS_EHCI1>;
680 compatible = "allwinner,sun8i-a83t-ccu";
681 reg = <0x01c20000 0x400>;
682 clocks = <&osc24M>, <&osc16Md512>;
683 clock-names = "hosc", "losc";
688 pio: pinctrl@1c20800 {
689 compatible = "allwinner,sun8i-a83t-pinctrl";
690 interrupts = <GIC_SPI 15 IRQ_TYPE_LEVEL_HIGH>,
691 <GIC_SPI 17 IRQ_TYPE_LEVEL_HIGH>,
692 <GIC_SPI 100 IRQ_TYPE_LEVEL_HIGH>;
693 reg = <0x01c20800 0x400>;
694 clocks = <&ccu CLK_BUS_PIO>, <&osc24M>, <&osc16Md512>;
695 clock-names = "apb", "hosc", "losc";
697 interrupt-controller;
698 #interrupt-cells = <3>;
702 csi_8bit_parallel_pins: csi-8bit-parallel-pins {
703 pins = "PE0", "PE2", "PE3", "PE6", "PE7",
704 "PE8", "PE9", "PE10", "PE11",
710 csi_mclk_pin: csi-mclk-pin {
715 emac_rgmii_pins: emac-rgmii-pins {
716 pins = "PD2", "PD3", "PD4", "PD5", "PD6", "PD7",
717 "PD11", "PD12", "PD13", "PD14", "PD18",
718 "PD19", "PD21", "PD22", "PD23";
721 * data lines in RGMII mode use DDR mode
722 * and need a higher signal drive strength
724 drive-strength = <40>;
727 hdmi_pins: hdmi-pins {
728 pins = "PH6", "PH7", "PH8";
732 i2c0_pins: i2c0-pins {
737 i2c1_pins: i2c1-pins {
743 i2c2_pe_pins: i2c2-pe-pins {
744 pins = "PE14", "PE15";
748 i2c2_ph_pins: i2c2-ph-pins {
753 i2s1_pins: i2s1-pins {
754 /* I2S1 does not have external MCLK pin */
755 pins = "PG10", "PG11", "PG12", "PG13";
759 lcd_lvds_pins: lcd-lvds-pins {
760 pins = "PD18", "PD19", "PD20", "PD21", "PD22",
761 "PD23", "PD24", "PD25", "PD26", "PD27";
765 mmc0_pins: mmc0-pins {
766 pins = "PF0", "PF1", "PF2",
769 drive-strength = <30>;
773 mmc1_pins: mmc1-pins {
774 pins = "PG0", "PG1", "PG2",
777 drive-strength = <30>;
781 mmc2_8bit_emmc_pins: mmc2-8bit-emmc-pins {
782 pins = "PC5", "PC6", "PC8", "PC9",
783 "PC10", "PC11", "PC12", "PC13",
784 "PC14", "PC15", "PC16";
786 drive-strength = <30>;
795 spdif_tx_pin: spdif-tx-pin {
800 uart0_pb_pins: uart0-pb-pins {
801 pins = "PB9", "PB10";
805 uart0_pf_pins: uart0-pf-pins {
810 uart1_pins: uart1-pins {
815 uart1_rts_cts_pins: uart1-rts-cts-pins {
821 uart2_pb_pins: uart2-pb-pins {
828 compatible = "allwinner,sun8i-a23-timer";
829 reg = <0x01c20c00 0xa0>;
830 interrupts = <GIC_SPI 18 IRQ_TYPE_LEVEL_HIGH>,
831 <GIC_SPI 19 IRQ_TYPE_LEVEL_HIGH>;
836 compatible = "allwinner,sun6i-a31-wdt";
837 reg = <0x01c20ca0 0x20>;
838 interrupts = <GIC_SPI 25 IRQ_TYPE_LEVEL_HIGH>;
842 spdif: spdif@1c21000 {
843 #sound-dai-cells = <0>;
844 compatible = "allwinner,sun8i-a83t-spdif",
845 "allwinner,sun8i-h3-spdif";
846 reg = <0x01c21000 0x400>;
847 interrupts = <GIC_SPI 12 IRQ_TYPE_LEVEL_HIGH>;
848 clocks = <&ccu CLK_BUS_SPDIF>, <&ccu CLK_SPDIF>;
849 resets = <&ccu RST_BUS_SPDIF>;
850 clock-names = "apb", "spdif";
853 pinctrl-names = "default";
854 pinctrl-0 = <&spdif_tx_pin>;
859 #sound-dai-cells = <0>;
860 compatible = "allwinner,sun8i-a83t-i2s";
861 reg = <0x01c22000 0x400>;
862 interrupts = <GIC_SPI 13 IRQ_TYPE_LEVEL_HIGH>;
863 clocks = <&ccu CLK_BUS_I2S0>, <&ccu CLK_I2S0>;
864 clock-names = "apb", "mod";
865 dmas = <&dma 3>, <&dma 3>;
866 resets = <&ccu RST_BUS_I2S0>;
867 dma-names = "rx", "tx";
872 #sound-dai-cells = <0>;
873 compatible = "allwinner,sun8i-a83t-i2s";
874 reg = <0x01c22400 0x400>;
875 interrupts = <GIC_SPI 14 IRQ_TYPE_LEVEL_HIGH>;
876 clocks = <&ccu CLK_BUS_I2S1>, <&ccu CLK_I2S1>;
877 clock-names = "apb", "mod";
878 dmas = <&dma 4>, <&dma 4>;
879 resets = <&ccu RST_BUS_I2S1>;
880 dma-names = "rx", "tx";
881 pinctrl-names = "default";
882 pinctrl-0 = <&i2s1_pins>;
887 #sound-dai-cells = <0>;
888 compatible = "allwinner,sun8i-a83t-i2s";
889 reg = <0x01c22800 0x400>;
890 interrupts = <GIC_SPI 99 IRQ_TYPE_LEVEL_HIGH>;
891 clocks = <&ccu CLK_BUS_I2S2>, <&ccu CLK_I2S2>;
892 clock-names = "apb", "mod";
894 resets = <&ccu RST_BUS_I2S2>;
900 compatible = "allwinner,sun8i-a83t-pwm",
901 "allwinner,sun8i-h3-pwm";
902 reg = <0x01c21400 0x400>;
908 uart0: serial@1c28000 {
909 compatible = "snps,dw-apb-uart";
910 reg = <0x01c28000 0x400>;
911 interrupts = <GIC_SPI 0 IRQ_TYPE_LEVEL_HIGH>;
914 clocks = <&ccu CLK_BUS_UART0>;
915 resets = <&ccu RST_BUS_UART0>;
919 uart1: serial@1c28400 {
920 compatible = "snps,dw-apb-uart";
921 reg = <0x01c28400 0x400>;
922 interrupts = <GIC_SPI 1 IRQ_TYPE_LEVEL_HIGH>;
925 clocks = <&ccu CLK_BUS_UART1>;
926 resets = <&ccu RST_BUS_UART1>;
930 uart2: serial@1c28800 {
931 compatible = "snps,dw-apb-uart";
932 reg = <0x01c28800 0x400>;
933 interrupts = <GIC_SPI 2 IRQ_TYPE_LEVEL_HIGH>;
936 clocks = <&ccu CLK_BUS_UART2>;
937 resets = <&ccu RST_BUS_UART2>;
941 uart3: serial@1c28c00 {
942 compatible = "snps,dw-apb-uart";
943 reg = <0x01c28c00 0x400>;
944 interrupts = <GIC_SPI 3 IRQ_TYPE_LEVEL_HIGH>;
947 clocks = <&ccu CLK_BUS_UART3>;
948 resets = <&ccu RST_BUS_UART3>;
952 uart4: serial@1c29000 {
953 compatible = "snps,dw-apb-uart";
954 reg = <0x01c29000 0x400>;
955 interrupts = <GIC_SPI 4 IRQ_TYPE_LEVEL_HIGH>;
958 clocks = <&ccu CLK_BUS_UART4>;
959 resets = <&ccu RST_BUS_UART4>;
964 compatible = "allwinner,sun8i-a83t-i2c",
965 "allwinner,sun6i-a31-i2c";
966 reg = <0x01c2ac00 0x400>;
967 interrupts = <GIC_SPI 6 IRQ_TYPE_LEVEL_HIGH>;
968 clocks = <&ccu CLK_BUS_I2C0>;
969 resets = <&ccu RST_BUS_I2C0>;
970 pinctrl-names = "default";
971 pinctrl-0 = <&i2c0_pins>;
973 #address-cells = <1>;
978 compatible = "allwinner,sun8i-a83t-i2c",
979 "allwinner,sun6i-a31-i2c";
980 reg = <0x01c2b000 0x400>;
981 interrupts = <GIC_SPI 7 IRQ_TYPE_LEVEL_HIGH>;
982 clocks = <&ccu CLK_BUS_I2C1>;
983 resets = <&ccu RST_BUS_I2C1>;
984 pinctrl-names = "default";
985 pinctrl-0 = <&i2c1_pins>;
987 #address-cells = <1>;
992 compatible = "allwinner,sun8i-a83t-i2c",
993 "allwinner,sun6i-a31-i2c";
994 reg = <0x01c2b400 0x400>;
995 interrupts = <GIC_SPI 8 IRQ_TYPE_LEVEL_HIGH>;
996 clocks = <&ccu CLK_BUS_I2C2>;
997 resets = <&ccu RST_BUS_I2C2>;
999 #address-cells = <1>;
1003 emac: ethernet@1c30000 {
1004 compatible = "allwinner,sun8i-a83t-emac";
1006 reg = <0x01c30000 0x104>;
1007 interrupts = <GIC_SPI 82 IRQ_TYPE_LEVEL_HIGH>;
1008 interrupt-names = "macirq";
1009 resets = <&ccu CLK_BUS_EMAC>;
1010 reset-names = "stmmaceth";
1011 clocks = <&ccu RST_BUS_EMAC>;
1012 clock-names = "stmmaceth";
1013 status = "disabled";
1016 compatible = "snps,dwmac-mdio";
1017 #address-cells = <1>;
1022 gic: interrupt-controller@1c81000 {
1023 compatible = "arm,gic-400";
1024 reg = <0x01c81000 0x1000>,
1025 <0x01c82000 0x2000>,
1026 <0x01c84000 0x2000>,
1027 <0x01c86000 0x2000>;
1028 interrupt-controller;
1029 #interrupt-cells = <3>;
1030 interrupts = <GIC_PPI 9 (GIC_CPU_MASK_SIMPLE(8) | IRQ_TYPE_LEVEL_HIGH)>;
1033 csi: camera@1cb0000 {
1034 compatible = "allwinner,sun8i-a83t-csi";
1035 reg = <0x01cb0000 0x1000>;
1036 interrupts = <GIC_SPI 84 IRQ_TYPE_LEVEL_HIGH>;
1037 clocks = <&ccu CLK_BUS_CSI>,
1038 <&ccu CLK_CSI_SCLK>,
1039 <&ccu CLK_DRAM_CSI>;
1040 clock-names = "bus", "mod", "ram";
1041 resets = <&ccu RST_BUS_CSI>;
1042 status = "disabled";
1048 hdmi: hdmi@1ee0000 {
1049 compatible = "allwinner,sun8i-a83t-dw-hdmi";
1050 reg = <0x01ee0000 0x10000>;
1052 interrupts = <GIC_SPI 88 IRQ_TYPE_LEVEL_HIGH>;
1053 clocks = <&ccu CLK_BUS_HDMI>, <&ccu CLK_HDMI_SLOW>,
1055 clock-names = "iahb", "isfr", "tmds";
1056 resets = <&ccu RST_BUS_HDMI1>;
1057 reset-names = "ctrl";
1060 pinctrl-names = "default";
1061 pinctrl-0 = <&hdmi_pins>;
1062 status = "disabled";
1065 #address-cells = <1>;
1071 hdmi_in_tcon1: endpoint {
1072 remote-endpoint = <&tcon1_out_hdmi>;
1082 hdmi_phy: hdmi-phy@1ef0000 {
1083 compatible = "allwinner,sun8i-a83t-hdmi-phy";
1084 reg = <0x01ef0000 0x10000>;
1085 clocks = <&ccu CLK_BUS_HDMI>, <&ccu CLK_HDMI_SLOW>;
1086 clock-names = "bus", "mod";
1087 resets = <&ccu RST_BUS_HDMI0>;
1088 reset-names = "phy";
1092 r_intc: interrupt-controller@1f00c00 {
1093 compatible = "allwinner,sun8i-a83t-r-intc",
1094 "allwinner,sun6i-a31-r-intc";
1095 interrupt-controller;
1096 #interrupt-cells = <2>;
1097 reg = <0x01f00c00 0x400>;
1098 interrupts = <GIC_SPI 32 IRQ_TYPE_LEVEL_HIGH>;
1101 r_ccu: clock@1f01400 {
1102 compatible = "allwinner,sun8i-a83t-r-ccu";
1103 reg = <0x01f01400 0x400>;
1104 clocks = <&osc24M>, <&osc16Md512>, <&osc16M>,
1105 <&ccu CLK_PLL_PERIPH>;
1106 clock-names = "hosc", "losc", "iosc", "pll-periph";
1112 compatible = "allwinner,sun8i-a83t-r-cpucfg";
1113 reg = <0x1f01c00 0x400>;
1117 compatible = "allwinner,sun8i-a83t-ir",
1118 "allwinner,sun6i-a31-ir";
1119 clocks = <&r_ccu CLK_APB0_IR>, <&r_ccu CLK_IR>;
1120 clock-names = "apb", "ir";
1121 resets = <&r_ccu RST_APB0_IR>;
1122 interrupts = <GIC_SPI 37 IRQ_TYPE_LEVEL_HIGH>;
1123 reg = <0x01f02000 0x400>;
1124 pinctrl-names = "default";
1125 pinctrl-0 = <&r_cir_pin>;
1126 status = "disabled";
1129 r_lradc: lradc@1f03c00 {
1130 compatible = "allwinner,sun8i-a83t-r-lradc";
1131 reg = <0x01f03c00 0x100>;
1132 interrupts = <GIC_SPI 42 IRQ_TYPE_LEVEL_HIGH>;
1133 status = "disabled";
1136 r_pio: pinctrl@1f02c00 {
1137 compatible = "allwinner,sun8i-a83t-r-pinctrl";
1138 reg = <0x01f02c00 0x400>;
1139 interrupts = <GIC_SPI 45 IRQ_TYPE_LEVEL_HIGH>;
1140 clocks = <&r_ccu CLK_APB0_PIO>, <&osc24M>,
1142 clock-names = "apb", "hosc", "losc";
1145 interrupt-controller;
1146 #interrupt-cells = <3>;
1148 r_cir_pin: r-cir-pin {
1150 function = "s_cir_rx";
1153 r_rsb_pins: r-rsb-pins {
1154 pins = "PL0", "PL1";
1156 drive-strength = <20>;
1161 r_rsb: rsb@1f03400 {
1162 compatible = "allwinner,sun8i-a83t-rsb",
1163 "allwinner,sun8i-a23-rsb";
1164 reg = <0x01f03400 0x400>;
1165 interrupts = <GIC_SPI 39 IRQ_TYPE_LEVEL_HIGH>;
1166 clocks = <&r_ccu CLK_APB0_RSB>;
1167 clock-frequency = <3000000>;
1168 resets = <&r_ccu RST_APB0_RSB>;
1169 pinctrl-names = "default";
1170 pinctrl-0 = <&r_rsb_pins>;
1171 status = "disabled";
1172 #address-cells = <1>;
1176 ths: thermal-sensor@1f04000 {
1177 compatible = "allwinner,sun8i-a83t-ths";
1178 reg = <0x01f04000 0x100>;
1179 interrupts = <GIC_SPI 41 IRQ_TYPE_LEVEL_HIGH>;
1180 nvmem-cells = <&ths_calibration>;
1181 nvmem-cell-names = "calibration";
1182 #thermal-sensor-cells = <1>;
1187 cpu0_thermal: cpu0-thermal {
1188 polling-delay-passive = <0>;
1189 polling-delay = <0>;
1190 thermal-sensors = <&ths 0>;
1193 cpu1_thermal: cpu1-thermal {
1194 polling-delay-passive = <0>;
1195 polling-delay = <0>;
1196 thermal-sensors = <&ths 1>;
1199 gpu_thermal: gpu-thermal {
1200 polling-delay-passive = <0>;
1201 polling-delay = <0>;
1202 thermal-sensors = <&ths 2>;