blob: b29412ac98dfa507111a8eadfdff17545d56397f [file] [log] [blame]
Maxime Ripardd3ae0782013-06-09 10:40:53 +02001/*
2 * Copyright 2013 Maxime Ripard
3 *
4 * Maxime Ripard <maxime.ripard@free-electrons.com>
5 *
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:
9 *
10 * http://www.opensource.org/licenses/gpl-license.html
11 * http://www.gnu.org/copyleft/gpl.html
12 */
13
14/include/ "skeleton.dtsi"
15
16/ {
17 interrupt-parent = <&intc>;
18
19 cpus {
20 cpu@0 {
21 compatible = "arm,cortex-a8";
22 };
23 };
24
25 memory {
26 reg = <0x40000000 0x20000000>;
27 };
28
29 clocks {
30 #address-cells = <1>;
31 #size-cells = <1>;
32 ranges;
33
34 /*
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
38 * is complete.
39 */
40 dummy: dummy {
41 #clock-cells = <0>;
42 compatible = "fixed-clock";
43 clock-frequency = <0>;
44 };
45
46 osc24M: osc24M@01c20050 {
47 #clock-cells = <0>;
48 compatible = "allwinner,sun4i-osc-clk";
49 reg = <0x01c20050 0x4>;
50 clock-frequency = <24000000>;
51 };
52
53 osc32k: osc32k {
54 #clock-cells = <0>;
55 compatible = "fixed-clock";
56 clock-frequency = <32768>;
57 };
58
59 pll1: pll1@01c20000 {
60 #clock-cells = <0>;
61 compatible = "allwinner,sun4i-pll1-clk";
62 reg = <0x01c20000 0x4>;
63 clocks = <&osc24M>;
64 };
65
Emilio Lópezec5589f2013-12-23 00:32:35 -030066 pll4: pll4@01c20018 {
67 #clock-cells = <0>;
68 compatible = "allwinner,sun4i-pll1-clk";
69 reg = <0x01c20018 0x4>;
70 clocks = <&osc24M>;
71 };
72
Emilio Lópezc3e5e662013-12-23 00:32:38 -030073 pll5: pll5@01c20020 {
74 #clock-cells = <1>;
75 compatible = "allwinner,sun4i-pll5-clk";
76 reg = <0x01c20020 0x4>;
77 clocks = <&osc24M>;
78 clock-output-names = "pll5_ddr", "pll5_other";
79 };
80
81 pll6: pll6@01c20028 {
82 #clock-cells = <1>;
83 compatible = "allwinner,sun4i-pll6-clk";
84 reg = <0x01c20028 0x4>;
85 clocks = <&osc24M>;
86 clock-output-names = "pll6_sata", "pll6_other", "pll6";
87 };
88
Maxime Ripardd3ae0782013-06-09 10:40:53 +020089 /* dummy is 200M */
90 cpu: cpu@01c20054 {
91 #clock-cells = <0>;
92 compatible = "allwinner,sun4i-cpu-clk";
93 reg = <0x01c20054 0x4>;
94 clocks = <&osc32k>, <&osc24M>, <&pll1>, <&dummy>;
95 };
96
97 axi: axi@01c20054 {
98 #clock-cells = <0>;
99 compatible = "allwinner,sun4i-axi-clk";
100 reg = <0x01c20054 0x4>;
101 clocks = <&cpu>;
102 };
103
104 axi_gates: axi_gates@01c2005c {
105 #clock-cells = <1>;
106 compatible = "allwinner,sun4i-axi-gates-clk";
107 reg = <0x01c2005c 0x4>;
108 clocks = <&axi>;
109 clock-output-names = "axi_dram";
110 };
111
112 ahb: ahb@01c20054 {
113 #clock-cells = <0>;
114 compatible = "allwinner,sun4i-ahb-clk";
115 reg = <0x01c20054 0x4>;
116 clocks = <&axi>;
117 };
118
119 ahb_gates: ahb_gates@01c20060 {
120 #clock-cells = <1>;
Maxime Ripard29bb8052013-07-16 11:28:58 +0200121 compatible = "allwinner,sun5i-a10s-ahb-gates-clk";
Maxime Ripardd3ae0782013-06-09 10:40:53 +0200122 reg = <0x01c20060 0x8>;
123 clocks = <&ahb>;
Maxime Ripard29bb8052013-07-16 11:28:58 +0200124 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";
Maxime Ripardd3ae0782013-06-09 10:40:53 +0200131 };
132
133 apb0: apb0@01c20054 {
134 #clock-cells = <0>;
135 compatible = "allwinner,sun4i-apb0-clk";
136 reg = <0x01c20054 0x4>;
137 clocks = <&ahb>;
138 };
139
140 apb0_gates: apb0_gates@01c20068 {
141 #clock-cells = <1>;
Maxime Ripard29bb8052013-07-16 11:28:58 +0200142 compatible = "allwinner,sun5i-a10s-apb0-gates-clk";
Maxime Ripardd3ae0782013-06-09 10:40:53 +0200143 reg = <0x01c20068 0x4>;
144 clocks = <&apb0>;
Maxime Ripard29bb8052013-07-16 11:28:58 +0200145 clock-output-names = "apb0_codec", "apb0_iis", "apb0_pio",
146 "apb0_ir", "apb0_keypad";
Maxime Ripardd3ae0782013-06-09 10:40:53 +0200147 };
148
Maxime Ripardd3ae0782013-06-09 10:40:53 +0200149 apb1_mux: apb1_mux@01c20058 {
150 #clock-cells = <0>;
151 compatible = "allwinner,sun4i-apb1-mux-clk";
152 reg = <0x01c20058 0x4>;
Emilio Lópezc3e5e662013-12-23 00:32:38 -0300153 clocks = <&osc24M>, <&pll6 1>, <&osc32k>;
Maxime Ripardd3ae0782013-06-09 10:40:53 +0200154 };
155
156 apb1: apb1@01c20058 {
157 #clock-cells = <0>;
158 compatible = "allwinner,sun4i-apb1-clk";
159 reg = <0x01c20058 0x4>;
160 clocks = <&apb1_mux>;
161 };
162
163 apb1_gates: apb1_gates@01c2006c {
164 #clock-cells = <1>;
Maxime Ripard29bb8052013-07-16 11:28:58 +0200165 compatible = "allwinner,sun5i-a10s-apb1-gates-clk";
Maxime Ripardd3ae0782013-06-09 10:40:53 +0200166 reg = <0x01c2006c 0x4>;
167 clocks = <&apb1>;
168 clock-output-names = "apb1_i2c0", "apb1_i2c1",
Maxime Ripard29bb8052013-07-16 11:28:58 +0200169 "apb1_i2c2", "apb1_uart0", "apb1_uart1",
170 "apb1_uart2", "apb1_uart3";
Maxime Ripardd3ae0782013-06-09 10:40:53 +0200171 };
172 };
173
Maxime Ripard9e199292013-08-03 16:07:36 +0200174 soc@01c00000 {
Maxime Ripardd3ae0782013-06-09 10:40:53 +0200175 compatible = "simple-bus";
176 #address-cells = <1>;
177 #size-cells = <1>;
Maxime Ripardd3ae0782013-06-09 10:40:53 +0200178 ranges;
179
180 emac: ethernet@01c0b000 {
181 compatible = "allwinner,sun4i-emac";
182 reg = <0x01c0b000 0x1000>;
183 interrupts = <55>;
184 clocks = <&ahb_gates 17>;
185 status = "disabled";
186 };
187
188 mdio@01c0b080 {
189 compatible = "allwinner,sun4i-mdio";
190 reg = <0x01c0b080 0x14>;
191 status = "disabled";
192 #address-cells = <1>;
193 #size-cells = <0>;
194 };
195
196 intc: interrupt-controller@01c20400 {
197 compatible = "allwinner,sun4i-ic";
198 reg = <0x01c20400 0x400>;
199 interrupt-controller;
200 #interrupt-cells = <1>;
201 };
202
203 pio: pinctrl@01c20800 {
204 compatible = "allwinner,sun5i-a10s-pinctrl";
205 reg = <0x01c20800 0x400>;
206 interrupts = <28>;
207 clocks = <&apb0_gates 5>;
208 gpio-controller;
209 interrupt-controller;
210 #address-cells = <1>;
211 #size-cells = <0>;
212 #gpio-cells = <3>;
213
214 uart0_pins_a: uart0@0 {
215 allwinner,pins = "PB19", "PB20";
216 allwinner,function = "uart0";
217 allwinner,drive = <0>;
218 allwinner,pull = <0>;
219 };
220
221 uart2_pins_a: uart2@0 {
222 allwinner,pins = "PC18", "PC19";
223 allwinner,function = "uart2";
224 allwinner,drive = <0>;
225 allwinner,pull = <0>;
226 };
227
228 uart3_pins_a: uart3@0 {
229 allwinner,pins = "PG9", "PG10";
230 allwinner,function = "uart3";
231 allwinner,drive = <0>;
232 allwinner,pull = <0>;
233 };
234
235 emac_pins_a: emac0@0 {
236 allwinner,pins = "PA0", "PA1", "PA2",
237 "PA3", "PA4", "PA5", "PA6",
238 "PA7", "PA8", "PA9", "PA10",
239 "PA11", "PA12", "PA13", "PA14",
240 "PA15", "PA16";
241 allwinner,function = "emac";
242 allwinner,drive = <0>;
243 allwinner,pull = <0>;
244 };
Emilio López170ab432013-07-07 18:31:56 -0300245
246 i2c0_pins_a: i2c0@0 {
247 allwinner,pins = "PB0", "PB1";
248 allwinner,function = "i2c0";
249 allwinner,drive = <0>;
250 allwinner,pull = <0>;
251 };
252
253 i2c1_pins_a: i2c1@0 {
254 allwinner,pins = "PB15", "PB16";
255 allwinner,function = "i2c1";
256 allwinner,drive = <0>;
257 allwinner,pull = <0>;
258 };
259
260 i2c2_pins_a: i2c2@0 {
261 allwinner,pins = "PB17", "PB18";
262 allwinner,function = "i2c2";
263 allwinner,drive = <0>;
264 allwinner,pull = <0>;
265 };
Maxime Ripardd3ae0782013-06-09 10:40:53 +0200266 };
267
268 timer@01c20c00 {
269 compatible = "allwinner,sun4i-timer";
270 reg = <0x01c20c00 0x90>;
271 interrupts = <22>;
272 clocks = <&osc24M>;
273 };
274
275 wdt: watchdog@01c20c90 {
276 compatible = "allwinner,sun4i-wdt";
277 reg = <0x01c20c90 0x10>;
278 };
279
Oliver Schinagl2bad9692013-09-03 12:33:28 +0200280 sid: eeprom@01c23800 {
281 compatible = "allwinner,sun4i-sid";
282 reg = <0x01c23800 0x10>;
283 };
284
Maxime Ripardd3ae0782013-06-09 10:40:53 +0200285 uart0: serial@01c28000 {
286 compatible = "snps,dw-apb-uart";
287 reg = <0x01c28000 0x400>;
288 interrupts = <1>;
289 reg-shift = <2>;
290 reg-io-width = <4>;
291 clocks = <&apb1_gates 16>;
292 status = "disabled";
293 };
294
295 uart1: serial@01c28400 {
296 compatible = "snps,dw-apb-uart";
297 reg = <0x01c28400 0x400>;
298 interrupts = <2>;
299 reg-shift = <2>;
300 reg-io-width = <4>;
301 clocks = <&apb1_gates 17>;
302 status = "disabled";
303 };
304
305 uart2: serial@01c28800 {
306 compatible = "snps,dw-apb-uart";
307 reg = <0x01c28800 0x400>;
308 interrupts = <3>;
309 reg-shift = <2>;
310 reg-io-width = <4>;
311 clocks = <&apb1_gates 18>;
312 status = "disabled";
313 };
314
315 uart3: serial@01c28c00 {
316 compatible = "snps,dw-apb-uart";
317 reg = <0x01c28c00 0x400>;
318 interrupts = <4>;
319 reg-shift = <2>;
320 reg-io-width = <4>;
321 clocks = <&apb1_gates 19>;
322 status = "disabled";
323 };
Emilio Lópezca3d4ed2013-07-07 18:31:57 -0300324
325 i2c0: i2c@01c2ac00 {
326 #address-cells = <1>;
327 #size-cells = <0>;
328 compatible = "allwinner,sun4i-i2c";
329 reg = <0x01c2ac00 0x400>;
330 interrupts = <7>;
331 clocks = <&apb1_gates 0>;
332 clock-frequency = <100000>;
333 status = "disabled";
334 };
335
336 i2c1: i2c@01c2b000 {
337 #address-cells = <1>;
338 #size-cells = <0>;
339 compatible = "allwinner,sun4i-i2c";
340 reg = <0x01c2b000 0x400>;
341 interrupts = <8>;
342 clocks = <&apb1_gates 1>;
343 clock-frequency = <100000>;
344 status = "disabled";
345 };
346
347 i2c2: i2c@01c2b400 {
348 #address-cells = <1>;
349 #size-cells = <0>;
350 compatible = "allwinner,sun4i-i2c";
351 reg = <0x01c2b400 0x400>;
352 interrupts = <9>;
353 clocks = <&apb1_gates 2>;
354 clock-frequency = <100000>;
355 status = "disabled";
356 };
Maxime Ripardd3ae0782013-06-09 10:40:53 +0200357 };
358};