Debian Codegraph @

arch/arm64/boot/dts/amlogic/meson-axg.dtsi

raw
1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
2 /*
3 * Copyright (c) 2017 Amlogic, Inc. All rights reserved.
4 */
5
6 #include <dt-bindings/clock/axg-aoclkc.h>
7 #include <dt-bindings/clock/axg-audio-clkc.h>
8 #include <dt-bindings/clock/axg-clkc.h>
9 #include <dt-bindings/gpio/gpio.h>
10 #include <dt-bindings/gpio/meson-axg-gpio.h>
11 #include <dt-bindings/interrupt-controller/irq.h>
12 #include <dt-bindings/interrupt-controller/arm-gic.h>
13 #include <dt-bindings/reset/amlogic,meson-axg-audio-arb.h>
14 #include <dt-bindings/reset/amlogic,meson-axg-reset.h>
15 #include <dt-bindings/power/meson-axg-power.h>
16
17 / {
18 compatible = "amlogic,meson-axg";
19
20 interrupt-parent = <&gic>;
21 #address-cells = <2>;
22 #size-cells = <2>;
23
24 tdmif_a: audio-controller-0 {
25 compatible = "amlogic,axg-tdm-iface";
26 #sound-dai-cells = <0>;
27 sound-name-prefix = "TDM_A";
28 clocks = <&clkc_audio AUD_CLKID_MST_A_SCLK>,
29 <&clkc_audio AUD_CLKID_MST_A_LRCLK>,
30 <&clkc_audio AUD_CLKID_MST_A_MCLK>;
31 clock-names = "sclk", "lrclk", "mclk";
32 status = "disabled";
33 };
34
35 tdmif_b: audio-controller-1 {
36 compatible = "amlogic,axg-tdm-iface";
37 #sound-dai-cells = <0>;
38 sound-name-prefix = "TDM_B";
39 clocks = <&clkc_audio AUD_CLKID_MST_B_SCLK>,
40 <&clkc_audio AUD_CLKID_MST_B_LRCLK>,
41 <&clkc_audio AUD_CLKID_MST_B_MCLK>;
42 clock-names = "sclk", "lrclk", "mclk";
43 status = "disabled";
44 };
45
46 tdmif_c: audio-controller-2 {
47 compatible = "amlogic,axg-tdm-iface";
48 #sound-dai-cells = <0>;
49 sound-name-prefix = "TDM_C";
50 clocks = <&clkc_audio AUD_CLKID_MST_C_SCLK>,
51 <&clkc_audio AUD_CLKID_MST_C_LRCLK>,
52 <&clkc_audio AUD_CLKID_MST_C_MCLK>;
53 clock-names = "sclk", "lrclk", "mclk";
54 status = "disabled";
55 };
56
57 arm-pmu {
58 compatible = "arm,cortex-a53-pmu";
59 interrupts = <GIC_SPI 137 IRQ_TYPE_LEVEL_HIGH>,
60 <GIC_SPI 138 IRQ_TYPE_LEVEL_HIGH>,
61 <GIC_SPI 153 IRQ_TYPE_LEVEL_HIGH>,
62 <GIC_SPI 154 IRQ_TYPE_LEVEL_HIGH>;
63 interrupt-affinity = <&cpu0>, <&cpu1>, <&cpu2>, <&cpu3>;
64 };
65
66 cpus {
67 #address-cells = <0x2>;
68 #size-cells = <0x0>;
69
70 cpu0: cpu@0 {
71 device_type = "cpu";
72 compatible = "arm,cortex-a53";
73 reg = <0x0 0x0>;
74 enable-method = "psci";
75 d-cache-line-size = <32>;
76 d-cache-size = <0x8000>;
77 d-cache-sets = <32>;
78 i-cache-line-size = <32>;
79 i-cache-size = <0x8000>;
80 i-cache-sets = <32>;
81 next-level-cache = <&l2>;
82 clocks = <&scpi_dvfs 0>;
83 dynamic-power-coefficient = <140>;
84 #cooling-cells = <2>;
85 };
86
87 cpu1: cpu@1 {
88 device_type = "cpu";
89 compatible = "arm,cortex-a53";
90 reg = <0x0 0x1>;
91 enable-method = "psci";
92 d-cache-line-size = <32>;
93 d-cache-size = <0x8000>;
94 d-cache-sets = <32>;
95 i-cache-line-size = <32>;
96 i-cache-size = <0x8000>;
97 i-cache-sets = <32>;
98 next-level-cache = <&l2>;
99 clocks = <&scpi_dvfs 0>;
100 dynamic-power-coefficient = <140>;
101 #cooling-cells = <2>;
102 };
103
104 cpu2: cpu@2 {
105 device_type = "cpu";
106 compatible = "arm,cortex-a53";
107 reg = <0x0 0x2>;
108 enable-method = "psci";
109 d-cache-line-size = <32>;
110 d-cache-size = <0x8000>;
111 d-cache-sets = <32>;
112 i-cache-line-size = <32>;
113 i-cache-size = <0x8000>;
114 i-cache-sets = <32>;
115 next-level-cache = <&l2>;
116 clocks = <&scpi_dvfs 0>;
117 dynamic-power-coefficient = <140>;
118 #cooling-cells = <2>;
119 };
120
121 cpu3: cpu@3 {
122 device_type = "cpu";
123 compatible = "arm,cortex-a53";
124 reg = <0x0 0x3>;
125 enable-method = "psci";
126 d-cache-line-size = <32>;
127 d-cache-size = <0x8000>;
128 d-cache-sets = <32>;
129 i-cache-line-size = <32>;
130 i-cache-size = <0x8000>;
131 i-cache-sets = <32>;
132 next-level-cache = <&l2>;
133 clocks = <&scpi_dvfs 0>;
134 dynamic-power-coefficient = <140>;
135 #cooling-cells = <2>;
136 };
137
138 l2: l2-cache0 {
139 compatible = "cache";
140 cache-level = <2>;
141 cache-unified;
142 cache-size = <0x80000>; /* L2. 512 KB */
143 cache-line-size = <64>;
144 cache-sets = <512>;
145 };
146 };
147
148 sm: secure-monitor {
149 compatible = "amlogic,meson-gxbb-sm";
150 };
151
152 efuse: efuse {
153 compatible = "amlogic,meson-gxbb-efuse";
154 clocks = <&clkc CLKID_EFUSE>;
155 #address-cells = <1>;
156 #size-cells = <1>;
157 read-only;
158 secure-monitor = <&sm>;
159 };
160
161 psci {
162 compatible = "arm,psci-1.0";
163 method = "smc";
164 };
165
166 reserved-memory {
167 #address-cells = <2>;
168 #size-cells = <2>;
169 ranges;
170
171 /* 16 MiB reserved for Hardware ROM Firmware */
172 hwrom_reserved: hwrom@0 {
173 reg = <0x0 0x0 0x0 0x1000000>;
174 no-map;
175 };
176
177 /* Alternate 3 MiB reserved for ARM Trusted Firmware (BL31) */
178 secmon_reserved: secmon@5000000 {
179 reg = <0x0 0x05000000 0x0 0x300000>;
180 no-map;
181 };
182 };
183
184 scpi {
185 compatible = "arm,scpi-pre-1.0";
186 mboxes = <&mailbox 1 &mailbox 2>;
187 shmem = <&cpu_scp_lpri &cpu_scp_hpri>;
188
189 scpi_clocks: clocks {
190 compatible = "arm,scpi-clocks";
191
192 scpi_dvfs: clocks-0 {
193 compatible = "arm,scpi-dvfs-clocks";
194 #clock-cells = <1>;
195 clock-indices = <0>;
196 clock-output-names = "vcpu";
197 };
198 };
199
200 scpi_sensors: sensors {
201 compatible = "amlogic,meson-gxbb-scpi-sensors", "arm,scpi-sensors";
202 #thermal-sensor-cells = <1>;
203 };
204 };
205
206 soc {
207 compatible = "simple-bus";
208 #address-cells = <2>;
209 #size-cells = <2>;
210 ranges;
211
212 pcieA: pcie@f9800000 {
213 compatible = "amlogic,axg-pcie", "snps,dw-pcie";
214 reg = <0x0 0xf9800000 0x0 0x400000>,
215 <0x0 0xff646000 0x0 0x2000>,
216 <0x0 0xf9f00000 0x0 0x100000>;
217 reg-names = "dbi", "cfg", "config";
218 interrupts = <GIC_SPI 177 IRQ_TYPE_EDGE_RISING>;
219 #interrupt-cells = <1>;
220 interrupt-map-mask = <0 0 0 0>;
221 interrupt-map = <0 0 0 0 &gic GIC_SPI 179 IRQ_TYPE_EDGE_RISING>;
222 bus-range = <0x0 0xff>;
223 #address-cells = <3>;
224 #size-cells = <2>;
225 device_type = "pci";
226 ranges = <0x82000000 0 0xf9c00000 0x0 0xf9c00000 0 0x00300000>;
227
228 clocks = <&clkc CLKID_USB>, <&clkc CLKID_PCIE_A>, <&clkc CLKID_PCIE_CML_EN0>;
229 clock-names = "general", "pclk", "port";
230 resets = <&reset RESET_PCIE_A>, <&reset RESET_PCIE_APB>;
231 reset-names = "port", "apb";
232 num-lanes = <1>;
233 phys = <&pcie_phy>;
234 phy-names = "pcie";
235 status = "disabled";
236 };
237
238 pcieB: pcie@fa000000 {
239 compatible = "amlogic,axg-pcie", "snps,dw-pcie";
240 reg = <0x0 0xfa000000 0x0 0x400000>,
241 <0x0 0xff648000 0x0 0x2000>,
242 <0x0 0xfa400000 0x0 0x100000>;
243 reg-names = "dbi", "cfg", "config";
244 interrupts = <GIC_SPI 167 IRQ_TYPE_EDGE_RISING>;
245 #interrupt-cells = <1>;
246 interrupt-map-mask = <0 0 0 0>;
247 interrupt-map = <0 0 0 0 &gic GIC_SPI 169 IRQ_TYPE_EDGE_RISING>;
248 bus-range = <0x0 0xff>;
249 #address-cells = <3>;
250 #size-cells = <2>;
251 device_type = "pci";
252 ranges = <0x82000000 0 0xfa500000 0x0 0xfa500000 0 0x00300000>;
253
254 clocks = <&clkc CLKID_USB>, <&clkc CLKID_PCIE_B>, <&clkc CLKID_PCIE_CML_EN1>;
255 clock-names = "general", "pclk", "port";
256 resets = <&reset RESET_PCIE_B>, <&reset RESET_PCIE_APB>;
257 reset-names = "port", "apb";
258 num-lanes = <1>;
259 phys = <&pcie_phy>;
260 phy-names = "pcie";
261 status = "disabled";
262 };
263
264 usb: usb@ffe09080 {
265 compatible = "amlogic,meson-axg-usb-ctrl";
266 reg = <0x0 0xffe09080 0x0 0x20>;
267 interrupts = <GIC_SPI 16 IRQ_TYPE_LEVEL_HIGH>;
268 #address-cells = <2>;
269 #size-cells = <2>;
270 ranges;
271
272 clocks = <&clkc CLKID_USB>, <&clkc CLKID_USB1_DDR_BRIDGE>;
273 clock-names = "usb_ctrl", "ddr";
274 resets = <&reset RESET_USB_OTG>;
275
276 dr_mode = "otg";
277
278 phys = <&usb2_phy1>;
279 phy-names = "usb2-phy1";
280
281 dwc2: usb@ff400000 {
282 compatible = "amlogic,meson-g12a-usb", "snps,dwc2";
283 reg = <0x0 0xff400000 0x0 0x40000>;
284 interrupts = <GIC_SPI 31 IRQ_TYPE_LEVEL_HIGH>;
285 clocks = <&clkc CLKID_USB1>;
286 clock-names = "otg";
287 phys = <&usb2_phy1>;
288 dr_mode = "peripheral";
289 g-rx-fifo-size = <192>;
290 g-np-tx-fifo-size = <128>;
291 g-tx-fifo-size = <128 128 16 16 16>;
292 };
293
294 dwc3: usb@ff500000 {
295 compatible = "snps,dwc3";
296 reg = <0x0 0xff500000 0x0 0x100000>;
297 interrupts = <GIC_SPI 30 IRQ_TYPE_LEVEL_HIGH>;
298 dr_mode = "host";
299 maximum-speed = "high-speed";
300 snps,dis_u2_susphy_quirk;
301 };
302 };
303
304 ethmac: ethernet@ff3f0000 {
305 compatible = "amlogic,meson-axg-dwmac",
306 "snps,dwmac-3.70a",
307 "snps,dwmac";
308 reg = <0x0 0xff3f0000 0x0 0x10000>,
309 <0x0 0xff634540 0x0 0x8>;
310 interrupts = <GIC_SPI 8 IRQ_TYPE_LEVEL_HIGH>;
311 interrupt-names = "macirq";
312 clocks = <&clkc CLKID_ETH>,
313 <&clkc CLKID_FCLK_DIV2>,
314 <&clkc CLKID_MPLL2>,
315 <&clkc CLKID_FCLK_DIV2>;
316 clock-names = "stmmaceth", "clkin0", "clkin1",
317 "timing-adjustment";
318 rx-fifo-depth = <4096>;
319 tx-fifo-depth = <2048>;
320 power-domains = <&pwrc PWRC_AXG_ETHERNET_MEM_ID>;
321 status = "disabled";
322 };
323
324 pcie_phy: phy@ff644000 {
325 compatible = "amlogic,axg-pcie-phy";
326 reg = <0x0 0xff644000 0x0 0x1c>;
327 resets = <&reset RESET_PCIE_PHY>;
328 phys = <&mipi_pcie_analog_dphy>;
329 phy-names = "analog";
330 #phy-cells = <0>;
331 };
332
333 pdm: audio-controller@ff632000 {
334 compatible = "amlogic,axg-pdm";
335 reg = <0x0 0xff632000 0x0 0x34>;
336 #sound-dai-cells = <0>;
337 sound-name-prefix = "PDM";
338 clocks = <&clkc_audio AUD_CLKID_PDM>,
339 <&clkc_audio AUD_CLKID_PDM_DCLK>,
340 <&clkc_audio AUD_CLKID_PDM_SYSCLK>;
341 clock-names = "pclk", "dclk", "sysclk";
342 status = "disabled";
343 };
344
345 periphs: bus@ff634000 {
346 compatible = "simple-bus";
347 reg = <0x0 0xff634000 0x0 0x2000>;
348 #address-cells = <2>;
349 #size-cells = <2>;
350 ranges = <0x0 0x0 0x0 0xff634000 0x0 0x2000>;
351
352 hwrng: rng@18 {
353 compatible = "amlogic,meson-rng";
354 reg = <0x0 0x18 0x0 0x4>;
355 clocks = <&clkc CLKID_RNG0>;
356 clock-names = "core";
357 };
358
359 pinctrl_periphs: pinctrl@480 {
360 compatible = "amlogic,meson-axg-periphs-pinctrl";
361 #address-cells = <2>;
362 #size-cells = <2>;
363 ranges;
364
365 gpio: bank@480 {
366 reg = <0x0 0x00480 0x0 0x40>,
367 <0x0 0x004e8 0x0 0x14>,
368 <0x0 0x00520 0x0 0x14>,
369 <0x0 0x00430 0x0 0x3c>;
370 reg-names = "mux", "pull", "pull-enable", "gpio";
371 gpio-controller;
372 #gpio-cells = <2>;
373 gpio-ranges = <&pinctrl_periphs 0 0 86>;
374 };
375
376 i2c0_pins: i2c0 {
377 mux {
378 groups = "i2c0_sck",
379 "i2c0_sda";
380 function = "i2c0";
381 bias-disable;
382 };
383 };
384
385 i2c1_x_pins: i2c1_x {
386 mux {
387 groups = "i2c1_sck_x",
388 "i2c1_sda_x";
389 function = "i2c1";
390 bias-disable;
391 };
392 };
393
394 i2c1_z_pins: i2c1_z {
395 mux {
396 groups = "i2c1_sck_z",
397 "i2c1_sda_z";
398 function = "i2c1";
399 bias-disable;
400 };
401 };
402
403 i2c2_a_pins: i2c2_a {
404 mux {
405 groups = "i2c2_sck_a",
406 "i2c2_sda_a";
407 function = "i2c2";
408 bias-disable;
409 };
410 };
411
412 i2c2_x_pins: i2c2_x {
413 mux {
414 groups = "i2c2_sck_x",
415 "i2c2_sda_x";
416 function = "i2c2";
417 bias-disable;
418 };
419 };
420
421 i2c3_a6_pins: i2c3_a6 {
422 mux {
423 groups = "i2c3_sda_a6",
424 "i2c3_sck_a7";
425 function = "i2c3";
426 bias-disable;
427 };
428 };
429
430 i2c3_a12_pins: i2c3_a12 {
431 mux {
432 groups = "i2c3_sda_a12",
433 "i2c3_sck_a13";
434 function = "i2c3";
435 bias-disable;
436 };
437 };
438
439 i2c3_a19_pins: i2c3_a19 {
440 mux {
441 groups = "i2c3_sda_a19",
442 "i2c3_sck_a20";
443 function = "i2c3";
444 bias-disable;
445 };
446 };
447
448 emmc_pins: emmc {
449 mux-0 {
450 groups = "emmc_nand_d0",
451 "emmc_nand_d1",
452 "emmc_nand_d2",
453 "emmc_nand_d3",
454 "emmc_nand_d4",
455 "emmc_nand_d5",
456 "emmc_nand_d6",
457 "emmc_nand_d7",
458 "emmc_cmd";
459 function = "emmc";
460 bias-pull-up;
461 };
462
463 mux-1 {
464 groups = "emmc_clk";
465 function = "emmc";
466 bias-disable;
467 };
468 };
469
470 nand_all_pins: nand-all-pins {
471 mux {
472 groups = "emmc_nand_d0",
473 "emmc_nand_d1",
474 "emmc_nand_d2",
475 "emmc_nand_d3",
476 "emmc_nand_d4",
477 "emmc_nand_d5",
478 "emmc_nand_d6",
479 "emmc_nand_d7",
480 "nand_ce0",
481 "nand_ale",
482 "nand_cle",
483 "nand_wen_clk",
484 "nand_ren_wr";
485 function = "nand";
486 input-enable;
487 bias-pull-up;
488 };
489 };
490
491 emmc_ds_pins: emmc_ds {
492 mux {
493 groups = "emmc_ds";
494 function = "emmc";
495 bias-pull-down;
496 };
497 };
498
499 emmc_clk_gate_pins: emmc_clk_gate {
500 mux {
501 groups = "BOOT_8";
502 function = "gpio_periphs";
503 bias-pull-down;
504 };
505 };
506
507 eth_rgmii_x_pins: eth-x-rgmii {
508 mux {
509 groups = "eth_mdio_x",
510 "eth_mdc_x",
511 "eth_rgmii_rx_clk_x",
512 "eth_rx_dv_x",
513 "eth_rxd0_x",
514 "eth_rxd1_x",
515 "eth_rxd2_rgmii",
516 "eth_rxd3_rgmii",
517 "eth_rgmii_tx_clk",
518 "eth_txen_x",
519 "eth_txd0_x",
520 "eth_txd1_x",
521 "eth_txd2_rgmii",
522 "eth_txd3_rgmii";
523 function = "eth";
524 bias-disable;
525 };
526 };
527
528 eth_rgmii_y_pins: eth-y-rgmii {
529 mux {
530 groups = "eth_mdio_y",
531 "eth_mdc_y",
532 "eth_rgmii_rx_clk_y",
533 "eth_rx_dv_y",
534 "eth_rxd0_y",
535 "eth_rxd1_y",
536 "eth_rxd2_rgmii",
537 "eth_rxd3_rgmii",
538 "eth_rgmii_tx_clk",
539 "eth_txen_y",
540 "eth_txd0_y",
541 "eth_txd1_y",
542 "eth_txd2_rgmii",
543 "eth_txd3_rgmii";
544 function = "eth";
545 bias-disable;
546 };
547 };
548
549 eth_rmii_x_pins: eth-x-rmii {
550 mux {
551 groups = "eth_mdio_x",
552 "eth_mdc_x",
553 "eth_rgmii_rx_clk_x",
554 "eth_rx_dv_x",
555 "eth_rxd0_x",
556 "eth_rxd1_x",
557 "eth_txen_x",
558 "eth_txd0_x",
559 "eth_txd1_x";
560 function = "eth";
561 bias-disable;
562 };
563 };
564
565 eth_rmii_y_pins: eth-y-rmii {
566 mux {
567 groups = "eth_mdio_y",
568 "eth_mdc_y",
569 "eth_rgmii_rx_clk_y",
570 "eth_rx_dv_y",
571 "eth_rxd0_y",
572 "eth_rxd1_y",
573 "eth_txen_y",
574 "eth_txd0_y",
575 "eth_txd1_y";
576 function = "eth";
577 bias-disable;
578 };
579 };
580
581 mclk_b_pins: mclk_b {
582 mux {
583 groups = "mclk_b";
584 function = "mclk_b";
585 bias-disable;
586 };
587 };
588
589 mclk_c_pins: mclk_c {
590 mux {
591 groups = "mclk_c";
592 function = "mclk_c";
593 bias-disable;
594 };
595 };
596
597 pdm_dclk_a14_pins: pdm_dclk_a14 {
598 mux {
599 groups = "pdm_dclk_a14";
600 function = "pdm";
601 bias-disable;
602 };
603 };
604
605 pdm_dclk_a19_pins: pdm_dclk_a19 {
606 mux {
607 groups = "pdm_dclk_a19";
608 function = "pdm";
609 bias-disable;
610 };
611 };
612
613 pdm_din0_pins: pdm_din0 {
614 mux {
615 groups = "pdm_din0";
616 function = "pdm";
617 bias-disable;
618 };
619 };
620
621 pdm_din1_pins: pdm_din1 {
622 mux {
623 groups = "pdm_din1";
624 function = "pdm";
625 bias-disable;
626 };
627 };
628
629 pdm_din2_pins: pdm_din2 {
630 mux {
631 groups = "pdm_din2";
632 function = "pdm";
633 bias-disable;
634 };
635 };
636
637 pdm_din3_pins: pdm_din3 {
638 mux {
639 groups = "pdm_din3";
640 function = "pdm";
641 bias-disable;
642 };
643 };
644
645 pwm_a_a_pins: pwm_a_a {
646 mux {
647 groups = "pwm_a_a";
648 function = "pwm_a";
649 bias-disable;
650 };
651 };
652
653 pwm_a_x18_pins: pwm_a_x18 {
654 mux {
655 groups = "pwm_a_x18";
656 function = "pwm_a";
657 bias-disable;
658 };
659 };
660
661 pwm_a_x20_pins: pwm_a_x20 {
662 mux {
663 groups = "pwm_a_x20";
664 function = "pwm_a";
665 bias-disable;
666 };
667 };
668
669 pwm_a_z_pins: pwm_a_z {
670 mux {
671 groups = "pwm_a_z";
672 function = "pwm_a";
673 bias-disable;
674 };
675 };
676
677 pwm_b_a_pins: pwm_b_a {
678 mux {
679 groups = "pwm_b_a";
680 function = "pwm_b";
681 bias-disable;
682 };
683 };
684
685 pwm_b_x_pins: pwm_b_x {
686 mux {
687 groups = "pwm_b_x";
688 function = "pwm_b";
689 bias-disable;
690 };
691 };
692
693 pwm_b_z_pins: pwm_b_z {
694 mux {
695 groups = "pwm_b_z";
696 function = "pwm_b";
697 bias-disable;
698 };
699 };
700
701 pwm_c_a_pins: pwm_c_a {
702 mux {
703 groups = "pwm_c_a";
704 function = "pwm_c";
705 bias-disable;
706 };
707 };
708
709 pwm_c_x10_pins: pwm_c_x10 {
710 mux {
711 groups = "pwm_c_x10";
712 function = "pwm_c";
713 bias-disable;
714 };
715 };
716
717 pwm_c_x17_pins: pwm_c_x17 {
718 mux {
719 groups = "pwm_c_x17";
720 function = "pwm_c";
721 bias-disable;
722 };
723 };
724
725 pwm_d_x11_pins: pwm_d_x11 {
726 mux {
727 groups = "pwm_d_x11";
728 function = "pwm_d";
729 bias-disable;
730 };
731 };
732
733 pwm_d_x16_pins: pwm_d_x16 {
734 mux {
735 groups = "pwm_d_x16";
736 function = "pwm_d";
737 bias-disable;
738 };
739 };
740
741 sdio_pins: sdio {
742 mux-0 {
743 groups = "sdio_d0",
744 "sdio_d1",
745 "sdio_d2",
746 "sdio_d3",
747 "sdio_cmd";
748 function = "sdio";
749 bias-pull-up;
750 };
751
752 mux-1 {
753 groups = "sdio_clk";
754 function = "sdio";
755 bias-disable;
756 };
757 };
758
759 sdio_clk_gate_pins: sdio_clk_gate {
760 mux {
761 groups = "GPIOX_4";
762 function = "gpio_periphs";
763 bias-pull-down;
764 };
765 };
766
767 spdif_in_z_pins: spdif_in_z {
768 mux {
769 groups = "spdif_in_z";
770 function = "spdif_in";
771 bias-disable;
772 };
773 };
774
775 spdif_in_a1_pins: spdif_in_a1 {
776 mux {
777 groups = "spdif_in_a1";
778 function = "spdif_in";
779 bias-disable;
780 };
781 };
782
783 spdif_in_a7_pins: spdif_in_a7 {
784 mux {
785 groups = "spdif_in_a7";
786 function = "spdif_in";
787 bias-disable;
788 };
789 };
790
791 spdif_in_a19_pins: spdif_in_a19 {
792 mux {
793 groups = "spdif_in_a19";
794 function = "spdif_in";
795 bias-disable;
796 };
797 };
798
799 spdif_in_a20_pins: spdif_in_a20 {
800 mux {
801 groups = "spdif_in_a20";
802 function = "spdif_in";
803 bias-disable;
804 };
805 };
806
807 spdif_out_a1_pins: spdif_out_a1 {
808 mux {
809 groups = "spdif_out_a1";
810 function = "spdif_out";
811 bias-disable;
812 };
813 };
814
815 spdif_out_a11_pins: spdif_out_a11 {
816 mux {
817 groups = "spdif_out_a11";
818 function = "spdif_out";
819 bias-disable;
820 };
821 };
822
823 spdif_out_a19_pins: spdif_out_a19 {
824 mux {
825 groups = "spdif_out_a19";
826 function = "spdif_out";
827 bias-disable;
828 };
829 };
830
831 spdif_out_a20_pins: spdif_out_a20 {
832 mux {
833 groups = "spdif_out_a20";
834 function = "spdif_out";
835 bias-disable;
836 };
837 };
838
839 spdif_out_z_pins: spdif_out_z {
840 mux {
841 groups = "spdif_out_z";
842 function = "spdif_out";
843 bias-disable;
844 };
845 };
846
847 spi0_pins: spi0 {
848 mux {
849 groups = "spi0_miso",
850 "spi0_mosi",
851 "spi0_clk";
852 function = "spi0";
853 bias-disable;
854 };
855 };
856
857 spi0_ss0_pins: spi0_ss0 {
858 mux {
859 groups = "spi0_ss0";
860 function = "spi0";
861 bias-disable;
862 };
863 };
864
865 spi0_ss1_pins: spi0_ss1 {
866 mux {
867 groups = "spi0_ss1";
868 function = "spi0";
869 bias-disable;
870 };
871 };
872
873 spi0_ss2_pins: spi0_ss2 {
874 mux {
875 groups = "spi0_ss2";
876 function = "spi0";
877 bias-disable;
878 };
879 };
880
881 spi1_a_pins: spi1_a {
882 mux {
883 groups = "spi1_miso_a",
884 "spi1_mosi_a",
885 "spi1_clk_a";
886 function = "spi1";
887 bias-disable;
888 };
889 };
890
891 spi1_ss0_a_pins: spi1_ss0_a {
892 mux {
893 groups = "spi1_ss0_a";
894 function = "spi1";
895 bias-disable;
896 };
897 };
898
899 spi1_ss1_pins: spi1_ss1 {
900 mux {
901 groups = "spi1_ss1";
902 function = "spi1";
903 bias-disable;
904 };
905 };
906
907 spi1_x_pins: spi1_x {
908 mux {
909 groups = "spi1_miso_x",
910 "spi1_mosi_x",
911 "spi1_clk_x";
912 function = "spi1";
913 bias-disable;
914 };
915 };
916
917 spi1_ss0_x_pins: spi1_ss0_x {
918 mux {
919 groups = "spi1_ss0_x";
920 function = "spi1";
921 bias-disable;
922 };
923 };
924
925 tdma_din0_pins: tdma_din0 {
926 mux {
927 groups = "tdma_din0";
928 function = "tdma";
929 bias-disable;
930 };
931 };
932
933 tdma_dout0_x14_pins: tdma_dout0_x14 {
934 mux {
935 groups = "tdma_dout0_x14";
936 function = "tdma";
937 bias-disable;
938 };
939 };
940
941 tdma_dout0_x15_pins: tdma_dout0_x15 {
942 mux {
943 groups = "tdma_dout0_x15";
944 function = "tdma";
945 bias-disable;
946 };
947 };
948
949 tdma_dout1_pins: tdma_dout1 {
950 mux {
951 groups = "tdma_dout1";
952 function = "tdma";
953 bias-disable;
954 };
955 };
956
957 tdma_din1_pins: tdma_din1 {
958 mux {
959 groups = "tdma_din1";
960 function = "tdma";
961 bias-disable;
962 };
963 };
964
965 tdma_fs_pins: tdma_fs {
966 mux {
967 groups = "tdma_fs";
968 function = "tdma";
969 bias-disable;
970 };
971 };
972
973 tdma_fs_slv_pins: tdma_fs_slv {
974 mux {
975 groups = "tdma_fs_slv";
976 function = "tdma";
977 bias-disable;
978 };
979 };
980
981 tdma_sclk_pins: tdma_sclk {
982 mux {
983 groups = "tdma_sclk";
984 function = "tdma";
985 bias-disable;
986 };
987 };
988
989 tdma_sclk_slv_pins: tdma_sclk_slv {
990 mux {
991 groups = "tdma_sclk_slv";
992 function = "tdma";
993 bias-disable;
994 };
995 };
996
997 tdmb_din0_pins: tdmb_din0 {
998 mux {
999 groups = "tdmb_din0";
1000 function = "tdmb";
1001 bias-disable;
1002 };
1003 };
1004
1005 tdmb_din1_pins: tdmb_din1 {
1006 mux {
1007 groups = "tdmb_din1";
1008 function = "tdmb";
1009 bias-disable;
1010 };
1011 };
1012
1013 tdmb_din2_pins: tdmb_din2 {
1014 mux {
1015 groups = "tdmb_din2";
1016 function = "tdmb";
1017 bias-disable;
1018 };
1019 };
1020
1021 tdmb_din3_pins: tdmb_din3 {
1022 mux {
1023 groups = "tdmb_din3";
1024 function = "tdmb";
1025 bias-disable;
1026 };
1027 };
1028
1029 tdmb_dout0_pins: tdmb_dout0 {
1030 mux {
1031 groups = "tdmb_dout0";
1032 function = "tdmb";
1033 bias-disable;
1034 };
1035 };
1036
1037 tdmb_dout1_pins: tdmb_dout1 {
1038 mux {
1039 groups = "tdmb_dout1";
1040 function = "tdmb";
1041 bias-disable;
1042 };
1043 };
1044
1045 tdmb_dout2_pins: tdmb_dout2 {
1046 mux {
1047 groups = "tdmb_dout2";
1048 function = "tdmb";
1049 bias-disable;
1050 };
1051 };
1052
1053 tdmb_dout3_pins: tdmb_dout3 {
1054 mux {
1055 groups = "tdmb_dout3";
1056 function = "tdmb";
1057 bias-disable;
1058 };
1059 };
1060
1061 tdmb_fs_pins: tdmb_fs {
1062 mux {
1063 groups = "tdmb_fs";
1064 function = "tdmb";
1065 bias-disable;
1066 };
1067 };
1068
1069 tdmb_fs_slv_pins: tdmb_fs_slv {
1070 mux {
1071 groups = "tdmb_fs_slv";
1072 function = "tdmb";
1073 bias-disable;
1074 };
1075 };
1076
1077 tdmb_sclk_pins: tdmb_sclk {
1078 mux {
1079 groups = "tdmb_sclk";
1080 function = "tdmb";
1081 bias-disable;
1082 };
1083 };
1084
1085 tdmb_sclk_slv_pins: tdmb_sclk_slv {
1086 mux {
1087 groups = "tdmb_sclk_slv";
1088 function = "tdmb";
1089 bias-disable;
1090 };
1091 };
1092
1093 tdmc_fs_pins: tdmc_fs {
1094 mux {
1095 groups = "tdmc_fs";
1096 function = "tdmc";
1097 bias-disable;
1098 };
1099 };
1100
1101 tdmc_fs_slv_pins: tdmc_fs_slv {
1102 mux {
1103 groups = "tdmc_fs_slv";
1104 function = "tdmc";
1105 bias-disable;
1106 };
1107 };
1108
1109 tdmc_sclk_pins: tdmc_sclk {
1110 mux {
1111 groups = "tdmc_sclk";
1112 function = "tdmc";
1113 bias-disable;
1114 };
1115 };
1116
1117 tdmc_sclk_slv_pins: tdmc_sclk_slv {
1118 mux {
1119 groups = "tdmc_sclk_slv";
1120 function = "tdmc";
1121 bias-disable;
1122 };
1123 };
1124
1125 tdmc_din0_pins: tdmc_din0 {
1126 mux {
1127 groups = "tdmc_din0";
1128 function = "tdmc";
1129 bias-disable;
1130 };
1131 };
1132
1133 tdmc_din1_pins: tdmc_din1 {
1134 mux {
1135 groups = "tdmc_din1";
1136 function = "tdmc";
1137 bias-disable;
1138 };
1139 };
1140
1141 tdmc_din2_pins: tdmc_din2 {
1142 mux {
1143 groups = "tdmc_din2";
1144 function = "tdmc";
1145 bias-disable;
1146 };
1147 };
1148
1149 tdmc_din3_pins: tdmc_din3 {
1150 mux {
1151 groups = "tdmc_din3";
1152 function = "tdmc";
1153 bias-disable;
1154 };
1155 };
1156
1157 tdmc_dout0_pins: tdmc_dout0 {
1158 mux {
1159 groups = "tdmc_dout0";
1160 function = "tdmc";
1161 bias-disable;
1162 };
1163 };
1164
1165 tdmc_dout1_pins: tdmc_dout1 {
1166 mux {
1167 groups = "tdmc_dout1";
1168 function = "tdmc";
1169 bias-disable;
1170 };
1171 };
1172
1173 tdmc_dout2_pins: tdmc_dout2 {
1174 mux {
1175 groups = "tdmc_dout2";
1176 function = "tdmc";
1177 bias-disable;
1178 };
1179 };
1180
1181 tdmc_dout3_pins: tdmc_dout3 {
1182 mux {
1183 groups = "tdmc_dout3";
1184 function = "tdmc";
1185 bias-disable;
1186 };
1187 };
1188
1189 uart_a_pins: uart_a {
1190 mux {
1191 groups = "uart_tx_a",
1192 "uart_rx_a";
1193 function = "uart_a";
1194 bias-pull-up;
1195 };
1196 };
1197
1198 uart_a_cts_rts_pins: uart_a_cts_rts {
1199 mux {
1200 groups = "uart_cts_a",
1201 "uart_rts_a";
1202 function = "uart_a";
1203 bias-disable;
1204 };
1205 };
1206
1207 uart_b_x_pins: uart_b_x {
1208 mux {
1209 groups = "uart_tx_b_x",
1210 "uart_rx_b_x";
1211 function = "uart_b";
1212 bias-pull-up;
1213 };
1214 };
1215
1216 uart_b_x_cts_rts_pins: uart_b_x_cts_rts {
1217 mux {
1218 groups = "uart_cts_b_x",
1219 "uart_rts_b_x";
1220 function = "uart_b";
1221 bias-disable;
1222 };
1223 };
1224
1225 uart_b_z_pins: uart_b_z {
1226 mux {
1227 groups = "uart_tx_b_z",
1228 "uart_rx_b_z";
1229 function = "uart_b";
1230 bias-pull-up;
1231 };
1232 };
1233
1234 uart_b_z_cts_rts_pins: uart_b_z_cts_rts {
1235 mux {
1236 groups = "uart_cts_b_z",
1237 "uart_rts_b_z";
1238 function = "uart_b";
1239 bias-disable;
1240 };
1241 };
1242
1243 uart_ao_b_z_pins: uart_ao_b_z {
1244 mux {
1245 groups = "uart_ao_tx_b_z",
1246 "uart_ao_rx_b_z";
1247 function = "uart_ao_b_z";
1248 bias-pull-up;
1249 };
1250 };
1251
1252 uart_ao_b_z_cts_rts_pins: uart_ao_b_z_cts_rts {
1253 mux {
1254 groups = "uart_ao_cts_b_z",
1255 "uart_ao_rts_b_z";
1256 function = "uart_ao_b_z";
1257 bias-disable;
1258 };
1259 };
1260 };
1261 };
1262
1263 hiubus: bus@ff63c000 {
1264 compatible = "simple-bus";
1265 reg = <0x0 0xff63c000 0x0 0x1c00>;
1266 #address-cells = <2>;
1267 #size-cells = <2>;
1268 ranges = <0x0 0x0 0x0 0xff63c000 0x0 0x1c00>;
1269
1270 sysctrl: system-controller@0 {
1271 compatible = "amlogic,meson-axg-hhi-sysctrl",
1272 "simple-mfd", "syscon";
1273 reg = <0 0 0 0x400>;
1274
1275 clkc: clock-controller {
1276 compatible = "amlogic,axg-clkc";
1277 #clock-cells = <1>;
1278 clocks = <&xtal>;
1279 clock-names = "xtal";
1280 };
1281
1282 pwrc: power-controller {
1283 compatible = "amlogic,meson-axg-pwrc";
1284 #power-domain-cells = <1>;
1285 amlogic,ao-sysctrl = <&sysctrl_AO>;
1286 resets = <&reset RESET_VIU>,
1287 <&reset RESET_VENC>,
1288 <&reset RESET_VCBUS>,
1289 <&reset RESET_VENCL>,
1290 <&reset RESET_VID_LOCK>;
1291 reset-names = "viu", "venc", "vcbus",
1292 "vencl", "vid_lock";
1293 clocks = <&clkc CLKID_VPU>,
1294 <&clkc CLKID_VAPB>;
1295 clock-names = "vpu", "vapb";
1296 /*
1297 * VPU clocking is provided by two identical clock paths
1298 * VPU_0 and VPU_1 muxed to a single clock by a glitch
1299 * free mux to safely change frequency while running.
1300 * Same for VAPB but with a final gate after the glitch free mux.
1301 */
1302 assigned-clocks = <&clkc CLKID_VPU_0_SEL>,
1303 <&clkc CLKID_VPU_0>,
1304 <&clkc CLKID_VPU>, /* Glitch free mux */
1305 <&clkc CLKID_VAPB_0_SEL>,
1306 <&clkc CLKID_VAPB_0>,
1307 <&clkc CLKID_VAPB_SEL>; /* Glitch free mux */
1308 assigned-clock-parents = <&clkc CLKID_FCLK_DIV4>,
1309 <0>, /* Do Nothing */
1310 <&clkc CLKID_VPU_0>,
1311 <&clkc CLKID_FCLK_DIV4>,
1312 <0>, /* Do Nothing */
1313 <&clkc CLKID_VAPB_0>;
1314 assigned-clock-rates = <0>, /* Do Nothing */
1315 <250000000>,
1316 <0>, /* Do Nothing */
1317 <0>, /* Do Nothing */
1318 <250000000>,
1319 <0>; /* Do Nothing */
1320 };
1321
1322 mipi_pcie_analog_dphy: phy {
1323 compatible = "amlogic,axg-mipi-pcie-analog-phy";
1324 #phy-cells = <0>;
1325 status = "disabled";
1326 };
1327 };
1328 };
1329
1330 mailbox: mailbox@ff63c404 {
1331 compatible = "amlogic,meson-gxbb-mhu";
1332 reg = <0 0xff63c404 0 0x4c>;
1333 interrupts = <GIC_SPI 208 IRQ_TYPE_EDGE_RISING>,
1334 <GIC_SPI 209 IRQ_TYPE_EDGE_RISING>,
1335 <GIC_SPI 210 IRQ_TYPE_EDGE_RISING>;
1336 #mbox-cells = <1>;
1337 };
1338
1339 mipi_dphy: phy@ff640000 {
1340 compatible = "amlogic,axg-mipi-dphy";
1341 reg = <0x0 0xff640000 0x0 0x100>;
1342 clocks = <&clkc CLKID_MIPI_DSI_PHY>;
1343 clock-names = "pclk";
1344 resets = <&reset RESET_MIPI_PHY>;
1345 reset-names = "phy";
1346 phys = <&mipi_pcie_analog_dphy>;
1347 phy-names = "analog";
1348 #phy-cells = <0>;
1349 status = "disabled";
1350 };
1351
1352 audio: bus@ff642000 {
1353 compatible = "simple-bus";
1354 reg = <0x0 0xff642000 0x0 0x2000>;
1355 #address-cells = <2>;
1356 #size-cells = <2>;
1357 ranges = <0x0 0x0 0x0 0xff642000 0x0 0x2000>;
1358
1359 clkc_audio: clock-controller@0 {
1360 compatible = "amlogic,axg-audio-clkc";
1361 reg = <0x0 0x0 0x0 0xb4>;
1362 #clock-cells = <1>;
1363
1364 clocks = <&clkc CLKID_AUDIO>,
1365 <&clkc CLKID_MPLL0>,
1366 <&clkc CLKID_MPLL1>,
1367 <&clkc CLKID_MPLL2>,
1368 <&clkc CLKID_MPLL3>,
1369 <&clkc CLKID_HIFI_PLL>,
1370 <&clkc CLKID_FCLK_DIV3>,
1371 <&clkc CLKID_FCLK_DIV4>,
1372 <&clkc CLKID_GP0_PLL>;
1373 clock-names = "pclk",
1374 "mst_in0",
1375 "mst_in1",
1376 "mst_in2",
1377 "mst_in3",
1378 "mst_in4",
1379 "mst_in5",
1380 "mst_in6",
1381 "mst_in7";
1382
1383 resets = <&reset RESET_AUDIO>;
1384 };
1385
1386 toddr_a: audio-controller@100 {
1387 compatible = "amlogic,axg-toddr";
1388 reg = <0x0 0x100 0x0 0x2c>;
1389 #sound-dai-cells = <0>;
1390 sound-name-prefix = "TODDR_A";
1391 interrupts = <GIC_SPI 84 IRQ_TYPE_EDGE_RISING>;
1392 clocks = <&clkc_audio AUD_CLKID_TODDR_A>;
1393 resets = <&arb AXG_ARB_TODDR_A>;
1394 amlogic,fifo-depth = <512>;
1395 status = "disabled";
1396 };
1397
1398 toddr_b: audio-controller@140 {
1399 compatible = "amlogic,axg-toddr";
1400 reg = <0x0 0x140 0x0 0x2c>;
1401 #sound-dai-cells = <0>;
1402 sound-name-prefix = "TODDR_B";
1403 interrupts = <GIC_SPI 85 IRQ_TYPE_EDGE_RISING>;
1404 clocks = <&clkc_audio AUD_CLKID_TODDR_B>;
1405 resets = <&arb AXG_ARB_TODDR_B>;
1406 amlogic,fifo-depth = <256>;
1407 status = "disabled";
1408 };
1409
1410 toddr_c: audio-controller@180 {
1411 compatible = "amlogic,axg-toddr";
1412 reg = <0x0 0x180 0x0 0x2c>;
1413 #sound-dai-cells = <0>;
1414 sound-name-prefix = "TODDR_C";
1415 interrupts = <GIC_SPI 86 IRQ_TYPE_EDGE_RISING>;
1416 clocks = <&clkc_audio AUD_CLKID_TODDR_C>;
1417 resets = <&arb AXG_ARB_TODDR_C>;
1418 amlogic,fifo-depth = <256>;
1419 status = "disabled";
1420 };
1421
1422 frddr_a: audio-controller@1c0 {
1423 compatible = "amlogic,axg-frddr";
1424 reg = <0x0 0x1c0 0x0 0x2c>;
1425 #sound-dai-cells = <0>;
1426 sound-name-prefix = "FRDDR_A";
1427 interrupts = <GIC_SPI 88 IRQ_TYPE_EDGE_RISING>;
1428 clocks = <&clkc_audio AUD_CLKID_FRDDR_A>;
1429 resets = <&arb AXG_ARB_FRDDR_A>;
1430 amlogic,fifo-depth = <512>;
1431 status = "disabled";
1432 };
1433
1434 frddr_b: audio-controller@200 {
1435 compatible = "amlogic,axg-frddr";
1436 reg = <0x0 0x200 0x0 0x2c>;
1437 #sound-dai-cells = <0>;
1438 sound-name-prefix = "FRDDR_B";
1439 interrupts = <GIC_SPI 89 IRQ_TYPE_EDGE_RISING>;
1440 clocks = <&clkc_audio AUD_CLKID_FRDDR_B>;
1441 resets = <&arb AXG_ARB_FRDDR_B>;
1442 amlogic,fifo-depth = <256>;
1443 status = "disabled";
1444 };
1445
1446 frddr_c: audio-controller@240 {
1447 compatible = "amlogic,axg-frddr";
1448 reg = <0x0 0x240 0x0 0x2c>;
1449 #sound-dai-cells = <0>;
1450 sound-name-prefix = "FRDDR_C";
1451 interrupts = <GIC_SPI 90 IRQ_TYPE_EDGE_RISING>;
1452 clocks = <&clkc_audio AUD_CLKID_FRDDR_C>;
1453 resets = <&arb AXG_ARB_FRDDR_C>;
1454 amlogic,fifo-depth = <256>;
1455 status = "disabled";
1456 };
1457
1458 arb: reset-controller@280 {
1459 compatible = "amlogic,meson-axg-audio-arb";
1460 reg = <0x0 0x280 0x0 0x4>;
1461 #reset-cells = <1>;
1462 clocks = <&clkc_audio AUD_CLKID_DDR_ARB>;
1463 };
1464
1465 tdmin_a: audio-controller@300 {
1466 compatible = "amlogic,axg-tdmin";
1467 reg = <0x0 0x300 0x0 0x40>;
1468 sound-name-prefix = "TDMIN_A";
1469 clocks = <&clkc_audio AUD_CLKID_TDMIN_A>,
1470 <&clkc_audio AUD_CLKID_TDMIN_A_SCLK>,
1471 <&clkc_audio AUD_CLKID_TDMIN_A_SCLK_SEL>,
1472 <&clkc_audio AUD_CLKID_TDMIN_A_LRCLK>,
1473 <&clkc_audio AUD_CLKID_TDMIN_A_LRCLK>;
1474 clock-names = "pclk", "sclk", "sclk_sel",
1475 "lrclk", "lrclk_sel";
1476 status = "disabled";
1477 };
1478
1479 tdmin_b: audio-controller@340 {
1480 compatible = "amlogic,axg-tdmin";
1481 reg = <0x0 0x340 0x0 0x40>;
1482 sound-name-prefix = "TDMIN_B";
1483 clocks = <&clkc_audio AUD_CLKID_TDMIN_B>,
1484 <&clkc_audio AUD_CLKID_TDMIN_B_SCLK>,
1485 <&clkc_audio AUD_CLKID_TDMIN_B_SCLK_SEL>,
1486 <&clkc_audio AUD_CLKID_TDMIN_B_LRCLK>,
1487 <&clkc_audio AUD_CLKID_TDMIN_B_LRCLK>;
1488 clock-names = "pclk", "sclk", "sclk_sel",
1489 "lrclk", "lrclk_sel";
1490 status = "disabled";
1491 };
1492
1493 tdmin_c: audio-controller@380 {
1494 compatible = "amlogic,axg-tdmin";
1495 reg = <0x0 0x380 0x0 0x40>;
1496 sound-name-prefix = "TDMIN_C";
1497 clocks = <&clkc_audio AUD_CLKID_TDMIN_C>,
1498 <&clkc_audio AUD_CLKID_TDMIN_C_SCLK>,
1499 <&clkc_audio AUD_CLKID_TDMIN_C_SCLK_SEL>,
1500 <&clkc_audio AUD_CLKID_TDMIN_C_LRCLK>,
1501 <&clkc_audio AUD_CLKID_TDMIN_C_LRCLK>;
1502 clock-names = "pclk", "sclk", "sclk_sel",
1503 "lrclk", "lrclk_sel";
1504 status = "disabled";
1505 };
1506
1507 tdmin_lb: audio-controller@3c0 {
1508 compatible = "amlogic,axg-tdmin";
1509 reg = <0x0 0x3c0 0x0 0x40>;
1510 sound-name-prefix = "TDMIN_LB";
1511 clocks = <&clkc_audio AUD_CLKID_TDMIN_LB>,
1512 <&clkc_audio AUD_CLKID_TDMIN_LB_SCLK>,
1513 <&clkc_audio AUD_CLKID_TDMIN_LB_SCLK_SEL>,
1514 <&clkc_audio AUD_CLKID_TDMIN_LB_LRCLK>,
1515 <&clkc_audio AUD_CLKID_TDMIN_LB_LRCLK>;
1516 clock-names = "pclk", "sclk", "sclk_sel",
1517 "lrclk", "lrclk_sel";
1518 status = "disabled";
1519 };
1520
1521 spdifin: audio-controller@400 {
1522 compatible = "amlogic,axg-spdifin";
1523 reg = <0x0 0x400 0x0 0x30>;
1524 #sound-dai-cells = <0>;
1525 sound-name-prefix = "SPDIFIN";
1526 interrupts = <GIC_SPI 87 IRQ_TYPE_EDGE_RISING>;
1527 clocks = <&clkc_audio AUD_CLKID_SPDIFIN>,
1528 <&clkc_audio AUD_CLKID_SPDIFIN_CLK>;
1529 clock-names = "pclk", "refclk";
1530 status = "disabled";
1531 };
1532
1533 spdifout: audio-controller@480 {
1534 compatible = "amlogic,axg-spdifout";
1535 reg = <0x0 0x480 0x0 0x50>;
1536 #sound-dai-cells = <0>;
1537 sound-name-prefix = "SPDIFOUT";
1538 clocks = <&clkc_audio AUD_CLKID_SPDIFOUT>,
1539 <&clkc_audio AUD_CLKID_SPDIFOUT_CLK>;
1540 clock-names = "pclk", "mclk";
1541 status = "disabled";
1542 };
1543
1544 tdmout_a: audio-controller@500 {
1545 compatible = "amlogic,axg-tdmout";
1546 reg = <0x0 0x500 0x0 0x40>;
1547 sound-name-prefix = "TDMOUT_A";
1548 clocks = <&clkc_audio AUD_CLKID_TDMOUT_A>,
1549 <&clkc_audio AUD_CLKID_TDMOUT_A_SCLK>,
1550 <&clkc_audio AUD_CLKID_TDMOUT_A_SCLK_SEL>,
1551 <&clkc_audio AUD_CLKID_TDMOUT_A_LRCLK>,
1552 <&clkc_audio AUD_CLKID_TDMOUT_A_LRCLK>;
1553 clock-names = "pclk", "sclk", "sclk_sel",
1554 "lrclk", "lrclk_sel";
1555 status = "disabled";
1556 };
1557
1558 tdmout_b: audio-controller@540 {
1559 compatible = "amlogic,axg-tdmout";
1560 reg = <0x0 0x540 0x0 0x40>;
1561 sound-name-prefix = "TDMOUT_B";
1562 clocks = <&clkc_audio AUD_CLKID_TDMOUT_B>,
1563 <&clkc_audio AUD_CLKID_TDMOUT_B_SCLK>,
1564 <&clkc_audio AUD_CLKID_TDMOUT_B_SCLK_SEL>,
1565 <&clkc_audio AUD_CLKID_TDMOUT_B_LRCLK>,
1566 <&clkc_audio AUD_CLKID_TDMOUT_B_LRCLK>;
1567 clock-names = "pclk", "sclk", "sclk_sel",
1568 "lrclk", "lrclk_sel";
1569 status = "disabled";
1570 };
1571
1572 tdmout_c: audio-controller@580 {
1573 compatible = "amlogic,axg-tdmout";
1574 reg = <0x0 0x580 0x0 0x40>;
1575 sound-name-prefix = "TDMOUT_C";
1576 clocks = <&clkc_audio AUD_CLKID_TDMOUT_C>,
1577 <&clkc_audio AUD_CLKID_TDMOUT_C_SCLK>,
1578 <&clkc_audio AUD_CLKID_TDMOUT_C_SCLK_SEL>,
1579 <&clkc_audio AUD_CLKID_TDMOUT_C_LRCLK>,
1580 <&clkc_audio AUD_CLKID_TDMOUT_C_LRCLK>;
1581 clock-names = "pclk", "sclk", "sclk_sel",
1582 "lrclk", "lrclk_sel";
1583 status = "disabled";
1584 };
1585 };
1586
1587 aobus: bus@ff800000 {
1588 compatible = "simple-bus";
1589 reg = <0x0 0xff800000 0x0 0x100000>;
1590 #address-cells = <2>;
1591 #size-cells = <2>;
1592 ranges = <0x0 0x0 0x0 0xff800000 0x0 0x100000>;
1593
1594 sysctrl_AO: sys-ctrl@0 {
1595 compatible = "amlogic,meson-axg-ao-sysctrl", "simple-mfd", "syscon";
1596 reg = <0x0 0x0 0x0 0x100>;
1597
1598 clkc_AO: clock-controller {
1599 compatible = "amlogic,meson-axg-aoclkc";
1600 #clock-cells = <1>;
1601 #reset-cells = <1>;
1602 clocks = <&xtal>, <&clkc CLKID_CLK81>;
1603 clock-names = "xtal", "mpeg-clk";
1604 };
1605 };
1606
1607 pinctrl_aobus: pinctrl@14 {
1608 compatible = "amlogic,meson-axg-aobus-pinctrl";
1609 #address-cells = <2>;
1610 #size-cells = <2>;
1611 ranges;
1612
1613 gpio_ao: bank@14 {
1614 reg = <0x0 0x00014 0x0 0x8>,
1615 <0x0 0x0002c 0x0 0x4>,
1616 <0x0 0x00024 0x0 0x8>;
1617 reg-names = "mux", "pull", "gpio";
1618 gpio-controller;
1619 #gpio-cells = <2>;
1620 gpio-ranges = <&pinctrl_aobus 0 0 15>;
1621 };
1622
1623 i2c_ao_sck_4_pins: i2c_ao_sck_4 {
1624 mux {
1625 groups = "i2c_ao_sck_4";
1626 function = "i2c_ao";
1627 bias-disable;
1628 };
1629 };
1630
1631 i2c_ao_sck_8_pins: i2c_ao_sck_8 {
1632 mux {
1633 groups = "i2c_ao_sck_8";
1634 function = "i2c_ao";
1635 bias-disable;
1636 };
1637 };
1638
1639 i2c_ao_sck_10_pins: i2c_ao_sck_10 {
1640 mux {
1641 groups = "i2c_ao_sck_10";
1642 function = "i2c_ao";
1643 bias-disable;
1644 };
1645 };
1646
1647 i2c_ao_sda_5_pins: i2c_ao_sda_5 {
1648 mux {
1649 groups = "i2c_ao_sda_5";
1650 function = "i2c_ao";
1651 bias-disable;
1652 };
1653 };
1654
1655 i2c_ao_sda_9_pins: i2c_ao_sda_9 {
1656 mux {
1657 groups = "i2c_ao_sda_9";
1658 function = "i2c_ao";
1659 bias-disable;
1660 };
1661 };
1662
1663 i2c_ao_sda_11_pins: i2c_ao_sda_11 {
1664 mux {
1665 groups = "i2c_ao_sda_11";
1666 function = "i2c_ao";
1667 bias-disable;
1668 };
1669 };
1670
1671 remote_input_ao_pins: remote_input_ao {
1672 mux {
1673 groups = "remote_input_ao";
1674 function = "remote_input_ao";
1675 bias-disable;
1676 };
1677 };
1678
1679 uart_ao_a_pins: uart_ao_a {
1680 mux {
1681 groups = "uart_ao_tx_a",
1682 "uart_ao_rx_a";
1683 function = "uart_ao_a";
1684 bias-pull-up;
1685 };
1686 };
1687
1688 uart_ao_a_cts_rts_pins: uart_ao_a_cts_rts {
1689 mux {
1690 groups = "uart_ao_cts_a",
1691 "uart_ao_rts_a";
1692 function = "uart_ao_a";
1693 bias-disable;
1694 };
1695 };
1696
1697 uart_ao_b_pins: uart_ao_b {
1698 mux {
1699 groups = "uart_ao_tx_b",
1700 "uart_ao_rx_b";
1701 function = "uart_ao_b";
1702 bias-pull-up;
1703 };
1704 };
1705
1706 uart_ao_b_cts_rts_pins: uart_ao_b_cts_rts {
1707 mux {
1708 groups = "uart_ao_cts_b",
1709 "uart_ao_rts_b";
1710 function = "uart_ao_b";
1711 bias-disable;
1712 };
1713 };
1714 };
1715
1716 sec_AO: ao-secure@140 {
1717 compatible = "amlogic,meson-gx-ao-secure", "syscon";
1718 reg = <0x0 0x140 0x0 0x140>;
1719 amlogic,has-chip-id;
1720 };
1721
1722 pwm_AO_cd: pwm@2000 {
1723 compatible = "amlogic,meson-axg-pwm-v2", "amlogic,meson8-pwm-v2";
1724 reg = <0x0 0x02000 0x0 0x20>;
1725 clocks = <&xtal>,
1726 <&clkc_AO CLKID_AO_CLK81>,
1727 <&clkc CLKID_FCLK_DIV4>,
1728 <&clkc CLKID_FCLK_DIV5>;
1729 #pwm-cells = <3>;
1730 status = "disabled";
1731 };
1732
1733 uart_AO: serial@3000 {
1734 compatible = "amlogic,meson-gx-uart", "amlogic,meson-ao-uart";
1735 reg = <0x0 0x3000 0x0 0x18>;
1736 interrupts = <GIC_SPI 193 IRQ_TYPE_EDGE_RISING>;
1737 clocks = <&xtal>, <&clkc_AO CLKID_AO_UART1>, <&xtal>;
1738 clock-names = "xtal", "pclk", "baud";
1739 status = "disabled";
1740 };
1741
1742 uart_AO_B: serial@4000 {
1743 compatible = "amlogic,meson-gx-uart", "amlogic,meson-ao-uart";
1744 reg = <0x0 0x4000 0x0 0x18>;
1745 interrupts = <GIC_SPI 197 IRQ_TYPE_EDGE_RISING>;
1746 clocks = <&xtal>, <&clkc_AO CLKID_AO_UART2>, <&xtal>;
1747 clock-names = "xtal", "pclk", "baud";
1748 status = "disabled";
1749 };
1750
1751 i2c_AO: i2c@5000 {
1752 compatible = "amlogic,meson-axg-i2c";
1753 reg = <0x0 0x05000 0x0 0x20>;
1754 interrupts = <GIC_SPI 195 IRQ_TYPE_EDGE_RISING>;
1755 clocks = <&clkc CLKID_AO_I2C>;
1756 #address-cells = <1>;
1757 #size-cells = <0>;
1758 status = "disabled";
1759 };
1760
1761 pwm_AO_ab: pwm@7000 {
1762 compatible = "amlogic,meson-axg-pwm-v2", "amlogic,meson8-pwm-v2";
1763 reg = <0x0 0x07000 0x0 0x20>;
1764 clocks = <&xtal>,
1765 <&clkc_AO CLKID_AO_CLK81>,
1766 <&clkc CLKID_FCLK_DIV4>,
1767 <&clkc CLKID_FCLK_DIV5>;
1768 #pwm-cells = <3>;
1769 status = "disabled";
1770 };
1771
1772 ir: ir@8000 {
1773 compatible = "amlogic,meson-gxbb-ir";
1774 reg = <0x0 0x8000 0x0 0x20>;
1775 interrupts = <GIC_SPI 196 IRQ_TYPE_EDGE_RISING>;
1776 status = "disabled";
1777 };
1778
1779 saradc: adc@9000 {
1780 compatible = "amlogic,meson-axg-saradc",
1781 "amlogic,meson-saradc";
1782 reg = <0x0 0x9000 0x0 0x38>;
1783 #io-channel-cells = <1>;
1784 interrupts = <GIC_SPI 73 IRQ_TYPE_EDGE_RISING>;
1785 clocks = <&xtal>,
1786 <&clkc_AO CLKID_AO_SAR_ADC>,
1787 <&clkc_AO CLKID_AO_SAR_ADC_CLK>,
1788 <&clkc_AO CLKID_AO_SAR_ADC_SEL>;
1789 clock-names = "clkin", "core", "adc_clk", "adc_sel";
1790 status = "disabled";
1791 };
1792 };
1793
1794 ge2d: ge2d@ff940000 {
1795 compatible = "amlogic,axg-ge2d";
1796 reg = <0x0 0xff940000 0x0 0x10000>;
1797 interrupts = <GIC_SPI 150 IRQ_TYPE_EDGE_RISING>;
1798 clocks = <&clkc CLKID_VAPB>;
1799 resets = <&reset RESET_GE2D>;
1800 };
1801
1802 gic: interrupt-controller@ffc01000 {
1803 compatible = "arm,gic-400";
1804 reg = <0x0 0xffc01000 0 0x1000>,
1805 <0x0 0xffc02000 0 0x2000>,
1806 <0x0 0xffc04000 0 0x2000>,
1807 <0x0 0xffc06000 0 0x2000>;
1808 interrupt-controller;
1809 interrupts = <GIC_PPI 9
1810 (GIC_CPU_MASK_SIMPLE(8) | IRQ_TYPE_LEVEL_HIGH)>;
1811 #interrupt-cells = <3>;
1812 #address-cells = <0>;
1813 };
1814
1815 cbus: bus@ffd00000 {
1816 compatible = "simple-bus";
1817 reg = <0x0 0xffd00000 0x0 0x25000>;
1818 #address-cells = <2>;
1819 #size-cells = <2>;
1820 ranges = <0x0 0x0 0x0 0xffd00000 0x0 0x25000>;
1821
1822 reset: reset-controller@1004 {
1823 compatible = "amlogic,meson-axg-reset";
1824 reg = <0x0 0x01004 0x0 0x9c>;
1825 #reset-cells = <1>;
1826 };
1827
1828 gpio_intc: interrupt-controller@f080 {
1829 compatible = "amlogic,meson-axg-gpio-intc",
1830 "amlogic,meson-gpio-intc";
1831 reg = <0x0 0xf080 0x0 0x10>;
1832 interrupt-controller;
1833 #interrupt-cells = <2>;
1834 amlogic,channel-interrupts = <64 65 66 67 68 69 70 71>;
1835 };
1836
1837 watchdog@f0d0 {
1838 compatible = "amlogic,meson-gxbb-wdt";
1839 reg = <0x0 0xf0d0 0x0 0x10>;
1840 clocks = <&xtal>;
1841 };
1842
1843 pwm_ab: pwm@1b000 {
1844 compatible = "amlogic,meson-axg-pwm-v2", "amlogic,meson8-pwm-v2";
1845 reg = <0x0 0x1b000 0x0 0x20>;
1846 clocks = <&xtal>,
1847 <&clkc CLKID_FCLK_DIV5>,
1848 <&clkc CLKID_FCLK_DIV4>,
1849 <&clkc CLKID_FCLK_DIV3>;
1850 #pwm-cells = <3>;
1851 status = "disabled";
1852 };
1853
1854 pwm_cd: pwm@1a000 {
1855 compatible = "amlogic,meson-axg-pwm-v2", "amlogic,meson8-pwm-v2";
1856 reg = <0x0 0x1a000 0x0 0x20>;
1857 clocks = <&xtal>,
1858 <&clkc CLKID_FCLK_DIV5>,
1859 <&clkc CLKID_FCLK_DIV4>,
1860 <&clkc CLKID_FCLK_DIV3>;
1861 #pwm-cells = <3>;
1862 status = "disabled";
1863 };
1864
1865 spicc0: spi@13000 {
1866 compatible = "amlogic,meson-axg-spicc";
1867 reg = <0x0 0x13000 0x0 0x3c>;
1868 interrupts = <GIC_SPI 81 IRQ_TYPE_LEVEL_HIGH>;
1869 clocks = <&clkc CLKID_SPICC0>;
1870 clock-names = "core";
1871 #address-cells = <1>;
1872 #size-cells = <0>;
1873 status = "disabled";
1874 };
1875
1876 spicc1: spi@15000 {
1877 compatible = "amlogic,meson-axg-spicc";
1878 reg = <0x0 0x15000 0x0 0x3c>;
1879 interrupts = <GIC_SPI 82 IRQ_TYPE_LEVEL_HIGH>;
1880 clocks = <&clkc CLKID_SPICC1>;
1881 clock-names = "core";
1882 #address-cells = <1>;
1883 #size-cells = <0>;
1884 status = "disabled";
1885 };
1886
1887 clk_msr: clock-measure@18000 {
1888 compatible = "amlogic,meson-axg-clk-measure";
1889 reg = <0x0 0x18000 0x0 0x10>;
1890 };
1891
1892 i2c3: i2c@1c000 {
1893 compatible = "amlogic,meson-axg-i2c";
1894 reg = <0x0 0x1c000 0x0 0x20>;
1895 interrupts = <GIC_SPI 39 IRQ_TYPE_EDGE_RISING>;
1896 clocks = <&clkc CLKID_I2C>;
1897 #address-cells = <1>;
1898 #size-cells = <0>;
1899 status = "disabled";
1900 };
1901
1902 i2c2: i2c@1d000 {
1903 compatible = "amlogic,meson-axg-i2c";
1904 reg = <0x0 0x1d000 0x0 0x20>;
1905 interrupts = <GIC_SPI 215 IRQ_TYPE_EDGE_RISING>;
1906 clocks = <&clkc CLKID_I2C>;
1907 #address-cells = <1>;
1908 #size-cells = <0>;
1909 status = "disabled";
1910 };
1911
1912 i2c1: i2c@1e000 {
1913 compatible = "amlogic,meson-axg-i2c";
1914 reg = <0x0 0x1e000 0x0 0x20>;
1915 interrupts = <GIC_SPI 214 IRQ_TYPE_EDGE_RISING>;
1916 clocks = <&clkc CLKID_I2C>;
1917 #address-cells = <1>;
1918 #size-cells = <0>;
1919 status = "disabled";
1920 };
1921
1922 i2c0: i2c@1f000 {
1923 compatible = "amlogic,meson-axg-i2c";
1924 reg = <0x0 0x1f000 0x0 0x20>;
1925 interrupts = <GIC_SPI 21 IRQ_TYPE_EDGE_RISING>;
1926 clocks = <&clkc CLKID_I2C>;
1927 #address-cells = <1>;
1928 #size-cells = <0>;
1929 status = "disabled";
1930 };
1931
1932 uart_B: serial@23000 {
1933 compatible = "amlogic,meson-gx-uart";
1934 reg = <0x0 0x23000 0x0 0x18>;
1935 interrupts = <GIC_SPI 75 IRQ_TYPE_EDGE_RISING>;
1936 status = "disabled";
1937 clocks = <&xtal>, <&clkc CLKID_UART1>, <&xtal>;
1938 clock-names = "xtal", "pclk", "baud";
1939 };
1940
1941 uart_A: serial@24000 {
1942 compatible = "amlogic,meson-gx-uart";
1943 reg = <0x0 0x24000 0x0 0x18>;
1944 interrupts = <GIC_SPI 26 IRQ_TYPE_EDGE_RISING>;
1945 status = "disabled";
1946 clocks = <&xtal>, <&clkc CLKID_UART0>, <&xtal>;
1947 clock-names = "xtal", "pclk", "baud";
1948 fifo-size = <128>;
1949 };
1950 };
1951
1952 apb: bus@ffe00000 {
1953 compatible = "simple-bus";
1954 reg = <0x0 0xffe00000 0x0 0x200000>;
1955 #address-cells = <2>;
1956 #size-cells = <2>;
1957 ranges = <0x0 0x0 0x0 0xffe00000 0x0 0x200000>;
1958
1959 sd_emmc_b: mmc@5000 {
1960 compatible = "amlogic,meson-axg-mmc";
1961 reg = <0x0 0x5000 0x0 0x800>;
1962 interrupts = <GIC_SPI 217 IRQ_TYPE_LEVEL_HIGH>;
1963 status = "disabled";
1964 clocks = <&clkc CLKID_SD_EMMC_B>,
1965 <&clkc CLKID_SD_EMMC_B_CLK0>,
1966 <&clkc CLKID_FCLK_DIV2>;
1967 clock-names = "core", "clkin0", "clkin1";
1968 resets = <&reset RESET_SD_EMMC_B>;
1969
1970 assigned-clocks = <&clkc CLKID_SD_EMMC_B_CLK0>;
1971 assigned-clock-rates = <24000000>;
1972 };
1973
1974 sd_emmc_c: mmc@7000 {
1975 compatible = "amlogic,meson-axg-mmc";
1976 reg = <0x0 0x7000 0x0 0x800>;
1977 interrupts = <GIC_SPI 218 IRQ_TYPE_LEVEL_HIGH>;
1978 status = "disabled";
1979 clocks = <&clkc CLKID_SD_EMMC_C>,
1980 <&clkc CLKID_SD_EMMC_C_CLK0>,
1981 <&clkc CLKID_FCLK_DIV2>;
1982 clock-names = "core", "clkin0", "clkin1";
1983 resets = <&reset RESET_SD_EMMC_C>;
1984
1985 assigned-clocks = <&clkc CLKID_SD_EMMC_C_CLK0>;
1986 assigned-clock-rates = <24000000>;
1987 };
1988
1989 nfc: nand-controller@7800 {
1990 compatible = "amlogic,meson-axg-nfc";
1991 reg = <0x0 0x7800 0x0 0x100>,
1992 <0x0 0x7000 0x0 0x800>;
1993 reg-names = "nfc", "emmc";
1994 pinctrl-0 = <&nand_all_pins>;
1995 pinctrl-names = "default";
1996 #address-cells = <1>;
1997 #size-cells = <0>;
1998 interrupts = <GIC_SPI 34 IRQ_TYPE_EDGE_RISING>;
1999 clocks = <&clkc CLKID_SD_EMMC_C>,
2000 <&clkc CLKID_FCLK_DIV2>;
2001 clock-names = "core", "device";
2002 };
2003
2004 usb2_phy1: phy@9020 {
2005 compatible = "amlogic,meson-gxl-usb2-phy";
2006 #phy-cells = <0>;
2007 reg = <0x0 0x9020 0x0 0x20>;
2008 clocks = <&clkc CLKID_USB>;
2009 clock-names = "phy";
2010 resets = <&reset RESET_USB_OTG>;
2011 reset-names = "phy";
2012 };
2013 };
2014
2015 sram: sram@fffc0000 {
2016 compatible = "mmio-sram";
2017 reg = <0x0 0xfffc0000 0x0 0x20000>;
2018 #address-cells = <1>;
2019 #size-cells = <1>;
2020 ranges = <0 0x0 0xfffc0000 0x20000>;
2021
2022 cpu_scp_lpri: scp-sram@13000 {
2023 compatible = "amlogic,meson-axg-scp-shmem";
2024 reg = <0x13000 0x400>;
2025 };
2026
2027 cpu_scp_hpri: scp-sram@13400 {
2028 compatible = "amlogic,meson-axg-scp-shmem";
2029 reg = <0x13400 0x400>;
2030 };
2031 };
2032 };
2033
2034 timer {
2035 compatible = "arm,armv8-timer";
2036 interrupts = <GIC_PPI 13
2037 (GIC_CPU_MASK_RAW(0xff) | IRQ_TYPE_LEVEL_LOW)>,
2038 <GIC_PPI 14
2039 (GIC_CPU_MASK_RAW(0xff) | IRQ_TYPE_LEVEL_LOW)>,
2040 <GIC_PPI 11
2041 (GIC_CPU_MASK_RAW(0xff) | IRQ_TYPE_LEVEL_LOW)>,
2042 <GIC_PPI 10
2043 (GIC_CPU_MASK_RAW(0xff) | IRQ_TYPE_LEVEL_LOW)>;
2044 };
2045
2046 xtal: xtal-clk {
2047 compatible = "fixed-clock";
2048 clock-frequency = <24000000>;
2049 clock-output-names = "xtal";
2050 #clock-cells = <0>;
2051 };
2052 };