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 compatible = "allwinner,a64";
50 interrupt-parent = <&gic>;
67 compatible = "arm,cortex-a53", "arm,armv8";
70 enable-method = "psci";
74 compatible = "arm,cortex-a53", "arm,armv8";
77 enable-method = "psci";
81 compatible = "arm,cortex-a53", "arm,armv8";
84 enable-method = "psci";
88 compatible = "arm,cortex-a53", "arm,armv8";
91 enable-method = "psci";
96 compatible = "arm,psci-0.2", "arm,psci";
98 cpu_suspend = <0xc4000001>;
99 cpu_off = <0x84000002>;
100 cpu_on = <0xc4000003>;
104 device_type = "memory";
105 reg = <0x40000000 0>;
109 compatible = "arm,armv8-timer";
110 interrupts = <GIC_PPI 13
111 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>,
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)>;
121 #address-cells = <1>;
127 compatible = "fixed-clock";
128 clock-frequency = <24000000>;
129 clock-output-names = "osc24M";
134 compatible = "fixed-clock";
135 clock-frequency = <32768>;
136 clock-output-names = "osc32k";
141 compatible = "allwinner,sun8i-a23-pll1-clk";
142 reg = <0x01c20000 0x4>;
144 clock-output-names = "pll1";
149 compatible = "allwinner,sun6i-a31-pll6-clk";
150 reg = <0x01c20028 0x4>;
152 clock-output-names = "pll6", "pll6x2";
157 compatible = "fixed-factor-clock";
161 clock-output-names = "pll6d2";
164 /* dummy clock until pll6 can be reused */
167 compatible = "fixed-clock";
168 clock-frequency = <1>;
169 clock-output-names = "pll8";
172 cpu: cpu_clk@01c20050 {
174 compatible = "allwinner,sun4i-a10-cpu-clk";
175 reg = <0x01c20050 0x4>;
176 clocks = <&osc32k>, <&osc24M>, <&pll1>, <&pll1>;
177 clock-output-names = "cpu";
180 axi: axi_clk@01c20050 {
182 compatible = "allwinner,sun4i-a10-axi-clk";
183 reg = <0x01c20050 0x4>;
185 clock-output-names = "axi";
188 ahb1: ahb1_clk@01c20054 {
190 compatible = "allwinner,sun6i-a31-ahb1-clk";
191 reg = <0x01c20054 0x4>;
192 clocks = <&osc32k>, <&osc24M>, <&axi>, <&pll6 0>;
193 clock-output-names = "ahb1";
196 ahb2: ahb2_clk@01c2005c {
198 compatible = "allwinner,sun8i-h3-ahb2-clk";
199 reg = <0x01c2005c 0x4>;
200 clocks = <&ahb1>, <&pll6d2>;
201 clock-output-names = "ahb2";
204 apb1: apb1_clk@01c20054 {
206 compatible = "allwinner,sun4i-a10-apb0-clk";
207 reg = <0x01c20054 0x4>;
209 clock-output-names = "apb1";
212 apb2: apb2_clk@01c20058 {
214 compatible = "allwinner,sun4i-a10-apb1-clk";
215 reg = <0x01c20058 0x4>;
216 clocks = <&osc32k>, <&osc24M>, <&pll6 1>, <&pll6 1>;
217 clock-output-names = "apb2";
220 bus_gates: clk@01c20060 {
222 compatible = "allwinner,a64-bus-gates-clk",
223 "allwinner,sun8i-h3-bus-gates-clk";
224 reg = <0x01c20060 0x14>;
225 clocks = <&ahb1>, <&ahb2>, <&apb1>, <&apb2>;
226 clock-names = "ahb1", "ahb2", "apb1", "apb2";
247 clock-output-names = "bus_mipidsi",
248 "bus_ce", "bus_dma", "bus_mmc0",
249 "bus_mmc1", "bus_mmc2", "bus_nand",
250 "bus_sdram", "bus_gmac", "bus_ts",
251 "bus_hstimer", "bus_spi0",
252 "bus_spi1", "bus_otg",
253 "bus_otg_ehci0", "bus_ehci0",
254 "bus_otg_ohci0", "bus_ohci0",
255 "bus_ve", "bus_lcd0",
256 "bus_lcd1", "bus_deint",
257 "bus_csi", "bus_hdmi",
258 "bus_de", "bus_gpu", "bus_msgbox",
259 "bus_spinlock", "bus_codec",
260 "bus_spdif", "bus_pio", "bus_ths",
261 "bus_i2s0", "bus_i2s1", "bus_i2s2",
262 "bus_i2c0", "bus_i2c1", "bus_i2c2",
264 "bus_uart0", "bus_uart1",
265 "bus_uart2", "bus_uart3",
266 "bus_uart4", "bus_dbg";
269 mmc0_clk: clk@01c20088 {
271 compatible = "allwinner,sun4i-a10-mmc-clk";
272 reg = <0x01c20088 0x4>;
273 clocks = <&osc24M>, <&pll6 0>, <&pll8>;
274 clock-output-names = "mmc0",
279 mmc1_clk: clk@01c2008c {
281 compatible = "allwinner,sun4i-a10-mmc-clk";
282 reg = <0x01c2008c 0x4>;
283 clocks = <&osc24M>, <&pll6 0>, <&pll8>;
284 clock-output-names = "mmc1",
289 mmc2_clk: clk@01c20090 {
291 compatible = "allwinner,sun4i-a10-mmc-clk";
292 reg = <0x01c20090 0x4>;
293 clocks = <&osc24M>, <&pll6 0>, <&pll8>;
294 clock-output-names = "mmc2",
302 compatible = "regulator-fixed";
303 regulator-name = "vcc3v3";
304 regulator-min-microvolt = <3300000>;
305 regulator-max-microvolt = <3300000>;
310 compatible = "simple-bus";
311 #address-cells = <1>;
316 compatible = "allwinner,sun5i-a13-mmc";
317 reg = <0x01c0f000 0x1000>;
318 clocks = <&bus_gates 8>,
326 resets = <&ahb_rst 8>;
328 interrupts = <GIC_SPI 60 IRQ_TYPE_LEVEL_HIGH>;
330 #address-cells = <1>;
335 compatible = "allwinner,sun5i-a13-mmc";
336 reg = <0x01c10000 0x1000>;
337 clocks = <&bus_gates 9>,
345 resets = <&ahb_rst 9>;
347 interrupts = <GIC_SPI 61 IRQ_TYPE_LEVEL_HIGH>;
349 #address-cells = <1>;
354 compatible = "allwinner,sun5i-a13-mmc";
355 reg = <0x01c11000 0x1000>;
356 clocks = <&bus_gates 10>,
364 resets = <&ahb_rst 10>;
366 interrupts = <GIC_SPI 62 IRQ_TYPE_LEVEL_HIGH>;
368 #address-cells = <1>;
372 pio: pinctrl@01c20800 {
373 compatible = "allwinner,a64-pinctrl";
374 reg = <0x01c20800 0x400>;
375 interrupts = <GIC_SPI 11 IRQ_TYPE_LEVEL_HIGH>,
376 <GIC_SPI 17 IRQ_TYPE_LEVEL_HIGH>,
377 <GIC_SPI 21 IRQ_TYPE_LEVEL_HIGH>;
378 clocks = <&bus_gates 69>;
381 interrupt-controller;
382 #interrupt-cells = <2>;
384 uart0_pins_a: uart0@0 {
385 allwinner,pins = "PB8", "PB9";
386 allwinner,function = "uart0";
387 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
388 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
391 uart0_pins_b: uart0@1 {
392 allwinner,pins = "PF2", "PF3";
393 allwinner,function = "uart0";
394 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
395 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
398 uart1_pins: uart1@0 {
399 allwinner,pins = "PG6", "PG7", "PG8", "PG9";
400 allwinner,function = "uart1";
401 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
402 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
405 uart2_pins: uart2@0 {
406 allwinner,pins = "PB0", "PB1", "PB2", "PB3";
407 allwinner,function = "uart2";
408 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
409 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
412 uart3_pins_a: uart3@0 {
413 allwinner,pins = "PD0", "PD1";
414 allwinner,function = "uart3";
415 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
416 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
419 uart3_pins_b: uart3@1 {
420 allwinner,pins = "PH4", "PH5", "PH6", "PH7";
421 allwinner,function = "uart3";
422 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
423 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
426 uart4_pins: uart4@0 {
427 allwinner,pins = "PD2", "PD3", "PD4", "PD5";
428 allwinner,function = "uart4";
429 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
430 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
434 allwinner,pins = "PF0", "PF1", "PF2", "PF3",
436 allwinner,function = "mmc0";
437 allwinner,drive = <SUN4I_PINCTRL_30_MA>;
438 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
441 mmc0_default_cd_pin: mmc0_cd_pin@0 {
442 allwinner,pins = "PF6";
443 allwinner,function = "gpio_in";
444 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
445 allwinner,pull = <SUN4I_PINCTRL_PULL_UP>;
449 allwinner,pins = "PG0", "PG1", "PG2", "PG3",
451 allwinner,function = "mmc1";
452 allwinner,drive = <SUN4I_PINCTRL_30_MA>;
453 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
457 allwinner,pins = "PC1", "PC5", "PC6", "PC8",
459 allwinner,function = "mmc2";
460 allwinner,drive = <SUN4I_PINCTRL_30_MA>;
461 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
465 ahb_rst: reset@01c202c0 {
467 compatible = "allwinner,sun6i-a31-ahb1-reset";
468 reg = <0x01c202c0 0xc>;
471 apb1_rst: reset@01c202d0 {
473 compatible = "allwinner,sun6i-a31-clock-reset";
474 reg = <0x01c202d0 0x4>;
477 apb2_rst: reset@01c202d8 {
479 compatible = "allwinner,sun6i-a31-clock-reset";
480 reg = <0x01c202d8 0x4>;
483 uart0: serial@01c28000 {
484 compatible = "snps,dw-apb-uart";
485 reg = <0x01c28000 0x400>;
486 interrupts = <GIC_SPI 0 IRQ_TYPE_LEVEL_HIGH>;
489 clocks = <&bus_gates 112>;
490 resets = <&apb2_rst 16>;
491 reset-names = "apb2";
495 uart1: serial@01c28400 {
496 compatible = "snps,dw-apb-uart";
497 reg = <0x01c28400 0x400>;
498 interrupts = <GIC_SPI 1 IRQ_TYPE_LEVEL_HIGH>;
501 clocks = <&bus_gates 113>;
502 resets = <&apb2_rst 17>;
503 reset-names = "apb2";
507 uart2: serial@01c28800 {
508 compatible = "snps,dw-apb-uart";
509 reg = <0x01c28800 0x400>;
510 interrupts = <GIC_SPI 2 IRQ_TYPE_LEVEL_HIGH>;
513 clocks = <&bus_gates 114>;
514 resets = <&apb2_rst 18>;
515 reset-names = "apb2";
519 uart3: serial@01c28c00 {
520 compatible = "snps,dw-apb-uart";
521 reg = <0x01c28c00 0x400>;
522 interrupts = <GIC_SPI 3 IRQ_TYPE_LEVEL_HIGH>;
525 clocks = <&bus_gates 115>;
526 resets = <&apb2_rst 19>;
527 reset-names = "apb2";
531 uart4: serial@01c29000 {
532 compatible = "snps,dw-apb-uart";
533 reg = <0x01c29000 0x400>;
534 interrupts = <GIC_SPI 4 IRQ_TYPE_LEVEL_HIGH>;
537 clocks = <&bus_gates 116>;
538 resets = <&apb2_rst 20>;
539 reset-names = "apb2";
544 compatible = "allwinner,sun6i-a31-rtc";
545 reg = <0x01f00000 0x54>;
546 interrupts = <GIC_SPI 40 IRQ_TYPE_LEVEL_HIGH>,
547 <GIC_SPI 41 IRQ_TYPE_LEVEL_HIGH>;
551 gic: interrupt-controller@{
552 compatible = "arm,gic-400";
553 interrupt-controller;
554 #interrupt-cells = <3>;
555 #address-cells = <0>;
557 reg = <0x01C81000 0x1000>,
561 interrupts = <GIC_PPI 9
562 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>;