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>;
24 mmc0 = &sd_emmc_b; /* SD card */
25 mmc1 = &sd_emmc_c; /* eMMC */
26 mmc2 = &sd_emmc_a; /* SDIO */
34 /* 16 MiB reserved for Hardware ROM Firmware */
35 hwrom_reserved: hwrom@0 {
36 reg = <0x0 0x0 0x0 0x1000000>;
40 /* 2 MiB reserved for ARM Trusted Firmware (BL31) */
41 secmon_reserved: secmon@10000000 {
42 reg = <0x0 0x10000000 0x0 0x200000>;
46 /* Alternate 3 MiB reserved for ARM Trusted Firmware (BL31) */
47 secmon_reserved_alt: secmon@5000000 {
48 reg = <0x0 0x05000000 0x0 0x300000>;
53 compatible = "shared-dma-pool";
55 size = <0x0 0x10000000>;
56 alignment = <0x0 0x400000>;
66 simplefb_cvbs: framebuffer-cvbs {
67 compatible = "amlogic,simple-framebuffer",
69 amlogic,pipeline = "vpu-cvbs";
70 power-domains = <&pwrc PWRC_GXBB_VPU_ID>;
74 simplefb_hdmi: framebuffer-hdmi {
75 compatible = "amlogic,simple-framebuffer",
77 amlogic,pipeline = "vpu-hdmi";
78 power-domains = <&pwrc PWRC_GXBB_VPU_ID>;
84 #address-cells = <0x2>;
89 compatible = "arm,cortex-a53";
91 enable-method = "psci";
92 next-level-cache = <&l2>;
93 clocks = <&scpi_dvfs 0>;
99 compatible = "arm,cortex-a53";
101 enable-method = "psci";
102 next-level-cache = <&l2>;
103 clocks = <&scpi_dvfs 0>;
104 #cooling-cells = <2>;
109 compatible = "arm,cortex-a53";
111 enable-method = "psci";
112 next-level-cache = <&l2>;
113 clocks = <&scpi_dvfs 0>;
114 #cooling-cells = <2>;
119 compatible = "arm,cortex-a53";
121 enable-method = "psci";
122 next-level-cache = <&l2>;
123 clocks = <&scpi_dvfs 0>;
124 #cooling-cells = <2>;
128 compatible = "cache";
134 polling-delay-passive = <250>; /* milliseconds */
135 polling-delay = <1000>; /* milliseconds */
137 thermal-sensors = <&scpi_sensors 0>;
140 cpu_passive: cpu-passive {
141 temperature = <80000>; /* millicelsius */
142 hysteresis = <2000>; /* millicelsius */
147 temperature = <90000>; /* millicelsius */
148 hysteresis = <2000>; /* millicelsius */
152 cpu_critical: cpu-critical {
153 temperature = <110000>; /* millicelsius */
154 hysteresis = <2000>; /* millicelsius */
159 cpu_cooling_maps: cooling-maps {
161 trip = <&cpu_passive>;
162 cooling-device = <&cpu0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
163 <&cpu1 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
164 <&cpu2 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
165 <&cpu3 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
170 cooling-device = <&cpu0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
171 <&cpu1 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
172 <&cpu2 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
173 <&cpu3 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
180 compatible = "arm,cortex-a53-pmu";
181 interrupts = <GIC_SPI 137 IRQ_TYPE_LEVEL_HIGH>,
182 <GIC_SPI 138 IRQ_TYPE_LEVEL_HIGH>,
183 <GIC_SPI 153 IRQ_TYPE_LEVEL_HIGH>,
184 <GIC_SPI 154 IRQ_TYPE_LEVEL_HIGH>;
185 interrupt-affinity = <&cpu0>, <&cpu1>, <&cpu2>, <&cpu3>;
189 compatible = "arm,psci-0.2";
194 compatible = "arm,armv8-timer";
195 interrupts = <GIC_PPI 13
196 (GIC_CPU_MASK_RAW(0xff) | IRQ_TYPE_LEVEL_LOW)>,
198 (GIC_CPU_MASK_RAW(0xff) | IRQ_TYPE_LEVEL_LOW)>,
200 (GIC_CPU_MASK_RAW(0xff) | IRQ_TYPE_LEVEL_LOW)>,
202 (GIC_CPU_MASK_RAW(0xff) | IRQ_TYPE_LEVEL_LOW)>;
206 compatible = "fixed-clock";
207 clock-frequency = <24000000>;
208 clock-output-names = "xtal";
214 compatible = "amlogic,meson-gx-sm", "amlogic,meson-gxbb-sm";
219 compatible = "amlogic,meson-gx-efuse", "amlogic,meson-gxbb-efuse";
220 #address-cells = <1>;
223 secure-monitor = <&sm>;
229 eth_mac: eth_mac@34 {
239 compatible = "amlogic,meson-gxbb-scpi", "arm,scpi-pre-1.0";
240 mboxes = <&mailbox 1 &mailbox 2>;
241 shmem = <&cpu_scp_lpri &cpu_scp_hpri>;
243 scpi_clocks: clocks {
244 compatible = "arm,scpi-clocks";
246 scpi_dvfs: scpi_clocks@0 {
247 compatible = "arm,scpi-dvfs-clocks";
250 clock-output-names = "vcpu";
254 scpi_sensors: sensors {
255 compatible = "amlogic,meson-gxbb-scpi-sensors", "arm,scpi-sensors";
256 #thermal-sensor-cells = <1>;
261 compatible = "simple-bus";
262 #address-cells = <2>;
267 compatible = "simple-bus";
268 reg = <0x0 0xc1100000 0x0 0x100000>;
269 #address-cells = <2>;
271 ranges = <0x0 0x0 0x0 0xc1100000 0x0 0x100000>;
273 gpio_intc: interrupt-controller@9880 {
274 compatible = "amlogic,meson-gpio-intc";
275 reg = <0x0 0x9880 0x0 0x10>;
276 interrupt-controller;
277 #interrupt-cells = <2>;
278 amlogic,channel-interrupts = <64 65 66 67 68 69 70 71>;
282 reset: reset-controller@4404 {
283 compatible = "amlogic,meson-gxbb-reset";
284 reg = <0x0 0x04404 0x0 0x9c>;
288 aiu: audio-controller@5400 {
289 compatible = "amlogic,aiu";
290 #sound-dai-cells = <2>;
291 sound-name-prefix = "AIU";
292 reg = <0x0 0x5400 0x0 0x2ac>;
293 interrupts = <GIC_SPI 48 IRQ_TYPE_EDGE_RISING>,
294 <GIC_SPI 50 IRQ_TYPE_EDGE_RISING>;
295 interrupt-names = "i2s", "spdif";
299 uart_A: serial@84c0 {
300 compatible = "amlogic,meson-gx-uart";
301 reg = <0x0 0x84c0 0x0 0x18>;
302 interrupts = <GIC_SPI 26 IRQ_TYPE_EDGE_RISING>;
307 uart_B: serial@84dc {
308 compatible = "amlogic,meson-gx-uart";
309 reg = <0x0 0x84dc 0x0 0x18>;
310 interrupts = <GIC_SPI 75 IRQ_TYPE_EDGE_RISING>;
315 compatible = "amlogic,meson-gxbb-i2c";
316 reg = <0x0 0x08500 0x0 0x20>;
317 interrupts = <GIC_SPI 21 IRQ_TYPE_EDGE_RISING>;
318 #address-cells = <1>;
324 compatible = "amlogic,meson-gx-pwm", "amlogic,meson-gxbb-pwm";
325 reg = <0x0 0x08550 0x0 0x10>;
331 compatible = "amlogic,meson-gx-pwm", "amlogic,meson-gxbb-pwm";
332 reg = <0x0 0x08650 0x0 0x10>;
338 compatible = "amlogic,meson-saradc";
339 reg = <0x0 0x8680 0x0 0x34>;
340 #io-channel-cells = <1>;
341 interrupts = <GIC_SPI 73 IRQ_TYPE_EDGE_RISING>;
346 compatible = "amlogic,meson-gx-pwm", "amlogic,meson-gxbb-pwm";
347 reg = <0x0 0x086c0 0x0 0x10>;
352 uart_C: serial@8700 {
353 compatible = "amlogic,meson-gx-uart";
354 reg = <0x0 0x8700 0x0 0x18>;
355 interrupts = <GIC_SPI 93 IRQ_TYPE_EDGE_RISING>;
360 compatible = "amlogic,meson-gx-clk-measure";
361 reg = <0x0 0x8758 0x0 0x10>;
365 compatible = "amlogic,meson-gxbb-i2c";
366 reg = <0x0 0x087c0 0x0 0x20>;
367 interrupts = <GIC_SPI 214 IRQ_TYPE_EDGE_RISING>;
368 #address-cells = <1>;
374 compatible = "amlogic,meson-gxbb-i2c";
375 reg = <0x0 0x087e0 0x0 0x20>;
376 interrupts = <GIC_SPI 215 IRQ_TYPE_EDGE_RISING>;
377 #address-cells = <1>;
383 compatible = "amlogic,meson-gx-spicc";
384 reg = <0x0 0x08d80 0x0 0x80>;
385 interrupts = <GIC_SPI 81 IRQ_TYPE_LEVEL_HIGH>;
386 #address-cells = <1>;
392 compatible = "amlogic,meson-gxbb-spifc";
393 reg = <0x0 0x08c80 0x0 0x80>;
394 #address-cells = <1>;
400 compatible = "amlogic,meson-gxbb-wdt";
401 reg = <0x0 0x098d0 0x0 0x10>;
406 gic: interrupt-controller@c4301000 {
407 compatible = "arm,gic-400";
408 reg = <0x0 0xc4301000 0 0x1000>,
409 <0x0 0xc4302000 0 0x2000>,
410 <0x0 0xc4304000 0 0x2000>,
411 <0x0 0xc4306000 0 0x2000>;
412 interrupt-controller;
413 interrupts = <GIC_PPI 9
414 (GIC_CPU_MASK_SIMPLE(8) | IRQ_TYPE_LEVEL_HIGH)>;
415 #interrupt-cells = <3>;
416 #address-cells = <0>;
419 sram: sram@c8000000 {
420 compatible = "mmio-sram";
421 reg = <0x0 0xc8000000 0x0 0x14000>;
423 #address-cells = <1>;
425 ranges = <0 0x0 0xc8000000 0x14000>;
427 cpu_scp_lpri: scp-sram@0 {
428 compatible = "amlogic,meson-gxbb-scp-shmem";
429 reg = <0x13000 0x400>;
432 cpu_scp_hpri: scp-sram@200 {
433 compatible = "amlogic,meson-gxbb-scp-shmem";
434 reg = <0x13400 0x400>;
438 aobus: bus@c8100000 {
439 compatible = "simple-bus";
440 reg = <0x0 0xc8100000 0x0 0x100000>;
441 #address-cells = <2>;
443 ranges = <0x0 0x0 0x0 0xc8100000 0x0 0x100000>;
445 sysctrl_AO: sys-ctrl@0 {
446 compatible = "amlogic,meson-gx-ao-sysctrl", "simple-mfd", "syscon";
447 reg = <0x0 0x0 0x0 0x100>;
449 clkc_AO: clock-controller {
450 compatible = "amlogic,meson-gx-aoclkc";
457 compatible = "amlogic,meson-gx-ao-cec";
458 reg = <0x0 0x00100 0x0 0x14>;
459 interrupts = <GIC_SPI 199 IRQ_TYPE_EDGE_RISING>;
463 sec_AO: ao-secure@140 {
464 compatible = "amlogic,meson-gx-ao-secure", "syscon";
465 reg = <0x0 0x140 0x0 0x140>;
469 uart_AO: serial@4c0 {
470 compatible = "amlogic,meson-gx-uart", "amlogic,meson-ao-uart";
471 reg = <0x0 0x004c0 0x0 0x18>;
472 interrupts = <GIC_SPI 193 IRQ_TYPE_EDGE_RISING>;
476 uart_AO_B: serial@4e0 {
477 compatible = "amlogic,meson-gx-uart", "amlogic,meson-ao-uart";
478 reg = <0x0 0x004e0 0x0 0x18>;
479 interrupts = <GIC_SPI 197 IRQ_TYPE_EDGE_RISING>;
484 compatible = "amlogic,meson-gxbb-i2c";
485 reg = <0x0 0x500 0x0 0x20>;
486 interrupts = <GIC_SPI 195 IRQ_TYPE_EDGE_RISING>;
487 #address-cells = <1>;
493 compatible = "amlogic,meson-gx-ao-pwm", "amlogic,meson-gxbb-ao-pwm";
494 reg = <0x0 0x00550 0x0 0x10>;
500 compatible = "amlogic,meson-gx-ir", "amlogic,meson-gxbb-ir";
501 reg = <0x0 0x00580 0x0 0x40>;
502 interrupts = <GIC_SPI 196 IRQ_TYPE_EDGE_RISING>;
507 vdec: video-codec@c8820000 {
508 compatible = "amlogic,gx-vdec";
509 reg = <0x0 0xc8820000 0x0 0x10000>,
510 <0x0 0xc110a580 0x0 0xe4>;
511 reg-names = "dos", "esparser";
513 interrupts = <GIC_SPI 44 IRQ_TYPE_EDGE_RISING>,
514 <GIC_SPI 32 IRQ_TYPE_EDGE_RISING>;
515 interrupt-names = "vdec", "esparser";
517 amlogic,ao-sysctrl = <&sysctrl_AO>;
518 amlogic,canvas = <&canvas>;
521 periphs: bus@c8834000 {
522 compatible = "simple-bus";
523 reg = <0x0 0xc8834000 0x0 0x2000>;
524 #address-cells = <2>;
526 ranges = <0x0 0x0 0x0 0xc8834000 0x0 0x2000>;
529 compatible = "amlogic,meson-rng";
530 reg = <0x0 0x0 0x0 0x4>;
534 dmcbus: bus@c8838000 {
535 compatible = "simple-bus";
536 reg = <0x0 0xc8838000 0x0 0x400>;
537 #address-cells = <2>;
539 ranges = <0x0 0x0 0x0 0xc8838000 0x0 0x400>;
541 canvas: video-lut@48 {
542 compatible = "amlogic,canvas";
543 reg = <0x0 0x48 0x0 0x14>;
547 hiubus: bus@c883c000 {
548 compatible = "simple-bus";
549 reg = <0x0 0xc883c000 0x0 0x2000>;
550 #address-cells = <2>;
552 ranges = <0x0 0x0 0x0 0xc883c000 0x0 0x2000>;
554 sysctrl: system-controller@0 {
555 compatible = "amlogic,meson-gx-hhi-sysctrl", "simple-mfd", "syscon";
558 pwrc: power-controller {
559 compatible = "amlogic,meson-gxbb-pwrc";
560 #power-domain-cells = <1>;
561 amlogic,ao-sysctrl = <&sysctrl_AO>;
565 mailbox: mailbox@404 {
566 compatible = "amlogic,meson-gxbb-mhu";
567 reg = <0 0x404 0 0x4c>;
568 interrupts = <GIC_SPI 208 IRQ_TYPE_EDGE_RISING>,
569 <GIC_SPI 209 IRQ_TYPE_EDGE_RISING>,
570 <GIC_SPI 210 IRQ_TYPE_EDGE_RISING>;
575 ethmac: ethernet@c9410000 {
576 compatible = "amlogic,meson-gxbb-dwmac",
579 reg = <0x0 0xc9410000 0x0 0x10000>,
580 <0x0 0xc8834540 0x0 0x4>;
581 interrupts = <GIC_SPI 8 IRQ_TYPE_LEVEL_HIGH>;
582 interrupt-names = "macirq";
583 rx-fifo-depth = <4096>;
584 tx-fifo-depth = <2048>;
585 power-domains = <&pwrc PWRC_GXBB_ETHERNET_MEM_ID>;
590 compatible = "simple-bus";
591 reg = <0x0 0xd0000000 0x0 0x200000>;
592 #address-cells = <2>;
594 ranges = <0x0 0x0 0x0 0xd0000000 0x0 0x200000>;
596 sd_emmc_a: mmc@70000 {
597 compatible = "amlogic,meson-gx-mmc", "amlogic,meson-gxbb-mmc";
598 reg = <0x0 0x70000 0x0 0x800>;
599 interrupts = <GIC_SPI 216 IRQ_TYPE_EDGE_RISING>;
603 sd_emmc_b: mmc@72000 {
604 compatible = "amlogic,meson-gx-mmc", "amlogic,meson-gxbb-mmc";
605 reg = <0x0 0x72000 0x0 0x800>;
606 interrupts = <GIC_SPI 217 IRQ_TYPE_EDGE_RISING>;
610 sd_emmc_c: mmc@74000 {
611 compatible = "amlogic,meson-gx-mmc", "amlogic,meson-gxbb-mmc";
612 reg = <0x0 0x74000 0x0 0x800>;
613 interrupts = <GIC_SPI 218 IRQ_TYPE_EDGE_RISING>;
619 compatible = "amlogic,meson-gx-vpu";
620 reg = <0x0 0xd0100000 0x0 0x100000>,
621 <0x0 0xc883c000 0x0 0x1000>;
622 reg-names = "vpu", "hhi";
623 interrupts = <GIC_SPI 3 IRQ_TYPE_EDGE_RISING>;
624 #address-cells = <1>;
626 amlogic,canvas = <&canvas>;
628 /* CVBS VDAC output port */
629 cvbs_vdac_port: port@0 {
633 /* HDMI-TX output port */
634 hdmi_tx_port: port@1 {
637 hdmi_tx_out: endpoint {
638 remote-endpoint = <&hdmi_tx_in>;
643 hdmi_tx: hdmi-tx@c883a000 {
644 compatible = "amlogic,meson-gx-dw-hdmi";
645 reg = <0x0 0xc883a000 0x0 0x1c>;
646 interrupts = <GIC_SPI 57 IRQ_TYPE_EDGE_RISING>;
647 #address-cells = <1>;
649 #sound-dai-cells = <0>;
650 sound-name-prefix = "HDMITX";
654 hdmi_tx_venc_port: port@0 {
657 hdmi_tx_in: endpoint {
658 remote-endpoint = <&hdmi_tx_out>;
663 hdmi_tx_tmds_port: port@1 {