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>
17 interrupt-parent = <&gic>;
26 /* 16 MiB reserved for Hardware ROM Firmware */
27 hwrom_reserved: hwrom@0 {
28 reg = <0x0 0x0 0x0 0x1000000>;
32 /* 2 MiB reserved for ARM Trusted Firmware (BL31) */
33 secmon_reserved: secmon@10000000 {
34 reg = <0x0 0x10000000 0x0 0x200000>;
39 compatible = "shared-dma-pool";
41 size = <0x0 0xbc00000>;
42 alignment = <0x0 0x400000>;
48 #address-cells = <0x2>;
53 compatible = "arm,cortex-a53", "arm,armv8";
55 enable-method = "psci";
56 next-level-cache = <&l2>;
57 clocks = <&scpi_dvfs 0>;
62 compatible = "arm,cortex-a53", "arm,armv8";
64 enable-method = "psci";
65 next-level-cache = <&l2>;
66 clocks = <&scpi_dvfs 0>;
71 compatible = "arm,cortex-a53", "arm,armv8";
73 enable-method = "psci";
74 next-level-cache = <&l2>;
75 clocks = <&scpi_dvfs 0>;
80 compatible = "arm,cortex-a53", "arm,armv8";
82 enable-method = "psci";
83 next-level-cache = <&l2>;
84 clocks = <&scpi_dvfs 0>;
93 compatible = "arm,cortex-a53-pmu";
94 interrupts = <GIC_SPI 137 IRQ_TYPE_LEVEL_HIGH>,
95 <GIC_SPI 138 IRQ_TYPE_LEVEL_HIGH>,
96 <GIC_SPI 153 IRQ_TYPE_LEVEL_HIGH>,
97 <GIC_SPI 154 IRQ_TYPE_LEVEL_HIGH>;
98 interrupt-affinity = <&cpu0>, <&cpu1>, <&cpu2>, <&cpu3>;
102 compatible = "arm,psci-0.2";
107 compatible = "arm,armv8-timer";
108 interrupts = <GIC_PPI 13
109 (GIC_CPU_MASK_RAW(0xff) | IRQ_TYPE_LEVEL_LOW)>,
111 (GIC_CPU_MASK_RAW(0xff) | IRQ_TYPE_LEVEL_LOW)>,
113 (GIC_CPU_MASK_RAW(0xff) | IRQ_TYPE_LEVEL_LOW)>,
115 (GIC_CPU_MASK_RAW(0xff) | IRQ_TYPE_LEVEL_LOW)>;
119 compatible = "fixed-clock";
120 clock-frequency = <24000000>;
121 clock-output-names = "xtal";
127 compatible = "amlogic,meson-gx-sm", "amlogic,meson-gxbb-sm";
132 compatible = "amlogic,meson-gx-efuse", "amlogic,meson-gxbb-efuse";
133 #address-cells = <1>;
140 eth_mac: eth_mac@34 {
150 compatible = "amlogic,meson-gxbb-scpi", "arm,scpi-pre-1.0";
151 mboxes = <&mailbox 1 &mailbox 2>;
152 shmem = <&cpu_scp_lpri &cpu_scp_hpri>;
154 scpi_clocks: clocks {
155 compatible = "arm,scpi-clocks";
157 scpi_dvfs: scpi_clocks@0 {
158 compatible = "arm,scpi-dvfs-clocks";
161 clock-output-names = "vcpu";
165 scpi_sensors: sensors {
166 compatible = "amlogic,meson-gxbb-scpi-sensors", "arm,scpi-sensors";
167 #thermal-sensor-cells = <1>;
172 compatible = "simple-bus";
173 #address-cells = <2>;
178 compatible = "simple-bus";
179 reg = <0x0 0xc1100000 0x0 0x100000>;
180 #address-cells = <2>;
182 ranges = <0x0 0x0 0x0 0xc1100000 0x0 0x100000>;
184 gpio_intc: interrupt-controller@9880 {
185 compatible = "amlogic,meson-gpio-intc";
186 reg = <0x0 0x9880 0x0 0x10>;
187 interrupt-controller;
188 #interrupt-cells = <2>;
189 amlogic,channel-interrupts = <64 65 66 67 68 69 70 71>;
193 reset: reset-controller@4404 {
194 compatible = "amlogic,meson-gx-reset", "amlogic,meson-gxbb-reset";
195 reg = <0x0 0x04404 0x0 0x9c>;
199 uart_A: serial@84c0 {
200 compatible = "amlogic,meson-gx-uart";
201 reg = <0x0 0x84c0 0x0 0x18>;
202 interrupts = <GIC_SPI 26 IRQ_TYPE_EDGE_RISING>;
206 uart_B: serial@84dc {
207 compatible = "amlogic,meson-gx-uart";
208 reg = <0x0 0x84dc 0x0 0x18>;
209 interrupts = <GIC_SPI 75 IRQ_TYPE_EDGE_RISING>;
214 compatible = "amlogic,meson-gx-i2c", "amlogic,meson-gxbb-i2c";
215 reg = <0x0 0x08500 0x0 0x20>;
216 interrupts = <GIC_SPI 21 IRQ_TYPE_EDGE_RISING>;
217 #address-cells = <1>;
223 compatible = "amlogic,meson-gx-pwm", "amlogic,meson-gxbb-pwm";
224 reg = <0x0 0x08550 0x0 0x10>;
230 compatible = "amlogic,meson-gx-pwm", "amlogic,meson-gxbb-pwm";
231 reg = <0x0 0x08650 0x0 0x10>;
237 compatible = "amlogic,meson-saradc";
238 reg = <0x0 0x8680 0x0 0x34>;
239 #io-channel-cells = <1>;
240 interrupts = <GIC_SPI 73 IRQ_TYPE_EDGE_RISING>;
245 compatible = "amlogic,meson-gx-pwm", "amlogic,meson-gxbb-pwm";
246 reg = <0x0 0x086c0 0x0 0x10>;
251 uart_C: serial@8700 {
252 compatible = "amlogic,meson-gx-uart";
253 reg = <0x0 0x8700 0x0 0x18>;
254 interrupts = <GIC_SPI 93 IRQ_TYPE_EDGE_RISING>;
259 compatible = "amlogic,meson-gx-i2c", "amlogic,meson-gxbb-i2c";
260 reg = <0x0 0x087c0 0x0 0x20>;
261 interrupts = <GIC_SPI 214 IRQ_TYPE_EDGE_RISING>;
262 #address-cells = <1>;
268 compatible = "amlogic,meson-gx-i2c", "amlogic,meson-gxbb-i2c";
269 reg = <0x0 0x087e0 0x0 0x20>;
270 interrupts = <GIC_SPI 215 IRQ_TYPE_EDGE_RISING>;
271 #address-cells = <1>;
277 compatible = "amlogic,meson-gx-spicc";
278 reg = <0x0 0x08d80 0x0 0x80>;
279 interrupts = <GIC_SPI 81 IRQ_TYPE_LEVEL_HIGH>;
280 #address-cells = <1>;
286 compatible = "amlogic,meson-gx-spifc", "amlogic,meson-gxbb-spifc";
287 reg = <0x0 0x08c80 0x0 0x80>;
288 #address-cells = <1>;
294 compatible = "amlogic,meson-gx-wdt", "amlogic,meson-gxbb-wdt";
295 reg = <0x0 0x098d0 0x0 0x10>;
300 gic: interrupt-controller@c4301000 {
301 compatible = "arm,gic-400";
302 reg = <0x0 0xc4301000 0 0x1000>,
303 <0x0 0xc4302000 0 0x2000>,
304 <0x0 0xc4304000 0 0x2000>,
305 <0x0 0xc4306000 0 0x2000>;
306 interrupt-controller;
307 interrupts = <GIC_PPI 9
308 (GIC_CPU_MASK_SIMPLE(8) | IRQ_TYPE_LEVEL_HIGH)>;
309 #interrupt-cells = <3>;
310 #address-cells = <0>;
313 sram: sram@c8000000 {
314 compatible = "amlogic,meson-gx-sram", "amlogic,meson-gxbb-sram", "mmio-sram";
315 reg = <0x0 0xc8000000 0x0 0x14000>;
317 #address-cells = <1>;
319 ranges = <0 0x0 0xc8000000 0x14000>;
321 cpu_scp_lpri: scp-shmem@0 {
322 compatible = "amlogic,meson-gx-scp-shmem", "amlogic,meson-gxbb-scp-shmem";
323 reg = <0x13000 0x400>;
326 cpu_scp_hpri: scp-shmem@200 {
327 compatible = "amlogic,meson-gx-scp-shmem", "amlogic,meson-gxbb-scp-shmem";
328 reg = <0x13400 0x400>;
332 aobus: bus@c8100000 {
333 compatible = "simple-bus";
334 reg = <0x0 0xc8100000 0x0 0x100000>;
335 #address-cells = <2>;
337 ranges = <0x0 0x0 0x0 0xc8100000 0x0 0x100000>;
339 sysctrl_AO: sys-ctrl@0 {
340 compatible = "amlogic,meson-gx-ao-sysctrl", "syscon", "simple-mfd";
341 reg = <0x0 0x0 0x0 0x100>;
343 pwrc_vpu: power-controller-vpu {
344 compatible = "amlogic,meson-gx-pwrc-vpu";
345 #power-domain-cells = <0>;
346 amlogic,hhi-sysctrl = <&sysctrl>;
349 clkc_AO: clock-controller {
350 compatible = "amlogic,meson-gx-aoclkc";
357 compatible = "amlogic,meson-gx-ao-cec";
358 reg = <0x0 0x00100 0x0 0x14>;
359 interrupts = <GIC_SPI 199 IRQ_TYPE_EDGE_RISING>;
362 sec_AO: ao-secure@140 {
363 compatible = "amlogic,meson-gx-ao-secure", "syscon";
364 reg = <0x0 0x140 0x0 0x140>;
368 uart_AO: serial@4c0 {
369 compatible = "amlogic,meson-gx-uart", "amlogic,meson-ao-uart";
370 reg = <0x0 0x004c0 0x0 0x18>;
371 interrupts = <GIC_SPI 193 IRQ_TYPE_EDGE_RISING>;
375 uart_AO_B: serial@4e0 {
376 compatible = "amlogic,meson-gx-uart", "amlogic,meson-ao-uart";
377 reg = <0x0 0x004e0 0x0 0x18>;
378 interrupts = <GIC_SPI 197 IRQ_TYPE_EDGE_RISING>;
383 compatible = "amlogic,meson-gx-i2c", "amlogic,meson-gxbb-i2c";
384 reg = <0x0 0x500 0x0 0x20>;
385 interrupts = <GIC_SPI 195 IRQ_TYPE_EDGE_RISING>;
386 #address-cells = <1>;
392 compatible = "amlogic,meson-gx-ao-pwm", "amlogic,meson-gxbb-ao-pwm";
393 reg = <0x0 0x00550 0x0 0x10>;
399 compatible = "amlogic,meson-gx-ir", "amlogic,meson-gxbb-ir";
400 reg = <0x0 0x00580 0x0 0x40>;
401 interrupts = <GIC_SPI 196 IRQ_TYPE_EDGE_RISING>;
406 periphs: periphs@c8834000 {
407 compatible = "simple-bus";
408 reg = <0x0 0xc8834000 0x0 0x2000>;
409 #address-cells = <2>;
411 ranges = <0x0 0x0 0x0 0xc8834000 0x0 0x2000>;
414 compatible = "amlogic,meson-rng";
415 reg = <0x0 0x0 0x0 0x4>;
419 hiubus: bus@c883c000 {
420 compatible = "simple-bus";
421 reg = <0x0 0xc883c000 0x0 0x2000>;
422 #address-cells = <2>;
424 ranges = <0x0 0x0 0x0 0xc883c000 0x0 0x2000>;
426 sysctrl: system-controller@0 {
427 compatible = "amlogic,meson-gx-hhi-sysctrl", "syscon", "simple-mfd";
431 mailbox: mailbox@404 {
432 compatible = "amlogic,meson-gx-mhu", "amlogic,meson-gxbb-mhu";
433 reg = <0 0x404 0 0x4c>;
434 interrupts = <GIC_SPI 208 IRQ_TYPE_EDGE_RISING>,
435 <GIC_SPI 209 IRQ_TYPE_EDGE_RISING>,
436 <GIC_SPI 210 IRQ_TYPE_EDGE_RISING>;
441 ethmac: ethernet@c9410000 {
442 compatible = "amlogic,meson-gx-dwmac", "amlogic,meson-gxbb-dwmac", "snps,dwmac";
443 reg = <0x0 0xc9410000 0x0 0x10000
444 0x0 0xc8834540 0x0 0x4>;
445 interrupts = <GIC_SPI 8 IRQ_TYPE_EDGE_RISING>;
446 interrupt-names = "macirq";
451 compatible = "simple-bus";
452 reg = <0x0 0xd0000000 0x0 0x200000>;
453 #address-cells = <2>;
455 ranges = <0x0 0x0 0x0 0xd0000000 0x0 0x200000>;
457 sd_emmc_a: mmc@70000 {
458 compatible = "amlogic,meson-gx-mmc", "amlogic,meson-gxbb-mmc";
459 reg = <0x0 0x70000 0x0 0x2000>;
460 interrupts = <GIC_SPI 216 IRQ_TYPE_EDGE_RISING>;
464 sd_emmc_b: mmc@72000 {
465 compatible = "amlogic,meson-gx-mmc", "amlogic,meson-gxbb-mmc";
466 reg = <0x0 0x72000 0x0 0x2000>;
467 interrupts = <GIC_SPI 217 IRQ_TYPE_EDGE_RISING>;
471 sd_emmc_c: mmc@74000 {
472 compatible = "amlogic,meson-gx-mmc", "amlogic,meson-gxbb-mmc";
473 reg = <0x0 0x74000 0x0 0x2000>;
474 interrupts = <GIC_SPI 218 IRQ_TYPE_EDGE_RISING>;
480 compatible = "amlogic,meson-gx-vpu";
481 reg = <0x0 0xd0100000 0x0 0x100000>,
482 <0x0 0xc883c000 0x0 0x1000>,
483 <0x0 0xc8838000 0x0 0x1000>;
484 reg-names = "vpu", "hhi", "dmc";
485 interrupts = <GIC_SPI 3 IRQ_TYPE_EDGE_RISING>;
486 #address-cells = <1>;
489 /* CVBS VDAC output port */
490 cvbs_vdac_port: port@0 {
494 /* HDMI-TX output port */
495 hdmi_tx_port: port@1 {
498 hdmi_tx_out: endpoint {
499 remote-endpoint = <&hdmi_tx_in>;
504 hdmi_tx: hdmi-tx@c883a000 {
505 compatible = "amlogic,meson-gx-dw-hdmi";
506 reg = <0x0 0xc883a000 0x0 0x1c>;
507 interrupts = <GIC_SPI 57 IRQ_TYPE_EDGE_RISING>;
508 #address-cells = <1>;
513 hdmi_tx_venc_port: port@0 {
516 hdmi_tx_in: endpoint {
517 remote-endpoint = <&hdmi_tx_out>;
522 hdmi_tx_tmds_port: port@1 {