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>;
68 compatible = "allwinner,sun4i-pll1-clk";
69 reg = <0x01c20018 0x4>;
75 compatible = "allwinner,sun4i-pll5-clk";
76 reg = <0x01c20020 0x4>;
78 clock-output-names = "pll5_ddr", "pll5_other";
83 compatible = "allwinner,sun4i-pll6-clk";
84 reg = <0x01c20028 0x4>;
86 clock-output-names = "pll6_sata", "pll6_other", "pll6";
92 compatible = "allwinner,sun4i-cpu-clk";
93 reg = <0x01c20054 0x4>;
94 clocks = <&osc32k>, <&osc24M>, <&pll1>, <&dummy>;
99 compatible = "allwinner,sun4i-axi-clk";
100 reg = <0x01c20054 0x4>;
104 axi_gates: axi_gates@01c2005c {
106 compatible = "allwinner,sun4i-axi-gates-clk";
107 reg = <0x01c2005c 0x4>;
109 clock-output-names = "axi_dram";
114 compatible = "allwinner,sun4i-ahb-clk";
115 reg = <0x01c20054 0x4>;
119 ahb_gates: ahb_gates@01c20060 {
121 compatible = "allwinner,sun5i-a10s-ahb-gates-clk";
122 reg = <0x01c20060 0x8>;
124 clock-output-names = "ahb_usbotg", "ahb_ehci", "ahb_ohci",
125 "ahb_ss", "ahb_dma", "ahb_bist", "ahb_mmc0",
126 "ahb_mmc1", "ahb_mmc2", "ahb_nand", "ahb_sdram",
127 "ahb_emac", "ahb_ts", "ahb_spi0", "ahb_spi1",
128 "ahb_spi2", "ahb_gps", "ahb_stimer", "ahb_ve",
129 "ahb_tve", "ahb_lcd", "ahb_csi", "ahb_hdmi",
130 "ahb_de_be", "ahb_de_fe", "ahb_iep", "ahb_mali400";
133 apb0: apb0@01c20054 {
135 compatible = "allwinner,sun4i-apb0-clk";
136 reg = <0x01c20054 0x4>;
140 apb0_gates: apb0_gates@01c20068 {
142 compatible = "allwinner,sun5i-a10s-apb0-gates-clk";
143 reg = <0x01c20068 0x4>;
145 clock-output-names = "apb0_codec", "apb0_iis", "apb0_pio",
146 "apb0_ir", "apb0_keypad";
149 apb1_mux: apb1_mux@01c20058 {
151 compatible = "allwinner,sun4i-apb1-mux-clk";
152 reg = <0x01c20058 0x4>;
153 clocks = <&osc24M>, <&pll6 1>, <&osc32k>;
156 apb1: apb1@01c20058 {
158 compatible = "allwinner,sun4i-apb1-clk";
159 reg = <0x01c20058 0x4>;
160 clocks = <&apb1_mux>;
163 apb1_gates: apb1_gates@01c2006c {
165 compatible = "allwinner,sun5i-a10s-apb1-gates-clk";
166 reg = <0x01c2006c 0x4>;
168 clock-output-names = "apb1_i2c0", "apb1_i2c1",
169 "apb1_i2c2", "apb1_uart0", "apb1_uart1",
170 "apb1_uart2", "apb1_uart3";
173 nand_clk: clk@01c20080 {
175 compatible = "allwinner,sun4i-mod0-clk";
176 reg = <0x01c20080 0x4>;
177 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
178 clock-output-names = "nand";
181 ms_clk: clk@01c20084 {
183 compatible = "allwinner,sun4i-mod0-clk";
184 reg = <0x01c20084 0x4>;
185 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
186 clock-output-names = "ms";
189 mmc0_clk: clk@01c20088 {
191 compatible = "allwinner,sun4i-mod0-clk";
192 reg = <0x01c20088 0x4>;
193 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
194 clock-output-names = "mmc0";
197 mmc1_clk: clk@01c2008c {
199 compatible = "allwinner,sun4i-mod0-clk";
200 reg = <0x01c2008c 0x4>;
201 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
202 clock-output-names = "mmc1";
205 mmc2_clk: clk@01c20090 {
207 compatible = "allwinner,sun4i-mod0-clk";
208 reg = <0x01c20090 0x4>;
209 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
210 clock-output-names = "mmc2";
213 ts_clk: clk@01c20098 {
215 compatible = "allwinner,sun4i-mod0-clk";
216 reg = <0x01c20098 0x4>;
217 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
218 clock-output-names = "ts";
221 ss_clk: clk@01c2009c {
223 compatible = "allwinner,sun4i-mod0-clk";
224 reg = <0x01c2009c 0x4>;
225 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
226 clock-output-names = "ss";
229 spi0_clk: clk@01c200a0 {
231 compatible = "allwinner,sun4i-mod0-clk";
232 reg = <0x01c200a0 0x4>;
233 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
234 clock-output-names = "spi0";
237 spi1_clk: clk@01c200a4 {
239 compatible = "allwinner,sun4i-mod0-clk";
240 reg = <0x01c200a4 0x4>;
241 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
242 clock-output-names = "spi1";
245 spi2_clk: clk@01c200a8 {
247 compatible = "allwinner,sun4i-mod0-clk";
248 reg = <0x01c200a8 0x4>;
249 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
250 clock-output-names = "spi2";
253 ir0_clk: clk@01c200b0 {
255 compatible = "allwinner,sun4i-mod0-clk";
256 reg = <0x01c200b0 0x4>;
257 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
258 clock-output-names = "ir0";
261 mbus_clk: clk@01c2015c {
263 compatible = "allwinner,sun4i-mod0-clk";
264 reg = <0x01c2015c 0x4>;
265 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
266 clock-output-names = "mbus";
271 compatible = "simple-bus";
272 #address-cells = <1>;
276 emac: ethernet@01c0b000 {
277 compatible = "allwinner,sun4i-emac";
278 reg = <0x01c0b000 0x1000>;
280 clocks = <&ahb_gates 17>;
285 compatible = "allwinner,sun4i-mdio";
286 reg = <0x01c0b080 0x14>;
288 #address-cells = <1>;
292 intc: interrupt-controller@01c20400 {
293 compatible = "allwinner,sun4i-ic";
294 reg = <0x01c20400 0x400>;
295 interrupt-controller;
296 #interrupt-cells = <1>;
299 pio: pinctrl@01c20800 {
300 compatible = "allwinner,sun5i-a10s-pinctrl";
301 reg = <0x01c20800 0x400>;
303 clocks = <&apb0_gates 5>;
305 interrupt-controller;
306 #address-cells = <1>;
310 uart0_pins_a: uart0@0 {
311 allwinner,pins = "PB19", "PB20";
312 allwinner,function = "uart0";
313 allwinner,drive = <0>;
314 allwinner,pull = <0>;
317 uart2_pins_a: uart2@0 {
318 allwinner,pins = "PC18", "PC19";
319 allwinner,function = "uart2";
320 allwinner,drive = <0>;
321 allwinner,pull = <0>;
324 uart3_pins_a: uart3@0 {
325 allwinner,pins = "PG9", "PG10";
326 allwinner,function = "uart3";
327 allwinner,drive = <0>;
328 allwinner,pull = <0>;
331 emac_pins_a: emac0@0 {
332 allwinner,pins = "PA0", "PA1", "PA2",
333 "PA3", "PA4", "PA5", "PA6",
334 "PA7", "PA8", "PA9", "PA10",
335 "PA11", "PA12", "PA13", "PA14",
337 allwinner,function = "emac";
338 allwinner,drive = <0>;
339 allwinner,pull = <0>;
342 i2c0_pins_a: i2c0@0 {
343 allwinner,pins = "PB0", "PB1";
344 allwinner,function = "i2c0";
345 allwinner,drive = <0>;
346 allwinner,pull = <0>;
349 i2c1_pins_a: i2c1@0 {
350 allwinner,pins = "PB15", "PB16";
351 allwinner,function = "i2c1";
352 allwinner,drive = <0>;
353 allwinner,pull = <0>;
356 i2c2_pins_a: i2c2@0 {
357 allwinner,pins = "PB17", "PB18";
358 allwinner,function = "i2c2";
359 allwinner,drive = <0>;
360 allwinner,pull = <0>;
365 compatible = "allwinner,sun4i-timer";
366 reg = <0x01c20c00 0x90>;
371 wdt: watchdog@01c20c90 {
372 compatible = "allwinner,sun4i-wdt";
373 reg = <0x01c20c90 0x10>;
376 sid: eeprom@01c23800 {
377 compatible = "allwinner,sun4i-sid";
378 reg = <0x01c23800 0x10>;
381 uart0: serial@01c28000 {
382 compatible = "snps,dw-apb-uart";
383 reg = <0x01c28000 0x400>;
387 clocks = <&apb1_gates 16>;
391 uart1: serial@01c28400 {
392 compatible = "snps,dw-apb-uart";
393 reg = <0x01c28400 0x400>;
397 clocks = <&apb1_gates 17>;
401 uart2: serial@01c28800 {
402 compatible = "snps,dw-apb-uart";
403 reg = <0x01c28800 0x400>;
407 clocks = <&apb1_gates 18>;
411 uart3: serial@01c28c00 {
412 compatible = "snps,dw-apb-uart";
413 reg = <0x01c28c00 0x400>;
417 clocks = <&apb1_gates 19>;
422 #address-cells = <1>;
424 compatible = "allwinner,sun4i-i2c";
425 reg = <0x01c2ac00 0x400>;
427 clocks = <&apb1_gates 0>;
428 clock-frequency = <100000>;
433 #address-cells = <1>;
435 compatible = "allwinner,sun4i-i2c";
436 reg = <0x01c2b000 0x400>;
438 clocks = <&apb1_gates 1>;
439 clock-frequency = <100000>;
444 #address-cells = <1>;
446 compatible = "allwinner,sun4i-i2c";
447 reg = <0x01c2b400 0x400>;
449 clocks = <&apb1_gates 2>;
450 clock-frequency = <100000>;