Merge branch 'core-rcu-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git...
[sfrench/cifs-2.6.git] / arch / arm / boot / dts / sunxi-h3-h5.dtsi
1 /*
2  * Copyright (C) 2015 Jens Kuske <jenskuske@gmail.com>
3  *
4  * This file is dual-licensed: you can use it either under the terms
5  * of the GPL or the X11 license, at your option. Note that this dual
6  * licensing only applies to this file, and not this project as a
7  * whole.
8  *
9  *  a) This file is free software; you can redistribute it and/or
10  *     modify it under the terms of the GNU General Public License as
11  *     published by the Free Software Foundation; either version 2 of the
12  *     License, or (at your option) any later version.
13  *
14  *     This file is distributed in the hope that it will be useful,
15  *     but WITHOUT ANY WARRANTY; without even the implied warranty of
16  *     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17  *     GNU General Public License for more details.
18  *
19  * Or, alternatively,
20  *
21  *  b) Permission is hereby granted, free of charge, to any person
22  *     obtaining a copy of this software and associated documentation
23  *     files (the "Software"), to deal in the Software without
24  *     restriction, including without limitation the rights to use,
25  *     copy, modify, merge, publish, distribute, sublicense, and/or
26  *     sell copies of the Software, and to permit persons to whom the
27  *     Software is furnished to do so, subject to the following
28  *     conditions:
29  *
30  *     The above copyright notice and this permission notice shall be
31  *     included in all copies or substantial portions of the Software.
32  *
33  *     THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
34  *     EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
35  *     OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
36  *     NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
37  *     HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
38  *     WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
39  *     FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
40  *     OTHER DEALINGS IN THE SOFTWARE.
41  */
42
43 #include <dt-bindings/clock/sun8i-de2.h>
44 #include <dt-bindings/clock/sun8i-h3-ccu.h>
45 #include <dt-bindings/clock/sun8i-r-ccu.h>
46 #include <dt-bindings/interrupt-controller/arm-gic.h>
47 #include <dt-bindings/reset/sun8i-de2.h>
48 #include <dt-bindings/reset/sun8i-h3-ccu.h>
49 #include <dt-bindings/reset/sun8i-r-ccu.h>
50
51 / {
52         interrupt-parent = <&gic>;
53         #address-cells = <1>;
54         #size-cells = <1>;
55
56         chosen {
57                 #address-cells = <1>;
58                 #size-cells = <1>;
59                 ranges;
60
61                 framebuffer-hdmi {
62                         compatible = "allwinner,simple-framebuffer",
63                                      "simple-framebuffer";
64                         allwinner,pipeline = "mixer0-lcd0-hdmi";
65                         clocks = <&display_clocks CLK_MIXER0>,
66                                  <&ccu CLK_TCON0>, <&ccu CLK_HDMI>;
67                         status = "disabled";
68                 };
69
70                 framebuffer-tve {
71                         compatible = "allwinner,simple-framebuffer",
72                                      "simple-framebuffer";
73                         allwinner,pipeline = "mixer1-lcd1-tve";
74                         clocks = <&display_clocks CLK_MIXER1>,
75                                  <&ccu CLK_TVE>;
76                         status = "disabled";
77                 };
78         };
79
80         clocks {
81                 #address-cells = <1>;
82                 #size-cells = <1>;
83                 ranges;
84
85                 osc24M: osc24M_clk {
86                         #clock-cells = <0>;
87                         compatible = "fixed-clock";
88                         clock-frequency = <24000000>;
89                         clock-accuracy = <50000>;
90                         clock-output-names = "osc24M";
91                 };
92
93                 osc32k: osc32k_clk {
94                         #clock-cells = <0>;
95                         compatible = "fixed-clock";
96                         clock-frequency = <32768>;
97                         clock-accuracy = <50000>;
98                         clock-output-names = "ext_osc32k";
99                 };
100         };
101
102         de: display-engine {
103                 compatible = "allwinner,sun8i-h3-display-engine";
104                 allwinner,pipelines = <&mixer0>;
105                 status = "disabled";
106         };
107
108         soc {
109                 compatible = "simple-bus";
110                 #address-cells = <1>;
111                 #size-cells = <1>;
112                 ranges;
113
114                 display_clocks: clock@1000000 {
115                         /* compatible is in per SoC .dtsi file */
116                         reg = <0x01000000 0x100000>;
117                         clocks = <&ccu CLK_BUS_DE>,
118                                  <&ccu CLK_DE>;
119                         clock-names = "bus",
120                                       "mod";
121                         resets = <&ccu RST_BUS_DE>;
122                         #clock-cells = <1>;
123                         #reset-cells = <1>;
124                 };
125
126                 mixer0: mixer@1100000 {
127                         compatible = "allwinner,sun8i-h3-de2-mixer-0";
128                         reg = <0x01100000 0x100000>;
129                         clocks = <&display_clocks CLK_BUS_MIXER0>,
130                                  <&display_clocks CLK_MIXER0>;
131                         clock-names = "bus",
132                                       "mod";
133                         resets = <&display_clocks RST_MIXER0>;
134
135                         ports {
136                                 #address-cells = <1>;
137                                 #size-cells = <0>;
138
139                                 mixer0_out: port@1 {
140                                         reg = <1>;
141
142                                         mixer0_out_tcon0: endpoint {
143                                                 remote-endpoint = <&tcon0_in_mixer0>;
144                                         };
145                                 };
146                         };
147                 };
148
149                 dma: dma-controller@1c02000 {
150                         compatible = "allwinner,sun8i-h3-dma";
151                         reg = <0x01c02000 0x1000>;
152                         interrupts = <GIC_SPI 50 IRQ_TYPE_LEVEL_HIGH>;
153                         clocks = <&ccu CLK_BUS_DMA>;
154                         resets = <&ccu RST_BUS_DMA>;
155                         #dma-cells = <1>;
156                 };
157
158                 tcon0: lcd-controller@1c0c000 {
159                         compatible = "allwinner,sun8i-h3-tcon-tv",
160                                      "allwinner,sun8i-a83t-tcon-tv";
161                         reg = <0x01c0c000 0x1000>;
162                         interrupts = <GIC_SPI 86 IRQ_TYPE_LEVEL_HIGH>;
163                         clocks = <&ccu CLK_BUS_TCON0>, <&ccu CLK_TCON0>;
164                         clock-names = "ahb", "tcon-ch1";
165                         resets = <&ccu RST_BUS_TCON0>;
166                         reset-names = "lcd";
167
168                         ports {
169                                 #address-cells = <1>;
170                                 #size-cells = <0>;
171
172                                 tcon0_in: port@0 {
173                                         reg = <0>;
174
175                                         tcon0_in_mixer0: endpoint {
176                                                 remote-endpoint = <&mixer0_out_tcon0>;
177                                         };
178                                 };
179
180                                 tcon0_out: port@1 {
181                                         #address-cells = <1>;
182                                         #size-cells = <0>;
183                                         reg = <1>;
184
185                                         tcon0_out_hdmi: endpoint@1 {
186                                                 reg = <1>;
187                                                 remote-endpoint = <&hdmi_in_tcon0>;
188                                         };
189                                 };
190                         };
191                 };
192
193                 mmc0: mmc@1c0f000 {
194                         /* compatible and clocks are in per SoC .dtsi file */
195                         reg = <0x01c0f000 0x1000>;
196                         pinctrl-names = "default";
197                         pinctrl-0 = <&mmc0_pins>;
198                         resets = <&ccu RST_BUS_MMC0>;
199                         reset-names = "ahb";
200                         interrupts = <GIC_SPI 60 IRQ_TYPE_LEVEL_HIGH>;
201                         status = "disabled";
202                         #address-cells = <1>;
203                         #size-cells = <0>;
204                 };
205
206                 mmc1: mmc@1c10000 {
207                         /* compatible and clocks are in per SoC .dtsi file */
208                         reg = <0x01c10000 0x1000>;
209                         pinctrl-names = "default";
210                         pinctrl-0 = <&mmc1_pins>;
211                         resets = <&ccu RST_BUS_MMC1>;
212                         reset-names = "ahb";
213                         interrupts = <GIC_SPI 61 IRQ_TYPE_LEVEL_HIGH>;
214                         status = "disabled";
215                         #address-cells = <1>;
216                         #size-cells = <0>;
217                 };
218
219                 mmc2: mmc@1c11000 {
220                         /* compatible and clocks are in per SoC .dtsi file */
221                         reg = <0x01c11000 0x1000>;
222                         resets = <&ccu RST_BUS_MMC2>;
223                         reset-names = "ahb";
224                         interrupts = <GIC_SPI 62 IRQ_TYPE_LEVEL_HIGH>;
225                         status = "disabled";
226                         #address-cells = <1>;
227                         #size-cells = <0>;
228                 };
229
230                 sid: eeprom@1c14000 {
231                         /* compatible is in per SoC .dtsi file */
232                         reg = <0x1c14000 0x400>;
233                 };
234
235                 usb_otg: usb@1c19000 {
236                         compatible = "allwinner,sun8i-h3-musb";
237                         reg = <0x01c19000 0x400>;
238                         clocks = <&ccu CLK_BUS_OTG>;
239                         resets = <&ccu RST_BUS_OTG>;
240                         interrupts = <GIC_SPI 71 IRQ_TYPE_LEVEL_HIGH>;
241                         interrupt-names = "mc";
242                         phys = <&usbphy 0>;
243                         phy-names = "usb";
244                         extcon = <&usbphy 0>;
245                         dr_mode = "otg";
246                         status = "disabled";
247                 };
248
249                 usbphy: phy@1c19400 {
250                         compatible = "allwinner,sun8i-h3-usb-phy";
251                         reg = <0x01c19400 0x2c>,
252                               <0x01c1a800 0x4>,
253                               <0x01c1b800 0x4>,
254                               <0x01c1c800 0x4>,
255                               <0x01c1d800 0x4>;
256                         reg-names = "phy_ctrl",
257                                     "pmu0",
258                                     "pmu1",
259                                     "pmu2",
260                                     "pmu3";
261                         clocks = <&ccu CLK_USB_PHY0>,
262                                  <&ccu CLK_USB_PHY1>,
263                                  <&ccu CLK_USB_PHY2>,
264                                  <&ccu CLK_USB_PHY3>;
265                         clock-names = "usb0_phy",
266                                       "usb1_phy",
267                                       "usb2_phy",
268                                       "usb3_phy";
269                         resets = <&ccu RST_USB_PHY0>,
270                                  <&ccu RST_USB_PHY1>,
271                                  <&ccu RST_USB_PHY2>,
272                                  <&ccu RST_USB_PHY3>;
273                         reset-names = "usb0_reset",
274                                       "usb1_reset",
275                                       "usb2_reset",
276                                       "usb3_reset";
277                         status = "disabled";
278                         #phy-cells = <1>;
279                 };
280
281                 ehci0: usb@1c1a000 {
282                         compatible = "allwinner,sun8i-h3-ehci", "generic-ehci";
283                         reg = <0x01c1a000 0x100>;
284                         interrupts = <GIC_SPI 72 IRQ_TYPE_LEVEL_HIGH>;
285                         clocks = <&ccu CLK_BUS_EHCI0>, <&ccu CLK_BUS_OHCI0>;
286                         resets = <&ccu RST_BUS_EHCI0>, <&ccu RST_BUS_OHCI0>;
287                         status = "disabled";
288                 };
289
290                 ohci0: usb@1c1a400 {
291                         compatible = "allwinner,sun8i-h3-ohci", "generic-ohci";
292                         reg = <0x01c1a400 0x100>;
293                         interrupts = <GIC_SPI 73 IRQ_TYPE_LEVEL_HIGH>;
294                         clocks = <&ccu CLK_BUS_EHCI0>, <&ccu CLK_BUS_OHCI0>,
295                                  <&ccu CLK_USB_OHCI0>;
296                         resets = <&ccu RST_BUS_EHCI0>, <&ccu RST_BUS_OHCI0>;
297                         status = "disabled";
298                 };
299
300                 ehci1: usb@1c1b000 {
301                         compatible = "allwinner,sun8i-h3-ehci", "generic-ehci";
302                         reg = <0x01c1b000 0x100>;
303                         interrupts = <GIC_SPI 74 IRQ_TYPE_LEVEL_HIGH>;
304                         clocks = <&ccu CLK_BUS_EHCI1>, <&ccu CLK_BUS_OHCI1>;
305                         resets = <&ccu RST_BUS_EHCI1>, <&ccu RST_BUS_OHCI1>;
306                         phys = <&usbphy 1>;
307                         status = "disabled";
308                 };
309
310                 ohci1: usb@1c1b400 {
311                         compatible = "allwinner,sun8i-h3-ohci", "generic-ohci";
312                         reg = <0x01c1b400 0x100>;
313                         interrupts = <GIC_SPI 75 IRQ_TYPE_LEVEL_HIGH>;
314                         clocks = <&ccu CLK_BUS_EHCI1>, <&ccu CLK_BUS_OHCI1>,
315                                  <&ccu CLK_USB_OHCI1>;
316                         resets = <&ccu RST_BUS_EHCI1>, <&ccu RST_BUS_OHCI1>;
317                         phys = <&usbphy 1>;
318                         status = "disabled";
319                 };
320
321                 ehci2: usb@1c1c000 {
322                         compatible = "allwinner,sun8i-h3-ehci", "generic-ehci";
323                         reg = <0x01c1c000 0x100>;
324                         interrupts = <GIC_SPI 76 IRQ_TYPE_LEVEL_HIGH>;
325                         clocks = <&ccu CLK_BUS_EHCI2>, <&ccu CLK_BUS_OHCI2>;
326                         resets = <&ccu RST_BUS_EHCI2>, <&ccu RST_BUS_OHCI2>;
327                         phys = <&usbphy 2>;
328                         status = "disabled";
329                 };
330
331                 ohci2: usb@1c1c400 {
332                         compatible = "allwinner,sun8i-h3-ohci", "generic-ohci";
333                         reg = <0x01c1c400 0x100>;
334                         interrupts = <GIC_SPI 77 IRQ_TYPE_LEVEL_HIGH>;
335                         clocks = <&ccu CLK_BUS_EHCI2>, <&ccu CLK_BUS_OHCI2>,
336                                  <&ccu CLK_USB_OHCI2>;
337                         resets = <&ccu RST_BUS_EHCI2>, <&ccu RST_BUS_OHCI2>;
338                         phys = <&usbphy 2>;
339                         status = "disabled";
340                 };
341
342                 ehci3: usb@1c1d000 {
343                         compatible = "allwinner,sun8i-h3-ehci", "generic-ehci";
344                         reg = <0x01c1d000 0x100>;
345                         interrupts = <GIC_SPI 78 IRQ_TYPE_LEVEL_HIGH>;
346                         clocks = <&ccu CLK_BUS_EHCI3>, <&ccu CLK_BUS_OHCI3>;
347                         resets = <&ccu RST_BUS_EHCI3>, <&ccu RST_BUS_OHCI3>;
348                         phys = <&usbphy 3>;
349                         status = "disabled";
350                 };
351
352                 ohci3: usb@1c1d400 {
353                         compatible = "allwinner,sun8i-h3-ohci", "generic-ohci";
354                         reg = <0x01c1d400 0x100>;
355                         interrupts = <GIC_SPI 79 IRQ_TYPE_LEVEL_HIGH>;
356                         clocks = <&ccu CLK_BUS_EHCI3>, <&ccu CLK_BUS_OHCI3>,
357                                  <&ccu CLK_USB_OHCI3>;
358                         resets = <&ccu RST_BUS_EHCI3>, <&ccu RST_BUS_OHCI3>;
359                         phys = <&usbphy 3>;
360                         status = "disabled";
361                 };
362
363                 ccu: clock@1c20000 {
364                         /* compatible is in per SoC .dtsi file */
365                         reg = <0x01c20000 0x400>;
366                         clocks = <&osc24M>, <&rtc 0>;
367                         clock-names = "hosc", "losc";
368                         #clock-cells = <1>;
369                         #reset-cells = <1>;
370                 };
371
372                 pio: pinctrl@1c20800 {
373                         /* compatible is in per SoC .dtsi file */
374                         reg = <0x01c20800 0x400>;
375                         interrupts = <GIC_SPI 11 IRQ_TYPE_LEVEL_HIGH>,
376                                      <GIC_SPI 17 IRQ_TYPE_LEVEL_HIGH>;
377                         clocks = <&ccu CLK_BUS_PIO>, <&osc24M>, <&rtc 0>;
378                         clock-names = "apb", "hosc", "losc";
379                         gpio-controller;
380                         #gpio-cells = <3>;
381                         interrupt-controller;
382                         #interrupt-cells = <3>;
383
384                         csi_pins: csi-pins {
385                                 pins = "PE0", "PE2", "PE3", "PE4", "PE5",
386                                        "PE6", "PE7", "PE8", "PE9", "PE10",
387                                        "PE11";
388                                 function = "csi";
389                         };
390
391                         emac_rgmii_pins: emac-rgmii-pins {
392                                 pins = "PD0", "PD1", "PD2", "PD3", "PD4",
393                                        "PD5", "PD7", "PD8", "PD9", "PD10",
394                                        "PD12", "PD13", "PD15", "PD16", "PD17";
395                                 function = "emac";
396                                 drive-strength = <40>;
397                         };
398
399                         i2c0_pins: i2c0-pins {
400                                 pins = "PA11", "PA12";
401                                 function = "i2c0";
402                         };
403
404                         i2c1_pins: i2c1-pins {
405                                 pins = "PA18", "PA19";
406                                 function = "i2c1";
407                         };
408
409                         i2c2_pins: i2c2-pins {
410                                 pins = "PE12", "PE13";
411                                 function = "i2c2";
412                         };
413
414                         mmc0_pins: mmc0-pins {
415                                 pins = "PF0", "PF1", "PF2", "PF3",
416                                        "PF4", "PF5";
417                                 function = "mmc0";
418                                 drive-strength = <30>;
419                                 bias-pull-up;
420                         };
421
422                         mmc1_pins: mmc1-pins {
423                                 pins = "PG0", "PG1", "PG2", "PG3",
424                                        "PG4", "PG5";
425                                 function = "mmc1";
426                                 drive-strength = <30>;
427                                 bias-pull-up;
428                         };
429
430                         mmc2_8bit_pins: mmc2-8bit-pins {
431                                 pins = "PC5", "PC6", "PC8",
432                                        "PC9", "PC10", "PC11",
433                                        "PC12", "PC13", "PC14",
434                                        "PC15", "PC16";
435                                 function = "mmc2";
436                                 drive-strength = <30>;
437                                 bias-pull-up;
438                         };
439
440                         spdif_tx_pin: spdif-tx-pin {
441                                 pins = "PA17";
442                                 function = "spdif";
443                         };
444
445                         spi0_pins: spi0-pins {
446                                 pins = "PC0", "PC1", "PC2", "PC3";
447                                 function = "spi0";
448                         };
449
450                         spi1_pins: spi1-pins {
451                                 pins = "PA15", "PA16", "PA14", "PA13";
452                                 function = "spi1";
453                         };
454
455                         uart0_pa_pins: uart0-pa-pins {
456                                 pins = "PA4", "PA5";
457                                 function = "uart0";
458                         };
459
460                         uart1_pins: uart1-pins {
461                                 pins = "PG6", "PG7";
462                                 function = "uart1";
463                         };
464
465                         uart1_rts_cts_pins: uart1-rts-cts-pins {
466                                 pins = "PG8", "PG9";
467                                 function = "uart1";
468                         };
469
470                         uart2_pins: uart2-pins {
471                                 pins = "PA0", "PA1";
472                                 function = "uart2";
473                         };
474
475                         uart3_pins: uart3-pins {
476                                 pins = "PA13", "PA14";
477                                 function = "uart3";
478                         };
479
480                         uart3_rts_cts_pins: uart3-rts-cts-pins {
481                                 pins = "PA15", "PA16";
482                                 function = "uart3";
483                         };
484                 };
485
486                 timer@1c20c00 {
487                         compatible = "allwinner,sun8i-a23-timer";
488                         reg = <0x01c20c00 0xa0>;
489                         interrupts = <GIC_SPI 18 IRQ_TYPE_LEVEL_HIGH>,
490                                      <GIC_SPI 19 IRQ_TYPE_LEVEL_HIGH>;
491                         clocks = <&osc24M>;
492                 };
493
494                 emac: ethernet@1c30000 {
495                         compatible = "allwinner,sun8i-h3-emac";
496                         syscon = <&syscon>;
497                         reg = <0x01c30000 0x10000>;
498                         interrupts = <GIC_SPI 82 IRQ_TYPE_LEVEL_HIGH>;
499                         interrupt-names = "macirq";
500                         resets = <&ccu RST_BUS_EMAC>;
501                         reset-names = "stmmaceth";
502                         clocks = <&ccu CLK_BUS_EMAC>;
503                         clock-names = "stmmaceth";
504                         status = "disabled";
505
506                         mdio: mdio {
507                                 #address-cells = <1>;
508                                 #size-cells = <0>;
509                                 compatible = "snps,dwmac-mdio";
510                         };
511
512                         mdio-mux {
513                                 compatible = "allwinner,sun8i-h3-mdio-mux";
514                                 #address-cells = <1>;
515                                 #size-cells = <0>;
516
517                                 mdio-parent-bus = <&mdio>;
518                                 /* Only one MDIO is usable at the time */
519                                 internal_mdio: mdio@1 {
520                                         compatible = "allwinner,sun8i-h3-mdio-internal";
521                                         reg = <1>;
522                                         #address-cells = <1>;
523                                         #size-cells = <0>;
524
525                                         int_mii_phy: ethernet-phy@1 {
526                                                 compatible = "ethernet-phy-ieee802.3-c22";
527                                                 reg = <1>;
528                                                 clocks = <&ccu CLK_BUS_EPHY>;
529                                                 resets = <&ccu RST_BUS_EPHY>;
530                                         };
531                                 };
532
533                                 external_mdio: mdio@2 {
534                                         reg = <2>;
535                                         #address-cells = <1>;
536                                         #size-cells = <0>;
537                                 };
538                         };
539                 };
540
541                 spi0: spi@1c68000 {
542                         compatible = "allwinner,sun8i-h3-spi";
543                         reg = <0x01c68000 0x1000>;
544                         interrupts = <GIC_SPI 65 IRQ_TYPE_LEVEL_HIGH>;
545                         clocks = <&ccu CLK_BUS_SPI0>, <&ccu CLK_SPI0>;
546                         clock-names = "ahb", "mod";
547                         dmas = <&dma 23>, <&dma 23>;
548                         dma-names = "rx", "tx";
549                         pinctrl-names = "default";
550                         pinctrl-0 = <&spi0_pins>;
551                         resets = <&ccu RST_BUS_SPI0>;
552                         status = "disabled";
553                         #address-cells = <1>;
554                         #size-cells = <0>;
555                 };
556
557                 spi1: spi@1c69000 {
558                         compatible = "allwinner,sun8i-h3-spi";
559                         reg = <0x01c69000 0x1000>;
560                         interrupts = <GIC_SPI 66 IRQ_TYPE_LEVEL_HIGH>;
561                         clocks = <&ccu CLK_BUS_SPI1>, <&ccu CLK_SPI1>;
562                         clock-names = "ahb", "mod";
563                         dmas = <&dma 24>, <&dma 24>;
564                         dma-names = "rx", "tx";
565                         pinctrl-names = "default";
566                         pinctrl-0 = <&spi1_pins>;
567                         resets = <&ccu RST_BUS_SPI1>;
568                         status = "disabled";
569                         #address-cells = <1>;
570                         #size-cells = <0>;
571                 };
572
573                 wdt0: watchdog@1c20ca0 {
574                         compatible = "allwinner,sun6i-a31-wdt";
575                         reg = <0x01c20ca0 0x20>;
576                         interrupts = <GIC_SPI 25 IRQ_TYPE_LEVEL_HIGH>;
577                         clocks = <&osc24M>;
578                 };
579
580                 spdif: spdif@1c21000 {
581                         #sound-dai-cells = <0>;
582                         compatible = "allwinner,sun8i-h3-spdif";
583                         reg = <0x01c21000 0x400>;
584                         interrupts = <GIC_SPI 12 IRQ_TYPE_LEVEL_HIGH>;
585                         clocks = <&ccu CLK_BUS_SPDIF>, <&ccu CLK_SPDIF>;
586                         resets = <&ccu RST_BUS_SPDIF>;
587                         clock-names = "apb", "spdif";
588                         dmas = <&dma 2>;
589                         dma-names = "tx";
590                         status = "disabled";
591                 };
592
593                 pwm: pwm@1c21400 {
594                         compatible = "allwinner,sun8i-h3-pwm";
595                         reg = <0x01c21400 0x8>;
596                         clocks = <&osc24M>;
597                         #pwm-cells = <3>;
598                         status = "disabled";
599                 };
600
601                 i2s0: i2s@1c22000 {
602                         #sound-dai-cells = <0>;
603                         compatible = "allwinner,sun8i-h3-i2s";
604                         reg = <0x01c22000 0x400>;
605                         interrupts = <GIC_SPI 13 IRQ_TYPE_LEVEL_HIGH>;
606                         clocks = <&ccu CLK_BUS_I2S0>, <&ccu CLK_I2S0>;
607                         clock-names = "apb", "mod";
608                         dmas = <&dma 3>, <&dma 3>;
609                         resets = <&ccu RST_BUS_I2S0>;
610                         dma-names = "rx", "tx";
611                         status = "disabled";
612                 };
613
614                 i2s1: i2s@1c22400 {
615                         #sound-dai-cells = <0>;
616                         compatible = "allwinner,sun8i-h3-i2s";
617                         reg = <0x01c22400 0x400>;
618                         interrupts = <GIC_SPI 14 IRQ_TYPE_LEVEL_HIGH>;
619                         clocks = <&ccu CLK_BUS_I2S1>, <&ccu CLK_I2S1>;
620                         clock-names = "apb", "mod";
621                         dmas = <&dma 4>, <&dma 4>;
622                         resets = <&ccu RST_BUS_I2S1>;
623                         dma-names = "rx", "tx";
624                         status = "disabled";
625                 };
626
627                 codec: codec@1c22c00 {
628                         #sound-dai-cells = <0>;
629                         compatible = "allwinner,sun8i-h3-codec";
630                         reg = <0x01c22c00 0x400>;
631                         interrupts = <GIC_SPI 29 IRQ_TYPE_LEVEL_HIGH>;
632                         clocks = <&ccu CLK_BUS_CODEC>, <&ccu CLK_AC_DIG>;
633                         clock-names = "apb", "codec";
634                         resets = <&ccu RST_BUS_CODEC>;
635                         dmas = <&dma 15>, <&dma 15>;
636                         dma-names = "rx", "tx";
637                         allwinner,codec-analog-controls = <&codec_analog>;
638                         status = "disabled";
639                 };
640
641                 uart0: serial@1c28000 {
642                         compatible = "snps,dw-apb-uart";
643                         reg = <0x01c28000 0x400>;
644                         interrupts = <GIC_SPI 0 IRQ_TYPE_LEVEL_HIGH>;
645                         reg-shift = <2>;
646                         reg-io-width = <4>;
647                         clocks = <&ccu CLK_BUS_UART0>;
648                         resets = <&ccu RST_BUS_UART0>;
649                         dmas = <&dma 6>, <&dma 6>;
650                         dma-names = "rx", "tx";
651                         status = "disabled";
652                 };
653
654                 uart1: serial@1c28400 {
655                         compatible = "snps,dw-apb-uart";
656                         reg = <0x01c28400 0x400>;
657                         interrupts = <GIC_SPI 1 IRQ_TYPE_LEVEL_HIGH>;
658                         reg-shift = <2>;
659                         reg-io-width = <4>;
660                         clocks = <&ccu CLK_BUS_UART1>;
661                         resets = <&ccu RST_BUS_UART1>;
662                         dmas = <&dma 7>, <&dma 7>;
663                         dma-names = "rx", "tx";
664                         status = "disabled";
665                 };
666
667                 uart2: serial@1c28800 {
668                         compatible = "snps,dw-apb-uart";
669                         reg = <0x01c28800 0x400>;
670                         interrupts = <GIC_SPI 2 IRQ_TYPE_LEVEL_HIGH>;
671                         reg-shift = <2>;
672                         reg-io-width = <4>;
673                         clocks = <&ccu CLK_BUS_UART2>;
674                         resets = <&ccu RST_BUS_UART2>;
675                         dmas = <&dma 8>, <&dma 8>;
676                         dma-names = "rx", "tx";
677                         status = "disabled";
678                 };
679
680                 uart3: serial@1c28c00 {
681                         compatible = "snps,dw-apb-uart";
682                         reg = <0x01c28c00 0x400>;
683                         interrupts = <GIC_SPI 3 IRQ_TYPE_LEVEL_HIGH>;
684                         reg-shift = <2>;
685                         reg-io-width = <4>;
686                         clocks = <&ccu CLK_BUS_UART3>;
687                         resets = <&ccu RST_BUS_UART3>;
688                         dmas = <&dma 9>, <&dma 9>;
689                         dma-names = "rx", "tx";
690                         status = "disabled";
691                 };
692
693                 i2c0: i2c@1c2ac00 {
694                         compatible = "allwinner,sun6i-a31-i2c";
695                         reg = <0x01c2ac00 0x400>;
696                         interrupts = <GIC_SPI 6 IRQ_TYPE_LEVEL_HIGH>;
697                         clocks = <&ccu CLK_BUS_I2C0>;
698                         resets = <&ccu RST_BUS_I2C0>;
699                         pinctrl-names = "default";
700                         pinctrl-0 = <&i2c0_pins>;
701                         status = "disabled";
702                         #address-cells = <1>;
703                         #size-cells = <0>;
704                 };
705
706                 i2c1: i2c@1c2b000 {
707                         compatible = "allwinner,sun6i-a31-i2c";
708                         reg = <0x01c2b000 0x400>;
709                         interrupts = <GIC_SPI 7 IRQ_TYPE_LEVEL_HIGH>;
710                         clocks = <&ccu CLK_BUS_I2C1>;
711                         resets = <&ccu RST_BUS_I2C1>;
712                         pinctrl-names = "default";
713                         pinctrl-0 = <&i2c1_pins>;
714                         status = "disabled";
715                         #address-cells = <1>;
716                         #size-cells = <0>;
717                 };
718
719                 i2c2: i2c@1c2b400 {
720                         compatible = "allwinner,sun6i-a31-i2c";
721                         reg = <0x01c2b400 0x400>;
722                         interrupts = <GIC_SPI 8 IRQ_TYPE_LEVEL_HIGH>;
723                         clocks = <&ccu CLK_BUS_I2C2>;
724                         resets = <&ccu RST_BUS_I2C2>;
725                         pinctrl-names = "default";
726                         pinctrl-0 = <&i2c2_pins>;
727                         status = "disabled";
728                         #address-cells = <1>;
729                         #size-cells = <0>;
730                 };
731
732                 gic: interrupt-controller@1c81000 {
733                         compatible = "arm,gic-400";
734                         reg = <0x01c81000 0x1000>,
735                               <0x01c82000 0x2000>,
736                               <0x01c84000 0x2000>,
737                               <0x01c86000 0x2000>;
738                         interrupt-controller;
739                         #interrupt-cells = <3>;
740                         interrupts = <GIC_PPI 9 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>;
741                 };
742
743                 csi: camera@1cb0000 {
744                         compatible = "allwinner,sun8i-h3-csi";
745                         reg = <0x01cb0000 0x1000>;
746                         interrupts = <GIC_SPI 84 IRQ_TYPE_LEVEL_HIGH>;
747                         clocks = <&ccu CLK_BUS_CSI>,
748                                  <&ccu CLK_CSI_SCLK>,
749                                  <&ccu CLK_DRAM_CSI>;
750                         clock-names = "bus", "mod", "ram";
751                         resets = <&ccu RST_BUS_CSI>;
752                         pinctrl-names = "default";
753                         pinctrl-0 = <&csi_pins>;
754                         status = "disabled";
755                 };
756
757                 hdmi: hdmi@1ee0000 {
758                         compatible = "allwinner,sun8i-h3-dw-hdmi",
759                                      "allwinner,sun8i-a83t-dw-hdmi";
760                         reg = <0x01ee0000 0x10000>;
761                         reg-io-width = <1>;
762                         interrupts = <GIC_SPI 88 IRQ_TYPE_LEVEL_HIGH>;
763                         clocks = <&ccu CLK_BUS_HDMI>, <&ccu CLK_HDMI_DDC>,
764                                  <&ccu CLK_HDMI>;
765                         clock-names = "iahb", "isfr", "tmds";
766                         resets = <&ccu RST_BUS_HDMI1>;
767                         reset-names = "ctrl";
768                         phys = <&hdmi_phy>;
769                         phy-names = "phy";
770                         status = "disabled";
771
772                         ports {
773                                 #address-cells = <1>;
774                                 #size-cells = <0>;
775
776                                 hdmi_in: port@0 {
777                                         reg = <0>;
778
779                                         hdmi_in_tcon0: endpoint {
780                                                 remote-endpoint = <&tcon0_out_hdmi>;
781                                         };
782                                 };
783
784                                 hdmi_out: port@1 {
785                                         reg = <1>;
786                                 };
787                         };
788                 };
789
790                 hdmi_phy: hdmi-phy@1ef0000 {
791                         compatible = "allwinner,sun8i-h3-hdmi-phy";
792                         reg = <0x01ef0000 0x10000>;
793                         clocks = <&ccu CLK_BUS_HDMI>, <&ccu CLK_HDMI_DDC>,
794                                  <&ccu 6>;
795                         clock-names = "bus", "mod", "pll-0";
796                         resets = <&ccu RST_BUS_HDMI0>;
797                         reset-names = "phy";
798                         #phy-cells = <0>;
799                 };
800
801                 rtc: rtc@1f00000 {
802                         /* compatible is in per SoC .dtsi file */
803                         reg = <0x01f00000 0x400>;
804                         interrupts = <GIC_SPI 40 IRQ_TYPE_LEVEL_HIGH>,
805                                      <GIC_SPI 41 IRQ_TYPE_LEVEL_HIGH>;
806                         clock-output-names = "osc32k", "osc32k-out", "iosc";
807                         clocks = <&osc32k>;
808                         #clock-cells = <1>;
809                 };
810
811                 r_ccu: clock@1f01400 {
812                         compatible = "allwinner,sun8i-h3-r-ccu";
813                         reg = <0x01f01400 0x100>;
814                         clocks = <&osc24M>, <&rtc 0>, <&rtc 2>, <&ccu 9>;
815                         clock-names = "hosc", "losc", "iosc", "pll-periph";
816                         #clock-cells = <1>;
817                         #reset-cells = <1>;
818                 };
819
820                 codec_analog: codec-analog@1f015c0 {
821                         compatible = "allwinner,sun8i-h3-codec-analog";
822                         reg = <0x01f015c0 0x4>;
823                 };
824
825                 ir: ir@1f02000 {
826                         compatible = "allwinner,sun6i-a31-ir";
827                         clocks = <&r_ccu CLK_APB0_IR>, <&r_ccu CLK_IR>;
828                         clock-names = "apb", "ir";
829                         resets = <&r_ccu RST_APB0_IR>;
830                         interrupts = <GIC_SPI 37 IRQ_TYPE_LEVEL_HIGH>;
831                         reg = <0x01f02000 0x400>;
832                         status = "disabled";
833                 };
834
835                 r_i2c: i2c@1f02400 {
836                         compatible = "allwinner,sun6i-a31-i2c";
837                         reg = <0x01f02400 0x400>;
838                         interrupts = <GIC_SPI 44 IRQ_TYPE_LEVEL_HIGH>;
839                         pinctrl-names = "default";
840                         pinctrl-0 = <&r_i2c_pins>;
841                         clocks = <&r_ccu CLK_APB0_I2C>;
842                         resets = <&r_ccu RST_APB0_I2C>;
843                         status = "disabled";
844                         #address-cells = <1>;
845                         #size-cells = <0>;
846                 };
847
848                 r_pio: pinctrl@1f02c00 {
849                         compatible = "allwinner,sun8i-h3-r-pinctrl";
850                         reg = <0x01f02c00 0x400>;
851                         interrupts = <GIC_SPI 45 IRQ_TYPE_LEVEL_HIGH>;
852                         clocks = <&r_ccu CLK_APB0_PIO>, <&osc24M>, <&rtc 0>;
853                         clock-names = "apb", "hosc", "losc";
854                         gpio-controller;
855                         #gpio-cells = <3>;
856                         interrupt-controller;
857                         #interrupt-cells = <3>;
858
859                         r_ir_rx_pin: r-ir-rx-pin {
860                                 pins = "PL11";
861                                 function = "s_cir_rx";
862                         };
863
864                         r_i2c_pins: r-i2c-pins {
865                                 pins = "PL0", "PL1";
866                                 function = "s_i2c";
867                         };
868                 };
869         };
870 };