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