blob: 5c121fcbe0af9f17e303bd687cfed7a301028dc0 [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
Maxime Ripard0cc774e2014-01-13 11:08:47 +010019 aliases {
20 serial0 = &uart1;
21 serial1 = &uart3;
22 };
23
Maxime Ripard69144e32013-03-13 20:07:37 +010024 cpus {
Arnd Bergmann8b2efa892013-06-10 16:48:36 +020025 #address-cells = <1>;
26 #size-cells = <0>;
Maxime Ripard69144e32013-03-13 20:07:37 +010027 cpu@0 {
Lorenzo Pieralisi14c44aa2013-04-18 18:41:57 +010028 device_type = "cpu";
Maxime Ripard69144e32013-03-13 20:07:37 +010029 compatible = "arm,cortex-a8";
Lorenzo Pieralisi14c44aa2013-04-18 18:41:57 +010030 reg = <0x0>;
Maxime Ripard69144e32013-03-13 20:07:37 +010031 };
32 };
33
Maxime Ripardd4da2eb2012-11-14 20:17:04 +010034 memory {
35 reg = <0x40000000 0x20000000>;
36 };
Maxime Ripard9e2dcb22013-01-18 22:30:36 +010037
Maxime Ripard69144e32013-03-13 20:07:37 +010038 clocks {
39 #address-cells = <1>;
40 #size-cells = <1>;
41 ranges;
42
43 /*
44 * This is a dummy clock, to be used as placeholder on
45 * other mux clocks when a specific parent clock is not
46 * yet implemented. It should be dropped when the driver
47 * is complete.
48 */
49 dummy: dummy {
50 #clock-cells = <0>;
51 compatible = "fixed-clock";
52 clock-frequency = <0>;
53 };
54
Chen-Yu Tsai3dce8322014-02-03 09:51:42 +080055 osc24M: clk@01c20050 {
Maxime Ripard69144e32013-03-13 20:07:37 +010056 #clock-cells = <0>;
57 compatible = "allwinner,sun4i-osc-clk";
58 reg = <0x01c20050 0x4>;
Emilio López92fd6e02013-04-09 10:48:04 -030059 clock-frequency = <24000000>;
Chen-Yu Tsai3dce8322014-02-03 09:51:42 +080060 clock-output-names = "osc24M";
Maxime Ripard69144e32013-03-13 20:07:37 +010061 };
62
Chen-Yu Tsai3dce8322014-02-03 09:51:42 +080063 osc32k: clk@0 {
Maxime Ripard69144e32013-03-13 20:07:37 +010064 #clock-cells = <0>;
65 compatible = "fixed-clock";
66 clock-frequency = <32768>;
Chen-Yu Tsai3dce8322014-02-03 09:51:42 +080067 clock-output-names = "osc32k";
Maxime Ripard69144e32013-03-13 20:07:37 +010068 };
69
Chen-Yu Tsai3dce8322014-02-03 09:51:42 +080070 pll1: clk@01c20000 {
Maxime Ripard69144e32013-03-13 20:07:37 +010071 #clock-cells = <0>;
72 compatible = "allwinner,sun4i-pll1-clk";
73 reg = <0x01c20000 0x4>;
74 clocks = <&osc24M>;
Chen-Yu Tsai3dce8322014-02-03 09:51:42 +080075 clock-output-names = "pll1";
Maxime Ripard69144e32013-03-13 20:07:37 +010076 };
77
Chen-Yu Tsai3dce8322014-02-03 09:51:42 +080078 pll4: clk@01c20018 {
Emilio Lópezec5589f2013-12-23 00:32:35 -030079 #clock-cells = <0>;
80 compatible = "allwinner,sun4i-pll1-clk";
81 reg = <0x01c20018 0x4>;
82 clocks = <&osc24M>;
Chen-Yu Tsai3dce8322014-02-03 09:51:42 +080083 clock-output-names = "pll4";
Emilio Lópezec5589f2013-12-23 00:32:35 -030084 };
85
Chen-Yu Tsai3dce8322014-02-03 09:51:42 +080086 pll5: clk@01c20020 {
Emilio Lópezc3e5e662013-12-23 00:32:38 -030087 #clock-cells = <1>;
88 compatible = "allwinner,sun4i-pll5-clk";
89 reg = <0x01c20020 0x4>;
90 clocks = <&osc24M>;
91 clock-output-names = "pll5_ddr", "pll5_other";
92 };
93
Chen-Yu Tsai3dce8322014-02-03 09:51:42 +080094 pll6: clk@01c20028 {
Emilio Lópezc3e5e662013-12-23 00:32:38 -030095 #clock-cells = <1>;
96 compatible = "allwinner,sun4i-pll6-clk";
97 reg = <0x01c20028 0x4>;
98 clocks = <&osc24M>;
99 clock-output-names = "pll6_sata", "pll6_other", "pll6";
100 };
101
Maxime Ripard69144e32013-03-13 20:07:37 +0100102 /* dummy is 200M */
103 cpu: cpu@01c20054 {
104 #clock-cells = <0>;
105 compatible = "allwinner,sun4i-cpu-clk";
106 reg = <0x01c20054 0x4>;
107 clocks = <&osc32k>, <&osc24M>, <&pll1>, <&dummy>;
Chen-Yu Tsai3dce8322014-02-03 09:51:42 +0800108 clock-output-names = "cpu";
Maxime Ripard69144e32013-03-13 20:07:37 +0100109 };
110
111 axi: axi@01c20054 {
112 #clock-cells = <0>;
113 compatible = "allwinner,sun4i-axi-clk";
114 reg = <0x01c20054 0x4>;
115 clocks = <&cpu>;
Chen-Yu Tsai3dce8322014-02-03 09:51:42 +0800116 clock-output-names = "axi";
Maxime Ripard69144e32013-03-13 20:07:37 +0100117 };
118
Chen-Yu Tsai3dce8322014-02-03 09:51:42 +0800119 axi_gates: clk@01c2005c {
Maxime Ripard69144e32013-03-13 20:07:37 +0100120 #clock-cells = <1>;
121 compatible = "allwinner,sun4i-axi-gates-clk";
122 reg = <0x01c2005c 0x4>;
123 clocks = <&axi>;
124 clock-output-names = "axi_dram";
125 };
126
127 ahb: ahb@01c20054 {
128 #clock-cells = <0>;
129 compatible = "allwinner,sun4i-ahb-clk";
130 reg = <0x01c20054 0x4>;
131 clocks = <&axi>;
Chen-Yu Tsai3dce8322014-02-03 09:51:42 +0800132 clock-output-names = "ahb";
Maxime Ripard69144e32013-03-13 20:07:37 +0100133 };
134
Chen-Yu Tsai3dce8322014-02-03 09:51:42 +0800135 ahb_gates: clk@01c20060 {
Maxime Ripard69144e32013-03-13 20:07:37 +0100136 #clock-cells = <1>;
Maxime Ripard70be4ee62013-04-19 22:14:41 +0200137 compatible = "allwinner,sun5i-a13-ahb-gates-clk";
Maxime Ripard69144e32013-03-13 20:07:37 +0100138 reg = <0x01c20060 0x8>;
139 clocks = <&ahb>;
Maxime Ripard70be4ee62013-04-19 22:14:41 +0200140 clock-output-names = "ahb_usbotg", "ahb_ehci", "ahb_ohci",
141 "ahb_ss", "ahb_dma", "ahb_bist", "ahb_mmc0",
142 "ahb_mmc1", "ahb_mmc2", "ahb_nand", "ahb_sdram",
143 "ahb_spi0", "ahb_spi1", "ahb_spi2", "ahb_stimer",
144 "ahb_ve", "ahb_lcd", "ahb_csi", "ahb_de_be",
145 "ahb_de_fe", "ahb_iep", "ahb_mali400";
Maxime Ripard69144e32013-03-13 20:07:37 +0100146 };
147
148 apb0: apb0@01c20054 {
149 #clock-cells = <0>;
150 compatible = "allwinner,sun4i-apb0-clk";
151 reg = <0x01c20054 0x4>;
152 clocks = <&ahb>;
Chen-Yu Tsai3dce8322014-02-03 09:51:42 +0800153 clock-output-names = "apb0";
Maxime Ripard69144e32013-03-13 20:07:37 +0100154 };
155
Chen-Yu Tsai3dce8322014-02-03 09:51:42 +0800156 apb0_gates: clk@01c20068 {
Maxime Ripard69144e32013-03-13 20:07:37 +0100157 #clock-cells = <1>;
Maxime Ripard70be4ee62013-04-19 22:14:41 +0200158 compatible = "allwinner,sun5i-a13-apb0-gates-clk";
Maxime Ripard69144e32013-03-13 20:07:37 +0100159 reg = <0x01c20068 0x4>;
160 clocks = <&apb0>;
Maxime Ripard70be4ee62013-04-19 22:14:41 +0200161 clock-output-names = "apb0_codec", "apb0_pio", "apb0_ir";
Maxime Ripard69144e32013-03-13 20:07:37 +0100162 };
163
Maxime Ripard69144e32013-03-13 20:07:37 +0100164 apb1_mux: apb1_mux@01c20058 {
165 #clock-cells = <0>;
166 compatible = "allwinner,sun4i-apb1-mux-clk";
167 reg = <0x01c20058 0x4>;
Emilio Lópezc3e5e662013-12-23 00:32:38 -0300168 clocks = <&osc24M>, <&pll6 1>, <&osc32k>;
Chen-Yu Tsai3dce8322014-02-03 09:51:42 +0800169 clock-output-names = "apb1_mux";
Maxime Ripard69144e32013-03-13 20:07:37 +0100170 };
171
172 apb1: apb1@01c20058 {
173 #clock-cells = <0>;
174 compatible = "allwinner,sun4i-apb1-clk";
175 reg = <0x01c20058 0x4>;
176 clocks = <&apb1_mux>;
Chen-Yu Tsai3dce8322014-02-03 09:51:42 +0800177 clock-output-names = "apb1";
Maxime Ripard69144e32013-03-13 20:07:37 +0100178 };
179
Chen-Yu Tsai3dce8322014-02-03 09:51:42 +0800180 apb1_gates: clk@01c2006c {
Maxime Ripard69144e32013-03-13 20:07:37 +0100181 #clock-cells = <1>;
Maxime Ripard70be4ee62013-04-19 22:14:41 +0200182 compatible = "allwinner,sun5i-a13-apb1-gates-clk";
Maxime Ripard69144e32013-03-13 20:07:37 +0100183 reg = <0x01c2006c 0x4>;
184 clocks = <&apb1>;
185 clock-output-names = "apb1_i2c0", "apb1_i2c1",
Maxime Ripard70be4ee62013-04-19 22:14:41 +0200186 "apb1_i2c2", "apb1_uart1", "apb1_uart3";
Maxime Ripard69144e32013-03-13 20:07:37 +0100187 };
Emilio López8dc36bf2013-12-23 00:32:42 -0300188
189 nand_clk: clk@01c20080 {
190 #clock-cells = <0>;
191 compatible = "allwinner,sun4i-mod0-clk";
192 reg = <0x01c20080 0x4>;
193 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
194 clock-output-names = "nand";
195 };
196
197 ms_clk: clk@01c20084 {
198 #clock-cells = <0>;
199 compatible = "allwinner,sun4i-mod0-clk";
200 reg = <0x01c20084 0x4>;
201 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
202 clock-output-names = "ms";
203 };
204
205 mmc0_clk: clk@01c20088 {
206 #clock-cells = <0>;
207 compatible = "allwinner,sun4i-mod0-clk";
208 reg = <0x01c20088 0x4>;
209 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
210 clock-output-names = "mmc0";
211 };
212
213 mmc1_clk: clk@01c2008c {
214 #clock-cells = <0>;
215 compatible = "allwinner,sun4i-mod0-clk";
216 reg = <0x01c2008c 0x4>;
217 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
218 clock-output-names = "mmc1";
219 };
220
221 mmc2_clk: clk@01c20090 {
222 #clock-cells = <0>;
223 compatible = "allwinner,sun4i-mod0-clk";
224 reg = <0x01c20090 0x4>;
225 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
226 clock-output-names = "mmc2";
227 };
228
229 ts_clk: clk@01c20098 {
230 #clock-cells = <0>;
231 compatible = "allwinner,sun4i-mod0-clk";
232 reg = <0x01c20098 0x4>;
233 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
234 clock-output-names = "ts";
235 };
236
237 ss_clk: clk@01c2009c {
238 #clock-cells = <0>;
239 compatible = "allwinner,sun4i-mod0-clk";
240 reg = <0x01c2009c 0x4>;
241 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
242 clock-output-names = "ss";
243 };
244
245 spi0_clk: clk@01c200a0 {
246 #clock-cells = <0>;
247 compatible = "allwinner,sun4i-mod0-clk";
248 reg = <0x01c200a0 0x4>;
249 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
250 clock-output-names = "spi0";
251 };
252
253 spi1_clk: clk@01c200a4 {
254 #clock-cells = <0>;
255 compatible = "allwinner,sun4i-mod0-clk";
256 reg = <0x01c200a4 0x4>;
257 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
258 clock-output-names = "spi1";
259 };
260
261 spi2_clk: clk@01c200a8 {
262 #clock-cells = <0>;
263 compatible = "allwinner,sun4i-mod0-clk";
264 reg = <0x01c200a8 0x4>;
265 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
266 clock-output-names = "spi2";
267 };
268
269 ir0_clk: clk@01c200b0 {
270 #clock-cells = <0>;
271 compatible = "allwinner,sun4i-mod0-clk";
272 reg = <0x01c200b0 0x4>;
273 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
274 clock-output-names = "ir0";
275 };
Emilio López118c07a2013-12-23 00:32:44 -0300276
277 mbus_clk: clk@01c2015c {
278 #clock-cells = <0>;
279 compatible = "allwinner,sun4i-mod0-clk";
280 reg = <0x01c2015c 0x4>;
281 clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
282 clock-output-names = "mbus";
283 };
Maxime Ripard69144e32013-03-13 20:07:37 +0100284 };
285
Maxime Ripard278fe8b2013-08-03 16:07:36 +0200286 soc@01c00000 {
Maxime Ripard69144e32013-03-13 20:07:37 +0100287 compatible = "simple-bus";
288 #address-cells = <1>;
289 #size-cells = <1>;
Maxime Ripard69144e32013-03-13 20:07:37 +0100290 ranges;
291
292 intc: interrupt-controller@01c20400 {
Maxime Ripard6def1262013-03-24 19:20:52 +0100293 compatible = "allwinner,sun4i-ic";
Maxime Ripard69144e32013-03-13 20:07:37 +0100294 reg = <0x01c20400 0x400>;
295 interrupt-controller;
296 #interrupt-cells = <1>;
297 };
298
Maxime Riparde10911e2013-01-27 19:26:05 +0100299 pio: pinctrl@01c20800 {
Maxime Ripard9e2dcb22013-01-18 22:30:36 +0100300 compatible = "allwinner,sun5i-a13-pinctrl";
301 reg = <0x01c20800 0x400>;
Maxime Ripard39138bc2013-04-06 15:00:48 +0200302 interrupts = <28>;
Emilio López36386d62013-03-27 18:20:41 -0300303 clocks = <&apb0_gates 5>;
Maxime Riparde10911e2013-01-27 19:26:05 +0100304 gpio-controller;
Maxime Ripard39138bc2013-04-06 15:00:48 +0200305 interrupt-controller;
Maxime Ripard9e2dcb22013-01-18 22:30:36 +0100306 #address-cells = <1>;
307 #size-cells = <0>;
Maxime Riparde10911e2013-01-27 19:26:05 +0100308 #gpio-cells = <3>;
Maxime Ripard4348cc62013-01-18 22:30:37 +0100309
310 uart1_pins_a: uart1@0 {
311 allwinner,pins = "PE10", "PE11";
312 allwinner,function = "uart1";
313 allwinner,drive = <0>;
314 allwinner,pull = <0>;
315 };
316
317 uart1_pins_b: uart1@1 {
318 allwinner,pins = "PG3", "PG4";
319 allwinner,function = "uart1";
320 allwinner,drive = <0>;
321 allwinner,pull = <0>;
322 };
Maxime Ripardb4d7c232013-03-10 13:36:02 +0100323
324 i2c0_pins_a: i2c0@0 {
325 allwinner,pins = "PB0", "PB1";
326 allwinner,function = "i2c0";
327 allwinner,drive = <0>;
328 allwinner,pull = <0>;
329 };
330
331 i2c1_pins_a: i2c1@0 {
332 allwinner,pins = "PB15", "PB16";
333 allwinner,function = "i2c1";
334 allwinner,drive = <0>;
335 allwinner,pull = <0>;
336 };
337
338 i2c2_pins_a: i2c2@0 {
339 allwinner,pins = "PB17", "PB18";
340 allwinner,function = "i2c2";
341 allwinner,drive = <0>;
342 allwinner,pull = <0>;
343 };
Maxime Ripard9e2dcb22013-01-18 22:30:36 +0100344 };
Maxime Ripard69144e32013-03-13 20:07:37 +0100345
346 timer@01c20c00 {
Maxime Ripardb6e1a532013-03-24 19:00:17 +0100347 compatible = "allwinner,sun4i-timer";
Maxime Ripard69144e32013-03-13 20:07:37 +0100348 reg = <0x01c20c00 0x90>;
349 interrupts = <22>;
350 clocks = <&osc24M>;
351 };
352
353 wdt: watchdog@01c20c90 {
Maxime Ripard0b19b7c2013-03-24 19:32:34 +0100354 compatible = "allwinner,sun4i-wdt";
Maxime Ripard69144e32013-03-13 20:07:37 +0100355 reg = <0x01c20c90 0x10>;
356 };
357
Oliver Schinagl2bad9692013-09-03 12:33:28 +0200358 sid: eeprom@01c23800 {
359 compatible = "allwinner,sun4i-sid";
360 reg = <0x01c23800 0x10>;
361 };
362
Hans de Goedef65c93a2013-12-31 17:20:51 +0100363 rtp: rtp@01c25000 {
364 compatible = "allwinner,sun4i-ts";
365 reg = <0x01c25000 0x100>;
366 interrupts = <29>;
367 };
368
Maxime Ripard69144e32013-03-13 20:07:37 +0100369 uart1: serial@01c28400 {
370 compatible = "snps,dw-apb-uart";
371 reg = <0x01c28400 0x400>;
372 interrupts = <2>;
373 reg-shift = <2>;
374 reg-io-width = <4>;
375 clocks = <&apb1_gates 17>;
376 status = "disabled";
377 };
378
379 uart3: serial@01c28c00 {
380 compatible = "snps,dw-apb-uart";
381 reg = <0x01c28c00 0x400>;
382 interrupts = <4>;
383 reg-shift = <2>;
384 reg-io-width = <4>;
385 clocks = <&apb1_gates 19>;
386 status = "disabled";
387 };
Maxime Ripardf1741fd2013-03-10 13:34:36 +0100388
389 i2c0: i2c@01c2ac00 {
390 compatible = "allwinner,sun4i-i2c";
391 reg = <0x01c2ac00 0x400>;
392 interrupts = <7>;
393 clocks = <&apb1_gates 0>;
394 clock-frequency = <100000>;
395 status = "disabled";
396 };
397
398 i2c1: i2c@01c2b000 {
399 compatible = "allwinner,sun4i-i2c";
400 reg = <0x01c2b000 0x400>;
401 interrupts = <8>;
402 clocks = <&apb1_gates 1>;
403 clock-frequency = <100000>;
404 status = "disabled";
405 };
406
407 i2c2: i2c@01c2b400 {
408 compatible = "allwinner,sun4i-i2c";
409 reg = <0x01c2b400 0x400>;
410 interrupts = <9>;
411 clocks = <&apb1_gates 2>;
412 clock-frequency = <100000>;
413 status = "disabled";
414 };
Maxime Ripard44119022013-11-07 12:01:48 +0100415
416 timer@01c60000 {
417 compatible = "allwinner,sun5i-a13-hstimer";
418 reg = <0x01c60000 0x1000>;
419 interrupts = <82>, <83>;
420 clocks = <&ahb_gates 28>;
421 };
Maxime Ripard9e2dcb22013-01-18 22:30:36 +0100422 };
Maxime Ripardd4da2eb2012-11-14 20:17:04 +0100423};