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