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.
21 * You should have received a copy of the GNU General Public
22 * License along with this file; if not, write to the Free
23 * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,
28 * b) Permission is hereby granted, free of charge, to any person
29 * obtaining a copy of this software and associated documentation
30 * files (the "Software"), to deal in the Software without
31 * restriction, including without limitation the rights to use,
32 * copy, modify, merge, publish, distribute, sublicense, and/or
33 * sell copies of the Software, and to permit persons to whom the
34 * Software is furnished to do so, subject to the following
37 * The above copyright notice and this permission notice shall be
38 * included in all copies or substantial portions of the Software.
40 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
41 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
42 * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
43 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
44 * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
45 * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
46 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
47 * OTHER DEALINGS IN THE SOFTWARE.
50 #include "skeleton64.dtsi"
52 #include <dt-bindings/pinctrl/sun4i-a10.h>
55 interrupt-parent = <&gic>;
72 compatible = "arm,cortex-a7";
78 compatible = "arm,cortex-a7";
84 compatible = "arm,cortex-a7";
90 compatible = "arm,cortex-a7";
96 compatible = "arm,cortex-a15";
102 compatible = "arm,cortex-a15";
108 compatible = "arm,cortex-a15";
114 compatible = "arm,cortex-a15";
121 /* 8GB max. with LPAE */
122 reg = <0 0x20000000 0x02 0>;
126 #address-cells = <1>;
129 * map 64 bit address range down to 32 bits,
130 * as the peripherals are all under 512MB.
132 ranges = <0 0 0 0x20000000>;
136 compatible = "fixed-clock";
137 clock-frequency = <24000000>;
138 clock-output-names = "osc24M";
143 compatible = "fixed-clock";
144 clock-frequency = <32768>;
145 clock-output-names = "osc32k";
150 compatible = "allwinner,sun9i-a80-pll4-clk";
151 reg = <0x0600000c 0x4>;
153 clock-output-names = "pll4";
156 pll12: clk@0600002c {
158 compatible = "allwinner,sun9i-a80-pll4-clk";
159 reg = <0x0600002c 0x4>;
161 clock-output-names = "pll12";
164 gt_clk: clk@0600005c {
166 compatible = "allwinner,sun9i-a80-gt-clk";
167 reg = <0x0600005c 0x4>;
168 clocks = <&osc24M>, <&pll4>, <&pll12>, <&pll12>;
169 clock-output-names = "gt";
174 compatible = "allwinner,sun9i-a80-ahb-clk";
175 reg = <0x06000060 0x4>;
176 clocks = <>_clk>, <&pll4>, <&pll12>, <&pll12>;
177 clock-output-names = "ahb0";
182 compatible = "allwinner,sun9i-a80-ahb-clk";
183 reg = <0x06000064 0x4>;
184 clocks = <>_clk>, <&pll4>, <&pll12>, <&pll12>;
185 clock-output-names = "ahb1";
190 compatible = "allwinner,sun9i-a80-ahb-clk";
191 reg = <0x06000068 0x4>;
192 clocks = <>_clk>, <&pll4>, <&pll12>, <&pll12>;
193 clock-output-names = "ahb2";
198 compatible = "allwinner,sun9i-a80-apb0-clk";
199 reg = <0x06000070 0x4>;
200 clocks = <&osc24M>, <&pll4>;
201 clock-output-names = "apb0";
206 compatible = "allwinner,sun9i-a80-apb1-clk";
207 reg = <0x06000074 0x4>;
208 clocks = <&osc24M>, <&pll4>;
209 clock-output-names = "apb1";
212 cci400_clk: clk@06000078 {
214 compatible = "allwinner,sun9i-a80-gt-clk";
215 reg = <0x06000078 0x4>;
216 clocks = <&osc24M>, <&pll4>, <&pll12>, <&pll12>;
217 clock-output-names = "cci400";
220 ahb0_gates: clk@06000580 {
222 compatible = "allwinner,sun9i-a80-ahb0-gates-clk";
223 reg = <0x06000580 0x4>;
225 clock-output-names = "ahb0_fd", "ahb0_ve", "ahb0_gpu",
226 "ahb0_ss", "ahb0_sd", "ahb0_nand1",
227 "ahb0_nand0", "ahb0_sdram",
228 "ahb0_mipi_hsi", "ahb0_sata", "ahb0_ts",
229 "ahb0_spi0","ahb0_spi1", "ahb0_spi2",
233 ahb1_gates: clk@06000584 {
235 compatible = "allwinner,sun9i-a80-ahb1-gates-clk";
236 reg = <0x06000584 0x4>;
238 clock-output-names = "ahb1_usbotg", "ahb1_usbhci",
239 "ahb1_gmac", "ahb1_msgbox",
240 "ahb1_spinlock", "ahb1_hstimer",
244 ahb2_gates: clk@06000588 {
246 compatible = "allwinner,sun9i-a80-ahb2-gates-clk";
247 reg = <0x06000588 0x4>;
249 clock-output-names = "ahb2_lcd0", "ahb2_lcd1",
250 "ahb2_edp", "ahb2_csi", "ahb2_hdmi",
251 "ahb2_de", "ahb2_mp", "ahb2_mipi_dsi";
254 apb0_gates: clk@06000590 {
256 compatible = "allwinner,sun9i-a80-apb0-gates-clk";
257 reg = <0x06000590 0x4>;
259 clock-output-names = "apb0_spdif", "apb0_pio",
260 "apb0_ac97", "apb0_i2s0", "apb0_i2s1",
261 "apb0_lradc", "apb0_gpadc", "apb0_twd",
265 apb1_gates: clk@06000594 {
267 compatible = "allwinner,sun9i-a80-apb1-gates-clk";
268 reg = <0x06000594 0x4>;
270 clock-output-names = "apb1_i2c0", "apb1_i2c1",
271 "apb1_i2c2", "apb1_i2c3", "apb1_i2c4",
272 "apb1_uart0", "apb1_uart1",
273 "apb1_uart2", "apb1_uart3",
274 "apb1_uart4", "apb1_uart5";
279 compatible = "simple-bus";
280 #address-cells = <1>;
283 * map 64 bit address range down to 32 bits,
284 * as the peripherals are all under 512MB.
286 ranges = <0 0 0 0x20000000>;
288 gic: interrupt-controller@01c41000 {
289 compatible = "arm,cortex-a7-gic", "arm,cortex-a15-gic";
290 reg = <0x01c41000 0x1000>,
294 interrupt-controller;
295 #interrupt-cells = <3>;
296 interrupts = <1 9 0xf04>;
299 ahb0_resets: reset@060005a0 {
301 compatible = "allwinner,sun6i-a31-clock-reset";
302 reg = <0x060005a0 0x4>;
305 ahb1_resets: reset@060005a4 {
307 compatible = "allwinner,sun6i-a31-clock-reset";
308 reg = <0x060005a4 0x4>;
311 ahb2_resets: reset@060005a8 {
313 compatible = "allwinner,sun6i-a31-clock-reset";
314 reg = <0x060005a8 0x4>;
317 apb0_resets: reset@060005b0 {
319 compatible = "allwinner,sun6i-a31-clock-reset";
320 reg = <0x060005b0 0x4>;
323 apb1_resets: reset@060005b4 {
325 compatible = "allwinner,sun6i-a31-clock-reset";
326 reg = <0x060005b4 0x4>;
330 compatible = "allwinner,sun4i-a10-timer";
331 reg = <0x06000c00 0xa0>;
332 interrupts = <0 18 4>,
342 pio: pinctrl@06000800 {
343 compatible = "allwinner,sun9i-a80-pinctrl";
344 reg = <0x06000800 0x400>;
345 interrupts = <0 11 4>,
350 clocks = <&apb0_gates 5>;
352 interrupt-controller;
353 #interrupt-cells = <2>;
357 i2c3_pins_a: i2c3@0 {
358 allwinner,pins = "PG10", "PG11";
359 allwinner,function = "i2c3";
360 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
361 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
364 uart0_pins_a: uart0@0 {
365 allwinner,pins = "PH12", "PH13";
366 allwinner,function = "uart0";
367 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
368 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
371 uart4_pins_a: uart4@0 {
372 allwinner,pins = "PG12", "PG13", "PG14", "PG15";
373 allwinner,function = "uart4";
374 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
375 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
379 uart0: serial@07000000 {
380 compatible = "snps,dw-apb-uart";
381 reg = <0x07000000 0x400>;
382 interrupts = <0 0 4>;
385 clocks = <&apb1_gates 16>;
386 resets = <&apb1_resets 16>;
390 uart1: serial@07000400 {
391 compatible = "snps,dw-apb-uart";
392 reg = <0x07000400 0x400>;
393 interrupts = <0 1 4>;
396 clocks = <&apb1_gates 17>;
397 resets = <&apb1_resets 17>;
401 uart2: serial@07000800 {
402 compatible = "snps,dw-apb-uart";
403 reg = <0x07000800 0x400>;
404 interrupts = <0 2 4>;
407 clocks = <&apb1_gates 18>;
408 resets = <&apb1_resets 18>;
412 uart3: serial@07000c00 {
413 compatible = "snps,dw-apb-uart";
414 reg = <0x07000c00 0x400>;
415 interrupts = <0 3 4>;
418 clocks = <&apb1_gates 19>;
419 resets = <&apb1_resets 19>;
423 uart4: serial@07001000 {
424 compatible = "snps,dw-apb-uart";
425 reg = <0x07001000 0x400>;
426 interrupts = <0 4 4>;
429 clocks = <&apb1_gates 20>;
430 resets = <&apb1_resets 20>;
434 uart5: serial@07001400 {
435 compatible = "snps,dw-apb-uart";
436 reg = <0x07001400 0x400>;
437 interrupts = <0 5 4>;
440 clocks = <&apb1_gates 21>;
441 resets = <&apb1_resets 21>;
446 compatible = "allwinner,sun6i-a31-i2c";
447 reg = <0x07002800 0x400>;
448 interrupts = <0 6 4>;
449 clocks = <&apb1_gates 0>;
450 resets = <&apb1_resets 0>;
452 #address-cells = <1>;
457 compatible = "allwinner,sun6i-a31-i2c";
458 reg = <0x07002c00 0x400>;
459 interrupts = <0 7 4>;
460 clocks = <&apb1_gates 1>;
461 resets = <&apb1_resets 1>;
463 #address-cells = <1>;
468 compatible = "allwinner,sun6i-a31-i2c";
469 reg = <0x07003000 0x400>;
470 interrupts = <0 8 4>;
471 clocks = <&apb1_gates 2>;
472 resets = <&apb1_resets 2>;
474 #address-cells = <1>;
479 compatible = "allwinner,sun6i-a31-i2c";
480 reg = <0x07003400 0x400>;
481 interrupts = <0 9 4>;
482 clocks = <&apb1_gates 3>;
483 resets = <&apb1_resets 3>;
485 #address-cells = <1>;
490 compatible = "allwinner,sun6i-a31-i2c";
491 reg = <0x07003800 0x400>;
492 interrupts = <0 10 4>;
493 clocks = <&apb1_gates 4>;
494 resets = <&apb1_resets 4>;
496 #address-cells = <1>;
500 r_wdt: watchdog@08001000 {
501 compatible = "allwinner,sun6i-a31-wdt";
502 reg = <0x08001000 0x20>;
503 interrupts = <0 36 4>;
506 r_uart: serial@08002800 {
507 compatible = "snps,dw-apb-uart";
508 reg = <0x08002800 0x400>;
509 interrupts = <0 38 4>;