2 * Copyright 2013 Maxime Ripard
4 * Maxime Ripard <maxime.ripard@free-electrons.com>
6 * The code contained herein is licensed under the GNU General Public
7 * License. You may obtain a copy of the GNU General Public License
8 * Version 2 or later at the following locations:
10 * http://www.opensource.org/licenses/gpl-license.html
11 * http://www.gnu.org/copyleft/gpl.html
14 /include/ "skeleton.dtsi"
17 interrupt-parent = <&intc>;
21 compatible = "arm,cortex-a8";
26 reg = <0x40000000 0x20000000>;
35 * This is a dummy clock, to be used as placeholder on
36 * other mux clocks when a specific parent clock is not
37 * yet implemented. It should be dropped when the driver
42 compatible = "fixed-clock";
43 clock-frequency = <0>;
46 osc24M: osc24M@01c20050 {
48 compatible = "allwinner,sun4i-osc-clk";
49 reg = <0x01c20050 0x4>;
50 clock-frequency = <24000000>;
55 compatible = "fixed-clock";
56 clock-frequency = <32768>;
61 compatible = "allwinner,sun4i-pll1-clk";
62 reg = <0x01c20000 0x4>;
69 compatible = "allwinner,sun4i-cpu-clk";
70 reg = <0x01c20054 0x4>;
71 clocks = <&osc32k>, <&osc24M>, <&pll1>, <&dummy>;
76 compatible = "allwinner,sun4i-axi-clk";
77 reg = <0x01c20054 0x4>;
81 axi_gates: axi_gates@01c2005c {
83 compatible = "allwinner,sun4i-axi-gates-clk";
84 reg = <0x01c2005c 0x4>;
86 clock-output-names = "axi_dram";
91 compatible = "allwinner,sun4i-ahb-clk";
92 reg = <0x01c20054 0x4>;
96 ahb_gates: ahb_gates@01c20060 {
98 compatible = "allwinner,sun4i-ahb-gates-clk";
99 reg = <0x01c20060 0x8>;
101 clock-output-names = "ahb_usb0", "ahb_ehci0",
102 "ahb_ohci0", "ahb_ehci1", "ahb_ohci1", "ahb_ss",
103 "ahb_dma", "ahb_bist", "ahb_mmc0", "ahb_mmc1",
104 "ahb_mmc2", "ahb_mmc3", "ahb_ms", "ahb_nand",
105 "ahb_sdram", "ahb_ace", "ahb_emac", "ahb_ts",
106 "ahb_spi0", "ahb_spi1", "ahb_spi2", "ahb_spi3",
107 "ahb_pata", "ahb_sata", "ahb_gps", "ahb_ve",
108 "ahb_tvd", "ahb_tve0", "ahb_tve1", "ahb_lcd0",
109 "ahb_lcd1", "ahb_csi0", "ahb_csi1", "ahb_hdmi",
110 "ahb_de_be0", "ahb_de_be1", "ahb_de_fe0",
111 "ahb_de_fe1", "ahb_mp", "ahb_mali400";
114 apb0: apb0@01c20054 {
116 compatible = "allwinner,sun4i-apb0-clk";
117 reg = <0x01c20054 0x4>;
121 apb0_gates: apb0_gates@01c20068 {
123 compatible = "allwinner,sun4i-apb0-gates-clk";
124 reg = <0x01c20068 0x4>;
126 clock-output-names = "apb0_codec", "apb0_spdif",
127 "apb0_ac97", "apb0_iis", "apb0_pio", "apb0_ir0",
128 "apb0_ir1", "apb0_keypad";
132 apb1_mux: apb1_mux@01c20058 {
134 compatible = "allwinner,sun4i-apb1-mux-clk";
135 reg = <0x01c20058 0x4>;
136 clocks = <&osc24M>, <&dummy>, <&osc32k>;
139 apb1: apb1@01c20058 {
141 compatible = "allwinner,sun4i-apb1-clk";
142 reg = <0x01c20058 0x4>;
143 clocks = <&apb1_mux>;
146 apb1_gates: apb1_gates@01c2006c {
148 compatible = "allwinner,sun4i-apb1-gates-clk";
149 reg = <0x01c2006c 0x4>;
151 clock-output-names = "apb1_i2c0", "apb1_i2c1",
152 "apb1_i2c2", "apb1_can", "apb1_scr",
153 "apb1_ps20", "apb1_ps21", "apb1_uart0",
154 "apb1_uart1", "apb1_uart2", "apb1_uart3",
155 "apb1_uart4", "apb1_uart5", "apb1_uart6",
161 compatible = "simple-bus";
162 #address-cells = <1>;
164 reg = <0x01c20000 0x300000>;
167 emac: ethernet@01c0b000 {
168 compatible = "allwinner,sun4i-emac";
169 reg = <0x01c0b000 0x1000>;
171 clocks = <&ahb_gates 17>;
176 compatible = "allwinner,sun4i-mdio";
177 reg = <0x01c0b080 0x14>;
179 #address-cells = <1>;
183 intc: interrupt-controller@01c20400 {
184 compatible = "allwinner,sun4i-ic";
185 reg = <0x01c20400 0x400>;
186 interrupt-controller;
187 #interrupt-cells = <1>;
190 pio: pinctrl@01c20800 {
191 compatible = "allwinner,sun5i-a10s-pinctrl";
192 reg = <0x01c20800 0x400>;
194 clocks = <&apb0_gates 5>;
196 interrupt-controller;
197 #address-cells = <1>;
201 uart0_pins_a: uart0@0 {
202 allwinner,pins = "PB19", "PB20";
203 allwinner,function = "uart0";
204 allwinner,drive = <0>;
205 allwinner,pull = <0>;
208 uart2_pins_a: uart2@0 {
209 allwinner,pins = "PC18", "PC19";
210 allwinner,function = "uart2";
211 allwinner,drive = <0>;
212 allwinner,pull = <0>;
215 uart3_pins_a: uart3@0 {
216 allwinner,pins = "PG9", "PG10";
217 allwinner,function = "uart3";
218 allwinner,drive = <0>;
219 allwinner,pull = <0>;
222 emac_pins_a: emac0@0 {
223 allwinner,pins = "PA0", "PA1", "PA2",
224 "PA3", "PA4", "PA5", "PA6",
225 "PA7", "PA8", "PA9", "PA10",
226 "PA11", "PA12", "PA13", "PA14",
228 allwinner,function = "emac";
229 allwinner,drive = <0>;
230 allwinner,pull = <0>;
235 compatible = "allwinner,sun4i-timer";
236 reg = <0x01c20c00 0x90>;
241 wdt: watchdog@01c20c90 {
242 compatible = "allwinner,sun4i-wdt";
243 reg = <0x01c20c90 0x10>;
246 uart0: serial@01c28000 {
247 compatible = "snps,dw-apb-uart";
248 reg = <0x01c28000 0x400>;
252 clocks = <&apb1_gates 16>;
256 uart1: serial@01c28400 {
257 compatible = "snps,dw-apb-uart";
258 reg = <0x01c28400 0x400>;
262 clocks = <&apb1_gates 17>;
266 uart2: serial@01c28800 {
267 compatible = "snps,dw-apb-uart";
268 reg = <0x01c28800 0x400>;
272 clocks = <&apb1_gates 18>;
276 uart3: serial@01c28c00 {
277 compatible = "snps,dw-apb-uart";
278 reg = <0x01c28c00 0x400>;
282 clocks = <&apb1_gates 19>;