1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
3 * Copyright (c) 2016 Andreas Färber
5 * Copyright (c) 2016 BayLibre, SAS.
6 * Author: Neil Armstrong <narmstrong@baylibre.com>
8 * Copyright (c) 2016 Endless Computers, Inc.
9 * Author: Carlo Caione <carlo@endlessm.com>
12 #include <dt-bindings/gpio/gpio.h>
13 #include <dt-bindings/interrupt-controller/irq.h>
14 #include <dt-bindings/interrupt-controller/arm-gic.h>
15 #include <dt-bindings/power/meson-gxbb-power.h>
16 #include <dt-bindings/thermal/thermal.h>
19 interrupt-parent = <&gic>;
28 /* 16 MiB reserved for Hardware ROM Firmware */
29 hwrom_reserved: hwrom@0 {
30 reg = <0x0 0x0 0x0 0x1000000>;
34 /* 2 MiB reserved for ARM Trusted Firmware (BL31) */
35 secmon_reserved: secmon@10000000 {
36 reg = <0x0 0x10000000 0x0 0x200000>;
40 /* Alternate 3 MiB reserved for ARM Trusted Firmware (BL31) */
41 secmon_reserved_alt: secmon@5000000 {
42 reg = <0x0 0x05000000 0x0 0x300000>;
47 compatible = "shared-dma-pool";
49 size = <0x0 0x10000000>;
50 alignment = <0x0 0x400000>;
60 simplefb_cvbs: framebuffer-cvbs {
61 compatible = "amlogic,simple-framebuffer",
63 amlogic,pipeline = "vpu-cvbs";
64 power-domains = <&pwrc PWRC_GXBB_VPU_ID>;
68 simplefb_hdmi: framebuffer-hdmi {
69 compatible = "amlogic,simple-framebuffer",
71 amlogic,pipeline = "vpu-hdmi";
72 power-domains = <&pwrc PWRC_GXBB_VPU_ID>;
78 #address-cells = <0x2>;
83 compatible = "arm,cortex-a53";
85 enable-method = "psci";
86 next-level-cache = <&l2>;
87 clocks = <&scpi_dvfs 0>;
93 compatible = "arm,cortex-a53";
95 enable-method = "psci";
96 next-level-cache = <&l2>;
97 clocks = <&scpi_dvfs 0>;
103 compatible = "arm,cortex-a53";
105 enable-method = "psci";
106 next-level-cache = <&l2>;
107 clocks = <&scpi_dvfs 0>;
108 #cooling-cells = <2>;
113 compatible = "arm,cortex-a53";
115 enable-method = "psci";
116 next-level-cache = <&l2>;
117 clocks = <&scpi_dvfs 0>;
118 #cooling-cells = <2>;
122 compatible = "cache";
128 polling-delay-passive = <250>; /* milliseconds */
129 polling-delay = <1000>; /* milliseconds */
131 thermal-sensors = <&scpi_sensors 0>;
134 cpu_passive: cpu-passive {
135 temperature = <80000>; /* millicelsius */
136 hysteresis = <2000>; /* millicelsius */
141 temperature = <90000>; /* millicelsius */
142 hysteresis = <2000>; /* millicelsius */
146 cpu_critical: cpu-critical {
147 temperature = <110000>; /* millicelsius */
148 hysteresis = <2000>; /* millicelsius */
153 cpu_cooling_maps: cooling-maps {
155 trip = <&cpu_passive>;
156 cooling-device = <&cpu0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
157 <&cpu1 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
158 <&cpu2 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
159 <&cpu3 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
164 cooling-device = <&cpu0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
165 <&cpu1 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
166 <&cpu2 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
167 <&cpu3 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
174 compatible = "arm,cortex-a53-pmu";
175 interrupts = <GIC_SPI 137 IRQ_TYPE_LEVEL_HIGH>,
176 <GIC_SPI 138 IRQ_TYPE_LEVEL_HIGH>,
177 <GIC_SPI 153 IRQ_TYPE_LEVEL_HIGH>,
178 <GIC_SPI 154 IRQ_TYPE_LEVEL_HIGH>;
179 interrupt-affinity = <&cpu0>, <&cpu1>, <&cpu2>, <&cpu3>;
183 compatible = "arm,psci-0.2";
188 compatible = "arm,armv8-timer";
189 interrupts = <GIC_PPI 13
190 (GIC_CPU_MASK_RAW(0xff) | IRQ_TYPE_LEVEL_LOW)>,
192 (GIC_CPU_MASK_RAW(0xff) | IRQ_TYPE_LEVEL_LOW)>,
194 (GIC_CPU_MASK_RAW(0xff) | IRQ_TYPE_LEVEL_LOW)>,
196 (GIC_CPU_MASK_RAW(0xff) | IRQ_TYPE_LEVEL_LOW)>;
200 compatible = "fixed-clock";
201 clock-frequency = <24000000>;
202 clock-output-names = "xtal";
208 compatible = "amlogic,meson-gx-sm", "amlogic,meson-gxbb-sm";
213 compatible = "amlogic,meson-gx-efuse", "amlogic,meson-gxbb-efuse";
214 #address-cells = <1>;
217 secure-monitor = <&sm>;
223 eth_mac: eth_mac@34 {
233 compatible = "amlogic,meson-gxbb-scpi", "arm,scpi-pre-1.0";
234 mboxes = <&mailbox 1 &mailbox 2>;
235 shmem = <&cpu_scp_lpri &cpu_scp_hpri>;
237 scpi_clocks: clocks {
238 compatible = "arm,scpi-clocks";
240 scpi_dvfs: scpi_clocks@0 {
241 compatible = "arm,scpi-dvfs-clocks";
244 clock-output-names = "vcpu";
248 scpi_sensors: sensors {
249 compatible = "amlogic,meson-gxbb-scpi-sensors", "arm,scpi-sensors";
250 #thermal-sensor-cells = <1>;
255 compatible = "simple-bus";
256 #address-cells = <2>;
261 compatible = "simple-bus";
262 reg = <0x0 0xc1100000 0x0 0x100000>;
263 #address-cells = <2>;
265 ranges = <0x0 0x0 0x0 0xc1100000 0x0 0x100000>;
267 gpio_intc: interrupt-controller@9880 {
268 compatible = "amlogic,meson-gpio-intc";
269 reg = <0x0 0x9880 0x0 0x10>;
270 interrupt-controller;
271 #interrupt-cells = <2>;
272 amlogic,channel-interrupts = <64 65 66 67 68 69 70 71>;
276 reset: reset-controller@4404 {
277 compatible = "amlogic,meson-gxbb-reset";
278 reg = <0x0 0x04404 0x0 0x9c>;
282 aiu: audio-controller@5400 {
283 compatible = "amlogic,aiu";
284 #sound-dai-cells = <2>;
285 sound-name-prefix = "AIU";
286 reg = <0x0 0x5400 0x0 0x2ac>;
287 interrupts = <GIC_SPI 48 IRQ_TYPE_EDGE_RISING>,
288 <GIC_SPI 50 IRQ_TYPE_EDGE_RISING>;
289 interrupt-names = "i2s", "spdif";
293 uart_A: serial@84c0 {
294 compatible = "amlogic,meson-gx-uart";
295 reg = <0x0 0x84c0 0x0 0x18>;
296 interrupts = <GIC_SPI 26 IRQ_TYPE_EDGE_RISING>;
300 uart_B: serial@84dc {
301 compatible = "amlogic,meson-gx-uart";
302 reg = <0x0 0x84dc 0x0 0x18>;
303 interrupts = <GIC_SPI 75 IRQ_TYPE_EDGE_RISING>;
308 compatible = "amlogic,meson-gxbb-i2c";
309 reg = <0x0 0x08500 0x0 0x20>;
310 interrupts = <GIC_SPI 21 IRQ_TYPE_EDGE_RISING>;
311 #address-cells = <1>;
317 compatible = "amlogic,meson-gx-pwm", "amlogic,meson-gxbb-pwm";
318 reg = <0x0 0x08550 0x0 0x10>;
324 compatible = "amlogic,meson-gx-pwm", "amlogic,meson-gxbb-pwm";
325 reg = <0x0 0x08650 0x0 0x10>;
331 compatible = "amlogic,meson-saradc";
332 reg = <0x0 0x8680 0x0 0x34>;
333 #io-channel-cells = <1>;
334 interrupts = <GIC_SPI 73 IRQ_TYPE_EDGE_RISING>;
339 compatible = "amlogic,meson-gx-pwm", "amlogic,meson-gxbb-pwm";
340 reg = <0x0 0x086c0 0x0 0x10>;
345 uart_C: serial@8700 {
346 compatible = "amlogic,meson-gx-uart";
347 reg = <0x0 0x8700 0x0 0x18>;
348 interrupts = <GIC_SPI 93 IRQ_TYPE_EDGE_RISING>;
353 compatible = "amlogic,meson-gx-clk-measure";
354 reg = <0x0 0x8758 0x0 0x10>;
358 compatible = "amlogic,meson-gxbb-i2c";
359 reg = <0x0 0x087c0 0x0 0x20>;
360 interrupts = <GIC_SPI 214 IRQ_TYPE_EDGE_RISING>;
361 #address-cells = <1>;
367 compatible = "amlogic,meson-gxbb-i2c";
368 reg = <0x0 0x087e0 0x0 0x20>;
369 interrupts = <GIC_SPI 215 IRQ_TYPE_EDGE_RISING>;
370 #address-cells = <1>;
376 compatible = "amlogic,meson-gx-spicc";
377 reg = <0x0 0x08d80 0x0 0x80>;
378 interrupts = <GIC_SPI 81 IRQ_TYPE_LEVEL_HIGH>;
379 #address-cells = <1>;
385 compatible = "amlogic,meson-gxbb-spifc";
386 reg = <0x0 0x08c80 0x0 0x80>;
387 #address-cells = <1>;
393 compatible = "amlogic,meson-gxbb-wdt";
394 reg = <0x0 0x098d0 0x0 0x10>;
399 gic: interrupt-controller@c4301000 {
400 compatible = "arm,gic-400";
401 reg = <0x0 0xc4301000 0 0x1000>,
402 <0x0 0xc4302000 0 0x2000>,
403 <0x0 0xc4304000 0 0x2000>,
404 <0x0 0xc4306000 0 0x2000>;
405 interrupt-controller;
406 interrupts = <GIC_PPI 9
407 (GIC_CPU_MASK_SIMPLE(8) | IRQ_TYPE_LEVEL_HIGH)>;
408 #interrupt-cells = <3>;
409 #address-cells = <0>;
412 sram: sram@c8000000 {
413 compatible = "mmio-sram";
414 reg = <0x0 0xc8000000 0x0 0x14000>;
416 #address-cells = <1>;
418 ranges = <0 0x0 0xc8000000 0x14000>;
420 cpu_scp_lpri: scp-sram@0 {
421 compatible = "amlogic,meson-gxbb-scp-shmem";
422 reg = <0x13000 0x400>;
425 cpu_scp_hpri: scp-sram@200 {
426 compatible = "amlogic,meson-gxbb-scp-shmem";
427 reg = <0x13400 0x400>;
431 aobus: bus@c8100000 {
432 compatible = "simple-bus";
433 reg = <0x0 0xc8100000 0x0 0x100000>;
434 #address-cells = <2>;
436 ranges = <0x0 0x0 0x0 0xc8100000 0x0 0x100000>;
438 sysctrl_AO: sys-ctrl@0 {
439 compatible = "amlogic,meson-gx-ao-sysctrl", "simple-mfd", "syscon";
440 reg = <0x0 0x0 0x0 0x100>;
442 clkc_AO: clock-controller {
443 compatible = "amlogic,meson-gx-aoclkc";
450 compatible = "amlogic,meson-gx-ao-cec";
451 reg = <0x0 0x00100 0x0 0x14>;
452 interrupts = <GIC_SPI 199 IRQ_TYPE_EDGE_RISING>;
456 sec_AO: ao-secure@140 {
457 compatible = "amlogic,meson-gx-ao-secure", "syscon";
458 reg = <0x0 0x140 0x0 0x140>;
462 uart_AO: serial@4c0 {
463 compatible = "amlogic,meson-gx-uart", "amlogic,meson-ao-uart";
464 reg = <0x0 0x004c0 0x0 0x18>;
465 interrupts = <GIC_SPI 193 IRQ_TYPE_EDGE_RISING>;
469 uart_AO_B: serial@4e0 {
470 compatible = "amlogic,meson-gx-uart", "amlogic,meson-ao-uart";
471 reg = <0x0 0x004e0 0x0 0x18>;
472 interrupts = <GIC_SPI 197 IRQ_TYPE_EDGE_RISING>;
477 compatible = "amlogic,meson-gxbb-i2c";
478 reg = <0x0 0x500 0x0 0x20>;
479 interrupts = <GIC_SPI 195 IRQ_TYPE_EDGE_RISING>;
480 #address-cells = <1>;
486 compatible = "amlogic,meson-gx-ao-pwm", "amlogic,meson-gxbb-ao-pwm";
487 reg = <0x0 0x00550 0x0 0x10>;
493 compatible = "amlogic,meson-gx-ir", "amlogic,meson-gxbb-ir";
494 reg = <0x0 0x00580 0x0 0x40>;
495 interrupts = <GIC_SPI 196 IRQ_TYPE_EDGE_RISING>;
500 vdec: video-codec@c8820000 {
501 compatible = "amlogic,gx-vdec";
502 reg = <0x0 0xc8820000 0x0 0x10000>,
503 <0x0 0xc110a580 0x0 0xe4>;
504 reg-names = "dos", "esparser";
506 interrupts = <GIC_SPI 44 IRQ_TYPE_EDGE_RISING>,
507 <GIC_SPI 32 IRQ_TYPE_EDGE_RISING>;
508 interrupt-names = "vdec", "esparser";
510 amlogic,ao-sysctrl = <&sysctrl_AO>;
511 amlogic,canvas = <&canvas>;
514 periphs: bus@c8834000 {
515 compatible = "simple-bus";
516 reg = <0x0 0xc8834000 0x0 0x2000>;
517 #address-cells = <2>;
519 ranges = <0x0 0x0 0x0 0xc8834000 0x0 0x2000>;
522 compatible = "amlogic,meson-rng";
523 reg = <0x0 0x0 0x0 0x4>;
527 dmcbus: bus@c8838000 {
528 compatible = "simple-bus";
529 reg = <0x0 0xc8838000 0x0 0x400>;
530 #address-cells = <2>;
532 ranges = <0x0 0x0 0x0 0xc8838000 0x0 0x400>;
534 canvas: video-lut@48 {
535 compatible = "amlogic,canvas";
536 reg = <0x0 0x48 0x0 0x14>;
540 hiubus: bus@c883c000 {
541 compatible = "simple-bus";
542 reg = <0x0 0xc883c000 0x0 0x2000>;
543 #address-cells = <2>;
545 ranges = <0x0 0x0 0x0 0xc883c000 0x0 0x2000>;
547 sysctrl: system-controller@0 {
548 compatible = "amlogic,meson-gx-hhi-sysctrl", "simple-mfd", "syscon";
551 pwrc: power-controller {
552 compatible = "amlogic,meson-gxbb-pwrc";
553 #power-domain-cells = <1>;
554 amlogic,ao-sysctrl = <&sysctrl_AO>;
558 mailbox: mailbox@404 {
559 compatible = "amlogic,meson-gxbb-mhu";
560 reg = <0 0x404 0 0x4c>;
561 interrupts = <GIC_SPI 208 IRQ_TYPE_EDGE_RISING>,
562 <GIC_SPI 209 IRQ_TYPE_EDGE_RISING>,
563 <GIC_SPI 210 IRQ_TYPE_EDGE_RISING>;
568 ethmac: ethernet@c9410000 {
569 compatible = "amlogic,meson-gxbb-dwmac",
572 reg = <0x0 0xc9410000 0x0 0x10000>,
573 <0x0 0xc8834540 0x0 0x4>;
574 interrupts = <GIC_SPI 8 IRQ_TYPE_LEVEL_HIGH>;
575 interrupt-names = "macirq";
576 rx-fifo-depth = <4096>;
577 tx-fifo-depth = <2048>;
578 power-domains = <&pwrc PWRC_GXBB_ETHERNET_MEM_ID>;
583 compatible = "simple-bus";
584 reg = <0x0 0xd0000000 0x0 0x200000>;
585 #address-cells = <2>;
587 ranges = <0x0 0x0 0x0 0xd0000000 0x0 0x200000>;
589 sd_emmc_a: mmc@70000 {
590 compatible = "amlogic,meson-gx-mmc", "amlogic,meson-gxbb-mmc";
591 reg = <0x0 0x70000 0x0 0x800>;
592 interrupts = <GIC_SPI 216 IRQ_TYPE_EDGE_RISING>;
596 sd_emmc_b: mmc@72000 {
597 compatible = "amlogic,meson-gx-mmc", "amlogic,meson-gxbb-mmc";
598 reg = <0x0 0x72000 0x0 0x800>;
599 interrupts = <GIC_SPI 217 IRQ_TYPE_EDGE_RISING>;
603 sd_emmc_c: mmc@74000 {
604 compatible = "amlogic,meson-gx-mmc", "amlogic,meson-gxbb-mmc";
605 reg = <0x0 0x74000 0x0 0x800>;
606 interrupts = <GIC_SPI 218 IRQ_TYPE_EDGE_RISING>;
612 compatible = "amlogic,meson-gx-vpu";
613 reg = <0x0 0xd0100000 0x0 0x100000>,
614 <0x0 0xc883c000 0x0 0x1000>;
615 reg-names = "vpu", "hhi";
616 interrupts = <GIC_SPI 3 IRQ_TYPE_EDGE_RISING>;
617 #address-cells = <1>;
619 amlogic,canvas = <&canvas>;
621 /* CVBS VDAC output port */
622 cvbs_vdac_port: port@0 {
626 /* HDMI-TX output port */
627 hdmi_tx_port: port@1 {
630 hdmi_tx_out: endpoint {
631 remote-endpoint = <&hdmi_tx_in>;
636 hdmi_tx: hdmi-tx@c883a000 {
637 compatible = "amlogic,meson-gx-dw-hdmi";
638 reg = <0x0 0xc883a000 0x0 0x1c>;
639 interrupts = <GIC_SPI 57 IRQ_TYPE_EDGE_RISING>;
640 #address-cells = <1>;
642 #sound-dai-cells = <0>;
643 sound-name-prefix = "HDMITX";
647 hdmi_tx_venc_port: port@0 {
650 hdmi_tx_in: endpoint {
651 remote-endpoint = <&hdmi_tx_out>;
656 hdmi_tx_tmds_port: port@1 {