blob: f5cba632fd95b59ac2da4be81aacf60875420a6f [file] [log] [blame]
Maxime Ripardd4da2eb2012-11-14 20:17:04 +01001/*
2 * Copyright 2012 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
Maxime Ripard69144e32013-03-13 20:07:37 +010014/include/ "skeleton.dtsi"
Maxime Ripardd4da2eb2012-11-14 20:17:04 +010015
16/ {
Maxime Ripard69144e32013-03-13 20:07:37 +010017 interrupt-parent = <&intc>;
18
19 cpus {
Arnd Bergmann8b2efa892013-06-10 16:48:36 +020020 #address-cells = <1>;
21 #size-cells = <0>;
Maxime Ripard69144e32013-03-13 20:07:37 +010022 cpu@0 {
Lorenzo Pieralisi14c44aa2013-04-18 18:41:57 +010023 device_type = "cpu";
Maxime Ripard69144e32013-03-13 20:07:37 +010024 compatible = "arm,cortex-a8";
Lorenzo Pieralisi14c44aa2013-04-18 18:41:57 +010025 reg = <0x0>;
Maxime Ripard69144e32013-03-13 20:07:37 +010026 };
27 };
28
Maxime Ripardd4da2eb2012-11-14 20:17:04 +010029 memory {
30 reg = <0x40000000 0x20000000>;
31 };
Maxime Ripard9e2dcb22013-01-18 22:30:36 +010032
Maxime Ripard69144e32013-03-13 20:07:37 +010033 clocks {
34 #address-cells = <1>;
35 #size-cells = <1>;
36 ranges;
37
38 /*
39 * This is a dummy clock, to be used as placeholder on
40 * other mux clocks when a specific parent clock is not
41 * yet implemented. It should be dropped when the driver
42 * is complete.
43 */
44 dummy: dummy {
45 #clock-cells = <0>;
46 compatible = "fixed-clock";
47 clock-frequency = <0>;
48 };
49
Maxime Ripard69144e32013-03-13 20:07:37 +010050 osc24M: osc24M@01c20050 {
51 #clock-cells = <0>;
52 compatible = "allwinner,sun4i-osc-clk";
53 reg = <0x01c20050 0x4>;
Emilio López92fd6e02013-04-09 10:48:04 -030054 clock-frequency = <24000000>;
Maxime Ripard69144e32013-03-13 20:07:37 +010055 };
56
57 osc32k: osc32k {
58 #clock-cells = <0>;
59 compatible = "fixed-clock";
60 clock-frequency = <32768>;
61 };
62
63 pll1: pll1@01c20000 {
64 #clock-cells = <0>;
65 compatible = "allwinner,sun4i-pll1-clk";
66 reg = <0x01c20000 0x4>;
67 clocks = <&osc24M>;
68 };
69
Emilio Lópezec5589f2013-12-23 00:32:35 -030070 pll4: pll4@01c20018 {
71 #clock-cells = <0>;
72 compatible = "allwinner,sun4i-pll1-clk";
73 reg = <0x01c20018 0x4>;
74 clocks = <&osc24M>;
75 };
76
Emilio Lópezc3e5e662013-12-23 00:32:38 -030077 pll5: pll5@01c20020 {
78 #clock-cells = <1>;
79 compatible = "allwinner,sun4i-pll5-clk";
80 reg = <0x01c20020 0x4>;
81 clocks = <&osc24M>;
82 clock-output-names = "pll5_ddr", "pll5_other";
83 };
84
85 pll6: pll6@01c20028 {
86 #clock-cells = <1>;
87 compatible = "allwinner,sun4i-pll6-clk";
88 reg = <0x01c20028 0x4>;
89 clocks = <&osc24M>;
90 clock-output-names = "pll6_sata", "pll6_other", "pll6";
91 };
92
Maxime Ripard69144e32013-03-13 20:07:37 +010093 /* dummy is 200M */
94 cpu: cpu@01c20054 {
95 #clock-cells = <0>;
96 compatible = "allwinner,sun4i-cpu-clk";
97 reg = <0x01c20054 0x4>;
98 clocks = <&osc32k>, <&osc24M>, <&pll1>, <&dummy>;
99 };
100
101 axi: axi@01c20054 {
102 #clock-cells = <0>;
103 compatible = "allwinner,sun4i-axi-clk";
104 reg = <0x01c20054 0x4>;
105 clocks = <&cpu>;
106 };
107
108 axi_gates: axi_gates@01c2005c {
109 #clock-cells = <1>;
110 compatible = "allwinner,sun4i-axi-gates-clk";
111 reg = <0x01c2005c 0x4>;
112 clocks = <&axi>;
113 clock-output-names = "axi_dram";
114 };
115
116 ahb: ahb@01c20054 {
117 #clock-cells = <0>;
118 compatible = "allwinner,sun4i-ahb-clk";
119 reg = <0x01c20054 0x4>;
120 clocks = <&axi>;
121 };
122
123 ahb_gates: ahb_gates@01c20060 {
124 #clock-cells = <1>;
Maxime Ripard70be4ee62013-04-19 22:14:41 +0200125 compatible = "allwinner,sun5i-a13-ahb-gates-clk";
Maxime Ripard69144e32013-03-13 20:07:37 +0100126 reg = <0x01c20060 0x8>;
127 clocks = <&ahb>;
Maxime Ripard70be4ee62013-04-19 22:14:41 +0200128 clock-output-names = "ahb_usbotg", "ahb_ehci", "ahb_ohci",
129 "ahb_ss", "ahb_dma", "ahb_bist", "ahb_mmc0",
130 "ahb_mmc1", "ahb_mmc2", "ahb_nand", "ahb_sdram",
131 "ahb_spi0", "ahb_spi1", "ahb_spi2", "ahb_stimer",
132 "ahb_ve", "ahb_lcd", "ahb_csi", "ahb_de_be",
133 "ahb_de_fe", "ahb_iep", "ahb_mali400";
Maxime Ripard69144e32013-03-13 20:07:37 +0100134 };
135
136 apb0: apb0@01c20054 {
137 #clock-cells = <0>;
138 compatible = "allwinner,sun4i-apb0-clk";
139 reg = <0x01c20054 0x4>;
140 clocks = <&ahb>;
141 };
142
143 apb0_gates: apb0_gates@01c20068 {
144 #clock-cells = <1>;
Maxime Ripard70be4ee62013-04-19 22:14:41 +0200145 compatible = "allwinner,sun5i-a13-apb0-gates-clk";
Maxime Ripard69144e32013-03-13 20:07:37 +0100146 reg = <0x01c20068 0x4>;
147 clocks = <&apb0>;
Maxime Ripard70be4ee62013-04-19 22:14:41 +0200148 clock-output-names = "apb0_codec", "apb0_pio", "apb0_ir";
Maxime Ripard69144e32013-03-13 20:07:37 +0100149 };
150
Maxime Ripard69144e32013-03-13 20:07:37 +0100151 apb1_mux: apb1_mux@01c20058 {
152 #clock-cells = <0>;
153 compatible = "allwinner,sun4i-apb1-mux-clk";
154 reg = <0x01c20058 0x4>;
Emilio Lópezc3e5e662013-12-23 00:32:38 -0300155 clocks = <&osc24M>, <&pll6 1>, <&osc32k>;
Maxime Ripard69144e32013-03-13 20:07:37 +0100156 };
157
158 apb1: apb1@01c20058 {
159 #clock-cells = <0>;
160 compatible = "allwinner,sun4i-apb1-clk";
161 reg = <0x01c20058 0x4>;
162 clocks = <&apb1_mux>;
163 };
164
165 apb1_gates: apb1_gates@01c2006c {
166 #clock-cells = <1>;
Maxime Ripard70be4ee62013-04-19 22:14:41 +0200167 compatible = "allwinner,sun5i-a13-apb1-gates-clk";
Maxime Ripard69144e32013-03-13 20:07:37 +0100168 reg = <0x01c2006c 0x4>;
169 clocks = <&apb1>;
170 clock-output-names = "apb1_i2c0", "apb1_i2c1",
Maxime Ripard70be4ee62013-04-19 22:14:41 +0200171 "apb1_i2c2", "apb1_uart1", "apb1_uart3";
Maxime Ripard69144e32013-03-13 20:07:37 +0100172 };
Emilio López8dc36bf2013-12-23 00:32:42 -0300173
174 nand_clk: clk@01c20080 {
175 #clock-cells = <0>;
176 compatible = "allwinner,sun4i-mod0-clk";
177 reg = <0x01c20080 0x4>;
178 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
179 clock-output-names = "nand";
180 };
181
182 ms_clk: clk@01c20084 {
183 #clock-cells = <0>;
184 compatible = "allwinner,sun4i-mod0-clk";
185 reg = <0x01c20084 0x4>;
186 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
187 clock-output-names = "ms";
188 };
189
190 mmc0_clk: clk@01c20088 {
191 #clock-cells = <0>;
192 compatible = "allwinner,sun4i-mod0-clk";
193 reg = <0x01c20088 0x4>;
194 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
195 clock-output-names = "mmc0";
196 };
197
198 mmc1_clk: clk@01c2008c {
199 #clock-cells = <0>;
200 compatible = "allwinner,sun4i-mod0-clk";
201 reg = <0x01c2008c 0x4>;
202 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
203 clock-output-names = "mmc1";
204 };
205
206 mmc2_clk: clk@01c20090 {
207 #clock-cells = <0>;
208 compatible = "allwinner,sun4i-mod0-clk";
209 reg = <0x01c20090 0x4>;
210 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
211 clock-output-names = "mmc2";
212 };
213
214 ts_clk: clk@01c20098 {
215 #clock-cells = <0>;
216 compatible = "allwinner,sun4i-mod0-clk";
217 reg = <0x01c20098 0x4>;
218 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
219 clock-output-names = "ts";
220 };
221
222 ss_clk: clk@01c2009c {
223 #clock-cells = <0>;
224 compatible = "allwinner,sun4i-mod0-clk";
225 reg = <0x01c2009c 0x4>;
226 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
227 clock-output-names = "ss";
228 };
229
230 spi0_clk: clk@01c200a0 {
231 #clock-cells = <0>;
232 compatible = "allwinner,sun4i-mod0-clk";
233 reg = <0x01c200a0 0x4>;
234 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
235 clock-output-names = "spi0";
236 };
237
238 spi1_clk: clk@01c200a4 {
239 #clock-cells = <0>;
240 compatible = "allwinner,sun4i-mod0-clk";
241 reg = <0x01c200a4 0x4>;
242 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
243 clock-output-names = "spi1";
244 };
245
246 spi2_clk: clk@01c200a8 {
247 #clock-cells = <0>;
248 compatible = "allwinner,sun4i-mod0-clk";
249 reg = <0x01c200a8 0x4>;
250 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
251 clock-output-names = "spi2";
252 };
253
254 ir0_clk: clk@01c200b0 {
255 #clock-cells = <0>;
256 compatible = "allwinner,sun4i-mod0-clk";
257 reg = <0x01c200b0 0x4>;
258 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
259 clock-output-names = "ir0";
260 };
Emilio López118c07a2013-12-23 00:32:44 -0300261
262 mbus_clk: clk@01c2015c {
263 #clock-cells = <0>;
264 compatible = "allwinner,sun4i-mod0-clk";
265 reg = <0x01c2015c 0x4>;
266 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
267 clock-output-names = "mbus";
268 };
Maxime Ripard69144e32013-03-13 20:07:37 +0100269 };
270
Maxime Ripard278fe8b2013-08-03 16:07:36 +0200271 soc@01c00000 {
Maxime Ripard69144e32013-03-13 20:07:37 +0100272 compatible = "simple-bus";
273 #address-cells = <1>;
274 #size-cells = <1>;
Maxime Ripard69144e32013-03-13 20:07:37 +0100275 ranges;
276
277 intc: interrupt-controller@01c20400 {
Maxime Ripard6def1262013-03-24 19:20:52 +0100278 compatible = "allwinner,sun4i-ic";
Maxime Ripard69144e32013-03-13 20:07:37 +0100279 reg = <0x01c20400 0x400>;
280 interrupt-controller;
281 #interrupt-cells = <1>;
282 };
283
Maxime Riparde10911e2013-01-27 19:26:05 +0100284 pio: pinctrl@01c20800 {
Maxime Ripard9e2dcb22013-01-18 22:30:36 +0100285 compatible = "allwinner,sun5i-a13-pinctrl";
286 reg = <0x01c20800 0x400>;
Maxime Ripard39138bc2013-04-06 15:00:48 +0200287 interrupts = <28>;
Emilio López36386d62013-03-27 18:20:41 -0300288 clocks = <&apb0_gates 5>;
Maxime Riparde10911e2013-01-27 19:26:05 +0100289 gpio-controller;
Maxime Ripard39138bc2013-04-06 15:00:48 +0200290 interrupt-controller;
Maxime Ripard9e2dcb22013-01-18 22:30:36 +0100291 #address-cells = <1>;
292 #size-cells = <0>;
Maxime Riparde10911e2013-01-27 19:26:05 +0100293 #gpio-cells = <3>;
Maxime Ripard4348cc62013-01-18 22:30:37 +0100294
295 uart1_pins_a: uart1@0 {
296 allwinner,pins = "PE10", "PE11";
297 allwinner,function = "uart1";
298 allwinner,drive = <0>;
299 allwinner,pull = <0>;
300 };
301
302 uart1_pins_b: uart1@1 {
303 allwinner,pins = "PG3", "PG4";
304 allwinner,function = "uart1";
305 allwinner,drive = <0>;
306 allwinner,pull = <0>;
307 };
Maxime Ripardb4d7c232013-03-10 13:36:02 +0100308
309 i2c0_pins_a: i2c0@0 {
310 allwinner,pins = "PB0", "PB1";
311 allwinner,function = "i2c0";
312 allwinner,drive = <0>;
313 allwinner,pull = <0>;
314 };
315
316 i2c1_pins_a: i2c1@0 {
317 allwinner,pins = "PB15", "PB16";
318 allwinner,function = "i2c1";
319 allwinner,drive = <0>;
320 allwinner,pull = <0>;
321 };
322
323 i2c2_pins_a: i2c2@0 {
324 allwinner,pins = "PB17", "PB18";
325 allwinner,function = "i2c2";
326 allwinner,drive = <0>;
327 allwinner,pull = <0>;
328 };
Maxime Ripard9e2dcb22013-01-18 22:30:36 +0100329 };
Maxime Ripard69144e32013-03-13 20:07:37 +0100330
331 timer@01c20c00 {
Maxime Ripardb4f26442014-02-06 10:40:32 +0100332 compatible = "allwinner,sun4i-a10-timer";
Maxime Ripard69144e32013-03-13 20:07:37 +0100333 reg = <0x01c20c00 0x90>;
334 interrupts = <22>;
335 clocks = <&osc24M>;
336 };
337
338 wdt: watchdog@01c20c90 {
Maxime Ripard0b19b7c2013-03-24 19:32:34 +0100339 compatible = "allwinner,sun4i-wdt";
Maxime Ripard69144e32013-03-13 20:07:37 +0100340 reg = <0x01c20c90 0x10>;
341 };
342
Oliver Schinagl2bad9692013-09-03 12:33:28 +0200343 sid: eeprom@01c23800 {
344 compatible = "allwinner,sun4i-sid";
345 reg = <0x01c23800 0x10>;
346 };
347
Hans de Goedef65c93a2013-12-31 17:20:51 +0100348 rtp: rtp@01c25000 {
349 compatible = "allwinner,sun4i-ts";
350 reg = <0x01c25000 0x100>;
351 interrupts = <29>;
352 };
353
Maxime Ripard69144e32013-03-13 20:07:37 +0100354 uart1: serial@01c28400 {
355 compatible = "snps,dw-apb-uart";
356 reg = <0x01c28400 0x400>;
357 interrupts = <2>;
358 reg-shift = <2>;
359 reg-io-width = <4>;
360 clocks = <&apb1_gates 17>;
361 status = "disabled";
362 };
363
364 uart3: serial@01c28c00 {
365 compatible = "snps,dw-apb-uart";
366 reg = <0x01c28c00 0x400>;
367 interrupts = <4>;
368 reg-shift = <2>;
369 reg-io-width = <4>;
370 clocks = <&apb1_gates 19>;
371 status = "disabled";
372 };
Maxime Ripardf1741fd2013-03-10 13:34:36 +0100373
374 i2c0: i2c@01c2ac00 {
375 compatible = "allwinner,sun4i-i2c";
376 reg = <0x01c2ac00 0x400>;
377 interrupts = <7>;
378 clocks = <&apb1_gates 0>;
379 clock-frequency = <100000>;
380 status = "disabled";
381 };
382
383 i2c1: i2c@01c2b000 {
384 compatible = "allwinner,sun4i-i2c";
385 reg = <0x01c2b000 0x400>;
386 interrupts = <8>;
387 clocks = <&apb1_gates 1>;
388 clock-frequency = <100000>;
389 status = "disabled";
390 };
391
392 i2c2: i2c@01c2b400 {
393 compatible = "allwinner,sun4i-i2c";
394 reg = <0x01c2b400 0x400>;
395 interrupts = <9>;
396 clocks = <&apb1_gates 2>;
397 clock-frequency = <100000>;
398 status = "disabled";
399 };
Maxime Ripard44119022013-11-07 12:01:48 +0100400
401 timer@01c60000 {
402 compatible = "allwinner,sun5i-a13-hstimer";
403 reg = <0x01c60000 0x1000>;
404 interrupts = <82>, <83>;
405 clocks = <&ahb_gates 28>;
406 };
Maxime Ripard9e2dcb22013-01-18 22:30:36 +0100407 };
Maxime Ripardd4da2eb2012-11-14 20:17:04 +0100408};