2 * Copyright (c) 2016 Andreas Färber
4 * Copyright (c) 2016 BayLibre, SAS.
5 * Author: Neil Armstrong <narmstrong@baylibre.com>
7 * Copyright (c) 2016 Endless Computers, Inc.
8 * Author: Carlo Caione <carlo@endlessm.com>
10 * This file is dual-licensed: you can use it either under the terms
11 * of the GPL or the X11 license, at your option. Note that this dual
12 * licensing only applies to this file, and not this project as a
15 * a) This library is free software; you can redistribute it and/or
16 * modify it under the terms of the GNU General Public License as
17 * published by the Free Software Foundation; either version 2 of the
18 * License, or (at your option) any later version.
20 * This library is distributed in the hope that it will be useful,
21 * but WITHOUT ANY WARRANTY; without even the implied warranty of
22 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
23 * GNU General Public License for more details.
27 * b) Permission is hereby granted, free of charge, to any person
28 * obtaining a copy of this software and associated documentation
29 * files (the "Software"), to deal in the Software without
30 * restriction, including without limitation the rights to use,
31 * copy, modify, merge, publish, distribute, sublicense, and/or
32 * sell copies of the Software, and to permit persons to whom the
33 * Software is furnished to do so, subject to the following
36 * The above copyright notice and this permission notice shall be
37 * included in all copies or substantial portions of the Software.
39 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
40 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
41 * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
42 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
43 * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
44 * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
45 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
46 * OTHER DEALINGS IN THE SOFTWARE.
49 #include <dt-bindings/gpio/gpio.h>
50 #include <dt-bindings/interrupt-controller/irq.h>
51 #include <dt-bindings/interrupt-controller/arm-gic.h>
54 interrupt-parent = <&gic>;
63 /* 16 MiB reserved for Hardware ROM Firmware */
64 hwrom_reserved: hwrom@0 {
65 reg = <0x0 0x0 0x0 0x1000000>;
69 /* 2 MiB reserved for ARM Trusted Firmware (BL31) */
70 secmon_reserved: secmon@10000000 {
71 reg = <0x0 0x10000000 0x0 0x200000>;
76 compatible = "shared-dma-pool";
78 size = <0x0 0xbc00000>;
79 alignment = <0x0 0x400000>;
85 #address-cells = <0x2>;
90 compatible = "arm,cortex-a53", "arm,armv8";
92 enable-method = "psci";
93 next-level-cache = <&l2>;
94 clocks = <&scpi_dvfs 0>;
99 compatible = "arm,cortex-a53", "arm,armv8";
101 enable-method = "psci";
102 next-level-cache = <&l2>;
103 clocks = <&scpi_dvfs 0>;
108 compatible = "arm,cortex-a53", "arm,armv8";
110 enable-method = "psci";
111 next-level-cache = <&l2>;
112 clocks = <&scpi_dvfs 0>;
117 compatible = "arm,cortex-a53", "arm,armv8";
119 enable-method = "psci";
120 next-level-cache = <&l2>;
121 clocks = <&scpi_dvfs 0>;
125 compatible = "cache";
130 compatible = "arm,cortex-a53-pmu";
131 interrupts = <GIC_SPI 137 IRQ_TYPE_LEVEL_HIGH>,
132 <GIC_SPI 138 IRQ_TYPE_LEVEL_HIGH>,
133 <GIC_SPI 153 IRQ_TYPE_LEVEL_HIGH>,
134 <GIC_SPI 154 IRQ_TYPE_LEVEL_HIGH>;
135 interrupt-affinity = <&cpu0>, <&cpu1>, <&cpu2>, <&cpu3>;
139 compatible = "arm,psci-0.2";
144 compatible = "arm,armv8-timer";
145 interrupts = <GIC_PPI 13
146 (GIC_CPU_MASK_RAW(0xff) | IRQ_TYPE_LEVEL_LOW)>,
148 (GIC_CPU_MASK_RAW(0xff) | IRQ_TYPE_LEVEL_LOW)>,
150 (GIC_CPU_MASK_RAW(0xff) | IRQ_TYPE_LEVEL_LOW)>,
152 (GIC_CPU_MASK_RAW(0xff) | IRQ_TYPE_LEVEL_LOW)>;
156 compatible = "fixed-clock";
157 clock-frequency = <24000000>;
158 clock-output-names = "xtal";
164 compatible = "amlogic,meson-gx-sm", "amlogic,meson-gxbb-sm";
169 compatible = "amlogic,meson-gx-efuse", "amlogic,meson-gxbb-efuse";
170 #address-cells = <1>;
177 eth_mac: eth_mac@34 {
187 compatible = "amlogic,meson-gxbb-scpi", "arm,scpi-pre-1.0";
188 mboxes = <&mailbox 1 &mailbox 2>;
189 shmem = <&cpu_scp_lpri &cpu_scp_hpri>;
191 scpi_clocks: clocks {
192 compatible = "arm,scpi-clocks";
194 scpi_dvfs: scpi_clocks@0 {
195 compatible = "arm,scpi-dvfs-clocks";
198 clock-output-names = "vcpu";
202 scpi_sensors: sensors {
203 compatible = "amlogic,meson-gxbb-scpi-sensors", "arm,scpi-sensors";
204 #thermal-sensor-cells = <1>;
209 compatible = "simple-bus";
210 #address-cells = <2>;
215 compatible = "simple-bus";
216 reg = <0x0 0xc1100000 0x0 0x100000>;
217 #address-cells = <2>;
219 ranges = <0x0 0x0 0x0 0xc1100000 0x0 0x100000>;
221 gpio_intc: interrupt-controller@9880 {
222 compatible = "amlogic,meson-gpio-intc";
223 reg = <0x0 0x9880 0x0 0x10>;
224 interrupt-controller;
225 #interrupt-cells = <2>;
226 amlogic,channel-interrupts = <64 65 66 67 68 69 70 71>;
230 reset: reset-controller@4404 {
231 compatible = "amlogic,meson-gx-reset", "amlogic,meson-gxbb-reset";
232 reg = <0x0 0x04404 0x0 0x9c>;
236 uart_A: serial@84c0 {
237 compatible = "amlogic,meson-gx-uart";
238 reg = <0x0 0x84c0 0x0 0x14>;
239 interrupts = <GIC_SPI 26 IRQ_TYPE_EDGE_RISING>;
243 uart_B: serial@84dc {
244 compatible = "amlogic,meson-gx-uart";
245 reg = <0x0 0x84dc 0x0 0x14>;
246 interrupts = <GIC_SPI 75 IRQ_TYPE_EDGE_RISING>;
251 compatible = "amlogic,meson-gx-i2c", "amlogic,meson-gxbb-i2c";
252 reg = <0x0 0x08500 0x0 0x20>;
253 interrupts = <GIC_SPI 21 IRQ_TYPE_EDGE_RISING>;
254 #address-cells = <1>;
260 compatible = "amlogic,meson-gx-pwm", "amlogic,meson-gxbb-pwm";
261 reg = <0x0 0x08550 0x0 0x10>;
267 compatible = "amlogic,meson-gx-pwm", "amlogic,meson-gxbb-pwm";
268 reg = <0x0 0x08650 0x0 0x10>;
274 compatible = "amlogic,meson-saradc";
275 reg = <0x0 0x8680 0x0 0x34>;
276 #io-channel-cells = <1>;
277 interrupts = <GIC_SPI 73 IRQ_TYPE_EDGE_RISING>;
282 compatible = "amlogic,meson-gx-pwm", "amlogic,meson-gxbb-pwm";
283 reg = <0x0 0x086c0 0x0 0x10>;
288 uart_C: serial@8700 {
289 compatible = "amlogic,meson-gx-uart";
290 reg = <0x0 0x8700 0x0 0x14>;
291 interrupts = <GIC_SPI 93 IRQ_TYPE_EDGE_RISING>;
296 compatible = "amlogic,meson-gx-i2c", "amlogic,meson-gxbb-i2c";
297 reg = <0x0 0x087c0 0x0 0x20>;
298 interrupts = <GIC_SPI 214 IRQ_TYPE_EDGE_RISING>;
299 #address-cells = <1>;
305 compatible = "amlogic,meson-gx-i2c", "amlogic,meson-gxbb-i2c";
306 reg = <0x0 0x087e0 0x0 0x20>;
307 interrupts = <GIC_SPI 215 IRQ_TYPE_EDGE_RISING>;
308 #address-cells = <1>;
314 compatible = "amlogic,meson-gx-spicc";
315 reg = <0x0 0x08d80 0x0 0x80>;
316 interrupts = <GIC_SPI 81 IRQ_TYPE_LEVEL_HIGH>;
317 #address-cells = <1>;
323 compatible = "amlogic,meson-gx-spifc", "amlogic,meson-gxbb-spifc";
324 reg = <0x0 0x08c80 0x0 0x80>;
325 #address-cells = <1>;
331 compatible = "amlogic,meson-gx-wdt", "amlogic,meson-gxbb-wdt";
332 reg = <0x0 0x098d0 0x0 0x10>;
337 gic: interrupt-controller@c4301000 {
338 compatible = "arm,gic-400";
339 reg = <0x0 0xc4301000 0 0x1000>,
340 <0x0 0xc4302000 0 0x2000>,
341 <0x0 0xc4304000 0 0x2000>,
342 <0x0 0xc4306000 0 0x2000>;
343 interrupt-controller;
344 interrupts = <GIC_PPI 9
345 (GIC_CPU_MASK_SIMPLE(8) | IRQ_TYPE_LEVEL_HIGH)>;
346 #interrupt-cells = <3>;
347 #address-cells = <0>;
350 sram: sram@c8000000 {
351 compatible = "amlogic,meson-gx-sram", "amlogic,meson-gxbb-sram", "mmio-sram";
352 reg = <0x0 0xc8000000 0x0 0x14000>;
354 #address-cells = <1>;
356 ranges = <0 0x0 0xc8000000 0x14000>;
358 cpu_scp_lpri: scp-shmem@0 {
359 compatible = "amlogic,meson-gx-scp-shmem", "amlogic,meson-gxbb-scp-shmem";
360 reg = <0x13000 0x400>;
363 cpu_scp_hpri: scp-shmem@200 {
364 compatible = "amlogic,meson-gx-scp-shmem", "amlogic,meson-gxbb-scp-shmem";
365 reg = <0x13400 0x400>;
369 aobus: bus@c8100000 {
370 compatible = "simple-bus";
371 reg = <0x0 0xc8100000 0x0 0x100000>;
372 #address-cells = <2>;
374 ranges = <0x0 0x0 0x0 0xc8100000 0x0 0x100000>;
376 sysctrl_AO: sys-ctrl@0 {
377 compatible = "amlogic,meson-gx-ao-sysctrl", "syscon", "simple-mfd";
378 reg = <0x0 0x0 0x0 0x100>;
380 pwrc_vpu: power-controller-vpu {
381 compatible = "amlogic,meson-gx-pwrc-vpu";
382 #power-domain-cells = <0>;
383 amlogic,hhi-sysctrl = <&sysctrl>;
386 clkc_AO: clock-controller {
387 compatible = "amlogic,meson-gx-aoclkc";
394 compatible = "amlogic,meson-gx-ao-cec";
395 reg = <0x0 0x00100 0x0 0x14>;
396 interrupts = <GIC_SPI 199 IRQ_TYPE_EDGE_RISING>;
399 sec_AO: ao-secure@140 {
400 compatible = "amlogic,meson-gx-ao-secure", "syscon";
401 reg = <0x0 0x140 0x0 0x140>;
405 uart_AO: serial@4c0 {
406 compatible = "amlogic,meson-gx-uart", "amlogic,meson-ao-uart";
407 reg = <0x0 0x004c0 0x0 0x14>;
408 interrupts = <GIC_SPI 193 IRQ_TYPE_EDGE_RISING>;
412 uart_AO_B: serial@4e0 {
413 compatible = "amlogic,meson-gx-uart", "amlogic,meson-ao-uart";
414 reg = <0x0 0x004e0 0x0 0x14>;
415 interrupts = <GIC_SPI 197 IRQ_TYPE_EDGE_RISING>;
420 compatible = "amlogic,meson-gx-i2c", "amlogic,meson-gxbb-i2c";
421 reg = <0x0 0x500 0x0 0x20>;
422 interrupts = <GIC_SPI 195 IRQ_TYPE_EDGE_RISING>;
423 #address-cells = <1>;
429 compatible = "amlogic,meson-gx-ao-pwm", "amlogic,meson-gxbb-ao-pwm";
430 reg = <0x0 0x00550 0x0 0x10>;
436 compatible = "amlogic,meson-gx-ir", "amlogic,meson-gxbb-ir";
437 reg = <0x0 0x00580 0x0 0x40>;
438 interrupts = <GIC_SPI 196 IRQ_TYPE_EDGE_RISING>;
443 periphs: periphs@c8834000 {
444 compatible = "simple-bus";
445 reg = <0x0 0xc8834000 0x0 0x2000>;
446 #address-cells = <2>;
448 ranges = <0x0 0x0 0x0 0xc8834000 0x0 0x2000>;
451 compatible = "amlogic,meson-rng";
452 reg = <0x0 0x0 0x0 0x4>;
456 hiubus: bus@c883c000 {
457 compatible = "simple-bus";
458 reg = <0x0 0xc883c000 0x0 0x2000>;
459 #address-cells = <2>;
461 ranges = <0x0 0x0 0x0 0xc883c000 0x0 0x2000>;
463 sysctrl: system-controller@0 {
464 compatible = "amlogic,meson-gx-hhi-sysctrl", "syscon", "simple-mfd";
468 mailbox: mailbox@404 {
469 compatible = "amlogic,meson-gx-mhu", "amlogic,meson-gxbb-mhu";
470 reg = <0 0x404 0 0x4c>;
471 interrupts = <GIC_SPI 208 IRQ_TYPE_EDGE_RISING>,
472 <GIC_SPI 209 IRQ_TYPE_EDGE_RISING>,
473 <GIC_SPI 210 IRQ_TYPE_EDGE_RISING>;
478 ethmac: ethernet@c9410000 {
479 compatible = "amlogic,meson-gx-dwmac", "amlogic,meson-gxbb-dwmac", "snps,dwmac";
480 reg = <0x0 0xc9410000 0x0 0x10000
481 0x0 0xc8834540 0x0 0x4>;
482 interrupts = <GIC_SPI 8 IRQ_TYPE_EDGE_RISING>;
483 interrupt-names = "macirq";
488 compatible = "simple-bus";
489 reg = <0x0 0xd0000000 0x0 0x200000>;
490 #address-cells = <2>;
492 ranges = <0x0 0x0 0x0 0xd0000000 0x0 0x200000>;
494 sd_emmc_a: mmc@70000 {
495 compatible = "amlogic,meson-gx-mmc", "amlogic,meson-gxbb-mmc";
496 reg = <0x0 0x70000 0x0 0x2000>;
497 interrupts = <GIC_SPI 216 IRQ_TYPE_EDGE_RISING>;
501 sd_emmc_b: mmc@72000 {
502 compatible = "amlogic,meson-gx-mmc", "amlogic,meson-gxbb-mmc";
503 reg = <0x0 0x72000 0x0 0x2000>;
504 interrupts = <GIC_SPI 217 IRQ_TYPE_EDGE_RISING>;
508 sd_emmc_c: mmc@74000 {
509 compatible = "amlogic,meson-gx-mmc", "amlogic,meson-gxbb-mmc";
510 reg = <0x0 0x74000 0x0 0x2000>;
511 interrupts = <GIC_SPI 218 IRQ_TYPE_EDGE_RISING>;
517 compatible = "amlogic,meson-gx-vpu";
518 reg = <0x0 0xd0100000 0x0 0x100000>,
519 <0x0 0xc883c000 0x0 0x1000>,
520 <0x0 0xc8838000 0x0 0x1000>;
521 reg-names = "vpu", "hhi", "dmc";
522 interrupts = <GIC_SPI 3 IRQ_TYPE_EDGE_RISING>;
523 #address-cells = <1>;
526 /* CVBS VDAC output port */
527 cvbs_vdac_port: port@0 {
531 /* HDMI-TX output port */
532 hdmi_tx_port: port@1 {
535 hdmi_tx_out: endpoint {
536 remote-endpoint = <&hdmi_tx_in>;
541 hdmi_tx: hdmi-tx@c883a000 {
542 compatible = "amlogic,meson-gx-dw-hdmi";
543 reg = <0x0 0xc883a000 0x0 0x1c>;
544 interrupts = <GIC_SPI 57 IRQ_TYPE_EDGE_RISING>;
545 #address-cells = <1>;
550 hdmi_tx_venc_port: port@0 {
553 hdmi_tx_in: endpoint {
554 remote-endpoint = <&hdmi_tx_out>;
559 hdmi_tx_tmds_port: port@1 {