arm64: dts: meson: g12: move audio bus out of g12-common
[platform/kernel/linux-starfive.git] / arch / arm64 / boot / dts / amlogic / meson-g12-common.dtsi
1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
2 /*
3  * Copyright (c) 2018 Amlogic, Inc. All rights reserved.
4  */
5
6 #include <dt-bindings/phy/phy.h>
7 #include <dt-bindings/gpio/gpio.h>
8 #include <dt-bindings/clock/g12a-clkc.h>
9 #include <dt-bindings/clock/g12a-aoclkc.h>
10 #include <dt-bindings/interrupt-controller/irq.h>
11 #include <dt-bindings/interrupt-controller/arm-gic.h>
12 #include <dt-bindings/reset/amlogic,meson-g12a-reset.h>
13
14 / {
15         interrupt-parent = <&gic>;
16         #address-cells = <2>;
17         #size-cells = <2>;
18
19         efuse: efuse {
20                 compatible = "amlogic,meson-gxbb-efuse";
21                 clocks = <&clkc CLKID_EFUSE>;
22                 #address-cells = <1>;
23                 #size-cells = <1>;
24                 read-only;
25         };
26
27         psci {
28                 compatible = "arm,psci-1.0";
29                 method = "smc";
30         };
31
32         reserved-memory {
33                 #address-cells = <2>;
34                 #size-cells = <2>;
35                 ranges;
36
37                 /* 3 MiB reserved for ARM Trusted Firmware (BL31) */
38                 secmon_reserved: secmon@5000000 {
39                         reg = <0x0 0x05000000 0x0 0x300000>;
40                         no-map;
41                 };
42
43                 linux,cma {
44                         compatible = "shared-dma-pool";
45                         reusable;
46                         size = <0x0 0x10000000>;
47                         alignment = <0x0 0x400000>;
48                         linux,cma-default;
49                 };
50         };
51
52         sm: secure-monitor {
53                 compatible = "amlogic,meson-gxbb-sm";
54         };
55
56         soc {
57                 compatible = "simple-bus";
58                 #address-cells = <2>;
59                 #size-cells = <2>;
60                 ranges;
61
62                 ethmac: ethernet@ff3f0000 {
63                         compatible = "amlogic,meson-axg-dwmac",
64                                      "snps,dwmac-3.70a",
65                                      "snps,dwmac";
66                         reg = <0x0 0xff3f0000 0x0 0x10000>,
67                               <0x0 0xff634540 0x0 0x8>;
68                         interrupts = <GIC_SPI 8 IRQ_TYPE_LEVEL_HIGH>;
69                         interrupt-names = "macirq";
70                         clocks = <&clkc CLKID_ETH>,
71                                  <&clkc CLKID_FCLK_DIV2>,
72                                  <&clkc CLKID_MPLL2>;
73                         clock-names = "stmmaceth", "clkin0", "clkin1";
74                         rx-fifo-depth = <4096>;
75                         tx-fifo-depth = <2048>;
76                         status = "disabled";
77
78                         mdio0: mdio {
79                                 #address-cells = <1>;
80                                 #size-cells = <0>;
81                                 compatible = "snps,dwmac-mdio";
82                         };
83                 };
84
85                 apb: bus@ff600000 {
86                         compatible = "simple-bus";
87                         reg = <0x0 0xff600000 0x0 0x200000>;
88                         #address-cells = <2>;
89                         #size-cells = <2>;
90                         ranges = <0x0 0x0 0x0 0xff600000 0x0 0x200000>;
91
92                         hdmi_tx: hdmi-tx@0 {
93                                 compatible = "amlogic,meson-g12a-dw-hdmi";
94                                 reg = <0x0 0x0 0x0 0x10000>;
95                                 interrupts = <GIC_SPI 57 IRQ_TYPE_EDGE_RISING>;
96                                 resets = <&reset RESET_HDMITX_CAPB3>,
97                                          <&reset RESET_HDMITX_PHY>,
98                                          <&reset RESET_HDMITX>;
99                                 reset-names = "hdmitx_apb", "hdmitx", "hdmitx_phy";
100                                 clocks = <&clkc CLKID_HDMI>,
101                                          <&clkc CLKID_HTX_PCLK>,
102                                          <&clkc CLKID_VPU_INTR>;
103                                 clock-names = "isfr", "iahb", "venci";
104                                 #address-cells = <1>;
105                                 #size-cells = <0>;
106                                 #sound-dai-cells = <0>;
107                                 status = "disabled";
108
109                                 /* VPU VENC Input */
110                                 hdmi_tx_venc_port: port@0 {
111                                         reg = <0>;
112
113                                         hdmi_tx_in: endpoint {
114                                                 remote-endpoint = <&hdmi_tx_out>;
115                                         };
116                                 };
117
118                                 /* TMDS Output */
119                                 hdmi_tx_tmds_port: port@1 {
120                                         reg = <1>;
121                                 };
122                         };
123
124                         apb_efuse: bus@30000 {
125                                 compatible = "simple-bus";
126                                 reg = <0x0 0x30000 0x0 0x2000>;
127                                 #address-cells = <2>;
128                                 #size-cells = <2>;
129                                 ranges = <0x0 0x0 0x0 0x30000 0x0 0x2000>;
130
131                                 hwrng: rng@218 {
132                                         compatible = "amlogic,meson-rng";
133                                         reg = <0x0 0x218 0x0 0x4>;
134                                 };
135                         };
136
137                         periphs: bus@34400 {
138                                 compatible = "simple-bus";
139                                 reg = <0x0 0x34400 0x0 0x400>;
140                                 #address-cells = <2>;
141                                 #size-cells = <2>;
142                                 ranges = <0x0 0x0 0x0 0x34400 0x0 0x400>;
143
144                                 periphs_pinctrl: pinctrl@40 {
145                                         compatible = "amlogic,meson-g12a-periphs-pinctrl";
146                                         #address-cells = <2>;
147                                         #size-cells = <2>;
148                                         ranges;
149
150                                         gpio: bank@40 {
151                                                 reg = <0x0 0x40  0x0 0x4c>,
152                                                       <0x0 0xe8  0x0 0x18>,
153                                                       <0x0 0x120 0x0 0x18>,
154                                                       <0x0 0x2c0 0x0 0x40>,
155                                                       <0x0 0x340 0x0 0x1c>;
156                                                 reg-names = "gpio",
157                                                             "pull",
158                                                             "pull-enable",
159                                                             "mux",
160                                                             "ds";
161                                                 gpio-controller;
162                                                 #gpio-cells = <2>;
163                                                 gpio-ranges = <&periphs_pinctrl 0 0 86>;
164                                         };
165
166                                         cec_ao_a_h_pins: cec_ao_a_h {
167                                                 mux {
168                                                         groups = "cec_ao_a_h";
169                                                         function = "cec_ao_a_h";
170                                                         bias-disable;
171                                                 };
172                                         };
173
174                                         cec_ao_b_h_pins: cec_ao_b_h {
175                                                 mux {
176                                                         groups = "cec_ao_b_h";
177                                                         function = "cec_ao_b_h";
178                                                         bias-disable;
179                                                 };
180                                         };
181
182                                         emmc_pins: emmc {
183                                                 mux-0 {
184                                                         groups = "emmc_nand_d0",
185                                                                  "emmc_nand_d1",
186                                                                  "emmc_nand_d2",
187                                                                  "emmc_nand_d3",
188                                                                  "emmc_nand_d4",
189                                                                  "emmc_nand_d5",
190                                                                  "emmc_nand_d6",
191                                                                  "emmc_nand_d7",
192                                                                  "emmc_cmd";
193                                                         function = "emmc";
194                                                         bias-pull-up;
195                                                         drive-strength-microamp = <4000>;
196                                                 };
197
198                                                 mux-1 {
199                                                         groups = "emmc_clk";
200                                                         function = "emmc";
201                                                         bias-disable;
202                                                         drive-strength-microamp = <4000>;
203                                                 };
204                                         };
205
206                                         emmc_ds_pins: emmc-ds {
207                                                 mux {
208                                                         groups = "emmc_nand_ds";
209                                                         function = "emmc";
210                                                         bias-pull-down;
211                                                         drive-strength-microamp = <4000>;
212                                                 };
213                                         };
214
215                                         emmc_clk_gate_pins: emmc_clk_gate {
216                                                 mux {
217                                                         groups = "BOOT_8";
218                                                         function = "gpio_periphs";
219                                                         bias-pull-down;
220                                                         drive-strength-microamp = <4000>;
221                                                 };
222                                         };
223
224                                         hdmitx_ddc_pins: hdmitx_ddc {
225                                                 mux {
226                                                         groups = "hdmitx_sda",
227                                                                  "hdmitx_sck";
228                                                         function = "hdmitx";
229                                                         bias-disable;
230                                                         drive-strength-microamp = <4000>;
231                                                 };
232                                         };
233
234                                         hdmitx_hpd_pins: hdmitx_hpd {
235                                                 mux {
236                                                         groups = "hdmitx_hpd_in";
237                                                         function = "hdmitx";
238                                                         bias-disable;
239                                                 };
240                                         };
241
242
243                                         i2c0_sda_c_pins: i2c0-sda-c {
244                                                 mux {
245                                                         groups = "i2c0_sda_c";
246                                                         function = "i2c0";
247                                                         bias-disable;
248                                                         drive-strength-microamp = <3000>;
249
250                                                 };
251                                         };
252
253                                         i2c0_sck_c_pins: i2c0-sck-c {
254                                                 mux {
255                                                         groups = "i2c0_sck_c";
256                                                         function = "i2c0";
257                                                         bias-disable;
258                                                         drive-strength-microamp = <3000>;
259                                                 };
260                                         };
261
262                                         i2c0_sda_z0_pins: i2c0-sda-z0 {
263                                                 mux {
264                                                         groups = "i2c0_sda_z0";
265                                                         function = "i2c0";
266                                                         bias-disable;
267                                                         drive-strength-microamp = <3000>;
268                                                 };
269                                         };
270
271                                         i2c0_sck_z1_pins: i2c0-sck-z1 {
272                                                 mux {
273                                                         groups = "i2c0_sck_z1";
274                                                         function = "i2c0";
275                                                         bias-disable;
276                                                         drive-strength-microamp = <3000>;
277                                                 };
278                                         };
279
280                                         i2c0_sda_z7_pins: i2c0-sda-z7 {
281                                                 mux {
282                                                         groups = "i2c0_sda_z7";
283                                                         function = "i2c0";
284                                                         bias-disable;
285                                                         drive-strength-microamp = <3000>;
286                                                 };
287                                         };
288
289                                         i2c0_sda_z8_pins: i2c0-sda-z8 {
290                                                 mux {
291                                                         groups = "i2c0_sda_z8";
292                                                         function = "i2c0";
293                                                         bias-disable;
294                                                         drive-strength-microamp = <3000>;
295                                                 };
296                                         };
297
298                                         i2c1_sda_x_pins: i2c1-sda-x {
299                                                 mux {
300                                                         groups = "i2c1_sda_x";
301                                                         function = "i2c1";
302                                                         bias-disable;
303                                                         drive-strength-microamp = <3000>;
304                                                 };
305                                         };
306
307                                         i2c1_sck_x_pins: i2c1-sck-x {
308                                                 mux {
309                                                         groups = "i2c1_sck_x";
310                                                         function = "i2c1";
311                                                         bias-disable;
312                                                         drive-strength-microamp = <3000>;
313                                                 };
314                                         };
315
316                                         i2c1_sda_h2_pins: i2c1-sda-h2 {
317                                                 mux {
318                                                         groups = "i2c1_sda_h2";
319                                                         function = "i2c1";
320                                                         bias-disable;
321                                                         drive-strength-microamp = <3000>;
322                                                 };
323                                         };
324
325                                         i2c1_sck_h3_pins: i2c1-sck-h3 {
326                                                 mux {
327                                                         groups = "i2c1_sck_h3";
328                                                         function = "i2c1";
329                                                         bias-disable;
330                                                         drive-strength-microamp = <3000>;
331                                                 };
332                                         };
333
334                                         i2c1_sda_h6_pins: i2c1-sda-h6 {
335                                                 mux {
336                                                         groups = "i2c1_sda_h6";
337                                                         function = "i2c1";
338                                                         bias-disable;
339                                                         drive-strength-microamp = <3000>;
340                                                 };
341                                         };
342
343                                         i2c1_sck_h7_pins: i2c1-sck-h7 {
344                                                 mux {
345                                                         groups = "i2c1_sck_h7";
346                                                         function = "i2c1";
347                                                         bias-disable;
348                                                         drive-strength-microamp = <3000>;
349                                                 };
350                                         };
351
352                                         i2c2_sda_x_pins: i2c2-sda-x {
353                                                 mux {
354                                                         groups = "i2c2_sda_x";
355                                                         function = "i2c2";
356                                                         bias-disable;
357                                                         drive-strength-microamp = <3000>;
358                                                 };
359                                         };
360
361                                         i2c2_sck_x_pins: i2c2-sck-x {
362                                                 mux {
363                                                         groups = "i2c2_sck_x";
364                                                         function = "i2c2";
365                                                         bias-disable;
366                                                         drive-strength-microamp = <3000>;
367                                                 };
368                                         };
369
370                                         i2c2_sda_z_pins: i2c2-sda-z {
371                                                 mux {
372                                                         groups = "i2c2_sda_z";
373                                                         function = "i2c2";
374                                                         bias-disable;
375                                                         drive-strength-microamp = <3000>;
376                                                 };
377                                         };
378
379                                         i2c2_sck_z_pins: i2c2-sck-z {
380                                                 mux {
381                                                         groups = "i2c2_sck_z";
382                                                         function = "i2c2";
383                                                         bias-disable;
384                                                         drive-strength-microamp = <3000>;
385                                                 };
386                                         };
387
388                                         i2c3_sda_h_pins: i2c3-sda-h {
389                                                 mux {
390                                                         groups = "i2c3_sda_h";
391                                                         function = "i2c3";
392                                                         bias-disable;
393                                                         drive-strength-microamp = <3000>;
394                                                 };
395                                         };
396
397                                         i2c3_sck_h_pins: i2c3-sck-h {
398                                                 mux {
399                                                         groups = "i2c3_sck_h";
400                                                         function = "i2c3";
401                                                         bias-disable;
402                                                         drive-strength-microamp = <3000>;
403                                                 };
404                                         };
405
406                                         i2c3_sda_a_pins: i2c3-sda-a {
407                                                 mux {
408                                                         groups = "i2c3_sda_a";
409                                                         function = "i2c3";
410                                                         bias-disable;
411                                                         drive-strength-microamp = <3000>;
412                                                 };
413                                         };
414
415                                         i2c3_sck_a_pins: i2c3-sck-a {
416                                                 mux {
417                                                         groups = "i2c3_sck_a";
418                                                         function = "i2c3";
419                                                         bias-disable;
420                                                         drive-strength-microamp = <3000>;
421                                                 };
422                                         };
423
424                                         mclk0_a_pins: mclk0-a {
425                                                 mux {
426                                                         groups = "mclk0_a";
427                                                         function = "mclk0";
428                                                         bias-disable;
429                                                         drive-strength-microamp = <3000>;
430                                                 };
431                                         };
432
433                                         mclk1_a_pins: mclk1-a {
434                                                 mux {
435                                                         groups = "mclk1_a";
436                                                         function = "mclk1";
437                                                         bias-disable;
438                                                         drive-strength-microamp = <3000>;
439                                                 };
440                                         };
441
442                                         mclk1_x_pins: mclk1-x {
443                                                 mux {
444                                                         groups = "mclk1_x";
445                                                         function = "mclk1";
446                                                         bias-disable;
447                                                         drive-strength-microamp = <3000>;
448                                                 };
449                                         };
450
451                                         mclk1_z_pins: mclk1-z {
452                                                 mux {
453                                                         groups = "mclk1_z";
454                                                         function = "mclk1";
455                                                         bias-disable;
456                                                         drive-strength-microamp = <3000>;
457                                                 };
458                                         };
459
460                                         pdm_din0_a_pins: pdm-din0-a {
461                                                 mux {
462                                                         groups = "pdm_din0_a";
463                                                         function = "pdm";
464                                                         bias-disable;
465                                                 };
466                                         };
467
468                                         pdm_din0_c_pins: pdm-din0-c {
469                                                 mux {
470                                                         groups = "pdm_din0_c";
471                                                         function = "pdm";
472                                                         bias-disable;
473                                                 };
474                                         };
475
476                                         pdm_din0_x_pins: pdm-din0-x {
477                                                 mux {
478                                                         groups = "pdm_din0_x";
479                                                         function = "pdm";
480                                                         bias-disable;
481                                                 };
482                                         };
483
484                                         pdm_din0_z_pins: pdm-din0-z {
485                                                 mux {
486                                                         groups = "pdm_din0_z";
487                                                         function = "pdm";
488                                                         bias-disable;
489                                                 };
490                                         };
491
492                                         pdm_din1_a_pins: pdm-din1-a {
493                                                 mux {
494                                                         groups = "pdm_din1_a";
495                                                         function = "pdm";
496                                                         bias-disable;
497                                                 };
498                                         };
499
500                                         pdm_din1_c_pins: pdm-din1-c {
501                                                 mux {
502                                                         groups = "pdm_din1_c";
503                                                         function = "pdm";
504                                                         bias-disable;
505                                                 };
506                                         };
507
508                                         pdm_din1_x_pins: pdm-din1-x {
509                                                 mux {
510                                                         groups = "pdm_din1_x";
511                                                         function = "pdm";
512                                                         bias-disable;
513                                                 };
514                                         };
515
516                                         pdm_din1_z_pins: pdm-din1-z {
517                                                 mux {
518                                                         groups = "pdm_din1_z";
519                                                         function = "pdm";
520                                                         bias-disable;
521                                                 };
522                                         };
523
524                                         pdm_din2_a_pins: pdm-din2-a {
525                                                 mux {
526                                                         groups = "pdm_din2_a";
527                                                         function = "pdm";
528                                                         bias-disable;
529                                                 };
530                                         };
531
532                                         pdm_din2_c_pins: pdm-din2-c {
533                                                 mux {
534                                                         groups = "pdm_din2_c";
535                                                         function = "pdm";
536                                                         bias-disable;
537                                                 };
538                                         };
539
540                                         pdm_din2_x_pins: pdm-din2-x {
541                                                 mux {
542                                                         groups = "pdm_din2_x";
543                                                         function = "pdm";
544                                                         bias-disable;
545                                                 };
546                                         };
547
548                                         pdm_din2_z_pins: pdm-din2-z {
549                                                 mux {
550                                                         groups = "pdm_din2_z";
551                                                         function = "pdm";
552                                                         bias-disable;
553                                                 };
554                                         };
555
556                                         pdm_din3_a_pins: pdm-din3-a {
557                                                 mux {
558                                                         groups = "pdm_din3_a";
559                                                         function = "pdm";
560                                                         bias-disable;
561                                                 };
562                                         };
563
564                                         pdm_din3_c_pins: pdm-din3-c {
565                                                 mux {
566                                                         groups = "pdm_din3_c";
567                                                         function = "pdm";
568                                                         bias-disable;
569                                                 };
570                                         };
571
572                                         pdm_din3_x_pins: pdm-din3-x {
573                                                 mux {
574                                                         groups = "pdm_din3_x";
575                                                         function = "pdm";
576                                                         bias-disable;
577                                                 };
578                                         };
579
580                                         pdm_din3_z_pins: pdm-din3-z {
581                                                 mux {
582                                                         groups = "pdm_din3_z";
583                                                         function = "pdm";
584                                                         bias-disable;
585                                                 };
586                                         };
587
588                                         pdm_dclk_a_pins: pdm-dclk-a {
589                                                 mux {
590                                                         groups = "pdm_dclk_a";
591                                                         function = "pdm";
592                                                         bias-disable;
593                                                         drive-strength-microamp = <500>;
594                                                 };
595                                         };
596
597                                         pdm_dclk_c_pins: pdm-dclk-c {
598                                                 mux {
599                                                         groups = "pdm_dclk_c";
600                                                         function = "pdm";
601                                                         bias-disable;
602                                                         drive-strength-microamp = <500>;
603                                                 };
604                                         };
605
606                                         pdm_dclk_x_pins: pdm-dclk-x {
607                                                 mux {
608                                                         groups = "pdm_dclk_x";
609                                                         function = "pdm";
610                                                         bias-disable;
611                                                         drive-strength-microamp = <500>;
612                                                 };
613                                         };
614
615                                         pdm_dclk_z_pins: pdm-dclk-z {
616                                                 mux {
617                                                         groups = "pdm_dclk_z";
618                                                         function = "pdm";
619                                                         bias-disable;
620                                                         drive-strength-microamp = <500>;
621                                                 };
622                                         };
623
624                                         pwm_a_pins: pwm-a {
625                                                 mux {
626                                                         groups = "pwm_a";
627                                                         function = "pwm_a";
628                                                         bias-disable;
629                                                 };
630                                         };
631
632                                         pwm_b_x7_pins: pwm-b-x7 {
633                                                 mux {
634                                                         groups = "pwm_b_x7";
635                                                         function = "pwm_b";
636                                                         bias-disable;
637                                                 };
638                                         };
639
640                                         pwm_b_x19_pins: pwm-b-x19 {
641                                                 mux {
642                                                         groups = "pwm_b_x19";
643                                                         function = "pwm_b";
644                                                         bias-disable;
645                                                 };
646                                         };
647
648                                         pwm_c_c_pins: pwm-c-c {
649                                                 mux {
650                                                         groups = "pwm_c_c";
651                                                         function = "pwm_c";
652                                                         bias-disable;
653                                                 };
654                                         };
655
656                                         pwm_c_x5_pins: pwm-c-x5 {
657                                                 mux {
658                                                         groups = "pwm_c_x5";
659                                                         function = "pwm_c";
660                                                         bias-disable;
661                                                 };
662                                         };
663
664                                         pwm_c_x8_pins: pwm-c-x8 {
665                                                 mux {
666                                                         groups = "pwm_c_x8";
667                                                         function = "pwm_c";
668                                                         bias-disable;
669                                                 };
670                                         };
671
672                                         pwm_d_x3_pins: pwm-d-x3 {
673                                                 mux {
674                                                         groups = "pwm_d_x3";
675                                                         function = "pwm_d";
676                                                         bias-disable;
677                                                 };
678                                         };
679
680                                         pwm_d_x6_pins: pwm-d-x6 {
681                                                 mux {
682                                                         groups = "pwm_d_x6";
683                                                         function = "pwm_d";
684                                                         bias-disable;
685                                                 };
686                                         };
687
688                                         pwm_e_pins: pwm-e {
689                                                 mux {
690                                                         groups = "pwm_e";
691                                                         function = "pwm_e";
692                                                         bias-disable;
693                                                 };
694                                         };
695
696                                         pwm_f_x_pins: pwm-f-x {
697                                                 mux {
698                                                         groups = "pwm_f_x";
699                                                         function = "pwm_f";
700                                                         bias-disable;
701                                                 };
702                                         };
703
704                                         pwm_f_h_pins: pwm-f-h {
705                                                 mux {
706                                                         groups = "pwm_f_h";
707                                                         function = "pwm_f";
708                                                         bias-disable;
709                                                 };
710                                         };
711
712                                         sdcard_c_pins: sdcard_c {
713                                                 mux-0 {
714                                                         groups = "sdcard_d0_c",
715                                                                  "sdcard_d1_c",
716                                                                  "sdcard_d2_c",
717                                                                  "sdcard_d3_c",
718                                                                  "sdcard_cmd_c";
719                                                         function = "sdcard";
720                                                         bias-pull-up;
721                                                         drive-strength-microamp = <4000>;
722                                                 };
723
724                                                 mux-1 {
725                                                         groups = "sdcard_clk_c";
726                                                         function = "sdcard";
727                                                         bias-disable;
728                                                         drive-strength-microamp = <4000>;
729                                                 };
730                                         };
731
732                                         sdcard_clk_gate_c_pins: sdcard_clk_gate_c {
733                                                 mux {
734                                                         groups = "GPIOC_4";
735                                                         function = "gpio_periphs";
736                                                         bias-pull-down;
737                                                         drive-strength-microamp = <4000>;
738                                                 };
739                                         };
740
741                                         sdcard_z_pins: sdcard_z {
742                                                 mux-0 {
743                                                         groups = "sdcard_d0_z",
744                                                                  "sdcard_d1_z",
745                                                                  "sdcard_d2_z",
746                                                                  "sdcard_d3_z",
747                                                                  "sdcard_cmd_z";
748                                                         function = "sdcard";
749                                                         bias-pull-up;
750                                                         drive-strength-microamp = <4000>;
751                                                 };
752
753                                                 mux-1 {
754                                                         groups = "sdcard_clk_z";
755                                                         function = "sdcard";
756                                                         bias-disable;
757                                                         drive-strength-microamp = <4000>;
758                                                 };
759                                         };
760
761                                         sdcard_clk_gate_z_pins: sdcard_clk_gate_z {
762                                                 mux {
763                                                         groups = "GPIOZ_6";
764                                                         function = "gpio_periphs";
765                                                         bias-pull-down;
766                                                         drive-strength-microamp = <4000>;
767                                                 };
768                                         };
769
770                                         sdio_pins: sdio {
771                                                 mux {
772                                                         groups = "sdio_d0",
773                                                                  "sdio_d1",
774                                                                  "sdio_d2",
775                                                                  "sdio_d3",
776                                                                  "sdio_clk",
777                                                                  "sdio_cmd";
778                                                         function = "sdio";
779                                                         bias-disable;
780                                                         drive-strength-microamp = <4000>;
781                                                 };
782                                         };
783
784                                         sdio_clk_gate_pins: sdio_clk_gate {
785                                                 mux {
786                                                         groups = "GPIOX_4";
787                                                         function = "gpio_periphs";
788                                                         bias-pull-down;
789                                                         drive-strength-microamp = <4000>;
790                                                 };
791                                         };
792
793                                         spdif_in_a10_pins: spdif-in-a10 {
794                                                 mux {
795                                                         groups = "spdif_in_a10";
796                                                         function = "spdif_in";
797                                                         bias-disable;
798                                                 };
799                                         };
800
801                                         spdif_in_a12_pins: spdif-in-a12 {
802                                                 mux {
803                                                         groups = "spdif_in_a12";
804                                                         function = "spdif_in";
805                                                         bias-disable;
806                                                 };
807                                         };
808
809                                         spdif_in_h_pins: spdif-in-h {
810                                                 mux {
811                                                         groups = "spdif_in_h";
812                                                         function = "spdif_in";
813                                                         bias-disable;
814                                                 };
815                                         };
816
817                                         spdif_out_h_pins: spdif-out-h {
818                                                 mux {
819                                                         groups = "spdif_out_h";
820                                                         function = "spdif_out";
821                                                         drive-strength-microamp = <500>;
822                                                         bias-disable;
823                                                 };
824                                         };
825
826                                         spdif_out_a11_pins: spdif-out-a11 {
827                                                 mux {
828                                                         groups = "spdif_out_a11";
829                                                         function = "spdif_out";
830                                                         drive-strength-microamp = <500>;
831                                                         bias-disable;
832                                                 };
833                                         };
834
835                                         spdif_out_a13_pins: spdif-out-a13 {
836                                                 mux {
837                                                         groups = "spdif_out_a13";
838                                                         function = "spdif_out";
839                                                         drive-strength-microamp = <500>;
840                                                         bias-disable;
841                                                 };
842                                         };
843
844                                         tdm_a_din0_pins: tdm-a-din0 {
845                                                 mux {
846                                                         groups = "tdm_a_din0";
847                                                         function = "tdm_a";
848                                                         bias-disable;
849                                                 };
850                                         };
851
852
853                                         tdm_a_din1_pins: tdm-a-din1 {
854                                                 mux {
855                                                         groups = "tdm_a_din1";
856                                                         function = "tdm_a";
857                                                         bias-disable;
858                                                 };
859                                         };
860
861                                         tdm_a_dout0_pins: tdm-a-dout0 {
862                                                 mux {
863                                                         groups = "tdm_a_dout0";
864                                                         function = "tdm_a";
865                                                         bias-disable;
866                                                         drive-strength-microamp = <3000>;
867                                                 };
868                                         };
869
870                                         tdm_a_dout1_pins: tdm-a-dout1 {
871                                                 mux {
872                                                         groups = "tdm_a_dout1";
873                                                         function = "tdm_a";
874                                                         bias-disable;
875                                                         drive-strength-microamp = <3000>;
876                                                 };
877                                         };
878
879                                         tdm_a_fs_pins: tdm-a-fs {
880                                                 mux {
881                                                         groups = "tdm_a_fs";
882                                                         function = "tdm_a";
883                                                         bias-disable;
884                                                         drive-strength-microamp = <3000>;
885                                                 };
886                                         };
887
888                                         tdm_a_sclk_pins: tdm-a-sclk {
889                                                 mux {
890                                                         groups = "tdm_a_sclk";
891                                                         function = "tdm_a";
892                                                         bias-disable;
893                                                         drive-strength-microamp = <3000>;
894                                                 };
895                                         };
896
897                                         tdm_a_slv_fs_pins: tdm-a-slv-fs {
898                                                 mux {
899                                                         groups = "tdm_a_slv_fs";
900                                                         function = "tdm_a";
901                                                         bias-disable;
902                                                 };
903                                         };
904
905
906                                         tdm_a_slv_sclk_pins: tdm-a-slv-sclk {
907                                                 mux {
908                                                         groups = "tdm_a_slv_sclk";
909                                                         function = "tdm_a";
910                                                         bias-disable;
911                                                 };
912                                         };
913
914                                         tdm_b_din0_pins: tdm-b-din0 {
915                                                 mux {
916                                                         groups = "tdm_b_din0";
917                                                         function = "tdm_b";
918                                                         bias-disable;
919                                                 };
920                                         };
921
922                                         tdm_b_din1_pins: tdm-b-din1 {
923                                                 mux {
924                                                         groups = "tdm_b_din1";
925                                                         function = "tdm_b";
926                                                         bias-disable;
927                                                 };
928                                         };
929
930                                         tdm_b_din2_pins: tdm-b-din2 {
931                                                 mux {
932                                                         groups = "tdm_b_din2";
933                                                         function = "tdm_b";
934                                                         bias-disable;
935                                                 };
936                                         };
937
938                                         tdm_b_din3_a_pins: tdm-b-din3-a {
939                                                 mux {
940                                                         groups = "tdm_b_din3_a";
941                                                         function = "tdm_b";
942                                                         bias-disable;
943                                                 };
944                                         };
945
946                                         tdm_b_din3_h_pins: tdm-b-din3-h {
947                                                 mux {
948                                                         groups = "tdm_b_din3_h";
949                                                         function = "tdm_b";
950                                                         bias-disable;
951                                                 };
952                                         };
953
954                                         tdm_b_dout0_pins: tdm-b-dout0 {
955                                                 mux {
956                                                         groups = "tdm_b_dout0";
957                                                         function = "tdm_b";
958                                                         bias-disable;
959                                                         drive-strength-microamp = <3000>;
960                                                 };
961                                         };
962
963                                         tdm_b_dout1_pins: tdm-b-dout1 {
964                                                 mux {
965                                                         groups = "tdm_b_dout1";
966                                                         function = "tdm_b";
967                                                         bias-disable;
968                                                         drive-strength-microamp = <3000>;
969                                                 };
970                                         };
971
972                                         tdm_b_dout2_pins: tdm-b-dout2 {
973                                                 mux {
974                                                         groups = "tdm_b_dout2";
975                                                         function = "tdm_b";
976                                                         bias-disable;
977                                                         drive-strength-microamp = <3000>;
978                                                 };
979                                         };
980
981                                         tdm_b_dout3_a_pins: tdm-b-dout3-a {
982                                                 mux {
983                                                         groups = "tdm_b_dout3_a";
984                                                         function = "tdm_b";
985                                                         bias-disable;
986                                                         drive-strength-microamp = <3000>;
987                                                 };
988                                         };
989
990                                         tdm_b_dout3_h_pins: tdm-b-dout3-h {
991                                                 mux {
992                                                         groups = "tdm_b_dout3_h";
993                                                         function = "tdm_b";
994                                                         bias-disable;
995                                                         drive-strength-microamp = <3000>;
996                                                 };
997                                         };
998
999                                         tdm_b_fs_pins: tdm-b-fs {
1000                                                 mux {
1001                                                         groups = "tdm_b_fs";
1002                                                         function = "tdm_b";
1003                                                         bias-disable;
1004                                                         drive-strength-microamp = <3000>;
1005                                                 };
1006                                         };
1007
1008                                         tdm_b_sclk_pins: tdm-b-sclk {
1009                                                 mux {
1010                                                         groups = "tdm_b_sclk";
1011                                                         function = "tdm_b";
1012                                                         bias-disable;
1013                                                         drive-strength-microamp = <3000>;
1014                                                 };
1015                                         };
1016
1017                                         tdm_b_slv_fs_pins: tdm-b-slv-fs {
1018                                                 mux {
1019                                                         groups = "tdm_b_slv_fs";
1020                                                         function = "tdm_b";
1021                                                         bias-disable;
1022                                                 };
1023                                         };
1024
1025                                         tdm_b_slv_sclk_pins: tdm-b-slv-sclk {
1026                                                 mux {
1027                                                         groups = "tdm_b_slv_sclk";
1028                                                         function = "tdm_b";
1029                                                         bias-disable;
1030                                                 };
1031                                         };
1032
1033                                         tdm_c_din0_a_pins: tdm-c-din0-a {
1034                                                 mux {
1035                                                         groups = "tdm_c_din0_a";
1036                                                         function = "tdm_c";
1037                                                         bias-disable;
1038                                                 };
1039                                         };
1040
1041                                         tdm_c_din0_z_pins: tdm-c-din0-z {
1042                                                 mux {
1043                                                         groups = "tdm_c_din0_z";
1044                                                         function = "tdm_c";
1045                                                         bias-disable;
1046                                                 };
1047                                         };
1048
1049                                         tdm_c_din1_a_pins: tdm-c-din1-a {
1050                                                 mux {
1051                                                         groups = "tdm_c_din1_a";
1052                                                         function = "tdm_c";
1053                                                         bias-disable;
1054                                                 };
1055                                         };
1056
1057                                         tdm_c_din1_z_pins: tdm-c-din1-z {
1058                                                 mux {
1059                                                         groups = "tdm_c_din1_z";
1060                                                         function = "tdm_c";
1061                                                         bias-disable;
1062                                                 };
1063                                         };
1064
1065                                         tdm_c_din2_a_pins: tdm-c-din2-a {
1066                                                 mux {
1067                                                         groups = "tdm_c_din2_a";
1068                                                         function = "tdm_c";
1069                                                         bias-disable;
1070                                                 };
1071                                         };
1072
1073                                         eth_leds_pins: eth-leds {
1074                                                 mux {
1075                                                         groups = "eth_link_led",
1076                                                                  "eth_act_led";
1077                                                         function = "eth";
1078                                                         bias-disable;
1079                                                 };
1080                                         };
1081
1082                                         eth_pins: eth {
1083                                                 mux {
1084                                                         groups = "eth_mdio",
1085                                                                  "eth_mdc",
1086                                                                  "eth_rgmii_rx_clk",
1087                                                                  "eth_rx_dv",
1088                                                                  "eth_rxd0",
1089                                                                  "eth_rxd1",
1090                                                                  "eth_txen",
1091                                                                  "eth_txd0",
1092                                                                  "eth_txd1";
1093                                                         function = "eth";
1094                                                         drive-strength-microamp = <4000>;
1095                                                         bias-disable;
1096                                                 };
1097                                         };
1098
1099                                         eth_rgmii_pins: eth-rgmii {
1100                                                 mux {
1101                                                         groups = "eth_rxd2_rgmii",
1102                                                                  "eth_rxd3_rgmii",
1103                                                                  "eth_rgmii_tx_clk",
1104                                                                  "eth_txd2_rgmii",
1105                                                                  "eth_txd3_rgmii";
1106                                                         function = "eth";
1107                                                         drive-strength-microamp = <4000>;
1108                                                         bias-disable;
1109                                                 };
1110                                         };
1111
1112                                         tdm_c_din2_z_pins: tdm-c-din2-z {
1113                                                 mux {
1114                                                         groups = "tdm_c_din2_z";
1115                                                         function = "tdm_c";
1116                                                         bias-disable;
1117                                                 };
1118                                         };
1119
1120                                         tdm_c_din3_a_pins: tdm-c-din3-a {
1121                                                 mux {
1122                                                         groups = "tdm_c_din3_a";
1123                                                         function = "tdm_c";
1124                                                         bias-disable;
1125                                                 };
1126                                         };
1127
1128                                         tdm_c_din3_z_pins: tdm-c-din3-z {
1129                                                 mux {
1130                                                         groups = "tdm_c_din3_z";
1131                                                         function = "tdm_c";
1132                                                         bias-disable;
1133                                                 };
1134                                         };
1135
1136                                         tdm_c_dout0_a_pins: tdm-c-dout0-a {
1137                                                 mux {
1138                                                         groups = "tdm_c_dout0_a";
1139                                                         function = "tdm_c";
1140                                                         bias-disable;
1141                                                         drive-strength-microamp = <3000>;
1142                                                 };
1143                                         };
1144
1145                                         tdm_c_dout0_z_pins: tdm-c-dout0-z {
1146                                                 mux {
1147                                                         groups = "tdm_c_dout0_z";
1148                                                         function = "tdm_c";
1149                                                         bias-disable;
1150                                                         drive-strength-microamp = <3000>;
1151                                                 };
1152                                         };
1153
1154                                         tdm_c_dout1_a_pins: tdm-c-dout1-a {
1155                                                 mux {
1156                                                         groups = "tdm_c_dout1_a";
1157                                                         function = "tdm_c";
1158                                                         bias-disable;
1159                                                         drive-strength-microamp = <3000>;
1160                                                 };
1161                                         };
1162
1163                                         tdm_c_dout1_z_pins: tdm-c-dout1-z {
1164                                                 mux {
1165                                                         groups = "tdm_c_dout1_z";
1166                                                         function = "tdm_c";
1167                                                         bias-disable;
1168                                                         drive-strength-microamp = <3000>;
1169                                                 };
1170                                         };
1171
1172                                         tdm_c_dout2_a_pins: tdm-c-dout2-a {
1173                                                 mux {
1174                                                         groups = "tdm_c_dout2_a";
1175                                                         function = "tdm_c";
1176                                                         bias-disable;
1177                                                         drive-strength-microamp = <3000>;
1178                                                 };
1179                                         };
1180
1181                                         tdm_c_dout2_z_pins: tdm-c-dout2-z {
1182                                                 mux {
1183                                                         groups = "tdm_c_dout2_z";
1184                                                         function = "tdm_c";
1185                                                         bias-disable;
1186                                                         drive-strength-microamp = <3000>;
1187                                                 };
1188                                         };
1189
1190                                         tdm_c_dout3_a_pins: tdm-c-dout3-a {
1191                                                 mux {
1192                                                         groups = "tdm_c_dout3_a";
1193                                                         function = "tdm_c";
1194                                                         bias-disable;
1195                                                         drive-strength-microamp = <3000>;
1196                                                 };
1197                                         };
1198
1199                                         tdm_c_dout3_z_pins: tdm-c-dout3-z {
1200                                                 mux {
1201                                                         groups = "tdm_c_dout3_z";
1202                                                         function = "tdm_c";
1203                                                         bias-disable;
1204                                                         drive-strength-microamp = <3000>;
1205                                                 };
1206                                         };
1207
1208                                         tdm_c_fs_a_pins: tdm-c-fs-a {
1209                                                 mux {
1210                                                         groups = "tdm_c_fs_a";
1211                                                         function = "tdm_c";
1212                                                         bias-disable;
1213                                                         drive-strength-microamp = <3000>;
1214                                                 };
1215                                         };
1216
1217                                         tdm_c_fs_z_pins: tdm-c-fs-z {
1218                                                 mux {
1219                                                         groups = "tdm_c_fs_z";
1220                                                         function = "tdm_c";
1221                                                         bias-disable;
1222                                                         drive-strength-microamp = <3000>;
1223                                                 };
1224                                         };
1225
1226                                         tdm_c_sclk_a_pins: tdm-c-sclk-a {
1227                                                 mux {
1228                                                         groups = "tdm_c_sclk_a";
1229                                                         function = "tdm_c";
1230                                                         bias-disable;
1231                                                         drive-strength-microamp = <3000>;
1232                                                 };
1233                                         };
1234
1235                                         tdm_c_sclk_z_pins: tdm-c-sclk-z {
1236                                                 mux {
1237                                                         groups = "tdm_c_sclk_z";
1238                                                         function = "tdm_c";
1239                                                         bias-disable;
1240                                                         drive-strength-microamp = <3000>;
1241                                                 };
1242                                         };
1243
1244                                         tdm_c_slv_fs_a_pins: tdm-c-slv-fs-a {
1245                                                 mux {
1246                                                         groups = "tdm_c_slv_fs_a";
1247                                                         function = "tdm_c";
1248                                                         bias-disable;
1249                                                 };
1250                                         };
1251
1252                                         tdm_c_slv_fs_z_pins: tdm-c-slv-fs-z {
1253                                                 mux {
1254                                                         groups = "tdm_c_slv_fs_z";
1255                                                         function = "tdm_c";
1256                                                         bias-disable;
1257                                                 };
1258                                         };
1259
1260                                         tdm_c_slv_sclk_a_pins: tdm-c-slv-sclk-a {
1261                                                 mux {
1262                                                         groups = "tdm_c_slv_sclk_a";
1263                                                         function = "tdm_c";
1264                                                         bias-disable;
1265                                                 };
1266                                         };
1267
1268                                         tdm_c_slv_sclk_z_pins: tdm-c-slv-sclk-z {
1269                                                 mux {
1270                                                         groups = "tdm_c_slv_sclk_z";
1271                                                         function = "tdm_c";
1272                                                         bias-disable;
1273                                                 };
1274                                         };
1275
1276                                         uart_a_pins: uart-a {
1277                                                 mux {
1278                                                         groups = "uart_a_tx",
1279                                                                  "uart_a_rx";
1280                                                         function = "uart_a";
1281                                                         bias-disable;
1282                                                 };
1283                                         };
1284
1285                                         uart_a_cts_rts_pins: uart-a-cts-rts {
1286                                                 mux {
1287                                                         groups = "uart_a_cts",
1288                                                                  "uart_a_rts";
1289                                                         function = "uart_a";
1290                                                         bias-disable;
1291                                                 };
1292                                         };
1293
1294                                         uart_b_pins: uart-b {
1295                                                 mux {
1296                                                         groups = "uart_b_tx",
1297                                                                  "uart_b_rx";
1298                                                         function = "uart_b";
1299                                                         bias-disable;
1300                                                 };
1301                                         };
1302
1303                                         uart_c_pins: uart-c {
1304                                                 mux {
1305                                                         groups = "uart_c_tx",
1306                                                                  "uart_c_rx";
1307                                                         function = "uart_c";
1308                                                         bias-disable;
1309                                                 };
1310                                         };
1311
1312                                         uart_c_cts_rts_pins: uart-c-cts-rts {
1313                                                 mux {
1314                                                         groups = "uart_c_cts",
1315                                                                  "uart_c_rts";
1316                                                         function = "uart_c";
1317                                                         bias-disable;
1318                                                 };
1319                                         };
1320                                 };
1321                         };
1322
1323                         usb2_phy0: phy@36000 {
1324                                 compatible = "amlogic,g12a-usb2-phy";
1325                                 reg = <0x0 0x36000 0x0 0x2000>;
1326                                 clocks = <&xtal>;
1327                                 clock-names = "xtal";
1328                                 resets = <&reset RESET_USB_PHY20>;
1329                                 reset-names = "phy";
1330                                 #phy-cells = <0>;
1331                         };
1332
1333                         dmc: bus@38000 {
1334                                 compatible = "simple-bus";
1335                                 reg = <0x0 0x38000 0x0 0x400>;
1336                                 #address-cells = <2>;
1337                                 #size-cells = <2>;
1338                                 ranges = <0x0 0x0 0x0 0x38000 0x0 0x400>;
1339
1340                                 canvas: video-lut@48 {
1341                                         compatible = "amlogic,canvas";
1342                                         reg = <0x0 0x48 0x0 0x14>;
1343                                 };
1344                         };
1345
1346                         usb2_phy1: phy@3a000 {
1347                                 compatible = "amlogic,g12a-usb2-phy";
1348                                 reg = <0x0 0x3a000 0x0 0x2000>;
1349                                 clocks = <&xtal>;
1350                                 clock-names = "xtal";
1351                                 resets = <&reset RESET_USB_PHY21>;
1352                                 reset-names = "phy";
1353                                 #phy-cells = <0>;
1354                         };
1355
1356                         hiu: bus@3c000 {
1357                                 compatible = "simple-bus";
1358                                 reg = <0x0 0x3c000 0x0 0x1400>;
1359                                 #address-cells = <2>;
1360                                 #size-cells = <2>;
1361                                 ranges = <0x0 0x0 0x0 0x3c000 0x0 0x1400>;
1362
1363                                 hhi: system-controller@0 {
1364                                         compatible = "amlogic,meson-gx-hhi-sysctrl",
1365                                                      "simple-mfd", "syscon";
1366                                         reg = <0 0 0 0x400>;
1367
1368                                         clkc: clock-controller {
1369                                                 compatible = "amlogic,g12a-clkc";
1370                                                 #clock-cells = <1>;
1371                                                 clocks = <&xtal>;
1372                                                 clock-names = "xtal";
1373                                         };
1374
1375                                         pwrc: power-controller {
1376                                                 compatible = "amlogic,meson-g12a-pwrc";
1377                                                 #power-domain-cells = <1>;
1378                                                 amlogic,ao-sysctrl = <&rti>;
1379                                                 resets = <&reset RESET_VIU>,
1380                                                          <&reset RESET_VENC>,
1381                                                          <&reset RESET_VCBUS>,
1382                                                          <&reset RESET_BT656>,
1383                                                          <&reset RESET_RDMA>,
1384                                                          <&reset RESET_VENCI>,
1385                                                          <&reset RESET_VENCP>,
1386                                                          <&reset RESET_VDAC>,
1387                                                          <&reset RESET_VDI6>,
1388                                                          <&reset RESET_VENCL>,
1389                                                          <&reset RESET_VID_LOCK>;
1390                                                 reset-names = "viu", "venc", "vcbus", "bt656",
1391                                                               "rdma", "venci", "vencp", "vdac",
1392                                                               "vdi6", "vencl", "vid_lock";
1393                                                 clocks = <&clkc CLKID_VPU>,
1394                                                          <&clkc CLKID_VAPB>;
1395                                                 clock-names = "vpu", "vapb";
1396                                                 /*
1397                                                  * VPU clocking is provided by two identical clock paths
1398                                                  * VPU_0 and VPU_1 muxed to a single clock by a glitch
1399                                                  * free mux to safely change frequency while running.
1400                                                  * Same for VAPB but with a final gate after the glitch free mux.
1401                                                  */
1402                                                 assigned-clocks = <&clkc CLKID_VPU_0_SEL>,
1403                                                                   <&clkc CLKID_VPU_0>,
1404                                                                   <&clkc CLKID_VPU>, /* Glitch free mux */
1405                                                                   <&clkc CLKID_VAPB_0_SEL>,
1406                                                                   <&clkc CLKID_VAPB_0>,
1407                                                                   <&clkc CLKID_VAPB_SEL>; /* Glitch free mux */
1408                                                 assigned-clock-parents = <&clkc CLKID_FCLK_DIV3>,
1409                                                                          <0>, /* Do Nothing */
1410                                                                          <&clkc CLKID_VPU_0>,
1411                                                                          <&clkc CLKID_FCLK_DIV4>,
1412                                                                          <0>, /* Do Nothing */
1413                                                                          <&clkc CLKID_VAPB_0>;
1414                                                 assigned-clock-rates = <0>, /* Do Nothing */
1415                                                                        <666666666>,
1416                                                                        <0>, /* Do Nothing */
1417                                                                        <0>, /* Do Nothing */
1418                                                                        <250000000>,
1419                                                                        <0>; /* Do Nothing */
1420                                         };
1421                                 };
1422                         };
1423
1424                         usb3_pcie_phy: phy@46000 {
1425                                 compatible = "amlogic,g12a-usb3-pcie-phy";
1426                                 reg = <0x0 0x46000 0x0 0x2000>;
1427                                 clocks = <&clkc CLKID_PCIE_PLL>;
1428                                 clock-names = "ref_clk";
1429                                 resets = <&reset RESET_PCIE_PHY>;
1430                                 reset-names = "phy";
1431                                 assigned-clocks = <&clkc CLKID_PCIE_PLL>;
1432                                 assigned-clock-rates = <100000000>;
1433                                 #phy-cells = <1>;
1434                         };
1435
1436                         eth_phy: mdio-multiplexer@4c000 {
1437                                 compatible = "amlogic,g12a-mdio-mux";
1438                                 reg = <0x0 0x4c000 0x0 0xa4>;
1439                                 clocks = <&clkc CLKID_ETH_PHY>,
1440                                          <&xtal>,
1441                                          <&clkc CLKID_MPLL_50M>;
1442                                 clock-names = "pclk", "clkin0", "clkin1";
1443                                 mdio-parent-bus = <&mdio0>;
1444                                 #address-cells = <1>;
1445                                 #size-cells = <0>;
1446
1447                                 ext_mdio: mdio@0 {
1448                                         reg = <0>;
1449                                         #address-cells = <1>;
1450                                         #size-cells = <0>;
1451                                 };
1452
1453                                 int_mdio: mdio@1 {
1454                                         reg = <1>;
1455                                         #address-cells = <1>;
1456                                         #size-cells = <0>;
1457
1458                                         internal_ephy: ethernet_phy@8 {
1459                                                 compatible = "ethernet-phy-id0180.3301",
1460                                                              "ethernet-phy-ieee802.3-c22";
1461                                                 interrupts = <GIC_SPI 9 IRQ_TYPE_LEVEL_HIGH>;
1462                                                 reg = <8>;
1463                                                 max-speed = <100>;
1464                                         };
1465                                 };
1466                         };
1467                 };
1468
1469                 aobus: bus@ff800000 {
1470                         compatible = "simple-bus";
1471                         reg = <0x0 0xff800000 0x0 0x100000>;
1472                         #address-cells = <2>;
1473                         #size-cells = <2>;
1474                         ranges = <0x0 0x0 0x0 0xff800000 0x0 0x100000>;
1475
1476                         rti: sys-ctrl@0 {
1477                                 compatible = "amlogic,meson-gx-ao-sysctrl",
1478                                              "simple-mfd", "syscon";
1479                                 reg = <0x0 0x0 0x0 0x100>;
1480                                 #address-cells = <2>;
1481                                 #size-cells = <2>;
1482                                 ranges = <0x0 0x0 0x0 0x0 0x0 0x100>;
1483
1484                                 clkc_AO: clock-controller {
1485                                         compatible = "amlogic,meson-g12a-aoclkc";
1486                                         #clock-cells = <1>;
1487                                         #reset-cells = <1>;
1488                                         clocks = <&xtal>, <&clkc CLKID_CLK81>;
1489                                         clock-names = "xtal", "mpeg-clk";
1490                                 };
1491
1492                                 ao_pinctrl: pinctrl@14 {
1493                                         compatible = "amlogic,meson-g12a-aobus-pinctrl";
1494                                         #address-cells = <2>;
1495                                         #size-cells = <2>;
1496                                         ranges;
1497
1498                                         gpio_ao: bank@14 {
1499                                                 reg = <0x0 0x14 0x0 0x8>,
1500                                                       <0x0 0x1c 0x0 0x8>,
1501                                                       <0x0 0x24 0x0 0x14>;
1502                                                 reg-names = "mux",
1503                                                             "ds",
1504                                                             "gpio";
1505                                                 gpio-controller;
1506                                                 #gpio-cells = <2>;
1507                                                 gpio-ranges = <&ao_pinctrl 0 0 15>;
1508                                         };
1509
1510                                         i2c_ao_sck_pins: i2c_ao_sck_pins {
1511                                                 mux {
1512                                                         groups = "i2c_ao_sck";
1513                                                         function = "i2c_ao";
1514                                                         bias-disable;
1515                                                         drive-strength-microamp = <3000>;
1516                                                 };
1517                                         };
1518
1519                                         i2c_ao_sda_pins: i2c_ao_sda {
1520                                                 mux {
1521                                                         groups = "i2c_ao_sda";
1522                                                         function = "i2c_ao";
1523                                                         bias-disable;
1524                                                         drive-strength-microamp = <3000>;
1525                                                 };
1526                                         };
1527
1528                                         i2c_ao_sck_e_pins: i2c_ao_sck_e {
1529                                                 mux {
1530                                                         groups = "i2c_ao_sck_e";
1531                                                         function = "i2c_ao";
1532                                                         bias-disable;
1533                                                         drive-strength-microamp = <3000>;
1534                                                 };
1535                                         };
1536
1537                                         i2c_ao_sda_e_pins: i2c_ao_sda_e {
1538                                                 mux {
1539                                                         groups = "i2c_ao_sda_e";
1540                                                         function = "i2c_ao";
1541                                                         bias-disable;
1542                                                         drive-strength-microamp = <3000>;
1543                                                 };
1544                                         };
1545
1546                                         mclk0_ao_pins: mclk0-ao {
1547                                                 mux {
1548                                                         groups = "mclk0_ao";
1549                                                         function = "mclk0_ao";
1550                                                         bias-disable;
1551                                                         drive-strength-microamp = <3000>;
1552                                                 };
1553                                         };
1554
1555                                         tdm_ao_b_din0_pins: tdm-ao-b-din0 {
1556                                                 mux {
1557                                                         groups = "tdm_ao_b_din0";
1558                                                         function = "tdm_ao_b";
1559                                                         bias-disable;
1560                                                 };
1561                                         };
1562
1563                                         spdif_ao_out_pins: spdif-ao-out {
1564                                                 mux {
1565                                                         groups = "spdif_ao_out";
1566                                                         function = "spdif_ao_out";
1567                                                         drive-strength-microamp = <500>;
1568                                                         bias-disable;
1569                                                 };
1570                                         };
1571
1572                                         tdm_ao_b_din1_pins: tdm-ao-b-din1 {
1573                                                 mux {
1574                                                         groups = "tdm_ao_b_din1";
1575                                                         function = "tdm_ao_b";
1576                                                         bias-disable;
1577                                                 };
1578                                         };
1579
1580                                         tdm_ao_b_din2_pins: tdm-ao-b-din2 {
1581                                                 mux {
1582                                                         groups = "tdm_ao_b_din2";
1583                                                         function = "tdm_ao_b";
1584                                                         bias-disable;
1585                                                 };
1586                                         };
1587
1588                                         tdm_ao_b_dout0_pins: tdm-ao-b-dout0 {
1589                                                 mux {
1590                                                         groups = "tdm_ao_b_dout0";
1591                                                         function = "tdm_ao_b";
1592                                                         bias-disable;
1593                                                         drive-strength-microamp = <3000>;
1594                                                 };
1595                                         };
1596
1597                                         tdm_ao_b_dout1_pins: tdm-ao-b-dout1 {
1598                                                 mux {
1599                                                         groups = "tdm_ao_b_dout1";
1600                                                         function = "tdm_ao_b";
1601                                                         bias-disable;
1602                                                         drive-strength-microamp = <3000>;
1603                                                 };
1604                                         };
1605
1606                                         tdm_ao_b_dout2_pins: tdm-ao-b-dout2 {
1607                                                 mux {
1608                                                         groups = "tdm_ao_b_dout2";
1609                                                         function = "tdm_ao_b";
1610                                                         bias-disable;
1611                                                         drive-strength-microamp = <3000>;
1612                                                 };
1613                                         };
1614
1615                                         tdm_ao_b_fs_pins: tdm-ao-b-fs {
1616                                                 mux {
1617                                                         groups = "tdm_ao_b_fs";
1618                                                         function = "tdm_ao_b";
1619                                                         bias-disable;
1620                                                         drive-strength-microamp = <3000>;
1621                                                 };
1622                                         };
1623
1624                                         tdm_ao_b_sclk_pins: tdm-ao-b-sclk {
1625                                                 mux {
1626                                                         groups = "tdm_ao_b_sclk";
1627                                                         function = "tdm_ao_b";
1628                                                         bias-disable;
1629                                                         drive-strength-microamp = <3000>;
1630                                                 };
1631                                         };
1632
1633                                         tdm_ao_b_slv_fs_pins: tdm-ao-b-slv-fs {
1634                                                 mux {
1635                                                         groups = "tdm_ao_b_slv_fs";
1636                                                         function = "tdm_ao_b";
1637                                                         bias-disable;
1638                                                 };
1639                                         };
1640
1641                                         tdm_ao_b_slv_sclk_pins: tdm-ao-b-slv-sclk {
1642                                                 mux {
1643                                                         groups = "tdm_ao_b_slv_sclk";
1644                                                         function = "tdm_ao_b";
1645                                                         bias-disable;
1646                                                 };
1647                                         };
1648
1649                                         uart_ao_a_pins: uart-a-ao {
1650                                                 mux {
1651                                                         groups = "uart_ao_a_tx",
1652                                                                  "uart_ao_a_rx";
1653                                                         function = "uart_ao_a";
1654                                                         bias-disable;
1655                                                 };
1656                                         };
1657
1658                                         uart_ao_a_cts_rts_pins: uart-ao-a-cts-rts {
1659                                                 mux {
1660                                                         groups = "uart_ao_a_cts",
1661                                                                  "uart_ao_a_rts";
1662                                                         function = "uart_ao_a";
1663                                                         bias-disable;
1664                                                 };
1665                                         };
1666
1667                                         pwm_a_e_pins: pwm-a-e {
1668                                                 mux {
1669                                                         groups = "pwm_a_e";
1670                                                         function = "pwm_a_e";
1671                                                         bias-disable;
1672                                                 };
1673                                         };
1674
1675                                         pwm_ao_a_pins: pwm-ao-a {
1676                                                 mux {
1677                                                         groups = "pwm_ao_a";
1678                                                         function = "pwm_ao_a";
1679                                                         bias-disable;
1680                                                 };
1681                                         };
1682
1683                                         pwm_ao_b_pins: pwm-ao-b {
1684                                                 mux {
1685                                                         groups = "pwm_ao_b";
1686                                                         function = "pwm_ao_b";
1687                                                         bias-disable;
1688                                                 };
1689                                         };
1690
1691                                         pwm_ao_c_4_pins: pwm-ao-c-4 {
1692                                                 mux {
1693                                                         groups = "pwm_ao_c_4";
1694                                                         function = "pwm_ao_c";
1695                                                         bias-disable;
1696                                                 };
1697                                         };
1698
1699                                         pwm_ao_c_6_pins: pwm-ao-c-6 {
1700                                                 mux {
1701                                                         groups = "pwm_ao_c_6";
1702                                                         function = "pwm_ao_c";
1703                                                         bias-disable;
1704                                                 };
1705                                         };
1706
1707                                         pwm_ao_d_5_pins: pwm-ao-d-5 {
1708                                                 mux {
1709                                                         groups = "pwm_ao_d_5";
1710                                                         function = "pwm_ao_d";
1711                                                         bias-disable;
1712                                                 };
1713                                         };
1714
1715                                         pwm_ao_d_10_pins: pwm-ao-d-10 {
1716                                                 mux {
1717                                                         groups = "pwm_ao_d_10";
1718                                                         function = "pwm_ao_d";
1719                                                         bias-disable;
1720                                                 };
1721                                         };
1722
1723                                         pwm_ao_d_e_pins: pwm-ao-d-e {
1724                                                 mux {
1725                                                         groups = "pwm_ao_d_e";
1726                                                         function = "pwm_ao_d";
1727                                                 };
1728                                         };
1729
1730                                         remote_input_ao_pins: remote-input-ao {
1731                                                 mux {
1732                                                         groups = "remote_ao_input";
1733                                                         function = "remote_ao_input";
1734                                                         bias-disable;
1735                                                 };
1736                                         };
1737                                 };
1738                         };
1739
1740                         vrtc: rtc@0a8 {
1741                                 compatible = "amlogic,meson-vrtc";
1742                                 reg = <0x0 0x000a8 0x0 0x4>;
1743                         };
1744
1745                         cec_AO: cec@100 {
1746                                 compatible = "amlogic,meson-gx-ao-cec";
1747                                 reg = <0x0 0x00100 0x0 0x14>;
1748                                 interrupts = <GIC_SPI 199 IRQ_TYPE_EDGE_RISING>;
1749                                 clocks = <&clkc_AO CLKID_AO_CEC>;
1750                                 clock-names = "core";
1751                                 status = "disabled";
1752                         };
1753
1754                         sec_AO: ao-secure@140 {
1755                                 compatible = "amlogic,meson-gx-ao-secure", "syscon";
1756                                 reg = <0x0 0x140 0x0 0x140>;
1757                                 amlogic,has-chip-id;
1758                         };
1759
1760                         cecb_AO: cec@280 {
1761                                 compatible = "amlogic,meson-g12a-ao-cec";
1762                                 reg = <0x0 0x00280 0x0 0x1c>;
1763                                 interrupts = <GIC_SPI 203 IRQ_TYPE_EDGE_RISING>;
1764                                 clocks = <&clkc_AO CLKID_AO_CTS_OSCIN>;
1765                                 clock-names = "oscin";
1766                                 status = "disabled";
1767                         };
1768
1769                         pwm_AO_cd: pwm@2000 {
1770                                 compatible = "amlogic,meson-g12a-ao-pwm-cd";
1771                                 reg = <0x0 0x2000 0x0 0x20>;
1772                                 #pwm-cells = <3>;
1773                                 status = "disabled";
1774                         };
1775
1776                         uart_AO: serial@3000 {
1777                                 compatible = "amlogic,meson-gx-uart",
1778                                              "amlogic,meson-ao-uart";
1779                                 reg = <0x0 0x3000 0x0 0x18>;
1780                                 interrupts = <GIC_SPI 193 IRQ_TYPE_EDGE_RISING>;
1781                                 clocks = <&xtal>, <&clkc_AO CLKID_AO_UART>, <&xtal>;
1782                                 clock-names = "xtal", "pclk", "baud";
1783                                 status = "disabled";
1784                         };
1785
1786                         uart_AO_B: serial@4000 {
1787                                 compatible = "amlogic,meson-gx-uart",
1788                                              "amlogic,meson-ao-uart";
1789                                 reg = <0x0 0x4000 0x0 0x18>;
1790                                 interrupts = <GIC_SPI 197 IRQ_TYPE_EDGE_RISING>;
1791                                 clocks = <&xtal>, <&clkc_AO CLKID_AO_UART2>, <&xtal>;
1792                                 clock-names = "xtal", "pclk", "baud";
1793                                 status = "disabled";
1794                         };
1795
1796                         i2c_AO: i2c@5000 {
1797                                 compatible = "amlogic,meson-axg-i2c";
1798                                 status = "disabled";
1799                                 reg = <0x0 0x05000 0x0 0x20>;
1800                                 interrupts = <GIC_SPI 195 IRQ_TYPE_EDGE_RISING>;
1801                                 #address-cells = <1>;
1802                                 #size-cells = <0>;
1803                                 clocks = <&clkc CLKID_I2C>;
1804                         };
1805
1806                         pwm_AO_ab: pwm@7000 {
1807                                 compatible = "amlogic,meson-g12a-ao-pwm-ab";
1808                                 reg = <0x0 0x7000 0x0 0x20>;
1809                                 #pwm-cells = <3>;
1810                                 status = "disabled";
1811                         };
1812
1813                         ir: ir@8000 {
1814                                 compatible = "amlogic,meson-gxbb-ir";
1815                                 reg = <0x0 0x8000 0x0 0x20>;
1816                                 interrupts = <GIC_SPI 196 IRQ_TYPE_EDGE_RISING>;
1817                                 status = "disabled";
1818                         };
1819
1820                         saradc: adc@9000 {
1821                                 compatible = "amlogic,meson-g12a-saradc",
1822                                              "amlogic,meson-saradc";
1823                                 reg = <0x0 0x9000 0x0 0x48>;
1824                                 #io-channel-cells = <1>;
1825                                 interrupts = <GIC_SPI 200 IRQ_TYPE_EDGE_RISING>;
1826                                 clocks = <&xtal>,
1827                                          <&clkc_AO CLKID_AO_SAR_ADC>,
1828                                          <&clkc_AO CLKID_AO_SAR_ADC_CLK>,
1829                                          <&clkc_AO CLKID_AO_SAR_ADC_SEL>;
1830                                 clock-names = "clkin", "core", "adc_clk", "adc_sel";
1831                                 status = "disabled";
1832                         };
1833                 };
1834
1835                 vpu: vpu@ff900000 {
1836                         compatible = "amlogic,meson-g12a-vpu";
1837                         reg = <0x0 0xff900000 0x0 0x100000>,
1838                               <0x0 0xff63c000 0x0 0x1000>;
1839                         reg-names = "vpu", "hhi";
1840                         interrupts = <GIC_SPI 3 IRQ_TYPE_EDGE_RISING>;
1841                         #address-cells = <1>;
1842                         #size-cells = <0>;
1843                         amlogic,canvas = <&canvas>;
1844
1845                         /* CVBS VDAC output port */
1846                         cvbs_vdac_port: port@0 {
1847                                 reg = <0>;
1848                         };
1849
1850                         /* HDMI-TX output port */
1851                         hdmi_tx_port: port@1 {
1852                                 reg = <1>;
1853
1854                                 hdmi_tx_out: endpoint {
1855                                         remote-endpoint = <&hdmi_tx_in>;
1856                                 };
1857                         };
1858                 };
1859
1860                 gic: interrupt-controller@ffc01000 {
1861                         compatible = "arm,gic-400";
1862                         reg = <0x0 0xffc01000 0 0x1000>,
1863                               <0x0 0xffc02000 0 0x2000>,
1864                               <0x0 0xffc04000 0 0x2000>,
1865                               <0x0 0xffc06000 0 0x2000>;
1866                         interrupt-controller;
1867                         interrupts = <GIC_PPI 9
1868                                 (GIC_CPU_MASK_SIMPLE(8) | IRQ_TYPE_LEVEL_HIGH)>;
1869                         #interrupt-cells = <3>;
1870                         #address-cells = <0>;
1871                 };
1872
1873                 cbus: bus@ffd00000 {
1874                         compatible = "simple-bus";
1875                         reg = <0x0 0xffd00000 0x0 0x100000>;
1876                         #address-cells = <2>;
1877                         #size-cells = <2>;
1878                         ranges = <0x0 0x0 0x0 0xffd00000 0x0 0x100000>;
1879
1880                         reset: reset-controller@1004 {
1881                                 compatible = "amlogic,meson-axg-reset";
1882                                 reg = <0x0 0x1004 0x0 0x9c>;
1883                                 #reset-cells = <1>;
1884                         };
1885
1886                         gpio_intc: interrupt-controller@f080 {
1887                                 compatible = "amlogic,meson-g12a-gpio-intc",
1888                                              "amlogic,meson-gpio-intc";
1889                                 reg = <0x0 0xf080 0x0 0x10>;
1890                                 interrupt-controller;
1891                                 #interrupt-cells = <2>;
1892                                 amlogic,channel-interrupts = <64 65 66 67 68 69 70 71>;
1893                         };
1894
1895                         pwm_ef: pwm@19000 {
1896                                 compatible = "amlogic,meson-g12a-ee-pwm";
1897                                 reg = <0x0 0x19000 0x0 0x20>;
1898                                 #pwm-cells = <3>;
1899                                 status = "disabled";
1900                         };
1901
1902                         pwm_cd: pwm@1a000 {
1903                                 compatible = "amlogic,meson-g12a-ee-pwm";
1904                                 reg = <0x0 0x1a000 0x0 0x20>;
1905                                 #pwm-cells = <3>;
1906                                 status = "disabled";
1907                         };
1908
1909                         pwm_ab: pwm@1b000 {
1910                                 compatible = "amlogic,meson-g12a-ee-pwm";
1911                                 reg = <0x0 0x1b000 0x0 0x20>;
1912                                 #pwm-cells = <3>;
1913                                 status = "disabled";
1914                         };
1915
1916                         i2c3: i2c@1c000 {
1917                                 compatible = "amlogic,meson-axg-i2c";
1918                                 status = "disabled";
1919                                 reg = <0x0 0x1c000 0x0 0x20>;
1920                                 interrupts = <GIC_SPI 39 IRQ_TYPE_EDGE_RISING>;
1921                                 #address-cells = <1>;
1922                                 #size-cells = <0>;
1923                                 clocks = <&clkc CLKID_I2C>;
1924                         };
1925
1926                         i2c2: i2c@1d000 {
1927                                 compatible = "amlogic,meson-axg-i2c";
1928                                 status = "disabled";
1929                                 reg = <0x0 0x1d000 0x0 0x20>;
1930                                 interrupts = <GIC_SPI 215 IRQ_TYPE_EDGE_RISING>;
1931                                 #address-cells = <1>;
1932                                 #size-cells = <0>;
1933                                 clocks = <&clkc CLKID_I2C>;
1934                         };
1935
1936                         i2c1: i2c@1e000 {
1937                                 compatible = "amlogic,meson-axg-i2c";
1938                                 status = "disabled";
1939                                 reg = <0x0 0x1e000 0x0 0x20>;
1940                                 interrupts = <GIC_SPI 214 IRQ_TYPE_EDGE_RISING>;
1941                                 #address-cells = <1>;
1942                                 #size-cells = <0>;
1943                                 clocks = <&clkc CLKID_I2C>;
1944                         };
1945
1946                         i2c0: i2c@1f000 {
1947                                 compatible = "amlogic,meson-axg-i2c";
1948                                 status = "disabled";
1949                                 reg = <0x0 0x1f000 0x0 0x20>;
1950                                 interrupts = <GIC_SPI 21 IRQ_TYPE_EDGE_RISING>;
1951                                 #address-cells = <1>;
1952                                 #size-cells = <0>;
1953                                 clocks = <&clkc CLKID_I2C>;
1954                         };
1955
1956                         clk_msr: clock-measure@18000 {
1957                                 compatible = "amlogic,meson-g12a-clk-measure";
1958                                 reg = <0x0 0x18000 0x0 0x10>;
1959                         };
1960
1961                         uart_C: serial@22000 {
1962                                 compatible = "amlogic,meson-gx-uart";
1963                                 reg = <0x0 0x22000 0x0 0x18>;
1964                                 interrupts = <GIC_SPI 93 IRQ_TYPE_EDGE_RISING>;
1965                                 clocks = <&xtal>, <&clkc CLKID_UART2>, <&xtal>;
1966                                 clock-names = "xtal", "pclk", "baud";
1967                                 status = "disabled";
1968                         };
1969
1970                         uart_B: serial@23000 {
1971                                 compatible = "amlogic,meson-gx-uart";
1972                                 reg = <0x0 0x23000 0x0 0x18>;
1973                                 interrupts = <GIC_SPI 75 IRQ_TYPE_EDGE_RISING>;
1974                                 clocks = <&xtal>, <&clkc CLKID_UART1>, <&xtal>;
1975                                 clock-names = "xtal", "pclk", "baud";
1976                                 status = "disabled";
1977                         };
1978
1979                         uart_A: serial@24000 {
1980                                 compatible = "amlogic,meson-gx-uart";
1981                                 reg = <0x0 0x24000 0x0 0x18>;
1982                                 interrupts = <GIC_SPI 26 IRQ_TYPE_EDGE_RISING>;
1983                                 clocks = <&xtal>, <&clkc CLKID_UART0>, <&xtal>;
1984                                 clock-names = "xtal", "pclk", "baud";
1985                                 status = "disabled";
1986                         };
1987                 };
1988
1989                 sd_emmc_a: sd@ffe03000 {
1990                         compatible = "amlogic,meson-axg-mmc";
1991                         reg = <0x0 0xffe03000 0x0 0x800>;
1992                         interrupts = <GIC_SPI 189 IRQ_TYPE_EDGE_RISING>;
1993                         status = "disabled";
1994                         clocks = <&clkc CLKID_SD_EMMC_A>,
1995                                  <&clkc CLKID_SD_EMMC_A_CLK0>,
1996                                  <&clkc CLKID_FCLK_DIV2>;
1997                         clock-names = "core", "clkin0", "clkin1";
1998                         resets = <&reset RESET_SD_EMMC_A>;
1999                 };
2000
2001                 sd_emmc_b: sd@ffe05000 {
2002                         compatible = "amlogic,meson-axg-mmc";
2003                         reg = <0x0 0xffe05000 0x0 0x800>;
2004                         interrupts = <GIC_SPI 190 IRQ_TYPE_EDGE_RISING>;
2005                         status = "disabled";
2006                         clocks = <&clkc CLKID_SD_EMMC_B>,
2007                                  <&clkc CLKID_SD_EMMC_B_CLK0>,
2008                                  <&clkc CLKID_FCLK_DIV2>;
2009                         clock-names = "core", "clkin0", "clkin1";
2010                         resets = <&reset RESET_SD_EMMC_B>;
2011                 };
2012
2013                 sd_emmc_c: mmc@ffe07000 {
2014                         compatible = "amlogic,meson-axg-mmc";
2015                         reg = <0x0 0xffe07000 0x0 0x800>;
2016                         interrupts = <GIC_SPI 191 IRQ_TYPE_EDGE_RISING>;
2017                         status = "disabled";
2018                         clocks = <&clkc CLKID_SD_EMMC_C>,
2019                                  <&clkc CLKID_SD_EMMC_C_CLK0>,
2020                                  <&clkc CLKID_FCLK_DIV2>;
2021                         clock-names = "core", "clkin0", "clkin1";
2022                         resets = <&reset RESET_SD_EMMC_C>;
2023                 };
2024
2025                 usb: usb@ffe09000 {
2026                         status = "disabled";
2027                         compatible = "amlogic,meson-g12a-usb-ctrl";
2028                         reg = <0x0 0xffe09000 0x0 0xa0>;
2029                         interrupts = <GIC_SPI 16 IRQ_TYPE_LEVEL_HIGH>;
2030                         #address-cells = <2>;
2031                         #size-cells = <2>;
2032                         ranges;
2033
2034                         clocks = <&clkc CLKID_USB>;
2035                         resets = <&reset RESET_USB>;
2036
2037                         dr_mode = "otg";
2038
2039                         phys = <&usb2_phy0>, <&usb2_phy1>,
2040                                <&usb3_pcie_phy PHY_TYPE_USB3>;
2041                         phy-names = "usb2-phy0", "usb2-phy1", "usb3-phy0";
2042
2043                         dwc2: usb@ff400000 {
2044                                 compatible = "amlogic,meson-g12a-usb", "snps,dwc2";
2045                                 reg = <0x0 0xff400000 0x0 0x40000>;
2046                                 interrupts = <GIC_SPI 31 IRQ_TYPE_LEVEL_HIGH>;
2047                                 clocks = <&clkc CLKID_USB1_DDR_BRIDGE>;
2048                                 clock-names = "ddr";
2049                                 phys = <&usb2_phy1>;
2050                                 phy-names = "usb2-phy";
2051                                 dr_mode = "peripheral";
2052                                 g-rx-fifo-size = <192>;
2053                                 g-np-tx-fifo-size = <128>;
2054                                 g-tx-fifo-size = <128 128 16 16 16>;
2055                         };
2056
2057                         dwc3: usb@ff500000 {
2058                                 compatible = "snps,dwc3";
2059                                 reg = <0x0 0xff500000 0x0 0x100000>;
2060                                 interrupts = <GIC_SPI 30 IRQ_TYPE_LEVEL_HIGH>;
2061                                 dr_mode = "host";
2062                                 snps,dis_u2_susphy_quirk;
2063                                 snps,quirk-frame-length-adjustment;
2064                         };
2065                 };
2066
2067                 mali: gpu@ffe40000 {
2068                         compatible = "amlogic,meson-g12a-mali", "arm,mali-bifrost";
2069                         reg = <0x0 0xffe40000 0x0 0x40000>;
2070                         interrupt-parent = <&gic>;
2071                         interrupts = <GIC_SPI 160 IRQ_TYPE_LEVEL_HIGH>,
2072                                      <GIC_SPI 161 IRQ_TYPE_LEVEL_HIGH>,
2073                                      <GIC_SPI 162 IRQ_TYPE_LEVEL_HIGH>;
2074                         interrupt-names = "gpu", "mmu", "job";
2075                         clocks = <&clkc CLKID_MALI>;
2076                         resets = <&reset RESET_DVALIN_CAPB3>, <&reset RESET_DVALIN>;
2077
2078                         /*
2079                          * Mali clocking is provided by two identical clock paths
2080                          * MALI_0 and MALI_1 muxed to a single clock by a glitch
2081                          * free mux to safely change frequency while running.
2082                          */
2083                         assigned-clocks = <&clkc CLKID_MALI_0_SEL>,
2084                                           <&clkc CLKID_MALI_0>,
2085                                           <&clkc CLKID_MALI>; /* Glitch free mux */
2086                         assigned-clock-parents = <&clkc CLKID_FCLK_DIV2P5>,
2087                                                  <0>, /* Do Nothing */
2088                                                  <&clkc CLKID_MALI_0>;
2089                         assigned-clock-rates = <0>, /* Do Nothing */
2090                                                <800000000>,
2091                                                <0>; /* Do Nothing */
2092                 };
2093         };
2094
2095         timer {
2096                 compatible = "arm,armv8-timer";
2097                 interrupts = <GIC_PPI 13
2098                         (GIC_CPU_MASK_RAW(0xff) | IRQ_TYPE_LEVEL_LOW)>,
2099                              <GIC_PPI 14
2100                         (GIC_CPU_MASK_RAW(0xff) | IRQ_TYPE_LEVEL_LOW)>,
2101                              <GIC_PPI 11
2102                         (GIC_CPU_MASK_RAW(0xff) | IRQ_TYPE_LEVEL_LOW)>,
2103                              <GIC_PPI 10
2104                         (GIC_CPU_MASK_RAW(0xff) | IRQ_TYPE_LEVEL_LOW)>;
2105                 arm,no-tick-in-suspend;
2106         };
2107
2108         xtal: xtal-clk {
2109                 compatible = "fixed-clock";
2110                 clock-frequency = <24000000>;
2111                 clock-output-names = "xtal";
2112                 #clock-cells = <0>;
2113         };
2114
2115 };