Merge tag 'mfd-for-linus-3.20' of git://git.kernel.org/pub/scm/linux/kernel/git/lee/mfd
[pandora-kernel.git] / arch / arm / boot / dts / sun4i-a10.dtsi
1 /*
2  * Copyright 2012 Stefan Roese
3  * Stefan Roese <sr@denx.de>
4  *
5  * The code contained herein is licensed under the GNU General Public
6  * License. You may obtain a copy of the GNU General Public License
7  * Version 2 or later at the following locations:
8  *
9  * http://www.opensource.org/licenses/gpl-license.html
10  * http://www.gnu.org/copyleft/gpl.html
11  */
12
13 #include "skeleton.dtsi"
14
15 #include <dt-bindings/thermal/thermal.h>
16
17 #include <dt-bindings/dma/sun4i-a10.h>
18 #include <dt-bindings/pinctrl/sun4i-a10.h>
19
20 / {
21         interrupt-parent = <&intc>;
22
23         aliases {
24                 ethernet0 = &emac;
25         };
26
27         chosen {
28                 #address-cells = <1>;
29                 #size-cells = <1>;
30                 ranges;
31
32                 framebuffer@0 {
33                         compatible = "allwinner,simple-framebuffer", "simple-framebuffer";
34                         allwinner,pipeline = "de_be0-lcd0-hdmi";
35                         clocks = <&pll5 1>, <&ahb_gates 36>, <&ahb_gates 43>,
36                                  <&ahb_gates 44>;
37                         status = "disabled";
38                 };
39
40                 framebuffer@1 {
41                         compatible = "allwinner,simple-framebuffer", "simple-framebuffer";
42                         allwinner,pipeline = "de_fe0-de_be0-lcd0-hdmi";
43                         clocks = <&pll5 1>, <&ahb_gates 36>, <&ahb_gates 43>,
44                                  <&ahb_gates 44>, <&ahb_gates 46>;
45                         status = "disabled";
46                 };
47
48                 framebuffer@2 {
49                         compatible = "allwinner,simple-framebuffer",
50                                      "simple-framebuffer";
51                         allwinner,pipeline = "de_fe0-de_be0-lcd0";
52                         clocks = <&pll5 1>, <&ahb_gates 36>, <&ahb_gates 44>,
53                                  <&ahb_gates 46>;
54                         status = "disabled";
55                 };
56
57                 framebuffer@3 {
58                         compatible = "allwinner,simple-framebuffer",
59                                      "simple-framebuffer";
60                         allwinner,pipeline = "de_fe0-de_be0-lcd0-tve0";
61                         clocks = <&pll5 1>, <&ahb_gates 34>, <&ahb_gates 36>,
62                                  <&ahb_gates 44>, <&ahb_gates 46>;
63                         status = "disabled";
64                 };
65         };
66
67         cpus {
68                 #address-cells = <1>;
69                 #size-cells = <0>;
70                 cpu0: cpu@0 {
71                         device_type = "cpu";
72                         compatible = "arm,cortex-a8";
73                         reg = <0x0>;
74                         clocks = <&cpu>;
75                         clock-latency = <244144>; /* 8 32k periods */
76                         operating-points = <
77                                 /* kHz    uV */
78                                 1056000 1500000
79                                 1008000 1400000
80                                 912000  1350000
81                                 864000  1300000
82                                 624000  1250000
83                                 >;
84                         #cooling-cells = <2>;
85                         cooling-min-level = <0>;
86                         cooling-max-level = <4>;
87                 };
88         };
89
90         thermal-zones {
91                 cpu_thermal {
92                         /* milliseconds */
93                         polling-delay-passive = <250>;
94                         polling-delay = <1000>;
95                         thermal-sensors = <&rtp>;
96
97                         cooling-maps {
98                                 map0 {
99                                         trip = <&cpu_alert0>;
100                                         cooling-device = <&cpu0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
101                                 };
102                         };
103
104                         trips {
105                                 cpu_alert0: cpu_alert0 {
106                                         /* milliCelsius */
107                                         temperature = <850000>;
108                                         hysteresis = <2000>;
109                                         type = "passive";
110                                 };
111
112                                 cpu_crit: cpu_crit {
113                                         /* milliCelsius */
114                                         temperature = <100000>;
115                                         hysteresis = <2000>;
116                                         type = "critical";
117                                 };
118                         };
119                 };
120         };
121
122         memory {
123                 reg = <0x40000000 0x80000000>;
124         };
125
126         clocks {
127                 #address-cells = <1>;
128                 #size-cells = <1>;
129                 ranges;
130
131                 /*
132                  * This is a dummy clock, to be used as placeholder on
133                  * other mux clocks when a specific parent clock is not
134                  * yet implemented. It should be dropped when the driver
135                  * is complete.
136                  */
137                 dummy: dummy {
138                         #clock-cells = <0>;
139                         compatible = "fixed-clock";
140                         clock-frequency = <0>;
141                 };
142
143                 osc24M: clk@01c20050 {
144                         #clock-cells = <0>;
145                         compatible = "allwinner,sun4i-a10-osc-clk";
146                         reg = <0x01c20050 0x4>;
147                         clock-frequency = <24000000>;
148                         clock-output-names = "osc24M";
149                 };
150
151                 osc32k: clk@0 {
152                         #clock-cells = <0>;
153                         compatible = "fixed-clock";
154                         clock-frequency = <32768>;
155                         clock-output-names = "osc32k";
156                 };
157
158                 pll1: clk@01c20000 {
159                         #clock-cells = <0>;
160                         compatible = "allwinner,sun4i-a10-pll1-clk";
161                         reg = <0x01c20000 0x4>;
162                         clocks = <&osc24M>;
163                         clock-output-names = "pll1";
164                 };
165
166                 pll4: clk@01c20018 {
167                         #clock-cells = <0>;
168                         compatible = "allwinner,sun4i-a10-pll1-clk";
169                         reg = <0x01c20018 0x4>;
170                         clocks = <&osc24M>;
171                         clock-output-names = "pll4";
172                 };
173
174                 pll5: clk@01c20020 {
175                         #clock-cells = <1>;
176                         compatible = "allwinner,sun4i-a10-pll5-clk";
177                         reg = <0x01c20020 0x4>;
178                         clocks = <&osc24M>;
179                         clock-output-names = "pll5_ddr", "pll5_other";
180                 };
181
182                 pll6: clk@01c20028 {
183                         #clock-cells = <1>;
184                         compatible = "allwinner,sun4i-a10-pll6-clk";
185                         reg = <0x01c20028 0x4>;
186                         clocks = <&osc24M>;
187                         clock-output-names = "pll6_sata", "pll6_other", "pll6";
188                 };
189
190                 /* dummy is 200M */
191                 cpu: cpu@01c20054 {
192                         #clock-cells = <0>;
193                         compatible = "allwinner,sun4i-a10-cpu-clk";
194                         reg = <0x01c20054 0x4>;
195                         clocks = <&osc32k>, <&osc24M>, <&pll1>, <&dummy>;
196                         clock-output-names = "cpu";
197                 };
198
199                 axi: axi@01c20054 {
200                         #clock-cells = <0>;
201                         compatible = "allwinner,sun4i-a10-axi-clk";
202                         reg = <0x01c20054 0x4>;
203                         clocks = <&cpu>;
204                         clock-output-names = "axi";
205                 };
206
207                 axi_gates: clk@01c2005c {
208                         #clock-cells = <1>;
209                         compatible = "allwinner,sun4i-a10-axi-gates-clk";
210                         reg = <0x01c2005c 0x4>;
211                         clocks = <&axi>;
212                         clock-output-names = "axi_dram";
213                 };
214
215                 ahb: ahb@01c20054 {
216                         #clock-cells = <0>;
217                         compatible = "allwinner,sun4i-a10-ahb-clk";
218                         reg = <0x01c20054 0x4>;
219                         clocks = <&axi>;
220                         clock-output-names = "ahb";
221                 };
222
223                 ahb_gates: clk@01c20060 {
224                         #clock-cells = <1>;
225                         compatible = "allwinner,sun4i-a10-ahb-gates-clk";
226                         reg = <0x01c20060 0x8>;
227                         clocks = <&ahb>;
228                         clock-output-names = "ahb_usb0", "ahb_ehci0",
229                                 "ahb_ohci0", "ahb_ehci1", "ahb_ohci1", "ahb_ss",
230                                 "ahb_dma", "ahb_bist", "ahb_mmc0", "ahb_mmc1",
231                                 "ahb_mmc2", "ahb_mmc3", "ahb_ms", "ahb_nand",
232                                 "ahb_sdram", "ahb_ace", "ahb_emac", "ahb_ts",
233                                 "ahb_spi0", "ahb_spi1", "ahb_spi2", "ahb_spi3",
234                                 "ahb_pata", "ahb_sata", "ahb_gps", "ahb_ve",
235                                 "ahb_tvd", "ahb_tve0", "ahb_tve1", "ahb_lcd0",
236                                 "ahb_lcd1", "ahb_csi0", "ahb_csi1", "ahb_hdmi",
237                                 "ahb_de_be0", "ahb_de_be1", "ahb_de_fe0",
238                                 "ahb_de_fe1", "ahb_mp", "ahb_mali400";
239                 };
240
241                 apb0: apb0@01c20054 {
242                         #clock-cells = <0>;
243                         compatible = "allwinner,sun4i-a10-apb0-clk";
244                         reg = <0x01c20054 0x4>;
245                         clocks = <&ahb>;
246                         clock-output-names = "apb0";
247                 };
248
249                 apb0_gates: clk@01c20068 {
250                         #clock-cells = <1>;
251                         compatible = "allwinner,sun4i-a10-apb0-gates-clk";
252                         reg = <0x01c20068 0x4>;
253                         clocks = <&apb0>;
254                         clock-output-names = "apb0_codec", "apb0_spdif",
255                                 "apb0_ac97", "apb0_iis", "apb0_pio", "apb0_ir0",
256                                 "apb0_ir1", "apb0_keypad";
257                 };
258
259                 apb1: clk@01c20058 {
260                         #clock-cells = <0>;
261                         compatible = "allwinner,sun4i-a10-apb1-clk";
262                         reg = <0x01c20058 0x4>;
263                         clocks = <&osc24M>, <&pll6 1>, <&osc32k>;
264                         clock-output-names = "apb1";
265                 };
266
267                 apb1_gates: clk@01c2006c {
268                         #clock-cells = <1>;
269                         compatible = "allwinner,sun4i-a10-apb1-gates-clk";
270                         reg = <0x01c2006c 0x4>;
271                         clocks = <&apb1>;
272                         clock-output-names = "apb1_i2c0", "apb1_i2c1",
273                                 "apb1_i2c2", "apb1_can", "apb1_scr",
274                                 "apb1_ps20", "apb1_ps21", "apb1_uart0",
275                                 "apb1_uart1", "apb1_uart2", "apb1_uart3",
276                                 "apb1_uart4", "apb1_uart5", "apb1_uart6",
277                                 "apb1_uart7";
278                 };
279
280                 nand_clk: clk@01c20080 {
281                         #clock-cells = <0>;
282                         compatible = "allwinner,sun4i-a10-mod0-clk";
283                         reg = <0x01c20080 0x4>;
284                         clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
285                         clock-output-names = "nand";
286                 };
287
288                 ms_clk: clk@01c20084 {
289                         #clock-cells = <0>;
290                         compatible = "allwinner,sun4i-a10-mod0-clk";
291                         reg = <0x01c20084 0x4>;
292                         clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
293                         clock-output-names = "ms";
294                 };
295
296                 mmc0_clk: clk@01c20088 {
297                         #clock-cells = <0>;
298                         compatible = "allwinner,sun4i-a10-mod0-clk";
299                         reg = <0x01c20088 0x4>;
300                         clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
301                         clock-output-names = "mmc0";
302                 };
303
304                 mmc1_clk: clk@01c2008c {
305                         #clock-cells = <0>;
306                         compatible = "allwinner,sun4i-a10-mod0-clk";
307                         reg = <0x01c2008c 0x4>;
308                         clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
309                         clock-output-names = "mmc1";
310                 };
311
312                 mmc2_clk: clk@01c20090 {
313                         #clock-cells = <0>;
314                         compatible = "allwinner,sun4i-a10-mod0-clk";
315                         reg = <0x01c20090 0x4>;
316                         clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
317                         clock-output-names = "mmc2";
318                 };
319
320                 mmc3_clk: clk@01c20094 {
321                         #clock-cells = <0>;
322                         compatible = "allwinner,sun4i-a10-mod0-clk";
323                         reg = <0x01c20094 0x4>;
324                         clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
325                         clock-output-names = "mmc3";
326                 };
327
328                 ts_clk: clk@01c20098 {
329                         #clock-cells = <0>;
330                         compatible = "allwinner,sun4i-a10-mod0-clk";
331                         reg = <0x01c20098 0x4>;
332                         clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
333                         clock-output-names = "ts";
334                 };
335
336                 ss_clk: clk@01c2009c {
337                         #clock-cells = <0>;
338                         compatible = "allwinner,sun4i-a10-mod0-clk";
339                         reg = <0x01c2009c 0x4>;
340                         clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
341                         clock-output-names = "ss";
342                 };
343
344                 spi0_clk: clk@01c200a0 {
345                         #clock-cells = <0>;
346                         compatible = "allwinner,sun4i-a10-mod0-clk";
347                         reg = <0x01c200a0 0x4>;
348                         clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
349                         clock-output-names = "spi0";
350                 };
351
352                 spi1_clk: clk@01c200a4 {
353                         #clock-cells = <0>;
354                         compatible = "allwinner,sun4i-a10-mod0-clk";
355                         reg = <0x01c200a4 0x4>;
356                         clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
357                         clock-output-names = "spi1";
358                 };
359
360                 spi2_clk: clk@01c200a8 {
361                         #clock-cells = <0>;
362                         compatible = "allwinner,sun4i-a10-mod0-clk";
363                         reg = <0x01c200a8 0x4>;
364                         clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
365                         clock-output-names = "spi2";
366                 };
367
368                 pata_clk: clk@01c200ac {
369                         #clock-cells = <0>;
370                         compatible = "allwinner,sun4i-a10-mod0-clk";
371                         reg = <0x01c200ac 0x4>;
372                         clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
373                         clock-output-names = "pata";
374                 };
375
376                 ir0_clk: clk@01c200b0 {
377                         #clock-cells = <0>;
378                         compatible = "allwinner,sun4i-a10-mod0-clk";
379                         reg = <0x01c200b0 0x4>;
380                         clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
381                         clock-output-names = "ir0";
382                 };
383
384                 ir1_clk: clk@01c200b4 {
385                         #clock-cells = <0>;
386                         compatible = "allwinner,sun4i-a10-mod0-clk";
387                         reg = <0x01c200b4 0x4>;
388                         clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
389                         clock-output-names = "ir1";
390                 };
391
392                 usb_clk: clk@01c200cc {
393                         #clock-cells = <1>;
394                         #reset-cells = <1>;
395                         compatible = "allwinner,sun4i-a10-usb-clk";
396                         reg = <0x01c200cc 0x4>;
397                         clocks = <&pll6 1>;
398                         clock-output-names = "usb_ohci0", "usb_ohci1", "usb_phy";
399                 };
400
401                 spi3_clk: clk@01c200d4 {
402                         #clock-cells = <0>;
403                         compatible = "allwinner,sun4i-a10-mod0-clk";
404                         reg = <0x01c200d4 0x4>;
405                         clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
406                         clock-output-names = "spi3";
407                 };
408         };
409
410         soc@01c00000 {
411                 compatible = "simple-bus";
412                 #address-cells = <1>;
413                 #size-cells = <1>;
414                 ranges;
415
416                 dma: dma-controller@01c02000 {
417                         compatible = "allwinner,sun4i-a10-dma";
418                         reg = <0x01c02000 0x1000>;
419                         interrupts = <27>;
420                         clocks = <&ahb_gates 6>;
421                         #dma-cells = <2>;
422                 };
423
424                 spi0: spi@01c05000 {
425                         compatible = "allwinner,sun4i-a10-spi";
426                         reg = <0x01c05000 0x1000>;
427                         interrupts = <10>;
428                         clocks = <&ahb_gates 20>, <&spi0_clk>;
429                         clock-names = "ahb", "mod";
430                         dmas = <&dma SUN4I_DMA_DEDICATED 27>,
431                                <&dma SUN4I_DMA_DEDICATED 26>;
432                         dma-names = "rx", "tx";
433                         status = "disabled";
434                         #address-cells = <1>;
435                         #size-cells = <0>;
436                 };
437
438                 spi1: spi@01c06000 {
439                         compatible = "allwinner,sun4i-a10-spi";
440                         reg = <0x01c06000 0x1000>;
441                         interrupts = <11>;
442                         clocks = <&ahb_gates 21>, <&spi1_clk>;
443                         clock-names = "ahb", "mod";
444                         dmas = <&dma SUN4I_DMA_DEDICATED 9>,
445                                <&dma SUN4I_DMA_DEDICATED 8>;
446                         dma-names = "rx", "tx";
447                         status = "disabled";
448                         #address-cells = <1>;
449                         #size-cells = <0>;
450                 };
451
452                 emac: ethernet@01c0b000 {
453                         compatible = "allwinner,sun4i-a10-emac";
454                         reg = <0x01c0b000 0x1000>;
455                         interrupts = <55>;
456                         clocks = <&ahb_gates 17>;
457                         status = "disabled";
458                 };
459
460                 mdio: mdio@01c0b080 {
461                         compatible = "allwinner,sun4i-a10-mdio";
462                         reg = <0x01c0b080 0x14>;
463                         status = "disabled";
464                         #address-cells = <1>;
465                         #size-cells = <0>;
466                 };
467
468                 mmc0: mmc@01c0f000 {
469                         compatible = "allwinner,sun4i-a10-mmc";
470                         reg = <0x01c0f000 0x1000>;
471                         clocks = <&ahb_gates 8>, <&mmc0_clk>;
472                         clock-names = "ahb", "mmc";
473                         interrupts = <32>;
474                         status = "disabled";
475                 };
476
477                 mmc1: mmc@01c10000 {
478                         compatible = "allwinner,sun4i-a10-mmc";
479                         reg = <0x01c10000 0x1000>;
480                         clocks = <&ahb_gates 9>, <&mmc1_clk>;
481                         clock-names = "ahb", "mmc";
482                         interrupts = <33>;
483                         status = "disabled";
484                 };
485
486                 mmc2: mmc@01c11000 {
487                         compatible = "allwinner,sun4i-a10-mmc";
488                         reg = <0x01c11000 0x1000>;
489                         clocks = <&ahb_gates 10>, <&mmc2_clk>;
490                         clock-names = "ahb", "mmc";
491                         interrupts = <34>;
492                         status = "disabled";
493                 };
494
495                 mmc3: mmc@01c12000 {
496                         compatible = "allwinner,sun4i-a10-mmc";
497                         reg = <0x01c12000 0x1000>;
498                         clocks = <&ahb_gates 11>, <&mmc3_clk>;
499                         clock-names = "ahb", "mmc";
500                         interrupts = <35>;
501                         status = "disabled";
502                 };
503
504                 usbphy: phy@01c13400 {
505                         #phy-cells = <1>;
506                         compatible = "allwinner,sun4i-a10-usb-phy";
507                         reg = <0x01c13400 0x10 0x01c14800 0x4 0x01c1c800 0x4>;
508                         reg-names = "phy_ctrl", "pmu1", "pmu2";
509                         clocks = <&usb_clk 8>;
510                         clock-names = "usb_phy";
511                         resets = <&usb_clk 0>, <&usb_clk 1>, <&usb_clk 2>;
512                         reset-names = "usb0_reset", "usb1_reset", "usb2_reset";
513                         status = "disabled";
514                 };
515
516                 ehci0: usb@01c14000 {
517                         compatible = "allwinner,sun4i-a10-ehci", "generic-ehci";
518                         reg = <0x01c14000 0x100>;
519                         interrupts = <39>;
520                         clocks = <&ahb_gates 1>;
521                         phys = <&usbphy 1>;
522                         phy-names = "usb";
523                         status = "disabled";
524                 };
525
526                 ohci0: usb@01c14400 {
527                         compatible = "allwinner,sun4i-a10-ohci", "generic-ohci";
528                         reg = <0x01c14400 0x100>;
529                         interrupts = <64>;
530                         clocks = <&usb_clk 6>, <&ahb_gates 2>;
531                         phys = <&usbphy 1>;
532                         phy-names = "usb";
533                         status = "disabled";
534                 };
535
536                 spi2: spi@01c17000 {
537                         compatible = "allwinner,sun4i-a10-spi";
538                         reg = <0x01c17000 0x1000>;
539                         interrupts = <12>;
540                         clocks = <&ahb_gates 22>, <&spi2_clk>;
541                         clock-names = "ahb", "mod";
542                         dmas = <&dma SUN4I_DMA_DEDICATED 29>,
543                                <&dma SUN4I_DMA_DEDICATED 28>;
544                         dma-names = "rx", "tx";
545                         status = "disabled";
546                         #address-cells = <1>;
547                         #size-cells = <0>;
548                 };
549
550                 ahci: sata@01c18000 {
551                         compatible = "allwinner,sun4i-a10-ahci";
552                         reg = <0x01c18000 0x1000>;
553                         interrupts = <56>;
554                         clocks = <&pll6 0>, <&ahb_gates 25>;
555                         status = "disabled";
556                 };
557
558                 ehci1: usb@01c1c000 {
559                         compatible = "allwinner,sun4i-a10-ehci", "generic-ehci";
560                         reg = <0x01c1c000 0x100>;
561                         interrupts = <40>;
562                         clocks = <&ahb_gates 3>;
563                         phys = <&usbphy 2>;
564                         phy-names = "usb";
565                         status = "disabled";
566                 };
567
568                 ohci1: usb@01c1c400 {
569                         compatible = "allwinner,sun4i-a10-ohci", "generic-ohci";
570                         reg = <0x01c1c400 0x100>;
571                         interrupts = <65>;
572                         clocks = <&usb_clk 7>, <&ahb_gates 4>;
573                         phys = <&usbphy 2>;
574                         phy-names = "usb";
575                         status = "disabled";
576                 };
577
578                 spi3: spi@01c1f000 {
579                         compatible = "allwinner,sun4i-a10-spi";
580                         reg = <0x01c1f000 0x1000>;
581                         interrupts = <50>;
582                         clocks = <&ahb_gates 23>, <&spi3_clk>;
583                         clock-names = "ahb", "mod";
584                         dmas = <&dma SUN4I_DMA_DEDICATED 31>,
585                                <&dma SUN4I_DMA_DEDICATED 30>;
586                         dma-names = "rx", "tx";
587                         status = "disabled";
588                         #address-cells = <1>;
589                         #size-cells = <0>;
590                 };
591
592                 intc: interrupt-controller@01c20400 {
593                         compatible = "allwinner,sun4i-a10-ic";
594                         reg = <0x01c20400 0x400>;
595                         interrupt-controller;
596                         #interrupt-cells = <1>;
597                 };
598
599                 pio: pinctrl@01c20800 {
600                         compatible = "allwinner,sun4i-a10-pinctrl";
601                         reg = <0x01c20800 0x400>;
602                         interrupts = <28>;
603                         clocks = <&apb0_gates 5>;
604                         gpio-controller;
605                         interrupt-controller;
606                         #interrupt-cells = <2>;
607                         #size-cells = <0>;
608                         #gpio-cells = <3>;
609
610                         pwm0_pins_a: pwm0@0 {
611                                 allwinner,pins = "PB2";
612                                 allwinner,function = "pwm";
613                                 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
614                                 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
615                         };
616
617                         pwm1_pins_a: pwm1@0 {
618                                 allwinner,pins = "PI3";
619                                 allwinner,function = "pwm";
620                                 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
621                                 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
622                         };
623
624                         uart0_pins_a: uart0@0 {
625                                 allwinner,pins = "PB22", "PB23";
626                                 allwinner,function = "uart0";
627                                 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
628                                 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
629                         };
630
631                         uart0_pins_b: uart0@1 {
632                                 allwinner,pins = "PF2", "PF4";
633                                 allwinner,function = "uart0";
634                                 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
635                                 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
636                         };
637
638                         uart1_pins_a: uart1@0 {
639                                 allwinner,pins = "PA10", "PA11";
640                                 allwinner,function = "uart1";
641                                 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
642                                 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
643                         };
644
645                         i2c0_pins_a: i2c0@0 {
646                                 allwinner,pins = "PB0", "PB1";
647                                 allwinner,function = "i2c0";
648                                 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
649                                 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
650                         };
651
652                         i2c1_pins_a: i2c1@0 {
653                                 allwinner,pins = "PB18", "PB19";
654                                 allwinner,function = "i2c1";
655                                 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
656                                 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
657                         };
658
659                         i2c2_pins_a: i2c2@0 {
660                                 allwinner,pins = "PB20", "PB21";
661                                 allwinner,function = "i2c2";
662                                 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
663                                 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
664                         };
665
666                         emac_pins_a: emac0@0 {
667                                 allwinner,pins = "PA0", "PA1", "PA2",
668                                                 "PA3", "PA4", "PA5", "PA6",
669                                                 "PA7", "PA8", "PA9", "PA10",
670                                                 "PA11", "PA12", "PA13", "PA14",
671                                                 "PA15", "PA16";
672                                 allwinner,function = "emac";
673                                 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
674                                 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
675                         };
676
677                         mmc0_pins_a: mmc0@0 {
678                                 allwinner,pins = "PF0","PF1","PF2","PF3","PF4","PF5";
679                                 allwinner,function = "mmc0";
680                                 allwinner,drive = <SUN4I_PINCTRL_30_MA>;
681                                 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
682                         };
683
684                         mmc0_cd_pin_reference_design: mmc0_cd_pin@0 {
685                                 allwinner,pins = "PH1";
686                                 allwinner,function = "gpio_in";
687                                 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
688                                 allwinner,pull = <SUN4I_PINCTRL_PULL_UP>;
689                         };
690
691                         ir0_pins_a: ir0@0 {
692                                 allwinner,pins = "PB3","PB4";
693                                 allwinner,function = "ir0";
694                                 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
695                                 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
696                         };
697
698                         ir1_pins_a: ir1@0 {
699                                 allwinner,pins = "PB22","PB23";
700                                 allwinner,function = "ir1";
701                                 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
702                                 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
703                         };
704
705                         spi0_pins_a: spi0@0 {
706                                 allwinner,pins = "PI10", "PI11", "PI12", "PI13";
707                                 allwinner,function = "spi0";
708                                 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
709                                 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
710                         };
711
712                         spi1_pins_a: spi1@0 {
713                                 allwinner,pins = "PI16", "PI17", "PI18", "PI19";
714                                 allwinner,function = "spi1";
715                                 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
716                                 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
717                         };
718
719                         spi2_pins_a: spi2@0 {
720                                 allwinner,pins = "PB14", "PB15", "PB16", "PB17";
721                                 allwinner,function = "spi2";
722                                 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
723                                 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
724                         };
725
726                         spi2_pins_b: spi2@1 {
727                                 allwinner,pins = "PC19", "PC20", "PC21", "PC22";
728                                 allwinner,function = "spi2";
729                                 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
730                                 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
731                         };
732
733                         ps20_pins_a: ps20@0 {
734                                 allwinner,pins = "PI20", "PI21";
735                                 allwinner,function = "ps2";
736                                 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
737                                 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
738                         };
739
740                         ps21_pins_a: ps21@0 {
741                                 allwinner,pins = "PH12", "PH13";
742                                 allwinner,function = "ps2";
743                                 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
744                                 allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
745                         };
746                 };
747
748                 timer@01c20c00 {
749                         compatible = "allwinner,sun4i-a10-timer";
750                         reg = <0x01c20c00 0x90>;
751                         interrupts = <22>;
752                         clocks = <&osc24M>;
753                 };
754
755                 wdt: watchdog@01c20c90 {
756                         compatible = "allwinner,sun4i-a10-wdt";
757                         reg = <0x01c20c90 0x10>;
758                 };
759
760                 rtc: rtc@01c20d00 {
761                         compatible = "allwinner,sun4i-a10-rtc";
762                         reg = <0x01c20d00 0x20>;
763                         interrupts = <24>;
764                 };
765
766                 pwm: pwm@01c20e00 {
767                         compatible = "allwinner,sun4i-a10-pwm";
768                         reg = <0x01c20e00 0xc>;
769                         clocks = <&osc24M>;
770                         #pwm-cells = <3>;
771                         status = "disabled";
772                 };
773
774                 ir0: ir@01c21800 {
775                         compatible = "allwinner,sun4i-a10-ir";
776                         clocks = <&apb0_gates 6>, <&ir0_clk>;
777                         clock-names = "apb", "ir";
778                         interrupts = <5>;
779                         reg = <0x01c21800 0x40>;
780                         status = "disabled";
781                 };
782
783                 ir1: ir@01c21c00 {
784                         compatible = "allwinner,sun4i-a10-ir";
785                         clocks = <&apb0_gates 7>, <&ir1_clk>;
786                         clock-names = "apb", "ir";
787                         interrupts = <6>;
788                         reg = <0x01c21c00 0x40>;
789                         status = "disabled";
790                 };
791
792                 lradc: lradc@01c22800 {
793                         compatible = "allwinner,sun4i-a10-lradc-keys";
794                         reg = <0x01c22800 0x100>;
795                         interrupts = <31>;
796                         status = "disabled";
797                 };
798
799                 sid: eeprom@01c23800 {
800                         compatible = "allwinner,sun4i-a10-sid";
801                         reg = <0x01c23800 0x10>;
802                 };
803
804                 rtp: rtp@01c25000 {
805                         compatible = "allwinner,sun4i-a10-ts";
806                         reg = <0x01c25000 0x100>;
807                         interrupts = <29>;
808                         #thermal-sensor-cells = <0>;
809                 };
810
811                 uart0: serial@01c28000 {
812                         compatible = "snps,dw-apb-uart";
813                         reg = <0x01c28000 0x400>;
814                         interrupts = <1>;
815                         reg-shift = <2>;
816                         reg-io-width = <4>;
817                         clocks = <&apb1_gates 16>;
818                         status = "disabled";
819                 };
820
821                 uart1: serial@01c28400 {
822                         compatible = "snps,dw-apb-uart";
823                         reg = <0x01c28400 0x400>;
824                         interrupts = <2>;
825                         reg-shift = <2>;
826                         reg-io-width = <4>;
827                         clocks = <&apb1_gates 17>;
828                         status = "disabled";
829                 };
830
831                 uart2: serial@01c28800 {
832                         compatible = "snps,dw-apb-uart";
833                         reg = <0x01c28800 0x400>;
834                         interrupts = <3>;
835                         reg-shift = <2>;
836                         reg-io-width = <4>;
837                         clocks = <&apb1_gates 18>;
838                         status = "disabled";
839                 };
840
841                 uart3: serial@01c28c00 {
842                         compatible = "snps,dw-apb-uart";
843                         reg = <0x01c28c00 0x400>;
844                         interrupts = <4>;
845                         reg-shift = <2>;
846                         reg-io-width = <4>;
847                         clocks = <&apb1_gates 19>;
848                         status = "disabled";
849                 };
850
851                 uart4: serial@01c29000 {
852                         compatible = "snps,dw-apb-uart";
853                         reg = <0x01c29000 0x400>;
854                         interrupts = <17>;
855                         reg-shift = <2>;
856                         reg-io-width = <4>;
857                         clocks = <&apb1_gates 20>;
858                         status = "disabled";
859                 };
860
861                 uart5: serial@01c29400 {
862                         compatible = "snps,dw-apb-uart";
863                         reg = <0x01c29400 0x400>;
864                         interrupts = <18>;
865                         reg-shift = <2>;
866                         reg-io-width = <4>;
867                         clocks = <&apb1_gates 21>;
868                         status = "disabled";
869                 };
870
871                 uart6: serial@01c29800 {
872                         compatible = "snps,dw-apb-uart";
873                         reg = <0x01c29800 0x400>;
874                         interrupts = <19>;
875                         reg-shift = <2>;
876                         reg-io-width = <4>;
877                         clocks = <&apb1_gates 22>;
878                         status = "disabled";
879                 };
880
881                 uart7: serial@01c29c00 {
882                         compatible = "snps,dw-apb-uart";
883                         reg = <0x01c29c00 0x400>;
884                         interrupts = <20>;
885                         reg-shift = <2>;
886                         reg-io-width = <4>;
887                         clocks = <&apb1_gates 23>;
888                         status = "disabled";
889                 };
890
891                 i2c0: i2c@01c2ac00 {
892                         compatible = "allwinner,sun4i-a10-i2c";
893                         reg = <0x01c2ac00 0x400>;
894                         interrupts = <7>;
895                         clocks = <&apb1_gates 0>;
896                         status = "disabled";
897                         #address-cells = <1>;
898                         #size-cells = <0>;
899                 };
900
901                 i2c1: i2c@01c2b000 {
902                         compatible = "allwinner,sun4i-a10-i2c";
903                         reg = <0x01c2b000 0x400>;
904                         interrupts = <8>;
905                         clocks = <&apb1_gates 1>;
906                         status = "disabled";
907                         #address-cells = <1>;
908                         #size-cells = <0>;
909                 };
910
911                 i2c2: i2c@01c2b400 {
912                         compatible = "allwinner,sun4i-a10-i2c";
913                         reg = <0x01c2b400 0x400>;
914                         interrupts = <9>;
915                         clocks = <&apb1_gates 2>;
916                         status = "disabled";
917                         #address-cells = <1>;
918                         #size-cells = <0>;
919                 };
920
921                 ps20: ps2@01c2a000 {
922                         compatible = "allwinner,sun4i-a10-ps2";
923                         reg = <0x01c2a000 0x400>;
924                         interrupts = <62>;
925                         clocks = <&apb1_gates 6>;
926                         status = "disabled";
927                 };
928
929                 ps21: ps2@01c2a400 {
930                         compatible = "allwinner,sun4i-a10-ps2";
931                         reg = <0x01c2a400 0x400>;
932                         interrupts = <63>;
933                         clocks = <&apb1_gates 7>;
934                         status = "disabled";
935                 };
936         };
937 };