Merge tag 'dm-3.19-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/device...
[cascardo/linux.git] / arch / arm / boot / dts / sun7i-a20.dtsi
1 /*
2  * Copyright 2013 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 file 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 file 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  *
21  *     You should have received a copy of the GNU General Public
22  *     License along with this file; if not, write to the Free
23  *     Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,
24  *     MA 02110-1301 USA
25  *
26  * Or, alternatively,
27  *
28  *  b) Permission is hereby granted, free of charge, to any person
29  *     obtaining a copy of this software and associated documentation
30  *     files (the "Software"), to deal in the Software without
31  *     restriction, including without limitation the rights to use,
32  *     copy, modify, merge, publish, distribute, sublicense, and/or
33  *     sell copies of the Software, and to permit persons to whom the
34  *     Software is furnished to do so, subject to the following
35  *     conditions:
36  *
37  *     The above copyright notice and this permission notice shall be
38  *     included in all copies or substantial portions of the Software.
39  *
40  *     THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
41  *     EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
42  *     OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
43  *     NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
44  *     HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
45  *     WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
46  *     FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
47  *     OTHER DEALINGS IN THE SOFTWARE.
48  */
49
50 /include/ "skeleton.dtsi"
51
52 / {
53         interrupt-parent = <&gic>;
54
55         aliases {
56                 ethernet0 = &gmac;
57                 serial0 = &uart0;
58                 serial1 = &uart1;
59                 serial2 = &uart2;
60                 serial3 = &uart3;
61                 serial4 = &uart4;
62                 serial5 = &uart5;
63                 serial6 = &uart6;
64                 serial7 = &uart7;
65         };
66
67         chosen {
68                 #address-cells = <1>;
69                 #size-cells = <1>;
70                 ranges;
71
72                 framebuffer@0 {
73                         compatible = "allwinner,simple-framebuffer", "simple-framebuffer";
74                         allwinner,pipeline = "de_be0-lcd0-hdmi";
75                         clocks = <&pll5 1>, <&ahb_gates 36>, <&ahb_gates 43>,
76                                  <&ahb_gates 44>;
77                         status = "disabled";
78                 };
79         };
80
81         cpus {
82                 #address-cells = <1>;
83                 #size-cells = <0>;
84
85                 cpu@0 {
86                         compatible = "arm,cortex-a7";
87                         device_type = "cpu";
88                         reg = <0>;
89                 };
90
91                 cpu@1 {
92                         compatible = "arm,cortex-a7";
93                         device_type = "cpu";
94                         reg = <1>;
95                 };
96         };
97
98         memory {
99                 reg = <0x40000000 0x80000000>;
100         };
101
102         timer {
103                 compatible = "arm,armv7-timer";
104                 interrupts = <1 13 0xf08>,
105                              <1 14 0xf08>,
106                              <1 11 0xf08>,
107                              <1 10 0xf08>;
108         };
109
110         pmu {
111                 compatible = "arm,cortex-a7-pmu", "arm,cortex-a15-pmu";
112                 interrupts = <0 120 4>,
113                              <0 121 4>;
114         };
115
116         clocks {
117                 #address-cells = <1>;
118                 #size-cells = <1>;
119                 ranges;
120
121                 osc24M: clk@01c20050 {
122                         #clock-cells = <0>;
123                         compatible = "allwinner,sun4i-a10-osc-clk";
124                         reg = <0x01c20050 0x4>;
125                         clock-frequency = <24000000>;
126                         clock-output-names = "osc24M";
127                 };
128
129                 osc32k: clk@0 {
130                         #clock-cells = <0>;
131                         compatible = "fixed-clock";
132                         clock-frequency = <32768>;
133                         clock-output-names = "osc32k";
134                 };
135
136                 pll1: clk@01c20000 {
137                         #clock-cells = <0>;
138                         compatible = "allwinner,sun4i-a10-pll1-clk";
139                         reg = <0x01c20000 0x4>;
140                         clocks = <&osc24M>;
141                         clock-output-names = "pll1";
142                 };
143
144                 pll4: clk@01c20018 {
145                         #clock-cells = <0>;
146                         compatible = "allwinner,sun7i-a20-pll4-clk";
147                         reg = <0x01c20018 0x4>;
148                         clocks = <&osc24M>;
149                         clock-output-names = "pll4";
150                 };
151
152                 pll5: clk@01c20020 {
153                         #clock-cells = <1>;
154                         compatible = "allwinner,sun4i-a10-pll5-clk";
155                         reg = <0x01c20020 0x4>;
156                         clocks = <&osc24M>;
157                         clock-output-names = "pll5_ddr", "pll5_other";
158                 };
159
160                 pll6: clk@01c20028 {
161                         #clock-cells = <1>;
162                         compatible = "allwinner,sun4i-a10-pll6-clk";
163                         reg = <0x01c20028 0x4>;
164                         clocks = <&osc24M>;
165                         clock-output-names = "pll6_sata", "pll6_other", "pll6";
166                 };
167
168                 pll8: clk@01c20040 {
169                         #clock-cells = <0>;
170                         compatible = "allwinner,sun7i-a20-pll4-clk";
171                         reg = <0x01c20040 0x4>;
172                         clocks = <&osc24M>;
173                         clock-output-names = "pll8";
174                 };
175
176                 cpu: cpu@01c20054 {
177                         #clock-cells = <0>;
178                         compatible = "allwinner,sun4i-a10-cpu-clk";
179                         reg = <0x01c20054 0x4>;
180                         clocks = <&osc32k>, <&osc24M>, <&pll1>, <&pll6 1>;
181                         clock-output-names = "cpu";
182                 };
183
184                 axi: axi@01c20054 {
185                         #clock-cells = <0>;
186                         compatible = "allwinner,sun4i-a10-axi-clk";
187                         reg = <0x01c20054 0x4>;
188                         clocks = <&cpu>;
189                         clock-output-names = "axi";
190                 };
191
192                 ahb: ahb@01c20054 {
193                         #clock-cells = <0>;
194                         compatible = "allwinner,sun4i-a10-ahb-clk";
195                         reg = <0x01c20054 0x4>;
196                         clocks = <&axi>;
197                         clock-output-names = "ahb";
198                 };
199
200                 ahb_gates: clk@01c20060 {
201                         #clock-cells = <1>;
202                         compatible = "allwinner,sun7i-a20-ahb-gates-clk";
203                         reg = <0x01c20060 0x8>;
204                         clocks = <&ahb>;
205                         clock-output-names = "ahb_usb0", "ahb_ehci0",
206                                 "ahb_ohci0", "ahb_ehci1", "ahb_ohci1",
207                                 "ahb_ss", "ahb_dma", "ahb_bist", "ahb_mmc0",
208                                 "ahb_mmc1", "ahb_mmc2", "ahb_mmc3", "ahb_ms",
209                                 "ahb_nand", "ahb_sdram", "ahb_ace",
210                                 "ahb_emac", "ahb_ts", "ahb_spi0", "ahb_spi1",
211                                 "ahb_spi2", "ahb_spi3", "ahb_sata",
212                                 "ahb_hstimer", "ahb_ve", "ahb_tvd", "ahb_tve0",
213                                 "ahb_tve1", "ahb_lcd0", "ahb_lcd1", "ahb_csi0",
214                                 "ahb_csi1", "ahb_hdmi1", "ahb_hdmi0",
215                                 "ahb_de_be0", "ahb_de_be1", "ahb_de_fe0",
216                                 "ahb_de_fe1", "ahb_gmac", "ahb_mp",
217                                 "ahb_mali";
218                 };
219
220                 apb0: apb0@01c20054 {
221                         #clock-cells = <0>;
222                         compatible = "allwinner,sun4i-a10-apb0-clk";
223                         reg = <0x01c20054 0x4>;
224                         clocks = <&ahb>;
225                         clock-output-names = "apb0";
226                 };
227
228                 apb0_gates: clk@01c20068 {
229                         #clock-cells = <1>;
230                         compatible = "allwinner,sun7i-a20-apb0-gates-clk";
231                         reg = <0x01c20068 0x4>;
232                         clocks = <&apb0>;
233                         clock-output-names = "apb0_codec", "apb0_spdif",
234                                 "apb0_ac97", "apb0_iis0", "apb0_iis1",
235                                 "apb0_pio", "apb0_ir0", "apb0_ir1",
236                                 "apb0_iis2", "apb0_keypad";
237                 };
238
239                 apb1: clk@01c20058 {
240                         #clock-cells = <0>;
241                         compatible = "allwinner,sun4i-a10-apb1-clk";
242                         reg = <0x01c20058 0x4>;
243                         clocks = <&osc24M>, <&pll6 1>, <&osc32k>;
244                         clock-output-names = "apb1";
245                 };
246
247                 apb1_gates: clk@01c2006c {
248                         #clock-cells = <1>;
249                         compatible = "allwinner,sun7i-a20-apb1-gates-clk";
250                         reg = <0x01c2006c 0x4>;
251                         clocks = <&apb1>;
252                         clock-output-names = "apb1_i2c0", "apb1_i2c1",
253                                 "apb1_i2c2", "apb1_i2c3", "apb1_can",
254                                 "apb1_scr", "apb1_ps20", "apb1_ps21",
255                                 "apb1_i2c4", "apb1_uart0", "apb1_uart1",
256                                 "apb1_uart2", "apb1_uart3", "apb1_uart4",
257                                 "apb1_uart5", "apb1_uart6", "apb1_uart7";
258                 };
259
260                 nand_clk: clk@01c20080 {
261                         #clock-cells = <0>;
262                         compatible = "allwinner,sun4i-a10-mod0-clk";
263                         reg = <0x01c20080 0x4>;
264                         clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
265                         clock-output-names = "nand";
266                 };
267
268                 ms_clk: clk@01c20084 {
269                         #clock-cells = <0>;
270                         compatible = "allwinner,sun4i-a10-mod0-clk";
271                         reg = <0x01c20084 0x4>;
272                         clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
273                         clock-output-names = "ms";
274                 };
275
276                 mmc0_clk: clk@01c20088 {
277                         #clock-cells = <0>;
278                         compatible = "allwinner,sun4i-a10-mod0-clk";
279                         reg = <0x01c20088 0x4>;
280                         clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
281                         clock-output-names = "mmc0";
282                 };
283
284                 mmc1_clk: clk@01c2008c {
285                         #clock-cells = <0>;
286                         compatible = "allwinner,sun4i-a10-mod0-clk";
287                         reg = <0x01c2008c 0x4>;
288                         clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
289                         clock-output-names = "mmc1";
290                 };
291
292                 mmc2_clk: clk@01c20090 {
293                         #clock-cells = <0>;
294                         compatible = "allwinner,sun4i-a10-mod0-clk";
295                         reg = <0x01c20090 0x4>;
296                         clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
297                         clock-output-names = "mmc2";
298                 };
299
300                 mmc3_clk: clk@01c20094 {
301                         #clock-cells = <0>;
302                         compatible = "allwinner,sun4i-a10-mod0-clk";
303                         reg = <0x01c20094 0x4>;
304                         clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
305                         clock-output-names = "mmc3";
306                 };
307
308                 ts_clk: clk@01c20098 {
309                         #clock-cells = <0>;
310                         compatible = "allwinner,sun4i-a10-mod0-clk";
311                         reg = <0x01c20098 0x4>;
312                         clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
313                         clock-output-names = "ts";
314                 };
315
316                 ss_clk: clk@01c2009c {
317                         #clock-cells = <0>;
318                         compatible = "allwinner,sun4i-a10-mod0-clk";
319                         reg = <0x01c2009c 0x4>;
320                         clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
321                         clock-output-names = "ss";
322                 };
323
324                 spi0_clk: clk@01c200a0 {
325                         #clock-cells = <0>;
326                         compatible = "allwinner,sun4i-a10-mod0-clk";
327                         reg = <0x01c200a0 0x4>;
328                         clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
329                         clock-output-names = "spi0";
330                 };
331
332                 spi1_clk: clk@01c200a4 {
333                         #clock-cells = <0>;
334                         compatible = "allwinner,sun4i-a10-mod0-clk";
335                         reg = <0x01c200a4 0x4>;
336                         clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
337                         clock-output-names = "spi1";
338                 };
339
340                 spi2_clk: clk@01c200a8 {
341                         #clock-cells = <0>;
342                         compatible = "allwinner,sun4i-a10-mod0-clk";
343                         reg = <0x01c200a8 0x4>;
344                         clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
345                         clock-output-names = "spi2";
346                 };
347
348                 pata_clk: clk@01c200ac {
349                         #clock-cells = <0>;
350                         compatible = "allwinner,sun4i-a10-mod0-clk";
351                         reg = <0x01c200ac 0x4>;
352                         clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
353                         clock-output-names = "pata";
354                 };
355
356                 ir0_clk: clk@01c200b0 {
357                         #clock-cells = <0>;
358                         compatible = "allwinner,sun4i-a10-mod0-clk";
359                         reg = <0x01c200b0 0x4>;
360                         clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
361                         clock-output-names = "ir0";
362                 };
363
364                 ir1_clk: clk@01c200b4 {
365                         #clock-cells = <0>;
366                         compatible = "allwinner,sun4i-a10-mod0-clk";
367                         reg = <0x01c200b4 0x4>;
368                         clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
369                         clock-output-names = "ir1";
370                 };
371
372                 usb_clk: clk@01c200cc {
373                         #clock-cells = <1>;
374                         #reset-cells = <1>;
375                         compatible = "allwinner,sun4i-a10-usb-clk";
376                         reg = <0x01c200cc 0x4>;
377                         clocks = <&pll6 1>;
378                         clock-output-names = "usb_ohci0", "usb_ohci1", "usb_phy";
379                 };
380
381                 spi3_clk: clk@01c200d4 {
382                         #clock-cells = <0>;
383                         compatible = "allwinner,sun4i-a10-mod0-clk";
384                         reg = <0x01c200d4 0x4>;
385                         clocks = <&osc24M>, <&pll6 1>, <&pll5 1>;
386                         clock-output-names = "spi3";
387                 };
388
389                 mbus_clk: clk@01c2015c {
390                         #clock-cells = <0>;
391                         compatible = "allwinner,sun5i-a13-mbus-clk";
392                         reg = <0x01c2015c 0x4>;
393                         clocks = <&osc24M>, <&pll6 2>, <&pll5 1>;
394                         clock-output-names = "mbus";
395                 };
396
397                 /*
398                  * The following two are dummy clocks, placeholders used in the gmac_tx
399                  * clock. The gmac driver will choose one parent depending on the PHY
400                  * interface mode, using clk_set_rate auto-reparenting.
401                  * The actual TX clock rate is not controlled by the gmac_tx clock.
402                  */
403                 mii_phy_tx_clk: clk@2 {
404                         #clock-cells = <0>;
405                         compatible = "fixed-clock";
406                         clock-frequency = <25000000>;
407                         clock-output-names = "mii_phy_tx";
408                 };
409
410                 gmac_int_tx_clk: clk@3 {
411                         #clock-cells = <0>;
412                         compatible = "fixed-clock";
413                         clock-frequency = <125000000>;
414                         clock-output-names = "gmac_int_tx";
415                 };
416
417                 gmac_tx_clk: clk@01c20164 {
418                         #clock-cells = <0>;
419                         compatible = "allwinner,sun7i-a20-gmac-clk";
420                         reg = <0x01c20164 0x4>;
421                         clocks = <&mii_phy_tx_clk>, <&gmac_int_tx_clk>;
422                         clock-output-names = "gmac_tx";
423                 };
424
425                 /*
426                  * Dummy clock used by output clocks
427                  */
428                 osc24M_32k: clk@1 {
429                         #clock-cells = <0>;
430                         compatible = "fixed-factor-clock";
431                         clock-div = <750>;
432                         clock-mult = <1>;
433                         clocks = <&osc24M>;
434                         clock-output-names = "osc24M_32k";
435                 };
436
437                 clk_out_a: clk@01c201f0 {
438                         #clock-cells = <0>;
439                         compatible = "allwinner,sun7i-a20-out-clk";
440                         reg = <0x01c201f0 0x4>;
441                         clocks = <&osc24M_32k>, <&osc32k>, <&osc24M>;
442                         clock-output-names = "clk_out_a";
443                 };
444
445                 clk_out_b: clk@01c201f4 {
446                         #clock-cells = <0>;
447                         compatible = "allwinner,sun7i-a20-out-clk";
448                         reg = <0x01c201f4 0x4>;
449                         clocks = <&osc24M_32k>, <&osc32k>, <&osc24M>;
450                         clock-output-names = "clk_out_b";
451                 };
452         };
453
454         soc@01c00000 {
455                 compatible = "simple-bus";
456                 #address-cells = <1>;
457                 #size-cells = <1>;
458                 ranges;
459
460                 nmi_intc: interrupt-controller@01c00030 {
461                         compatible = "allwinner,sun7i-a20-sc-nmi";
462                         interrupt-controller;
463                         #interrupt-cells = <2>;
464                         reg = <0x01c00030 0x0c>;
465                         interrupts = <0 0 4>;
466                 };
467
468                 dma: dma-controller@01c02000 {
469                         compatible = "allwinner,sun4i-a10-dma";
470                         reg = <0x01c02000 0x1000>;
471                         interrupts = <0 27 4>;
472                         clocks = <&ahb_gates 6>;
473                         #dma-cells = <2>;
474                 };
475
476                 spi0: spi@01c05000 {
477                         compatible = "allwinner,sun4i-a10-spi";
478                         reg = <0x01c05000 0x1000>;
479                         interrupts = <0 10 4>;
480                         clocks = <&ahb_gates 20>, <&spi0_clk>;
481                         clock-names = "ahb", "mod";
482                         dmas = <&dma 1 27>, <&dma 1 26>;
483                         dma-names = "rx", "tx";
484                         status = "disabled";
485                         #address-cells = <1>;
486                         #size-cells = <0>;
487                 };
488
489                 spi1: spi@01c06000 {
490                         compatible = "allwinner,sun4i-a10-spi";
491                         reg = <0x01c06000 0x1000>;
492                         interrupts = <0 11 4>;
493                         clocks = <&ahb_gates 21>, <&spi1_clk>;
494                         clock-names = "ahb", "mod";
495                         dmas = <&dma 1 9>, <&dma 1 8>;
496                         dma-names = "rx", "tx";
497                         status = "disabled";
498                         #address-cells = <1>;
499                         #size-cells = <0>;
500                 };
501
502                 emac: ethernet@01c0b000 {
503                         compatible = "allwinner,sun4i-a10-emac";
504                         reg = <0x01c0b000 0x1000>;
505                         interrupts = <0 55 4>;
506                         clocks = <&ahb_gates 17>;
507                         status = "disabled";
508                 };
509
510                 mdio@01c0b080 {
511                         compatible = "allwinner,sun4i-a10-mdio";
512                         reg = <0x01c0b080 0x14>;
513                         status = "disabled";
514                         #address-cells = <1>;
515                         #size-cells = <0>;
516                 };
517
518                 mmc0: mmc@01c0f000 {
519                         compatible = "allwinner,sun5i-a13-mmc";
520                         reg = <0x01c0f000 0x1000>;
521                         clocks = <&ahb_gates 8>, <&mmc0_clk>;
522                         clock-names = "ahb", "mmc";
523                         interrupts = <0 32 4>;
524                         status = "disabled";
525                 };
526
527                 mmc1: mmc@01c10000 {
528                         compatible = "allwinner,sun5i-a13-mmc";
529                         reg = <0x01c10000 0x1000>;
530                         clocks = <&ahb_gates 9>, <&mmc1_clk>;
531                         clock-names = "ahb", "mmc";
532                         interrupts = <0 33 4>;
533                         status = "disabled";
534                 };
535
536                 mmc2: mmc@01c11000 {
537                         compatible = "allwinner,sun5i-a13-mmc";
538                         reg = <0x01c11000 0x1000>;
539                         clocks = <&ahb_gates 10>, <&mmc2_clk>;
540                         clock-names = "ahb", "mmc";
541                         interrupts = <0 34 4>;
542                         status = "disabled";
543                 };
544
545                 mmc3: mmc@01c12000 {
546                         compatible = "allwinner,sun5i-a13-mmc";
547                         reg = <0x01c12000 0x1000>;
548                         clocks = <&ahb_gates 11>, <&mmc3_clk>;
549                         clock-names = "ahb", "mmc";
550                         interrupts = <0 35 4>;
551                         status = "disabled";
552                 };
553
554                 usbphy: phy@01c13400 {
555                         #phy-cells = <1>;
556                         compatible = "allwinner,sun7i-a20-usb-phy";
557                         reg = <0x01c13400 0x10 0x01c14800 0x4 0x01c1c800 0x4>;
558                         reg-names = "phy_ctrl", "pmu1", "pmu2";
559                         clocks = <&usb_clk 8>;
560                         clock-names = "usb_phy";
561                         resets = <&usb_clk 0>, <&usb_clk 1>, <&usb_clk 2>;
562                         reset-names = "usb0_reset", "usb1_reset", "usb2_reset";
563                         status = "disabled";
564                 };
565
566                 ehci0: usb@01c14000 {
567                         compatible = "allwinner,sun7i-a20-ehci", "generic-ehci";
568                         reg = <0x01c14000 0x100>;
569                         interrupts = <0 39 4>;
570                         clocks = <&ahb_gates 1>;
571                         phys = <&usbphy 1>;
572                         phy-names = "usb";
573                         status = "disabled";
574                 };
575
576                 ohci0: usb@01c14400 {
577                         compatible = "allwinner,sun7i-a20-ohci", "generic-ohci";
578                         reg = <0x01c14400 0x100>;
579                         interrupts = <0 64 4>;
580                         clocks = <&usb_clk 6>, <&ahb_gates 2>;
581                         phys = <&usbphy 1>;
582                         phy-names = "usb";
583                         status = "disabled";
584                 };
585
586                 spi2: spi@01c17000 {
587                         compatible = "allwinner,sun4i-a10-spi";
588                         reg = <0x01c17000 0x1000>;
589                         interrupts = <0 12 4>;
590                         clocks = <&ahb_gates 22>, <&spi2_clk>;
591                         clock-names = "ahb", "mod";
592                         dmas = <&dma 1 29>, <&dma 1 28>;
593                         dma-names = "rx", "tx";
594                         status = "disabled";
595                         #address-cells = <1>;
596                         #size-cells = <0>;
597                 };
598
599                 ahci: sata@01c18000 {
600                         compatible = "allwinner,sun4i-a10-ahci";
601                         reg = <0x01c18000 0x1000>;
602                         interrupts = <0 56 4>;
603                         clocks = <&pll6 0>, <&ahb_gates 25>;
604                         status = "disabled";
605                 };
606
607                 ehci1: usb@01c1c000 {
608                         compatible = "allwinner,sun7i-a20-ehci", "generic-ehci";
609                         reg = <0x01c1c000 0x100>;
610                         interrupts = <0 40 4>;
611                         clocks = <&ahb_gates 3>;
612                         phys = <&usbphy 2>;
613                         phy-names = "usb";
614                         status = "disabled";
615                 };
616
617                 ohci1: usb@01c1c400 {
618                         compatible = "allwinner,sun7i-a20-ohci", "generic-ohci";
619                         reg = <0x01c1c400 0x100>;
620                         interrupts = <0 65 4>;
621                         clocks = <&usb_clk 7>, <&ahb_gates 4>;
622                         phys = <&usbphy 2>;
623                         phy-names = "usb";
624                         status = "disabled";
625                 };
626
627                 spi3: spi@01c1f000 {
628                         compatible = "allwinner,sun4i-a10-spi";
629                         reg = <0x01c1f000 0x1000>;
630                         interrupts = <0 50 4>;
631                         clocks = <&ahb_gates 23>, <&spi3_clk>;
632                         clock-names = "ahb", "mod";
633                         dmas = <&dma 1 31>, <&dma 1 30>;
634                         dma-names = "rx", "tx";
635                         status = "disabled";
636                         #address-cells = <1>;
637                         #size-cells = <0>;
638                 };
639
640                 pio: pinctrl@01c20800 {
641                         compatible = "allwinner,sun7i-a20-pinctrl";
642                         reg = <0x01c20800 0x400>;
643                         interrupts = <0 28 4>;
644                         clocks = <&apb0_gates 5>;
645                         gpio-controller;
646                         interrupt-controller;
647                         #interrupt-cells = <2>;
648                         #size-cells = <0>;
649                         #gpio-cells = <3>;
650
651                         pwm0_pins_a: pwm0@0 {
652                                 allwinner,pins = "PB2";
653                                 allwinner,function = "pwm";
654                                 allwinner,drive = <0>;
655                                 allwinner,pull = <0>;
656                         };
657
658                         pwm1_pins_a: pwm1@0 {
659                                 allwinner,pins = "PI3";
660                                 allwinner,function = "pwm";
661                                 allwinner,drive = <0>;
662                                 allwinner,pull = <0>;
663                         };
664
665                         uart0_pins_a: uart0@0 {
666                                 allwinner,pins = "PB22", "PB23";
667                                 allwinner,function = "uart0";
668                                 allwinner,drive = <0>;
669                                 allwinner,pull = <0>;
670                         };
671
672                         uart2_pins_a: uart2@0 {
673                                 allwinner,pins = "PI16", "PI17", "PI18", "PI19";
674                                 allwinner,function = "uart2";
675                                 allwinner,drive = <0>;
676                                 allwinner,pull = <0>;
677                         };
678
679                         uart3_pins_a: uart3@0 {
680                                 allwinner,pins = "PG6", "PG7", "PG8", "PG9";
681                                 allwinner,function = "uart3";
682                                 allwinner,drive = <0>;
683                                 allwinner,pull = <0>;
684                         };
685
686                         uart3_pins_b: uart3@1 {
687                                 allwinner,pins = "PH0", "PH1";
688                                 allwinner,function = "uart3";
689                                 allwinner,drive = <0>;
690                                 allwinner,pull = <0>;
691                         };
692
693                         uart4_pins_a: uart4@0 {
694                                 allwinner,pins = "PG10", "PG11";
695                                 allwinner,function = "uart4";
696                                 allwinner,drive = <0>;
697                                 allwinner,pull = <0>;
698                         };
699
700                         uart5_pins_a: uart5@0 {
701                                 allwinner,pins = "PI10", "PI11";
702                                 allwinner,function = "uart5";
703                                 allwinner,drive = <0>;
704                                 allwinner,pull = <0>;
705                         };
706
707                         uart6_pins_a: uart6@0 {
708                                 allwinner,pins = "PI12", "PI13";
709                                 allwinner,function = "uart6";
710                                 allwinner,drive = <0>;
711                                 allwinner,pull = <0>;
712                         };
713
714                         uart7_pins_a: uart7@0 {
715                                 allwinner,pins = "PI20", "PI21";
716                                 allwinner,function = "uart7";
717                                 allwinner,drive = <0>;
718                                 allwinner,pull = <0>;
719                         };
720
721                         i2c0_pins_a: i2c0@0 {
722                                 allwinner,pins = "PB0", "PB1";
723                                 allwinner,function = "i2c0";
724                                 allwinner,drive = <0>;
725                                 allwinner,pull = <0>;
726                         };
727
728                         i2c1_pins_a: i2c1@0 {
729                                 allwinner,pins = "PB18", "PB19";
730                                 allwinner,function = "i2c1";
731                                 allwinner,drive = <0>;
732                                 allwinner,pull = <0>;
733                         };
734
735                         i2c2_pins_a: i2c2@0 {
736                                 allwinner,pins = "PB20", "PB21";
737                                 allwinner,function = "i2c2";
738                                 allwinner,drive = <0>;
739                                 allwinner,pull = <0>;
740                         };
741
742                         i2c3_pins_a: i2c3@0 {
743                                 allwinner,pins = "PI0", "PI1";
744                                 allwinner,function = "i2c3";
745                                 allwinner,drive = <0>;
746                                 allwinner,pull = <0>;
747                         };
748
749                         emac_pins_a: emac0@0 {
750                                 allwinner,pins = "PA0", "PA1", "PA2",
751                                                 "PA3", "PA4", "PA5", "PA6",
752                                                 "PA7", "PA8", "PA9", "PA10",
753                                                 "PA11", "PA12", "PA13", "PA14",
754                                                 "PA15", "PA16";
755                                 allwinner,function = "emac";
756                                 allwinner,drive = <0>;
757                                 allwinner,pull = <0>;
758                         };
759
760                         clk_out_a_pins_a: clk_out_a@0 {
761                                 allwinner,pins = "PI12";
762                                 allwinner,function = "clk_out_a";
763                                 allwinner,drive = <0>;
764                                 allwinner,pull = <0>;
765                         };
766
767                         clk_out_b_pins_a: clk_out_b@0 {
768                                 allwinner,pins = "PI13";
769                                 allwinner,function = "clk_out_b";
770                                 allwinner,drive = <0>;
771                                 allwinner,pull = <0>;
772                         };
773
774                         gmac_pins_mii_a: gmac_mii@0 {
775                                 allwinner,pins = "PA0", "PA1", "PA2",
776                                                 "PA3", "PA4", "PA5", "PA6",
777                                                 "PA7", "PA8", "PA9", "PA10",
778                                                 "PA11", "PA12", "PA13", "PA14",
779                                                 "PA15", "PA16";
780                                 allwinner,function = "gmac";
781                                 allwinner,drive = <0>;
782                                 allwinner,pull = <0>;
783                         };
784
785                         gmac_pins_rgmii_a: gmac_rgmii@0 {
786                                 allwinner,pins = "PA0", "PA1", "PA2",
787                                                 "PA3", "PA4", "PA5", "PA6",
788                                                 "PA7", "PA8", "PA10",
789                                                 "PA11", "PA12", "PA13",
790                                                 "PA15", "PA16";
791                                 allwinner,function = "gmac";
792                                 /*
793                                  * data lines in RGMII mode use DDR mode
794                                  * and need a higher signal drive strength
795                                  */
796                                 allwinner,drive = <3>;
797                                 allwinner,pull = <0>;
798                         };
799
800                         spi0_pins_a: spi0@0 {
801                                 allwinner,pins = "PI10", "PI11", "PI12", "PI13", "PI14";
802                                 allwinner,function = "spi0";
803                                 allwinner,drive = <0>;
804                                 allwinner,pull = <0>;
805                         };
806
807                         spi1_pins_a: spi1@0 {
808                                 allwinner,pins = "PI16", "PI17", "PI18", "PI19";
809                                 allwinner,function = "spi1";
810                                 allwinner,drive = <0>;
811                                 allwinner,pull = <0>;
812                         };
813
814                         spi2_pins_a: spi2@0 {
815                                 allwinner,pins = "PC19", "PC20", "PC21", "PC22";
816                                 allwinner,function = "spi2";
817                                 allwinner,drive = <0>;
818                                 allwinner,pull = <0>;
819                         };
820
821                         spi2_pins_b: spi2@1 {
822                                 allwinner,pins = "PB14", "PB15", "PB16", "PB17";
823                                 allwinner,function = "spi2";
824                                 allwinner,drive = <0>;
825                                 allwinner,pull = <0>;
826                         };
827
828                         mmc0_pins_a: mmc0@0 {
829                                 allwinner,pins = "PF0","PF1","PF2","PF3","PF4","PF5";
830                                 allwinner,function = "mmc0";
831                                 allwinner,drive = <2>;
832                                 allwinner,pull = <0>;
833                         };
834
835                         mmc0_cd_pin_reference_design: mmc0_cd_pin@0 {
836                                 allwinner,pins = "PH1";
837                                 allwinner,function = "gpio_in";
838                                 allwinner,drive = <0>;
839                                 allwinner,pull = <1>;
840                         };
841
842                         mmc2_pins_a: mmc2@0 {
843                                 allwinner,pins = "PC6","PC7","PC8","PC9","PC10","PC11";
844                                 allwinner,function = "mmc2";
845                                 allwinner,drive = <2>;
846                                 allwinner,pull = <1>;
847                         };
848
849                         mmc3_pins_a: mmc3@0 {
850                                 allwinner,pins = "PI4","PI5","PI6","PI7","PI8","PI9";
851                                 allwinner,function = "mmc3";
852                                 allwinner,drive = <2>;
853                                 allwinner,pull = <0>;
854                         };
855
856                         ir0_pins_a: ir0@0 {
857                                     allwinner,pins = "PB3","PB4";
858                                     allwinner,function = "ir0";
859                                     allwinner,drive = <0>;
860                                     allwinner,pull = <0>;
861                         };
862
863                         ir1_pins_a: ir1@0 {
864                                     allwinner,pins = "PB22","PB23";
865                                     allwinner,function = "ir1";
866                                     allwinner,drive = <0>;
867                                     allwinner,pull = <0>;
868                         };
869                 };
870
871                 timer@01c20c00 {
872                         compatible = "allwinner,sun4i-a10-timer";
873                         reg = <0x01c20c00 0x90>;
874                         interrupts = <0 22 4>,
875                                      <0 23 4>,
876                                      <0 24 4>,
877                                      <0 25 4>,
878                                      <0 67 4>,
879                                      <0 68 4>;
880                         clocks = <&osc24M>;
881                 };
882
883                 wdt: watchdog@01c20c90 {
884                         compatible = "allwinner,sun4i-a10-wdt";
885                         reg = <0x01c20c90 0x10>;
886                 };
887
888                 rtc: rtc@01c20d00 {
889                         compatible = "allwinner,sun7i-a20-rtc";
890                         reg = <0x01c20d00 0x20>;
891                         interrupts = <0 24 4>;
892                 };
893
894                 pwm: pwm@01c20e00 {
895                         compatible = "allwinner,sun7i-a20-pwm";
896                         reg = <0x01c20e00 0xc>;
897                         clocks = <&osc24M>;
898                         #pwm-cells = <3>;
899                         status = "disabled";
900                 };
901
902                 ir0: ir@01c21800 {
903                         compatible = "allwinner,sun4i-a10-ir";
904                         clocks = <&apb0_gates 6>, <&ir0_clk>;
905                         clock-names = "apb", "ir";
906                         interrupts = <0 5 4>;
907                         reg = <0x01c21800 0x40>;
908                         status = "disabled";
909                 };
910
911                 ir1: ir@01c21c00 {
912                         compatible = "allwinner,sun4i-a10-ir";
913                         clocks = <&apb0_gates 7>, <&ir1_clk>;
914                         clock-names = "apb", "ir";
915                         interrupts = <0 6 4>;
916                         reg = <0x01c21c00 0x40>;
917                         status = "disabled";
918                 };
919
920                 sid: eeprom@01c23800 {
921                         compatible = "allwinner,sun7i-a20-sid";
922                         reg = <0x01c23800 0x200>;
923                 };
924
925                 rtp: rtp@01c25000 {
926                         compatible = "allwinner,sun4i-a10-ts";
927                         reg = <0x01c25000 0x100>;
928                         interrupts = <0 29 4>;
929                 };
930
931                 uart0: serial@01c28000 {
932                         compatible = "snps,dw-apb-uart";
933                         reg = <0x01c28000 0x400>;
934                         interrupts = <0 1 4>;
935                         reg-shift = <2>;
936                         reg-io-width = <4>;
937                         clocks = <&apb1_gates 16>;
938                         status = "disabled";
939                 };
940
941                 uart1: serial@01c28400 {
942                         compatible = "snps,dw-apb-uart";
943                         reg = <0x01c28400 0x400>;
944                         interrupts = <0 2 4>;
945                         reg-shift = <2>;
946                         reg-io-width = <4>;
947                         clocks = <&apb1_gates 17>;
948                         status = "disabled";
949                 };
950
951                 uart2: serial@01c28800 {
952                         compatible = "snps,dw-apb-uart";
953                         reg = <0x01c28800 0x400>;
954                         interrupts = <0 3 4>;
955                         reg-shift = <2>;
956                         reg-io-width = <4>;
957                         clocks = <&apb1_gates 18>;
958                         status = "disabled";
959                 };
960
961                 uart3: serial@01c28c00 {
962                         compatible = "snps,dw-apb-uart";
963                         reg = <0x01c28c00 0x400>;
964                         interrupts = <0 4 4>;
965                         reg-shift = <2>;
966                         reg-io-width = <4>;
967                         clocks = <&apb1_gates 19>;
968                         status = "disabled";
969                 };
970
971                 uart4: serial@01c29000 {
972                         compatible = "snps,dw-apb-uart";
973                         reg = <0x01c29000 0x400>;
974                         interrupts = <0 17 4>;
975                         reg-shift = <2>;
976                         reg-io-width = <4>;
977                         clocks = <&apb1_gates 20>;
978                         status = "disabled";
979                 };
980
981                 uart5: serial@01c29400 {
982                         compatible = "snps,dw-apb-uart";
983                         reg = <0x01c29400 0x400>;
984                         interrupts = <0 18 4>;
985                         reg-shift = <2>;
986                         reg-io-width = <4>;
987                         clocks = <&apb1_gates 21>;
988                         status = "disabled";
989                 };
990
991                 uart6: serial@01c29800 {
992                         compatible = "snps,dw-apb-uart";
993                         reg = <0x01c29800 0x400>;
994                         interrupts = <0 19 4>;
995                         reg-shift = <2>;
996                         reg-io-width = <4>;
997                         clocks = <&apb1_gates 22>;
998                         status = "disabled";
999                 };
1000
1001                 uart7: serial@01c29c00 {
1002                         compatible = "snps,dw-apb-uart";
1003                         reg = <0x01c29c00 0x400>;
1004                         interrupts = <0 20 4>;
1005                         reg-shift = <2>;
1006                         reg-io-width = <4>;
1007                         clocks = <&apb1_gates 23>;
1008                         status = "disabled";
1009                 };
1010
1011                 i2c0: i2c@01c2ac00 {
1012                         compatible = "allwinner,sun7i-a20-i2c", "allwinner,sun4i-a10-i2c";
1013                         reg = <0x01c2ac00 0x400>;
1014                         interrupts = <0 7 4>;
1015                         clocks = <&apb1_gates 0>;
1016                         status = "disabled";
1017                         #address-cells = <1>;
1018                         #size-cells = <0>;
1019                 };
1020
1021                 i2c1: i2c@01c2b000 {
1022                         compatible = "allwinner,sun7i-a20-i2c", "allwinner,sun4i-a10-i2c";
1023                         reg = <0x01c2b000 0x400>;
1024                         interrupts = <0 8 4>;
1025                         clocks = <&apb1_gates 1>;
1026                         status = "disabled";
1027                         #address-cells = <1>;
1028                         #size-cells = <0>;
1029                 };
1030
1031                 i2c2: i2c@01c2b400 {
1032                         compatible = "allwinner,sun7i-a20-i2c", "allwinner,sun4i-a10-i2c";
1033                         reg = <0x01c2b400 0x400>;
1034                         interrupts = <0 9 4>;
1035                         clocks = <&apb1_gates 2>;
1036                         status = "disabled";
1037                         #address-cells = <1>;
1038                         #size-cells = <0>;
1039                 };
1040
1041                 i2c3: i2c@01c2b800 {
1042                         compatible = "allwinner,sun7i-a20-i2c", "allwinner,sun4i-a10-i2c";
1043                         reg = <0x01c2b800 0x400>;
1044                         interrupts = <0 88 4>;
1045                         clocks = <&apb1_gates 3>;
1046                         status = "disabled";
1047                         #address-cells = <1>;
1048                         #size-cells = <0>;
1049                 };
1050
1051                 i2c4: i2c@01c2c000 {
1052                         compatible = "allwinner,sun7i-a20-i2c", "allwinner,sun4i-a10-i2c";
1053                         reg = <0x01c2c000 0x400>;
1054                         interrupts = <0 89 4>;
1055                         clocks = <&apb1_gates 15>;
1056                         status = "disabled";
1057                         #address-cells = <1>;
1058                         #size-cells = <0>;
1059                 };
1060
1061                 gmac: ethernet@01c50000 {
1062                         compatible = "allwinner,sun7i-a20-gmac";
1063                         reg = <0x01c50000 0x10000>;
1064                         interrupts = <0 85 4>;
1065                         interrupt-names = "macirq";
1066                         clocks = <&ahb_gates 49>, <&gmac_tx_clk>;
1067                         clock-names = "stmmaceth", "allwinner_gmac_tx";
1068                         snps,pbl = <2>;
1069                         snps,fixed-burst;
1070                         snps,force_sf_dma_mode;
1071                         status = "disabled";
1072                         #address-cells = <1>;
1073                         #size-cells = <0>;
1074                 };
1075
1076                 hstimer@01c60000 {
1077                         compatible = "allwinner,sun7i-a20-hstimer";
1078                         reg = <0x01c60000 0x1000>;
1079                         interrupts = <0 81 4>,
1080                                      <0 82 4>,
1081                                      <0 83 4>,
1082                                      <0 84 4>;
1083                         clocks = <&ahb_gates 28>;
1084                 };
1085
1086                 gic: interrupt-controller@01c81000 {
1087                         compatible = "arm,cortex-a7-gic", "arm,cortex-a15-gic";
1088                         reg = <0x01c81000 0x1000>,
1089                               <0x01c82000 0x1000>,
1090                               <0x01c84000 0x2000>,
1091                               <0x01c86000 0x2000>;
1092                         interrupt-controller;
1093                         #interrupt-cells = <3>;
1094                         interrupts = <1 9 0xf04>;
1095                 };
1096         };
1097 };