2 * Copyright (c) 2013 Ganbold Tsagaankhuu <ganbold@gmail.com>
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright
11 * notice, this list of conditions and the following disclaimer in the
12 * documentation and/or other materials provided with the distribution.
14 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
15 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
16 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
17 * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
32 model = "Cubietech Cubieboard2";
33 compatible = "cubietech,a20-cubieboard", "allwinner,sun7i-a20";
37 interrupt-parent = <&GIC>;
40 device_type = "memory";
41 reg = < 0x40000000 0x20000000 >; /* 512MB RAM */
52 compatible = "simple-bus";
56 GIC: interrupt-controller@01c81000 {
57 compatible = "arm,gic";
58 reg = <0x01c81000 0x1000>, /* Distributor Registers */
59 <0x01c82000 0x0100>; /* CPU Interface Registers */
61 #interrupt-cells = <1>;
65 compatible = "allwinner,sun7i-cpu-cfg";
68 reg = < 0x01c25c00 0x400 >;
72 compatible = "allwinner,sun4i-ccm";
75 reg = < 0x01c20000 0x400 >;
79 compatible = "allwinner,sun7i-timer";
80 reg = <0x01c20c00 0x90>;
82 interrupt-parent = <&GIC>;
83 clock-frequency = < 24000000 >;
87 compatible = "allwinner,sun4i-wdt";
88 reg = <0x01c20c90 0x10>;
93 compatible = "allwinner,sun4i-gpio";
95 reg =< 0x01c20800 0x400 >;
97 interrupt-parent = <&GIC>;
101 compatible = "allwinner,usb-ehci", "usb-ehci";
102 reg = <0x01c14000 0x1000>;
104 interrupt-parent = <&GIC>;
108 compatible = "allwinner,usb-ehci", "usb-ehci";
109 reg = <0x01c1c000 0x1000>;
111 interrupt-parent = <&GIC>;
115 compatible = "allwinner,ahci";
116 reg = <0x01c18000 0x1000>;
118 interrupt-parent = <&GIC>;
121 UART0: serial@01c28000 {
123 compatible = "ns16550";
124 reg = <0x01c28000 0x400>;
127 interrupt-parent = <&GIC>;
128 current-speed = <115200>;
129 clock-frequency = < 24000000 >;