2 * Copyright (C) 2016 ARM Ltd.
3 * based on the Allwinner H3 dtsi:
4 * Copyright (C) 2015 Jens Kuske <jenskuske@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>
46 #include <dt-bindings/pinctrl/sun4i-a10.h>
49 interrupt-parent = <&gic>;
58 compatible = "arm,cortex-a53", "arm,armv8";
61 enable-method = "psci";
65 compatible = "arm,cortex-a53", "arm,armv8";
68 enable-method = "psci";
72 compatible = "arm,cortex-a53", "arm,armv8";
75 enable-method = "psci";
79 compatible = "arm,cortex-a53", "arm,armv8";
82 enable-method = "psci";
87 compatible = "arm,psci-0.2";
92 device_type = "memory";
96 gic: interrupt-controller@1c81000 {
97 compatible = "arm,gic-400";
99 #interrupt-cells = <3>;
100 #address-cells = <0>;
102 reg = <0x01c81000 0x1000>,
106 interrupts = <GIC_PPI 9
107 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>;
111 compatible = "arm,armv8-timer";
112 interrupts = <GIC_PPI 13
113 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>,
115 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>,
117 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>,
119 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>;
123 #address-cells = <1>;
129 compatible = "fixed-clock";
130 clock-frequency = <24000000>;
131 clock-output-names = "osc24M";
136 compatible = "fixed-clock";
137 clock-frequency = <32768>;
138 clock-output-names = "osc32k";
141 pll1: pll1_clk@1c20000 {
143 compatible = "allwinner,sun8i-a23-pll1-clk";
144 reg = <0x01c20000 0x4>;
146 clock-output-names = "pll1";
149 pll6: pll6_clk@1c20028 {
151 compatible = "allwinner,sun6i-a31-pll6-clk";
152 reg = <0x01c20028 0x4>;
154 clock-output-names = "pll6", "pll6x2";
159 compatible = "fixed-factor-clock";
163 clock-output-names = "pll6d2";
166 pll7: pll7_clk@1c2002c {
168 compatible = "allwinner,sun6i-a31-pll6-clk";
169 reg = <0x01c2002c 0x4>;
171 clock-output-names = "pll7", "pll7x2";
174 cpu: cpu_clk@1c20050 {
176 compatible = "allwinner,sun4i-a10-cpu-clk";
177 reg = <0x01c20050 0x4>;
178 clocks = <&osc32k>, <&osc24M>, <&pll1>, <&pll1>;
179 clock-output-names = "cpu";
180 critical-clocks = <0>;
183 axi: axi_clk@1c20050 {
185 compatible = "allwinner,sun4i-a10-axi-clk";
186 reg = <0x01c20050 0x4>;
188 clock-output-names = "axi";
191 ahb1: ahb1_clk@1c20054 {
193 compatible = "allwinner,sun6i-a31-ahb1-clk";
194 reg = <0x01c20054 0x4>;
195 clocks = <&osc32k>, <&osc24M>, <&axi>, <&pll6 0>;
196 clock-output-names = "ahb1";
199 ahb2: ahb2_clk@1c2005c {
201 compatible = "allwinner,sun8i-h3-ahb2-clk";
202 reg = <0x01c2005c 0x4>;
203 clocks = <&ahb1>, <&pll6d2>;
204 clock-output-names = "ahb2";
207 apb1: apb1_clk@1c20054 {
209 compatible = "allwinner,sun4i-a10-apb0-clk";
210 reg = <0x01c20054 0x4>;
212 clock-output-names = "apb1";
215 apb2: apb2_clk@1c20058 {
217 compatible = "allwinner,sun4i-a10-apb1-clk";
218 reg = <0x01c20058 0x4>;
219 clocks = <&osc32k>, <&osc24M>, <&pll6 1>, <&pll6 1>;
220 clock-output-names = "apb2";
223 bus_gates: bus_gates_clk@1c20060 {
225 compatible = "allwinner,sun50i-a64-bus-gates-clk",
226 "allwinner,sunxi-multi-bus-gates-clk";
227 reg = <0x01c20060 0x14>;
230 clock-indices = <1>, <5>,
244 clock-output-names = "bus_mipidsi", "bus_ce",
245 "bus_dma", "bus_mmc0",
246 "bus_mmc1", "bus_mmc2",
247 "bus_nand", "bus_sdram",
248 "bus_ts", "bus_hstimer",
249 "bus_spi0", "bus_spi1",
250 "bus_otg", "bus_otg_ehci0",
251 "bus_ehci0", "bus_otg_ohci0",
252 "bus_ve", "bus_lcd0",
253 "bus_lcd1", "bus_deint",
254 "bus_csi", "bus_hdmi",
256 "bus_msgbox", "bus_spinlock",
261 clock-indices = <17>, <29>;
262 clock-output-names = "bus_gmac", "bus_ohci0";
266 clock-indices = <64>, <65>,
270 clock-output-names = "bus_codec", "bus_spdif",
271 "bus_pio", "bus_ths",
272 "bus_i2s0", "bus_i2s1",
277 clock-indices = <96>, <97>,
282 clock-output-names = "bus_i2c0", "bus_i2c1",
283 "bus_i2c2", "bus_scr",
284 "bus_uart0", "bus_uart1",
285 "bus_uart2", "bus_uart3",
290 mmc0_clk: mmc0_clk@1c20088 {
292 compatible = "allwinner,sun4i-a10-mod0-clk";
293 reg = <0x01c20088 0x4>;
294 clocks = <&osc24M>, <&pll6 1>, <&pll7 1>;
295 clock-output-names = "mmc0";
298 mmc1_clk: mmc1_clk@1c2008c {
300 compatible = "allwinner,sun4i-a10-mod0-clk";
301 reg = <0x01c2008c 0x4>;
302 clocks = <&osc24M>, <&pll6 1>, <&pll7 1>;
303 clock-output-names = "mmc1";
306 mmc2_clk: mmc2_clk@1c20090 {
308 compatible = "allwinner,sun4i-a10-mod0-clk";
309 reg = <0x01c20090 0x4>;
310 clocks = <&osc24M>, <&pll6 1>, <&pll7 1>;
311 clock-output-names = "mmc2";
316 compatible = "simple-bus";
317 #address-cells = <1>;
322 compatible = "allwinner,sun50i-a64-mmc",
323 "allwinner,sun5i-a13-mmc";
324 reg = <0x01c0f000 0x1000>;
325 clocks = <&bus_gates 8>, <&mmc0_clk>,
326 <&mmc0_clk>, <&mmc0_clk>;
327 clock-names = "ahb", "mmc",
329 resets = <&ahb_rst 8>;
331 interrupts = <GIC_SPI 60 IRQ_TYPE_LEVEL_HIGH>;
333 #address-cells = <1>;
338 compatible = "allwinner,sun50i-a64-mmc",
339 "allwinner,sun5i-a13-mmc";
340 reg = <0x01c10000 0x1000>;
341 clocks = <&bus_gates 9>, <&mmc1_clk>,
342 <&mmc1_clk>, <&mmc1_clk>;
343 clock-names = "ahb", "mmc",
345 resets = <&ahb_rst 9>;
347 interrupts = <GIC_SPI 61 IRQ_TYPE_LEVEL_HIGH>;
349 #address-cells = <1>;
354 compatible = "allwinner,sun50i-a64-mmc",
355 "allwinner,sun5i-a13-mmc";
356 reg = <0x01c11000 0x1000>;
357 clocks = <&bus_gates 10>, <&mmc2_clk>,
358 <&mmc2_clk>, <&mmc2_clk>;
359 clock-names = "ahb", "mmc",
361 resets = <&ahb_rst 10>;
363 interrupts = <GIC_SPI 62 IRQ_TYPE_LEVEL_HIGH>;
365 #address-cells = <1>;
369 pio: pinctrl@1c20800 {
370 compatible = "allwinner,sun50i-a64-pinctrl";
371 reg = <0x01c20800 0x400>;
372 interrupts = <GIC_SPI 11 IRQ_TYPE_LEVEL_HIGH>,
373 <GIC_SPI 17 IRQ_TYPE_LEVEL_HIGH>,
374 <GIC_SPI 21 IRQ_TYPE_LEVEL_HIGH>;
375 clocks = <&bus_gates 69>;
378 interrupt-controller;
379 #interrupt-cells = <2>;
381 uart0_pins_a: uart0@0 {
382 allwinner,pins = "PB8", "PB9";
383 allwinner,function = "uart0";
384 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
385 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
388 uart0_pins_b: uart0@1 {
389 allwinner,pins = "PF2", "PF3";
390 allwinner,function = "uart0";
391 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
392 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
395 uart1_2pins: uart1_2@0 {
396 allwinner,pins = "PG6", "PG7";
397 allwinner,function = "uart1";
398 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
399 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
402 uart1_4pins: uart1_4@0 {
403 allwinner,pins = "PG6", "PG7", "PG8", "PG9";
404 allwinner,function = "uart1";
405 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
406 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
409 uart2_2pins: uart2_2@0 {
410 allwinner,pins = "PB0", "PB1";
411 allwinner,function = "uart2";
412 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
413 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
416 uart2_4pins: uart2_4@0 {
417 allwinner,pins = "PB0", "PB1", "PB2", "PB3";
418 allwinner,function = "uart2";
419 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
420 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
423 uart3_pins_a: uart3@0 {
424 allwinner,pins = "PD0", "PD1";
425 allwinner,function = "uart3";
426 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
427 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
430 uart3_2pins_b: uart3_2@1 {
431 allwinner,pins = "PH4", "PH5";
432 allwinner,function = "uart3";
433 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
434 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
437 uart3_4pins_b: uart3_4@1 {
438 allwinner,pins = "PH4", "PH5", "PH6", "PH7";
439 allwinner,function = "uart3";
440 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
441 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
444 uart4_2pins: uart4_2@0 {
445 allwinner,pins = "PD2", "PD3";
446 allwinner,function = "uart4";
447 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
448 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
451 uart4_4pins: uart4_4@0 {
452 allwinner,pins = "PD2", "PD3", "PD4", "PD5";
453 allwinner,function = "uart4";
454 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
455 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
459 allwinner,pins = "PF0", "PF1", "PF2", "PF3",
461 allwinner,function = "mmc0";
462 allwinner,drive = <SUN4I_PINCTRL_30_MA>;
463 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
466 mmc0_default_cd_pin: mmc0_cd_pin@0 {
467 allwinner,pins = "PF6";
468 allwinner,function = "gpio_in";
469 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
470 allwinner,pull = <SUN4I_PINCTRL_PULL_UP>;
474 allwinner,pins = "PG0", "PG1", "PG2", "PG3",
476 allwinner,function = "mmc1";
477 allwinner,drive = <SUN4I_PINCTRL_30_MA>;
478 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
482 allwinner,pins = "PC1", "PC5", "PC6", "PC8",
484 allwinner,function = "mmc2";
485 allwinner,drive = <SUN4I_PINCTRL_30_MA>;
486 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
489 i2c0_pins: i2c0_pins {
490 allwinner,pins = "PH0", "PH1";
491 allwinner,function = "i2c0";
492 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
493 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
496 i2c1_pins: i2c1_pins {
497 allwinner,pins = "PH2", "PH3";
498 allwinner,function = "i2c1";
499 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
500 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
503 i2c2_pins: i2c2_pins {
504 allwinner,pins = "PE14", "PE15";
505 allwinner,function = "i2c2";
506 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
507 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
511 ahb_rst: reset@1c202c0 {
513 compatible = "allwinner,sun6i-a31-clock-reset";
514 reg = <0x01c202c0 0xc>;
517 apb1_rst: reset@1c202d0 {
519 compatible = "allwinner,sun6i-a31-clock-reset";
520 reg = <0x01c202d0 0x4>;
523 apb2_rst: reset@1c202d8 {
525 compatible = "allwinner,sun6i-a31-clock-reset";
526 reg = <0x01c202d8 0x4>;
529 uart0: serial@1c28000 {
530 compatible = "snps,dw-apb-uart";
531 reg = <0x01c28000 0x400>;
532 interrupts = <GIC_SPI 0 IRQ_TYPE_LEVEL_HIGH>;
535 clocks = <&bus_gates 112>;
536 resets = <&apb2_rst 16>;
540 uart1: serial@1c28400 {
541 compatible = "snps,dw-apb-uart";
542 reg = <0x01c28400 0x400>;
543 interrupts = <GIC_SPI 1 IRQ_TYPE_LEVEL_HIGH>;
546 clocks = <&bus_gates 113>;
547 resets = <&apb2_rst 17>;
551 uart2: serial@1c28800 {
552 compatible = "snps,dw-apb-uart";
553 reg = <0x01c28800 0x400>;
554 interrupts = <GIC_SPI 2 IRQ_TYPE_LEVEL_HIGH>;
557 clocks = <&bus_gates 114>;
558 resets = <&apb2_rst 18>;
562 uart3: serial@1c28c00 {
563 compatible = "snps,dw-apb-uart";
564 reg = <0x01c28c00 0x400>;
565 interrupts = <GIC_SPI 3 IRQ_TYPE_LEVEL_HIGH>;
568 clocks = <&bus_gates 115>;
569 resets = <&apb2_rst 19>;
573 uart4: serial@1c29000 {
574 compatible = "snps,dw-apb-uart";
575 reg = <0x01c29000 0x400>;
576 interrupts = <GIC_SPI 4 IRQ_TYPE_LEVEL_HIGH>;
579 clocks = <&bus_gates 116>;
580 resets = <&apb2_rst 20>;
585 compatible = "allwinner,sun6i-a31-rtc";
586 reg = <0x01f00000 0x54>;
587 interrupts = <GIC_SPI 40 IRQ_TYPE_LEVEL_HIGH>,
588 <GIC_SPI 41 IRQ_TYPE_LEVEL_HIGH>;
592 compatible = "allwinner,sun6i-a31-i2c";
593 reg = <0x01c2ac00 0x400>;
594 interrupts = <GIC_SPI 6 IRQ_TYPE_LEVEL_HIGH>;
595 clocks = <&bus_gates 96>;
596 resets = <&apb2_rst 0>;
598 #address-cells = <1>;
603 compatible = "allwinner,sun6i-a31-i2c";
604 reg = <0x01c2b000 0x400>;
605 interrupts = <GIC_SPI 7 IRQ_TYPE_LEVEL_HIGH>;
606 clocks = <&bus_gates 97>;
607 resets = <&apb2_rst 1>;
609 #address-cells = <1>;
614 compatible = "allwinner,sun6i-a31-i2c";
615 reg = <0x01c2b400 0x400>;
616 interrupts = <GIC_SPI 8 IRQ_TYPE_LEVEL_HIGH>;
617 clocks = <&bus_gates 98>;
618 resets = <&apb2_rst 2>;
620 #address-cells = <1>;