]>
Commit | Line | Data |
---|---|---|
fbfa7367 MR |
1 | /* |
2 | * Copyright 2012-2015 Maxime Ripard | |
3 | * | |
4 | * Maxime Ripard <maxime.ripard@free-electrons.com> | |
5 | * | |
6 | * This file is dual-licensed: you can use it either under the terms | |
7 | * of the GPL or the X11 license, at your option. Note that this dual | |
8 | * licensing only applies to this file, and not this project as a | |
9 | * whole. | |
10 | * | |
11 | * a) This library is free software; you can redistribute it and/or | |
12 | * modify it under the terms of the GNU General Public License as | |
13 | * published by the Free Software Foundation; either version 2 of the | |
14 | * License, or (at your option) any later version. | |
15 | * | |
16 | * This library is distributed in the hope that it will be useful, | |
17 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
18 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
19 | * GNU General Public License for more details. | |
20 | * | |
fbfa7367 MR |
21 | * Or, alternatively, |
22 | * | |
23 | * b) Permission is hereby granted, free of charge, to any person | |
24 | * obtaining a copy of this software and associated documentation | |
25 | * files (the "Software"), to deal in the Software without | |
26 | * restriction, including without limitation the rights to use, | |
27 | * copy, modify, merge, publish, distribute, sublicense, and/or | |
28 | * sell copies of the Software, and to permit persons to whom the | |
29 | * Software is furnished to do so, subject to the following | |
30 | * conditions: | |
31 | * | |
32 | * The above copyright notice and this permission notice shall be | |
33 | * included in all copies or substantial portions of the Software. | |
34 | * | |
35 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, | |
36 | * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES | |
37 | * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND | |
38 | * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT | |
39 | * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, | |
40 | * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING | |
41 | * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR | |
42 | * OTHER DEALINGS IN THE SOFTWARE. | |
43 | */ | |
44 | ||
45 | #include "skeleton.dtsi" | |
46 | ||
ca72f022 | 47 | #include <dt-bindings/clock/sun4i-a10-pll2.h> |
fbfa7367 MR |
48 | #include <dt-bindings/dma/sun4i-a10.h> |
49 | #include <dt-bindings/pinctrl/sun4i-a10.h> | |
50 | ||
51 | / { | |
52 | interrupt-parent = <&intc>; | |
53 | ||
54 | cpus { | |
55 | #address-cells = <1>; | |
56 | #size-cells = <0>; | |
57 | ||
58 | cpu0: cpu@0 { | |
59 | device_type = "cpu"; | |
60 | compatible = "arm,cortex-a8"; | |
61 | reg = <0x0>; | |
62 | clocks = <&cpu>; | |
63 | }; | |
64 | }; | |
65 | ||
66 | clocks { | |
67 | #address-cells = <1>; | |
68 | #size-cells = <1>; | |
69 | ranges; | |
70 | ||
71 | /* | |
72 | * This is a dummy clock, to be used as placeholder on | |
73 | * other mux clocks when a specific parent clock is not | |
74 | * yet implemented. It should be dropped when the driver | |
75 | * is complete. | |
76 | */ | |
77 | dummy: dummy { | |
78 | #clock-cells = <0>; | |
79 | compatible = "fixed-clock"; | |
80 | clock-frequency = <0>; | |
81 | }; | |
82 | ||
83 | osc24M: clk@01c20050 { | |
84 | #clock-cells = <0>; | |
85 | compatible = "allwinner,sun4i-a10-osc-clk"; | |
86 | reg = <0x01c20050 0x4>; | |
87 | clock-frequency = <24000000>; | |
88 | clock-output-names = "osc24M"; | |
89 | }; | |
90 | ||
09655910 MR |
91 | osc3M: osc3M_clk { |
92 | compatible = "fixed-factor-clock"; | |
93 | #clock-cells = <0>; | |
94 | clock-div = <8>; | |
95 | clock-mult = <1>; | |
96 | clocks = <&osc24M>; | |
97 | clock-output-names = "osc3M"; | |
98 | }; | |
99 | ||
fbfa7367 MR |
100 | osc32k: clk@0 { |
101 | #clock-cells = <0>; | |
102 | compatible = "fixed-clock"; | |
103 | clock-frequency = <32768>; | |
104 | clock-output-names = "osc32k"; | |
105 | }; | |
106 | ||
107 | pll1: clk@01c20000 { | |
108 | #clock-cells = <0>; | |
109 | compatible = "allwinner,sun4i-a10-pll1-clk"; | |
110 | reg = <0x01c20000 0x4>; | |
111 | clocks = <&osc24M>; | |
112 | clock-output-names = "pll1"; | |
113 | }; | |
114 | ||
6f87abb8 MR |
115 | pll2: clk@01c20008 { |
116 | #clock-cells = <1>; | |
117 | compatible = "allwinner,sun5i-a13-pll2-clk"; | |
118 | reg = <0x01c20008 0x8>; | |
119 | clocks = <&osc24M>; | |
120 | clock-output-names = "pll2-1x", "pll2-2x", | |
121 | "pll2-4x", "pll2-8x"; | |
122 | }; | |
123 | ||
09655910 MR |
124 | pll3: clk@01c20010 { |
125 | #clock-cells = <0>; | |
126 | compatible = "allwinner,sun4i-a10-pll3-clk"; | |
127 | reg = <0x01c20010 0x4>; | |
128 | clocks = <&osc3M>; | |
129 | clock-output-names = "pll3"; | |
130 | }; | |
131 | ||
132 | pll3x2: pll3x2_clk { | |
73ba3a1c | 133 | compatible = "allwinner,sun4i-a10-pll3-2x-clk", "fixed-factor-clock"; |
09655910 MR |
134 | #clock-cells = <0>; |
135 | clock-div = <1>; | |
136 | clock-mult = <2>; | |
137 | clocks = <&pll3>; | |
138 | clock-output-names = "pll3-2x"; | |
139 | }; | |
140 | ||
fbfa7367 MR |
141 | pll4: clk@01c20018 { |
142 | #clock-cells = <0>; | |
143 | compatible = "allwinner,sun4i-a10-pll1-clk"; | |
144 | reg = <0x01c20018 0x4>; | |
145 | clocks = <&osc24M>; | |
146 | clock-output-names = "pll4"; | |
147 | }; | |
148 | ||
149 | pll5: clk@01c20020 { | |
150 | #clock-cells = <1>; | |
151 | compatible = "allwinner,sun4i-a10-pll5-clk"; | |
152 | reg = <0x01c20020 0x4>; | |
153 | clocks = <&osc24M>; | |
154 | clock-output-names = "pll5_ddr", "pll5_other"; | |
155 | }; | |
156 | ||
157 | pll6: clk@01c20028 { | |
158 | #clock-cells = <1>; | |
159 | compatible = "allwinner,sun4i-a10-pll6-clk"; | |
160 | reg = <0x01c20028 0x4>; | |
161 | clocks = <&osc24M>; | |
162 | clock-output-names = "pll6_sata", "pll6_other", "pll6"; | |
163 | }; | |
164 | ||
09655910 MR |
165 | pll7: clk@01c20030 { |
166 | #clock-cells = <0>; | |
167 | compatible = "allwinner,sun4i-a10-pll3-clk"; | |
168 | reg = <0x01c20030 0x4>; | |
169 | clocks = <&osc3M>; | |
170 | clock-output-names = "pll7"; | |
171 | }; | |
172 | ||
173 | pll7x2: pll7x2_clk { | |
174 | compatible = "fixed-factor-clock"; | |
175 | #clock-cells = <0>; | |
176 | clock-div = <1>; | |
177 | clock-mult = <2>; | |
178 | clocks = <&pll7>; | |
179 | clock-output-names = "pll7-2x"; | |
180 | }; | |
181 | ||
fbfa7367 MR |
182 | /* dummy is 200M */ |
183 | cpu: cpu@01c20054 { | |
184 | #clock-cells = <0>; | |
185 | compatible = "allwinner,sun4i-a10-cpu-clk"; | |
186 | reg = <0x01c20054 0x4>; | |
187 | clocks = <&osc32k>, <&osc24M>, <&pll1>, <&dummy>; | |
188 | clock-output-names = "cpu"; | |
189 | }; | |
190 | ||
191 | axi: axi@01c20054 { | |
192 | #clock-cells = <0>; | |
193 | compatible = "allwinner,sun4i-a10-axi-clk"; | |
194 | reg = <0x01c20054 0x4>; | |
195 | clocks = <&cpu>; | |
196 | clock-output-names = "axi"; | |
197 | }; | |
198 | ||
199 | ahb: ahb@01c20054 { | |
200 | #clock-cells = <0>; | |
2186df37 | 201 | compatible = "allwinner,sun5i-a13-ahb-clk"; |
fbfa7367 | 202 | reg = <0x01c20054 0x4>; |
2186df37 | 203 | clocks = <&axi>, <&cpu>, <&pll6 1>; |
fbfa7367 | 204 | clock-output-names = "ahb"; |
2186df37 CYT |
205 | /* |
206 | * Use PLL6 as parent, instead of CPU/AXI | |
207 | * which has rate changes due to cpufreq | |
208 | */ | |
209 | assigned-clocks = <&ahb>; | |
210 | assigned-clock-parents = <&pll6 1>; | |
fbfa7367 MR |
211 | }; |
212 | ||
213 | apb0: apb0@01c20054 { | |
214 | #clock-cells = <0>; | |
215 | compatible = "allwinner,sun4i-a10-apb0-clk"; | |
216 | reg = <0x01c20054 0x4>; | |
217 | clocks = <&ahb>; | |
218 | clock-output-names = "apb0"; | |
219 | }; | |
220 | ||
221 | apb1: clk@01c20058 { | |
222 | #clock-cells = <0>; | |
223 | compatible = "allwinner,sun4i-a10-apb1-clk"; | |
224 | reg = <0x01c20058 0x4>; | |
225 | clocks = <&osc24M>, <&pll6 1>, <&osc32k>; | |
226 | clock-output-names = "apb1"; | |
227 | }; | |
228 | ||
229 | axi_gates: clk@01c2005c { | |
230 | #clock-cells = <1>; | |
231 | compatible = "allwinner,sun4i-a10-axi-gates-clk"; | |
232 | reg = <0x01c2005c 0x4>; | |
233 | clocks = <&axi>; | |
dd4de433 | 234 | clock-indices = <0>; |
fbfa7367 MR |
235 | clock-output-names = "axi_dram"; |
236 | }; | |
237 | ||
238 | nand_clk: clk@01c20080 { | |
239 | #clock-cells = <0>; | |
240 | compatible = "allwinner,sun4i-a10-mod0-clk"; | |
241 | reg = <0x01c20080 0x4>; | |
242 | clocks = <&osc24M>, <&pll6 1>, <&pll5 1>; | |
243 | clock-output-names = "nand"; | |
244 | }; | |
245 | ||
246 | ms_clk: clk@01c20084 { | |
247 | #clock-cells = <0>; | |
248 | compatible = "allwinner,sun4i-a10-mod0-clk"; | |
249 | reg = <0x01c20084 0x4>; | |
250 | clocks = <&osc24M>, <&pll6 1>, <&pll5 1>; | |
251 | clock-output-names = "ms"; | |
252 | }; | |
253 | ||
254 | mmc0_clk: clk@01c20088 { | |
255 | #clock-cells = <1>; | |
256 | compatible = "allwinner,sun4i-a10-mmc-clk"; | |
257 | reg = <0x01c20088 0x4>; | |
258 | clocks = <&osc24M>, <&pll6 1>, <&pll5 1>; | |
259 | clock-output-names = "mmc0", | |
260 | "mmc0_output", | |
261 | "mmc0_sample"; | |
262 | }; | |
263 | ||
264 | mmc1_clk: clk@01c2008c { | |
265 | #clock-cells = <1>; | |
266 | compatible = "allwinner,sun4i-a10-mmc-clk"; | |
267 | reg = <0x01c2008c 0x4>; | |
268 | clocks = <&osc24M>, <&pll6 1>, <&pll5 1>; | |
269 | clock-output-names = "mmc1", | |
270 | "mmc1_output", | |
271 | "mmc1_sample"; | |
272 | }; | |
273 | ||
274 | mmc2_clk: clk@01c20090 { | |
275 | #clock-cells = <1>; | |
276 | compatible = "allwinner,sun4i-a10-mmc-clk"; | |
277 | reg = <0x01c20090 0x4>; | |
278 | clocks = <&osc24M>, <&pll6 1>, <&pll5 1>; | |
279 | clock-output-names = "mmc2", | |
280 | "mmc2_output", | |
281 | "mmc2_sample"; | |
282 | }; | |
283 | ||
284 | ts_clk: clk@01c20098 { | |
285 | #clock-cells = <0>; | |
286 | compatible = "allwinner,sun4i-a10-mod0-clk"; | |
287 | reg = <0x01c20098 0x4>; | |
288 | clocks = <&osc24M>, <&pll6 1>, <&pll5 1>; | |
289 | clock-output-names = "ts"; | |
290 | }; | |
291 | ||
292 | ss_clk: clk@01c2009c { | |
293 | #clock-cells = <0>; | |
294 | compatible = "allwinner,sun4i-a10-mod0-clk"; | |
295 | reg = <0x01c2009c 0x4>; | |
296 | clocks = <&osc24M>, <&pll6 1>, <&pll5 1>; | |
297 | clock-output-names = "ss"; | |
298 | }; | |
299 | ||
300 | spi0_clk: clk@01c200a0 { | |
301 | #clock-cells = <0>; | |
302 | compatible = "allwinner,sun4i-a10-mod0-clk"; | |
303 | reg = <0x01c200a0 0x4>; | |
304 | clocks = <&osc24M>, <&pll6 1>, <&pll5 1>; | |
305 | clock-output-names = "spi0"; | |
306 | }; | |
307 | ||
308 | spi1_clk: clk@01c200a4 { | |
309 | #clock-cells = <0>; | |
310 | compatible = "allwinner,sun4i-a10-mod0-clk"; | |
311 | reg = <0x01c200a4 0x4>; | |
312 | clocks = <&osc24M>, <&pll6 1>, <&pll5 1>; | |
313 | clock-output-names = "spi1"; | |
314 | }; | |
315 | ||
316 | spi2_clk: clk@01c200a8 { | |
317 | #clock-cells = <0>; | |
318 | compatible = "allwinner,sun4i-a10-mod0-clk"; | |
319 | reg = <0x01c200a8 0x4>; | |
320 | clocks = <&osc24M>, <&pll6 1>, <&pll5 1>; | |
321 | clock-output-names = "spi2"; | |
322 | }; | |
323 | ||
324 | ir0_clk: clk@01c200b0 { | |
325 | #clock-cells = <0>; | |
326 | compatible = "allwinner,sun4i-a10-mod0-clk"; | |
327 | reg = <0x01c200b0 0x4>; | |
328 | clocks = <&osc24M>, <&pll6 1>, <&pll5 1>; | |
329 | clock-output-names = "ir0"; | |
330 | }; | |
331 | ||
332 | usb_clk: clk@01c200cc { | |
333 | #clock-cells = <1>; | |
8358aada | 334 | #reset-cells = <1>; |
fbfa7367 MR |
335 | compatible = "allwinner,sun5i-a13-usb-clk"; |
336 | reg = <0x01c200cc 0x4>; | |
337 | clocks = <&pll6 1>; | |
338 | clock-output-names = "usb_ohci0", "usb_phy"; | |
339 | }; | |
340 | ||
ca72f022 MR |
341 | codec_clk: clk@01c20140 { |
342 | #clock-cells = <0>; | |
343 | compatible = "allwinner,sun4i-a10-codec-clk"; | |
344 | reg = <0x01c20140 0x4>; | |
345 | clocks = <&pll2 SUN4I_A10_PLL2_1X>; | |
346 | clock-output-names = "codec"; | |
347 | }; | |
348 | ||
fbfa7367 MR |
349 | mbus_clk: clk@01c2015c { |
350 | #clock-cells = <0>; | |
351 | compatible = "allwinner,sun5i-a13-mbus-clk"; | |
352 | reg = <0x01c2015c 0x4>; | |
353 | clocks = <&osc24M>, <&pll6 1>, <&pll5 1>; | |
354 | clock-output-names = "mbus"; | |
355 | }; | |
356 | }; | |
357 | ||
358 | soc@01c00000 { | |
359 | compatible = "simple-bus"; | |
360 | #address-cells = <1>; | |
361 | #size-cells = <1>; | |
362 | ranges; | |
363 | ||
00f69ba9 MR |
364 | sram-controller@01c00000 { |
365 | compatible = "allwinner,sun4i-a10-sram-controller"; | |
366 | reg = <0x01c00000 0x30>; | |
367 | #address-cells = <1>; | |
368 | #size-cells = <1>; | |
369 | ranges; | |
370 | ||
371 | sram_a: sram@00000000 { | |
372 | compatible = "mmio-sram"; | |
373 | reg = <0x00000000 0xc000>; | |
374 | #address-cells = <1>; | |
375 | #size-cells = <1>; | |
376 | ranges = <0 0x00000000 0xc000>; | |
377 | }; | |
378 | ||
379 | sram_d: sram@00010000 { | |
380 | compatible = "mmio-sram"; | |
381 | reg = <0x00010000 0x1000>; | |
382 | #address-cells = <1>; | |
383 | #size-cells = <1>; | |
384 | ranges = <0 0x00010000 0x1000>; | |
385 | ||
386 | otg_sram: sram-section@0000 { | |
387 | compatible = "allwinner,sun4i-a10-sram-d"; | |
388 | reg = <0x0000 0x1000>; | |
389 | status = "disabled"; | |
390 | }; | |
391 | }; | |
392 | }; | |
393 | ||
fbfa7367 MR |
394 | dma: dma-controller@01c02000 { |
395 | compatible = "allwinner,sun4i-a10-dma"; | |
396 | reg = <0x01c02000 0x1000>; | |
397 | interrupts = <27>; | |
398 | clocks = <&ahb_gates 6>; | |
399 | #dma-cells = <2>; | |
400 | }; | |
401 | ||
402 | spi0: spi@01c05000 { | |
403 | compatible = "allwinner,sun4i-a10-spi"; | |
404 | reg = <0x01c05000 0x1000>; | |
405 | interrupts = <10>; | |
406 | clocks = <&ahb_gates 20>, <&spi0_clk>; | |
407 | clock-names = "ahb", "mod"; | |
408 | dmas = <&dma SUN4I_DMA_DEDICATED 27>, | |
409 | <&dma SUN4I_DMA_DEDICATED 26>; | |
410 | dma-names = "rx", "tx"; | |
411 | status = "disabled"; | |
412 | #address-cells = <1>; | |
413 | #size-cells = <0>; | |
414 | }; | |
415 | ||
416 | spi1: spi@01c06000 { | |
417 | compatible = "allwinner,sun4i-a10-spi"; | |
418 | reg = <0x01c06000 0x1000>; | |
419 | interrupts = <11>; | |
420 | clocks = <&ahb_gates 21>, <&spi1_clk>; | |
421 | clock-names = "ahb", "mod"; | |
422 | dmas = <&dma SUN4I_DMA_DEDICATED 9>, | |
423 | <&dma SUN4I_DMA_DEDICATED 8>; | |
424 | dma-names = "rx", "tx"; | |
425 | status = "disabled"; | |
426 | #address-cells = <1>; | |
427 | #size-cells = <0>; | |
428 | }; | |
429 | ||
430 | mmc0: mmc@01c0f000 { | |
431 | compatible = "allwinner,sun5i-a13-mmc"; | |
432 | reg = <0x01c0f000 0x1000>; | |
433 | clocks = <&ahb_gates 8>, | |
434 | <&mmc0_clk 0>, | |
435 | <&mmc0_clk 1>, | |
436 | <&mmc0_clk 2>; | |
437 | clock-names = "ahb", | |
438 | "mmc", | |
439 | "output", | |
440 | "sample"; | |
441 | interrupts = <32>; | |
442 | status = "disabled"; | |
4c1bb9c3 HG |
443 | #address-cells = <1>; |
444 | #size-cells = <0>; | |
fbfa7367 MR |
445 | }; |
446 | ||
447 | mmc1: mmc@01c10000 { | |
448 | compatible = "allwinner,sun5i-a13-mmc"; | |
449 | reg = <0x01c10000 0x1000>; | |
450 | clocks = <&ahb_gates 9>, | |
451 | <&mmc1_clk 0>, | |
452 | <&mmc1_clk 1>, | |
453 | <&mmc1_clk 2>; | |
454 | clock-names = "ahb", | |
455 | "mmc", | |
456 | "output", | |
457 | "sample"; | |
458 | interrupts = <33>; | |
459 | status = "disabled"; | |
4c1bb9c3 HG |
460 | #address-cells = <1>; |
461 | #size-cells = <0>; | |
fbfa7367 MR |
462 | }; |
463 | ||
464 | mmc2: mmc@01c11000 { | |
465 | compatible = "allwinner,sun5i-a13-mmc"; | |
466 | reg = <0x01c11000 0x1000>; | |
467 | clocks = <&ahb_gates 10>, | |
468 | <&mmc2_clk 0>, | |
469 | <&mmc2_clk 1>, | |
470 | <&mmc2_clk 2>; | |
471 | clock-names = "ahb", | |
472 | "mmc", | |
473 | "output", | |
474 | "sample"; | |
475 | interrupts = <34>; | |
476 | status = "disabled"; | |
4c1bb9c3 HG |
477 | #address-cells = <1>; |
478 | #size-cells = <0>; | |
fbfa7367 MR |
479 | }; |
480 | ||
482f178c HG |
481 | usb_otg: usb@01c13000 { |
482 | compatible = "allwinner,sun4i-a10-musb"; | |
483 | reg = <0x01c13000 0x0400>; | |
484 | clocks = <&ahb_gates 0>; | |
485 | interrupts = <38>; | |
486 | interrupt-names = "mc"; | |
487 | phys = <&usbphy 0>; | |
488 | phy-names = "usb"; | |
489 | extcon = <&usbphy 0>; | |
490 | allwinner,sram = <&otg_sram 1>; | |
491 | status = "disabled"; | |
492 | }; | |
493 | ||
fbfa7367 MR |
494 | usbphy: phy@01c13400 { |
495 | #phy-cells = <1>; | |
496 | compatible = "allwinner,sun5i-a13-usb-phy"; | |
497 | reg = <0x01c13400 0x10 0x01c14800 0x4>; | |
498 | reg-names = "phy_ctrl", "pmu1"; | |
499 | clocks = <&usb_clk 8>; | |
500 | clock-names = "usb_phy"; | |
501 | resets = <&usb_clk 0>, <&usb_clk 1>; | |
502 | reset-names = "usb0_reset", "usb1_reset"; | |
503 | status = "disabled"; | |
504 | }; | |
505 | ||
506 | ehci0: usb@01c14000 { | |
3727ed3b | 507 | compatible = "allwinner,sun5i-a13-ehci", "generic-ehci"; |
fbfa7367 MR |
508 | reg = <0x01c14000 0x100>; |
509 | interrupts = <39>; | |
510 | clocks = <&ahb_gates 1>; | |
511 | phys = <&usbphy 1>; | |
512 | phy-names = "usb"; | |
513 | status = "disabled"; | |
514 | }; | |
515 | ||
516 | ohci0: usb@01c14400 { | |
3727ed3b | 517 | compatible = "allwinner,sun5i-a13-ohci", "generic-ohci"; |
fbfa7367 MR |
518 | reg = <0x01c14400 0x100>; |
519 | interrupts = <40>; | |
520 | clocks = <&usb_clk 6>, <&ahb_gates 2>; | |
521 | phys = <&usbphy 1>; | |
522 | phy-names = "usb"; | |
523 | status = "disabled"; | |
524 | }; | |
525 | ||
526 | spi2: spi@01c17000 { | |
527 | compatible = "allwinner,sun4i-a10-spi"; | |
528 | reg = <0x01c17000 0x1000>; | |
529 | interrupts = <12>; | |
530 | clocks = <&ahb_gates 22>, <&spi2_clk>; | |
531 | clock-names = "ahb", "mod"; | |
532 | dmas = <&dma SUN4I_DMA_DEDICATED 29>, | |
533 | <&dma SUN4I_DMA_DEDICATED 28>; | |
534 | dma-names = "rx", "tx"; | |
535 | status = "disabled"; | |
536 | #address-cells = <1>; | |
537 | #size-cells = <0>; | |
538 | }; | |
539 | ||
540 | intc: interrupt-controller@01c20400 { | |
541 | compatible = "allwinner,sun4i-a10-ic"; | |
542 | reg = <0x01c20400 0x400>; | |
543 | interrupt-controller; | |
544 | #interrupt-cells = <1>; | |
545 | }; | |
546 | ||
547 | pio: pinctrl@01c20800 { | |
548 | reg = <0x01c20800 0x400>; | |
549 | interrupts = <28>; | |
be7bc6b9 MR |
550 | clocks = <&apb0_gates 5>, <&osc24M>, <&osc32k>; |
551 | clock-names = "apb", "hosc", "losc"; | |
fbfa7367 MR |
552 | gpio-controller; |
553 | interrupt-controller; | |
b03e0816 | 554 | #interrupt-cells = <3>; |
fbfa7367 | 555 | #gpio-cells = <3>; |
51fbba42 MR |
556 | |
557 | i2c0_pins_a: i2c0@0 { | |
1edcd36f MR |
558 | pins = "PB0", "PB1"; |
559 | function = "i2c0"; | |
51fbba42 MR |
560 | }; |
561 | ||
562 | i2c1_pins_a: i2c1@0 { | |
1edcd36f MR |
563 | pins = "PB15", "PB16"; |
564 | function = "i2c1"; | |
51fbba42 MR |
565 | }; |
566 | ||
567 | i2c2_pins_a: i2c2@0 { | |
1edcd36f MR |
568 | pins = "PB17", "PB18"; |
569 | function = "i2c2"; | |
51fbba42 MR |
570 | }; |
571 | ||
60a47e43 | 572 | lcd_rgb565_pins: lcd_rgb565@0 { |
1edcd36f | 573 | pins = "PD3", "PD4", "PD5", "PD6", "PD7", |
60a47e43 MR |
574 | "PD10", "PD11", "PD12", "PD13", "PD14", "PD15", |
575 | "PD19", "PD20", "PD21", "PD22", "PD23", | |
576 | "PD24", "PD25", "PD26", "PD27"; | |
1edcd36f | 577 | function = "lcd0"; |
60a47e43 MR |
578 | }; |
579 | ||
51fbba42 | 580 | mmc0_pins_a: mmc0@0 { |
1edcd36f MR |
581 | pins = "PF0", "PF1", "PF2", "PF3", |
582 | "PF4", "PF5"; | |
583 | function = "mmc0"; | |
584 | drive-strength = <30>; | |
51fbba42 | 585 | }; |
e1fe9f8c HG |
586 | |
587 | mmc2_pins_a: mmc2@0 { | |
1edcd36f MR |
588 | pins = "PC6", "PC7", "PC8", "PC9", |
589 | "PC10", "PC11", "PC12", "PC13", | |
590 | "PC14", "PC15"; | |
591 | function = "mmc2"; | |
592 | drive-strength = <30>; | |
593 | bias-pull-up; | |
e1fe9f8c | 594 | }; |
6ef8c8bf | 595 | |
9255fb6c | 596 | spi2_pins_a: spi2@0 { |
1edcd36f MR |
597 | pins = "PE1", "PE2", "PE3"; |
598 | function = "spi2"; | |
9255fb6c MR |
599 | }; |
600 | ||
601 | spi2_cs0_pins_a: spi2-cs0@0 { | |
1edcd36f MR |
602 | pins = "PE0"; |
603 | function = "spi2"; | |
9255fb6c MR |
604 | }; |
605 | ||
6ef8c8bf | 606 | uart3_pins_a: uart3@0 { |
1edcd36f MR |
607 | pins = "PG9", "PG10"; |
608 | function = "uart3"; | |
eeea0fa3 MR |
609 | }; |
610 | ||
611 | uart3_pins_cts_rts_a: uart3-cts-rts@0 { | |
1edcd36f MR |
612 | pins = "PG11", "PG12"; |
613 | function = "uart3"; | |
6ef8c8bf | 614 | }; |
bb390193 HG |
615 | |
616 | pwm0_pins: pwm0 { | |
1edcd36f MR |
617 | pins = "PB2"; |
618 | function = "pwm"; | |
bb390193 | 619 | }; |
fbfa7367 MR |
620 | }; |
621 | ||
622 | timer@01c20c00 { | |
623 | compatible = "allwinner,sun4i-a10-timer"; | |
624 | reg = <0x01c20c00 0x90>; | |
625 | interrupts = <22>; | |
626 | clocks = <&osc24M>; | |
627 | }; | |
628 | ||
629 | wdt: watchdog@01c20c90 { | |
630 | compatible = "allwinner,sun4i-a10-wdt"; | |
631 | reg = <0x01c20c90 0x10>; | |
632 | }; | |
633 | ||
634 | lradc: lradc@01c22800 { | |
635 | compatible = "allwinner,sun4i-a10-lradc-keys"; | |
636 | reg = <0x01c22800 0x100>; | |
637 | interrupts = <31>; | |
638 | status = "disabled"; | |
639 | }; | |
640 | ||
44cdcfc2 MR |
641 | codec: codec@01c22c00 { |
642 | #sound-dai-cells = <0>; | |
643 | compatible = "allwinner,sun4i-a10-codec"; | |
644 | reg = <0x01c22c00 0x40>; | |
645 | interrupts = <30>; | |
646 | clocks = <&apb0_gates 0>, <&codec_clk>; | |
647 | clock-names = "apb", "codec"; | |
648 | dmas = <&dma SUN4I_DMA_NORMAL 19>, | |
649 | <&dma SUN4I_DMA_NORMAL 19>; | |
650 | dma-names = "rx", "tx"; | |
651 | status = "disabled"; | |
652 | }; | |
653 | ||
fbfa7367 MR |
654 | sid: eeprom@01c23800 { |
655 | compatible = "allwinner,sun4i-a10-sid"; | |
656 | reg = <0x01c23800 0x10>; | |
657 | }; | |
658 | ||
659 | rtp: rtp@01c25000 { | |
8bf1b9b3 | 660 | compatible = "allwinner,sun5i-a13-ts"; |
fbfa7367 MR |
661 | reg = <0x01c25000 0x100>; |
662 | interrupts = <29>; | |
663 | #thermal-sensor-cells = <0>; | |
664 | }; | |
665 | ||
666 | uart1: serial@01c28400 { | |
667 | compatible = "snps,dw-apb-uart"; | |
668 | reg = <0x01c28400 0x400>; | |
669 | interrupts = <2>; | |
670 | reg-shift = <2>; | |
671 | reg-io-width = <4>; | |
672 | clocks = <&apb1_gates 17>; | |
673 | status = "disabled"; | |
674 | }; | |
675 | ||
676 | uart3: serial@01c28c00 { | |
677 | compatible = "snps,dw-apb-uart"; | |
678 | reg = <0x01c28c00 0x400>; | |
679 | interrupts = <4>; | |
680 | reg-shift = <2>; | |
681 | reg-io-width = <4>; | |
682 | clocks = <&apb1_gates 19>; | |
683 | status = "disabled"; | |
684 | }; | |
685 | ||
686 | i2c0: i2c@01c2ac00 { | |
687 | compatible = "allwinner,sun4i-a10-i2c"; | |
688 | reg = <0x01c2ac00 0x400>; | |
689 | interrupts = <7>; | |
690 | clocks = <&apb1_gates 0>; | |
691 | status = "disabled"; | |
692 | #address-cells = <1>; | |
693 | #size-cells = <0>; | |
694 | }; | |
695 | ||
696 | i2c1: i2c@01c2b000 { | |
697 | compatible = "allwinner,sun4i-a10-i2c"; | |
698 | reg = <0x01c2b000 0x400>; | |
699 | interrupts = <8>; | |
700 | clocks = <&apb1_gates 1>; | |
701 | status = "disabled"; | |
702 | #address-cells = <1>; | |
703 | #size-cells = <0>; | |
704 | }; | |
705 | ||
706 | i2c2: i2c@01c2b400 { | |
707 | compatible = "allwinner,sun4i-a10-i2c"; | |
708 | reg = <0x01c2b400 0x400>; | |
709 | interrupts = <9>; | |
710 | clocks = <&apb1_gates 2>; | |
711 | status = "disabled"; | |
712 | #address-cells = <1>; | |
713 | #size-cells = <0>; | |
714 | }; | |
715 | ||
716 | timer@01c60000 { | |
717 | compatible = "allwinner,sun5i-a13-hstimer"; | |
718 | reg = <0x01c60000 0x1000>; | |
719 | interrupts = <82>, <83>; | |
720 | clocks = <&ahb_gates 28>; | |
721 | }; | |
722 | }; | |
723 | }; |