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 "skeleton64.dtsi"
47 #include <dt-bindings/interrupt-controller/arm-gic.h>
49 #include <dt-bindings/pinctrl/sun4i-a10.h>
52 interrupt-parent = <&gic>;
59 compatible = "arm,cortex-a7";
65 compatible = "arm,cortex-a7";
71 compatible = "arm,cortex-a7";
77 compatible = "arm,cortex-a7";
83 compatible = "arm,cortex-a15";
89 compatible = "arm,cortex-a15";
95 compatible = "arm,cortex-a15";
101 compatible = "arm,cortex-a15";
108 /* 8GB max. with LPAE */
109 reg = <0 0x20000000 0x02 0>;
113 compatible = "arm,armv7-timer";
114 interrupts = <GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
115 <GIC_PPI 14 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
116 <GIC_PPI 11 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
117 <GIC_PPI 10 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>;
118 clock-frequency = <24000000>;
119 arm,cpu-registers-not-fw-configured;
123 #address-cells = <1>;
126 * map 64 bit address range down to 32 bits,
127 * as the peripherals are all under 512MB.
129 ranges = <0 0 0 0x20000000>;
132 * This clock is actually configurable from the PRCM address
133 * space. The external 24M oscillator can be turned off, and
134 * the clock switched to an internal 16M RC oscillator. Under
135 * normal operation there's no reason to do this, and the
136 * default is to use the external good one, so just model this
137 * as a fixed clock. Also it is not entirely clear if the
138 * osc24M mux in the PRCM affects the entire clock tree, which
139 * would also throw all the PLL clock rates off, or just the
140 * downstream clocks in the PRCM.
144 compatible = "fixed-clock";
145 clock-frequency = <24000000>;
146 clock-output-names = "osc24M";
150 * The 32k clock is from an external source, normally the
151 * AC100 codec/RTC chip. This clock is by default enabled
152 * and clocked at 32768 Hz, from the oscillator connected
153 * to the AC100. It is configurable, but no such driver or
154 * bindings exist yet.
158 compatible = "fixed-clock";
159 clock-frequency = <32768>;
160 clock-output-names = "osc32k";
163 usb_mod_clk: clk@00a08000 {
166 compatible = "allwinner,sun9i-a80-usb-mod-clk";
167 reg = <0x00a08000 0x4>;
168 clocks = <&ahb1_gates 1>;
169 clock-output-names = "usb0_ahb", "usb_ohci0",
170 "usb1_ahb", "usb_ohci1",
171 "usb2_ahb", "usb_ohci2";
174 usb_phy_clk: clk@00a08004 {
177 compatible = "allwinner,sun9i-a80-usb-phy-clk";
178 reg = <0x00a08004 0x4>;
179 clocks = <&ahb1_gates 1>;
180 clock-output-names = "usb_phy0", "usb_hsic1_480M",
181 "usb_phy1", "usb_hsic2_480M",
182 "usb_phy2", "usb_hsic_12M";
186 /* placeholder until implemented */
188 compatible = "fixed-clock";
190 clock-output-names = "pll3";
195 compatible = "allwinner,sun9i-a80-pll4-clk";
196 reg = <0x0600000c 0x4>;
198 clock-output-names = "pll4";
201 pll12: clk@0600002c {
203 compatible = "allwinner,sun9i-a80-pll4-clk";
204 reg = <0x0600002c 0x4>;
206 clock-output-names = "pll12";
209 gt_clk: clk@0600005c {
211 compatible = "allwinner,sun9i-a80-gt-clk";
212 reg = <0x0600005c 0x4>;
213 clocks = <&osc24M>, <&pll4>, <&pll12>, <&pll12>;
214 clock-output-names = "gt";
219 compatible = "allwinner,sun9i-a80-ahb-clk";
220 reg = <0x06000060 0x4>;
221 clocks = <>_clk>, <&pll4>, <&pll12>, <&pll12>;
222 clock-output-names = "ahb0";
227 compatible = "allwinner,sun9i-a80-ahb-clk";
228 reg = <0x06000064 0x4>;
229 clocks = <>_clk>, <&pll4>, <&pll12>, <&pll12>;
230 clock-output-names = "ahb1";
235 compatible = "allwinner,sun9i-a80-ahb-clk";
236 reg = <0x06000068 0x4>;
237 clocks = <>_clk>, <&pll4>, <&pll12>, <&pll12>;
238 clock-output-names = "ahb2";
243 compatible = "allwinner,sun9i-a80-apb0-clk";
244 reg = <0x06000070 0x4>;
245 clocks = <&osc24M>, <&pll4>;
246 clock-output-names = "apb0";
251 compatible = "allwinner,sun9i-a80-apb1-clk";
252 reg = <0x06000074 0x4>;
253 clocks = <&osc24M>, <&pll4>;
254 clock-output-names = "apb1";
257 cci400_clk: clk@06000078 {
259 compatible = "allwinner,sun9i-a80-gt-clk";
260 reg = <0x06000078 0x4>;
261 clocks = <&osc24M>, <&pll4>, <&pll12>, <&pll12>;
262 clock-output-names = "cci400";
265 mmc0_clk: clk@06000410 {
267 compatible = "allwinner,sun9i-a80-mmc-clk";
268 reg = <0x06000410 0x4>;
269 clocks = <&osc24M>, <&pll4>;
270 clock-output-names = "mmc0", "mmc0_output",
274 mmc1_clk: clk@06000414 {
276 compatible = "allwinner,sun9i-a80-mmc-clk";
277 reg = <0x06000414 0x4>;
278 clocks = <&osc24M>, <&pll4>;
279 clock-output-names = "mmc1", "mmc1_output",
283 mmc2_clk: clk@06000418 {
285 compatible = "allwinner,sun9i-a80-mmc-clk";
286 reg = <0x06000418 0x4>;
287 clocks = <&osc24M>, <&pll4>;
288 clock-output-names = "mmc2", "mmc2_output",
292 mmc3_clk: clk@0600041c {
294 compatible = "allwinner,sun9i-a80-mmc-clk";
295 reg = <0x0600041c 0x4>;
296 clocks = <&osc24M>, <&pll4>;
297 clock-output-names = "mmc3", "mmc3_output",
301 ahb0_gates: clk@06000580 {
303 compatible = "allwinner,sun9i-a80-ahb0-gates-clk";
304 reg = <0x06000580 0x4>;
306 clock-indices = <0>, <1>, <3>,
312 clock-output-names = "ahb0_fd", "ahb0_ve", "ahb0_gpu",
313 "ahb0_ss", "ahb0_sd", "ahb0_nand1",
314 "ahb0_nand0", "ahb0_sdram",
315 "ahb0_mipi_hsi", "ahb0_sata", "ahb0_ts",
316 "ahb0_spi0", "ahb0_spi1", "ahb0_spi2",
320 ahb1_gates: clk@06000584 {
322 compatible = "allwinner,sun9i-a80-ahb1-gates-clk";
323 reg = <0x06000584 0x4>;
325 clock-indices = <0>, <1>,
329 clock-output-names = "ahb1_usbotg", "ahb1_usbhci",
330 "ahb1_gmac", "ahb1_msgbox",
331 "ahb1_spinlock", "ahb1_hstimer",
335 ahb2_gates: clk@06000588 {
337 compatible = "allwinner,sun9i-a80-ahb2-gates-clk";
338 reg = <0x06000588 0x4>;
340 clock-indices = <0>, <1>,
343 clock-output-names = "ahb2_lcd0", "ahb2_lcd1",
344 "ahb2_edp", "ahb2_csi", "ahb2_hdmi",
345 "ahb2_de", "ahb2_mp", "ahb2_mipi_dsi";
348 apb0_gates: clk@06000590 {
350 compatible = "allwinner,sun9i-a80-apb0-gates-clk";
351 reg = <0x06000590 0x4>;
353 clock-indices = <1>, <5>,
357 clock-output-names = "apb0_spdif", "apb0_pio",
358 "apb0_ac97", "apb0_i2s0", "apb0_i2s1",
359 "apb0_lradc", "apb0_gpadc", "apb0_twd",
363 apb1_gates: clk@06000594 {
365 compatible = "allwinner,sun9i-a80-apb1-gates-clk";
366 reg = <0x06000594 0x4>;
368 clock-indices = <0>, <1>,
373 clock-output-names = "apb1_i2c0", "apb1_i2c1",
374 "apb1_i2c2", "apb1_i2c3", "apb1_i2c4",
375 "apb1_uart0", "apb1_uart1",
376 "apb1_uart2", "apb1_uart3",
377 "apb1_uart4", "apb1_uart5";
380 cpus_clk: clk@08001410 {
381 compatible = "allwinner,sun9i-a80-cpus-clk";
382 reg = <0x08001410 0x4>;
384 clocks = <&osc32k>, <&osc24M>, <&pll4>, <&pll3>;
385 clock-output-names = "cpus";
389 compatible = "fixed-factor-clock";
393 clocks = <&cpus_clk>;
394 clock-output-names = "ahbs";
398 compatible = "allwinner,sun8i-a23-apb0-clk";
399 reg = <0x0800141c 0x4>;
402 clock-output-names = "apbs";
405 apbs_gates: clk@08001428 {
406 compatible = "allwinner,sun9i-a80-apbs-gates-clk";
407 reg = <0x08001428 0x4>;
410 clock-indices = <0>, <1>,
417 clock-output-names = "apbs_pio", "apbs_ir",
418 "apbs_timer", "apbs_rsb",
419 "apbs_uart", "apbs_1wire",
420 "apbs_i2c0", "apbs_i2c1",
421 "apbs_ps2_0", "apbs_ps2_1",
422 "apbs_dma", "apbs_i2s0",
423 "apbs_i2s1", "apbs_twd";
426 r_1wire_clk: clk@08001450 {
427 reg = <0x08001450 0x4>;
429 compatible = "allwinner,sun4i-a10-mod0-clk";
430 clocks = <&osc32k>, <&osc24M>;
431 clock-output-names = "r_1wire";
434 r_ir_clk: clk@08001454 {
435 reg = <0x08001454 0x4>;
437 compatible = "allwinner,sun4i-a10-mod0-clk";
438 clocks = <&osc32k>, <&osc24M>;
439 clock-output-names = "r_ir";
444 compatible = "simple-bus";
445 #address-cells = <1>;
448 * map 64 bit address range down to 32 bits,
449 * as the peripherals are all under 512MB.
451 ranges = <0 0 0 0x20000000>;
453 ehci0: usb@00a00000 {
454 compatible = "allwinner,sun9i-a80-ehci", "generic-ehci";
455 reg = <0x00a00000 0x100>;
456 interrupts = <GIC_SPI 72 IRQ_TYPE_LEVEL_HIGH>;
457 clocks = <&usb_mod_clk 1>;
458 resets = <&usb_mod_clk 17>;
464 ohci0: usb@00a00400 {
465 compatible = "allwinner,sun9i-a80-ohci", "generic-ohci";
466 reg = <0x00a00400 0x100>;
467 interrupts = <GIC_SPI 73 IRQ_TYPE_LEVEL_HIGH>;
468 clocks = <&usb_mod_clk 1>, <&usb_mod_clk 2>;
469 resets = <&usb_mod_clk 17>;
475 usbphy1: phy@00a00800 {
476 compatible = "allwinner,sun9i-a80-usb-phy";
477 reg = <0x00a00800 0x4>;
478 clocks = <&usb_phy_clk 1>;
480 resets = <&usb_phy_clk 17>;
486 ehci1: usb@00a01000 {
487 compatible = "allwinner,sun9i-a80-ehci", "generic-ehci";
488 reg = <0x00a01000 0x100>;
489 interrupts = <GIC_SPI 74 IRQ_TYPE_LEVEL_HIGH>;
490 clocks = <&usb_mod_clk 3>;
491 resets = <&usb_mod_clk 18>;
497 usbphy2: phy@00a01800 {
498 compatible = "allwinner,sun9i-a80-usb-phy";
499 reg = <0x00a01800 0x4>;
500 clocks = <&usb_phy_clk 2>, <&usb_phy_clk 10>,
502 clock-names = "hsic_480M", "hsic_12M", "phy";
503 resets = <&usb_phy_clk 18>, <&usb_phy_clk 19>;
504 reset-names = "hsic", "phy";
507 /* usb1 is always used with HSIC */
511 ehci2: usb@00a02000 {
512 compatible = "allwinner,sun9i-a80-ehci", "generic-ehci";
513 reg = <0x00a02000 0x100>;
514 interrupts = <GIC_SPI 76 IRQ_TYPE_LEVEL_HIGH>;
515 clocks = <&usb_mod_clk 5>;
516 resets = <&usb_mod_clk 19>;
522 ohci2: usb@00a02400 {
523 compatible = "allwinner,sun9i-a80-ohci", "generic-ohci";
524 reg = <0x00a02400 0x100>;
525 interrupts = <GIC_SPI 77 IRQ_TYPE_LEVEL_HIGH>;
526 clocks = <&usb_mod_clk 5>, <&usb_mod_clk 6>;
527 resets = <&usb_mod_clk 19>;
533 usbphy3: phy@00a02800 {
534 compatible = "allwinner,sun9i-a80-usb-phy";
535 reg = <0x00a02800 0x4>;
536 clocks = <&usb_phy_clk 4>, <&usb_phy_clk 10>,
538 clock-names = "hsic_480M", "hsic_12M", "phy";
539 resets = <&usb_phy_clk 20>, <&usb_phy_clk 21>;
540 reset-names = "hsic", "phy";
546 compatible = "allwinner,sun9i-a80-mmc";
547 reg = <0x01c0f000 0x1000>;
548 clocks = <&mmc_config_clk 0>, <&mmc0_clk 0>,
549 <&mmc0_clk 1>, <&mmc0_clk 2>;
550 clock-names = "ahb", "mmc", "output", "sample";
551 resets = <&mmc_config_clk 0>;
553 interrupts = <GIC_SPI 60 IRQ_TYPE_LEVEL_HIGH>;
555 #address-cells = <1>;
560 compatible = "allwinner,sun9i-a80-mmc";
561 reg = <0x01c10000 0x1000>;
562 clocks = <&mmc_config_clk 1>, <&mmc1_clk 0>,
563 <&mmc1_clk 1>, <&mmc1_clk 2>;
564 clock-names = "ahb", "mmc", "output", "sample";
565 resets = <&mmc_config_clk 1>;
567 interrupts = <GIC_SPI 61 IRQ_TYPE_LEVEL_HIGH>;
569 #address-cells = <1>;
574 compatible = "allwinner,sun9i-a80-mmc";
575 reg = <0x01c11000 0x1000>;
576 clocks = <&mmc_config_clk 2>, <&mmc2_clk 0>,
577 <&mmc2_clk 1>, <&mmc2_clk 2>;
578 clock-names = "ahb", "mmc", "output", "sample";
579 resets = <&mmc_config_clk 2>;
581 interrupts = <GIC_SPI 62 IRQ_TYPE_LEVEL_HIGH>;
583 #address-cells = <1>;
588 compatible = "allwinner,sun9i-a80-mmc";
589 reg = <0x01c12000 0x1000>;
590 clocks = <&mmc_config_clk 3>, <&mmc3_clk 0>,
591 <&mmc3_clk 1>, <&mmc3_clk 2>;
592 clock-names = "ahb", "mmc", "output", "sample";
593 resets = <&mmc_config_clk 3>;
595 interrupts = <GIC_SPI 63 IRQ_TYPE_LEVEL_HIGH>;
597 #address-cells = <1>;
601 mmc_config_clk: clk@01c13000 {
602 compatible = "allwinner,sun9i-a80-mmc-config-clk";
603 reg = <0x01c13000 0x10>;
604 clocks = <&ahb0_gates 8>;
606 resets = <&ahb0_resets 8>;
610 clock-output-names = "mmc0_config", "mmc1_config",
611 "mmc2_config", "mmc3_config";
614 gic: interrupt-controller@01c41000 {
615 compatible = "arm,cortex-a7-gic", "arm,cortex-a15-gic";
616 reg = <0x01c41000 0x1000>,
620 interrupt-controller;
621 #interrupt-cells = <3>;
622 interrupts = <GIC_PPI 9 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>;
625 ahb0_resets: reset@060005a0 {
627 compatible = "allwinner,sun6i-a31-clock-reset";
628 reg = <0x060005a0 0x4>;
631 ahb1_resets: reset@060005a4 {
633 compatible = "allwinner,sun6i-a31-clock-reset";
634 reg = <0x060005a4 0x4>;
637 ahb2_resets: reset@060005a8 {
639 compatible = "allwinner,sun6i-a31-clock-reset";
640 reg = <0x060005a8 0x4>;
643 apb0_resets: reset@060005b0 {
645 compatible = "allwinner,sun6i-a31-clock-reset";
646 reg = <0x060005b0 0x4>;
649 apb1_resets: reset@060005b4 {
651 compatible = "allwinner,sun6i-a31-clock-reset";
652 reg = <0x060005b4 0x4>;
656 compatible = "allwinner,sun4i-a10-timer";
657 reg = <0x06000c00 0xa0>;
658 interrupts = <GIC_SPI 18 IRQ_TYPE_LEVEL_HIGH>,
659 <GIC_SPI 19 IRQ_TYPE_LEVEL_HIGH>,
660 <GIC_SPI 20 IRQ_TYPE_LEVEL_HIGH>,
661 <GIC_SPI 21 IRQ_TYPE_LEVEL_HIGH>,
662 <GIC_SPI 22 IRQ_TYPE_LEVEL_HIGH>,
663 <GIC_SPI 23 IRQ_TYPE_LEVEL_HIGH>;
668 wdt: watchdog@06000ca0 {
669 compatible = "allwinner,sun6i-a31-wdt";
670 reg = <0x06000ca0 0x20>;
671 interrupts = <GIC_SPI 24 IRQ_TYPE_LEVEL_HIGH>;
674 pio: pinctrl@06000800 {
675 compatible = "allwinner,sun9i-a80-pinctrl";
676 reg = <0x06000800 0x400>;
677 interrupts = <GIC_SPI 11 IRQ_TYPE_LEVEL_HIGH>,
678 <GIC_SPI 15 IRQ_TYPE_LEVEL_HIGH>,
679 <GIC_SPI 16 IRQ_TYPE_LEVEL_HIGH>,
680 <GIC_SPI 17 IRQ_TYPE_LEVEL_HIGH>,
681 <GIC_SPI 120 IRQ_TYPE_LEVEL_HIGH>;
682 clocks = <&apb0_gates 5>;
684 interrupt-controller;
685 #interrupt-cells = <3>;
689 i2c3_pins_a: i2c3@0 {
690 allwinner,pins = "PG10", "PG11";
691 allwinner,function = "i2c3";
692 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
693 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
697 allwinner,pins = "PF0", "PF1" ,"PF2", "PF3",
699 allwinner,function = "mmc0";
700 allwinner,drive = <SUN4I_PINCTRL_30_MA>;
701 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
705 allwinner,pins = "PG0", "PG1" ,"PG2", "PG3",
707 allwinner,function = "mmc1";
708 allwinner,drive = <SUN4I_PINCTRL_30_MA>;
709 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
712 mmc2_8bit_pins: mmc2_8bit {
713 allwinner,pins = "PC6", "PC7", "PC8", "PC9",
714 "PC10", "PC11", "PC12",
715 "PC13", "PC14", "PC15",
717 allwinner,function = "mmc2";
718 allwinner,drive = <SUN4I_PINCTRL_30_MA>;
719 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
722 uart0_pins_a: uart0@0 {
723 allwinner,pins = "PH12", "PH13";
724 allwinner,function = "uart0";
725 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
726 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
729 uart4_pins_a: uart4@0 {
730 allwinner,pins = "PG12", "PG13", "PG14", "PG15";
731 allwinner,function = "uart4";
732 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
733 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
737 uart0: serial@07000000 {
738 compatible = "snps,dw-apb-uart";
739 reg = <0x07000000 0x400>;
740 interrupts = <GIC_SPI 0 IRQ_TYPE_LEVEL_HIGH>;
743 clocks = <&apb1_gates 16>;
744 resets = <&apb1_resets 16>;
748 uart1: serial@07000400 {
749 compatible = "snps,dw-apb-uart";
750 reg = <0x07000400 0x400>;
751 interrupts = <GIC_SPI 1 IRQ_TYPE_LEVEL_HIGH>;
754 clocks = <&apb1_gates 17>;
755 resets = <&apb1_resets 17>;
759 uart2: serial@07000800 {
760 compatible = "snps,dw-apb-uart";
761 reg = <0x07000800 0x400>;
762 interrupts = <GIC_SPI 2 IRQ_TYPE_LEVEL_HIGH>;
765 clocks = <&apb1_gates 18>;
766 resets = <&apb1_resets 18>;
770 uart3: serial@07000c00 {
771 compatible = "snps,dw-apb-uart";
772 reg = <0x07000c00 0x400>;
773 interrupts = <GIC_SPI 3 IRQ_TYPE_LEVEL_HIGH>;
776 clocks = <&apb1_gates 19>;
777 resets = <&apb1_resets 19>;
781 uart4: serial@07001000 {
782 compatible = "snps,dw-apb-uart";
783 reg = <0x07001000 0x400>;
784 interrupts = <GIC_SPI 4 IRQ_TYPE_LEVEL_HIGH>;
787 clocks = <&apb1_gates 20>;
788 resets = <&apb1_resets 20>;
792 uart5: serial@07001400 {
793 compatible = "snps,dw-apb-uart";
794 reg = <0x07001400 0x400>;
795 interrupts = <GIC_SPI 5 IRQ_TYPE_LEVEL_HIGH>;
798 clocks = <&apb1_gates 21>;
799 resets = <&apb1_resets 21>;
804 compatible = "allwinner,sun6i-a31-i2c";
805 reg = <0x07002800 0x400>;
806 interrupts = <GIC_SPI 6 IRQ_TYPE_LEVEL_HIGH>;
807 clocks = <&apb1_gates 0>;
808 resets = <&apb1_resets 0>;
810 #address-cells = <1>;
815 compatible = "allwinner,sun6i-a31-i2c";
816 reg = <0x07002c00 0x400>;
817 interrupts = <GIC_SPI 7 IRQ_TYPE_LEVEL_HIGH>;
818 clocks = <&apb1_gates 1>;
819 resets = <&apb1_resets 1>;
821 #address-cells = <1>;
826 compatible = "allwinner,sun6i-a31-i2c";
827 reg = <0x07003000 0x400>;
828 interrupts = <GIC_SPI 8 IRQ_TYPE_LEVEL_HIGH>;
829 clocks = <&apb1_gates 2>;
830 resets = <&apb1_resets 2>;
832 #address-cells = <1>;
837 compatible = "allwinner,sun6i-a31-i2c";
838 reg = <0x07003400 0x400>;
839 interrupts = <GIC_SPI 9 IRQ_TYPE_LEVEL_HIGH>;
840 clocks = <&apb1_gates 3>;
841 resets = <&apb1_resets 3>;
843 #address-cells = <1>;
848 compatible = "allwinner,sun6i-a31-i2c";
849 reg = <0x07003800 0x400>;
850 interrupts = <GIC_SPI 10 IRQ_TYPE_LEVEL_HIGH>;
851 clocks = <&apb1_gates 4>;
852 resets = <&apb1_resets 4>;
854 #address-cells = <1>;
858 r_wdt: watchdog@08001000 {
859 compatible = "allwinner,sun6i-a31-wdt";
860 reg = <0x08001000 0x20>;
861 interrupts = <GIC_SPI 36 IRQ_TYPE_LEVEL_HIGH>;
864 apbs_rst: reset@080014b0 {
865 reg = <0x080014b0 0x4>;
866 compatible = "allwinner,sun6i-a31-clock-reset";
870 nmi_intc: interrupt-controller@080015a0 {
871 compatible = "allwinner,sun9i-a80-nmi";
872 interrupt-controller;
873 #interrupt-cells = <2>;
874 reg = <0x080015a0 0xc>;
875 interrupts = <GIC_SPI 32 IRQ_TYPE_LEVEL_HIGH>;
879 compatible = "allwinner,sun5i-a13-ir";
880 interrupts = <GIC_SPI 37 IRQ_TYPE_LEVEL_HIGH>;
881 pinctrl-names = "default";
882 pinctrl-0 = <&r_ir_pins>;
883 clocks = <&apbs_gates 1>, <&r_ir_clk>;
884 clock-names = "apb", "ir";
885 resets = <&apbs_rst 1>;
886 reg = <0x08002000 0x40>;
890 r_uart: serial@08002800 {
891 compatible = "snps,dw-apb-uart";
892 reg = <0x08002800 0x400>;
893 interrupts = <GIC_SPI 38 IRQ_TYPE_LEVEL_HIGH>;
896 clocks = <&apbs_gates 4>;
897 resets = <&apbs_rst 4>;
901 r_pio: pinctrl@08002c00 {
902 compatible = "allwinner,sun9i-a80-r-pinctrl";
903 reg = <0x08002c00 0x400>;
904 interrupts = <GIC_SPI 45 IRQ_TYPE_LEVEL_HIGH>,
905 <GIC_SPI 46 IRQ_TYPE_LEVEL_HIGH>;
906 clocks = <&apbs_gates 0>;
907 resets = <&apbs_rst 0>;
909 interrupt-controller;
910 #address-cells = <1>;
915 allwinner,pins = "PL6";
916 allwinner,function = "s_cir_rx";
917 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
918 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
922 allwinner,pins = "PN0", "PN1";
923 allwinner,function = "s_rsb";
924 allwinner,drive = <SUN4I_PINCTRL_20_MA>;
925 allwinner,pull = <SUN4I_PINCTRL_PULL_UP>;
929 r_rsb: i2c@08003400 {
930 compatible = "allwinner,sun8i-a23-rsb";
931 reg = <0x08003400 0x400>;
932 interrupts = <GIC_SPI 39 IRQ_TYPE_LEVEL_HIGH>;
933 clocks = <&apbs_gates 3>;
934 clock-frequency = <3000000>;
935 resets = <&apbs_rst 3>;
936 pinctrl-names = "default";
937 pinctrl-0 = <&r_rsb_pins>;
939 #address-cells = <1>;