2 * Copyright (c) 2017 Amlogic, Inc. All rights reserved.
4 * SPDX-License-Identifier: (GPL-2.0+ OR MIT)
7 #include <dt-bindings/gpio/gpio.h>
8 #include <dt-bindings/interrupt-controller/irq.h>
9 #include <dt-bindings/interrupt-controller/arm-gic.h>
10 #include <dt-bindings/clock/axg-clkc.h>
13 compatible = "amlogic,meson-axg";
15 interrupt-parent = <&gic>;
24 /* 16 MiB reserved for Hardware ROM Firmware */
25 hwrom_reserved: hwrom@0 {
26 reg = <0x0 0x0 0x0 0x1000000>;
30 /* Alternate 3 MiB reserved for ARM Trusted Firmware (BL31) */
31 secmon_reserved: secmon@5000000 {
32 reg = <0x0 0x05000000 0x0 0x300000>;
38 #address-cells = <0x2>;
43 compatible = "arm,cortex-a53", "arm,armv8";
45 enable-method = "psci";
46 next-level-cache = <&l2>;
51 compatible = "arm,cortex-a53", "arm,armv8";
53 enable-method = "psci";
54 next-level-cache = <&l2>;
59 compatible = "arm,cortex-a53", "arm,armv8";
61 enable-method = "psci";
62 next-level-cache = <&l2>;
67 compatible = "arm,cortex-a53", "arm,armv8";
69 enable-method = "psci";
70 next-level-cache = <&l2>;
79 compatible = "arm,cortex-a53-pmu";
80 interrupts = <GIC_SPI 137 IRQ_TYPE_LEVEL_HIGH>,
81 <GIC_SPI 138 IRQ_TYPE_LEVEL_HIGH>,
82 <GIC_SPI 153 IRQ_TYPE_LEVEL_HIGH>,
83 <GIC_SPI 154 IRQ_TYPE_LEVEL_HIGH>;
84 interrupt-affinity = <&cpu0>, <&cpu1>, <&cpu2>, <&cpu3>;
88 compatible = "arm,psci-1.0";
93 compatible = "arm,armv8-timer";
94 interrupts = <GIC_PPI 13
95 (GIC_CPU_MASK_RAW(0xff) | IRQ_TYPE_LEVEL_LOW)>,
97 (GIC_CPU_MASK_RAW(0xff) | IRQ_TYPE_LEVEL_LOW)>,
99 (GIC_CPU_MASK_RAW(0xff) | IRQ_TYPE_LEVEL_LOW)>,
101 (GIC_CPU_MASK_RAW(0xff) | IRQ_TYPE_LEVEL_LOW)>;
105 compatible = "fixed-clock";
106 clock-frequency = <24000000>;
107 clock-output-names = "xtal";
112 compatible = "simple-bus";
113 #address-cells = <2>;
118 compatible = "simple-bus";
119 reg = <0x0 0xffd00000 0x0 0x25000>;
120 #address-cells = <2>;
122 ranges = <0x0 0x0 0x0 0xffd00000 0x0 0x25000>;
125 compatible = "amlogic,meson-axg-ee-pwm";
126 reg = <0x0 0x1b000 0x0 0x20>;
132 compatible = "amlogic,meson-axg-ee-pwm";
133 reg = <0x0 0x1a000 0x0 0x20>;
138 reset: reset-controller@1004 {
139 compatible = "amlogic,meson-axg-reset";
140 reg = <0x0 0x01004 0x0 0x9c>;
145 compatible = "amlogic,meson-axg-spicc";
146 reg = <0x0 0x13000 0x0 0x3c>;
147 interrupts = <GIC_SPI 81 IRQ_TYPE_LEVEL_HIGH>;
148 clocks = <&clkc CLKID_SPICC0>;
149 clock-names = "core";
150 #address-cells = <1>;
156 compatible = "amlogic,meson-axg-spicc";
157 reg = <0x0 0x15000 0x0 0x3c>;
158 interrupts = <GIC_SPI 82 IRQ_TYPE_LEVEL_HIGH>;
159 clocks = <&clkc CLKID_SPICC1>;
160 clock-names = "core";
161 #address-cells = <1>;
166 uart_A: serial@24000 {
167 compatible = "amlogic,meson-gx-uart", "amlogic,meson-uart";
168 reg = <0x0 0x24000 0x0 0x18>;
169 interrupts = <GIC_SPI 26 IRQ_TYPE_EDGE_RISING>;
173 uart_B: serial@23000 {
174 compatible = "amlogic,meson-gx-uart", "amlogic,meson-uart";
175 reg = <0x0 0x23000 0x0 0x18>;
176 interrupts = <GIC_SPI 75 IRQ_TYPE_EDGE_RISING>;
181 ethmac: ethernet@ff3f0000 {
182 compatible = "amlogic,meson-gxbb-dwmac", "snps,dwmac";
183 reg = <0x0 0xff3f0000 0x0 0x10000
184 0x0 0xff634540 0x0 0x8>;
185 interrupts = <GIC_SPI 8 IRQ_TYPE_EDGE_RISING>;
186 interrupt-names = "macirq";
187 clocks = <&clkc CLKID_ETH>,
188 <&clkc CLKID_FCLK_DIV2>,
190 clock-names = "stmmaceth", "clkin0", "clkin1";
194 gic: interrupt-controller@ffc01000 {
195 compatible = "arm,gic-400";
196 reg = <0x0 0xffc01000 0 0x1000>,
197 <0x0 0xffc02000 0 0x2000>,
198 <0x0 0xffc04000 0 0x2000>,
199 <0x0 0xffc06000 0 0x2000>;
200 interrupt-controller;
201 interrupts = <GIC_PPI 9
202 (GIC_CPU_MASK_SIMPLE(8) | IRQ_TYPE_LEVEL_HIGH)>;
203 #interrupt-cells = <3>;
204 #address-cells = <0>;
207 hiubus: bus@ff63c000 {
208 compatible = "simple-bus";
209 reg = <0x0 0xff63c000 0x0 0x1c00>;
210 #address-cells = <2>;
212 ranges = <0x0 0x0 0x0 0xff63c000 0x0 0x1c00>;
214 clkc: clock-controller@0 {
215 compatible = "amlogic,axg-clkc";
217 reg = <0x0 0x0 0x0 0x320>;
221 mailbox: mailbox@ff63dc00 {
222 compatible = "amlogic,meson-gx-mhu", "amlogic,meson-gxbb-mhu";
223 reg = <0 0xff63dc00 0 0x400>;
224 interrupts = <GIC_SPI 208 IRQ_TYPE_EDGE_RISING>,
225 <GIC_SPI 209 IRQ_TYPE_EDGE_RISING>,
226 <GIC_SPI 210 IRQ_TYPE_EDGE_RISING>;
230 periphs: periphs@ff634000 {
231 compatible = "simple-bus";
232 reg = <0x0 0xff634000 0x0 0x2000>;
233 #address-cells = <2>;
235 ranges = <0x0 0x0 0x0 0xff634000 0x0 0x2000>;
237 pinctrl_periphs: pinctrl@480 {
238 compatible = "amlogic,meson-axg-periphs-pinctrl";
239 #address-cells = <2>;
244 reg = <0x0 0x00480 0x0 0x40>,
245 <0x0 0x004e8 0x0 0x14>,
246 <0x0 0x00520 0x0 0x14>,
247 <0x0 0x00430 0x0 0x3c>;
248 reg-names = "mux", "pull", "pull-enable", "gpio";
251 gpio-ranges = <&pinctrl_periphs 0 0 86>;
254 eth_rgmii_x_pins: eth-x-rgmii {
256 groups = "eth_mdio_x",
258 "eth_rgmii_rx_clk_x",
274 eth_rgmii_y_pins: eth-y-rgmii {
276 groups = "eth_mdio_y",
278 "eth_rgmii_rx_clk_y",
294 pwm_a_a_pins: pwm_a_a {
301 pwm_a_x18_pins: pwm_a_x18 {
303 groups = "pwm_a_x18";
308 pwm_a_x20_pins: pwm_a_x20 {
310 groups = "pwm_a_x20";
315 pwm_a_z_pins: pwm_a_z {
322 pwm_b_a_pins: pwm_b_a {
329 pwm_b_x_pins: pwm_b_x {
336 pwm_b_z_pins: pwm_b_z {
343 pwm_c_a_pins: pwm_c_a {
350 pwm_c_x10_pins: pwm_c_x10 {
352 groups = "pwm_c_x10";
357 pwm_c_x17_pins: pwm_c_x17 {
359 groups = "pwm_c_x17";
364 pwm_d_x11_pins: pwm_d_x11 {
366 groups = "pwm_d_x11";
371 pwm_d_x16_pins: pwm_d_x16 {
373 groups = "pwm_d_x16";
380 groups = "spi0_miso",
387 spi0_ss0_pins: spi0_ss0 {
394 spi0_ss1_pins: spi0_ss1 {
401 spi0_ss2_pins: spi0_ss2 {
409 spi1_a_pins: spi1_a {
411 groups = "spi1_miso_a",
418 spi1_ss0_a_pins: spi1_ss0_a {
420 groups = "spi1_ss0_a";
425 spi1_ss1_pins: spi1_ss1 {
432 spi1_x_pins: spi1_x {
434 groups = "spi1_miso_x",
441 spi1_ss0_x_pins: spi1_ss0_x {
443 groups = "spi1_ss0_x";
450 sram: sram@fffc0000 {
451 compatible = "amlogic,meson-axg-sram", "mmio-sram";
452 reg = <0x0 0xfffc0000 0x0 0x20000>;
453 #address-cells = <1>;
455 ranges = <0 0x0 0xfffc0000 0x20000>;
457 cpu_scp_lpri: scp-shmem@0 {
458 compatible = "amlogic,meson-axg-scp-shmem";
459 reg = <0x13000 0x400>;
462 cpu_scp_hpri: scp-shmem@200 {
463 compatible = "amlogic,meson-axg-scp-shmem";
464 reg = <0x13400 0x400>;
468 aobus: bus@ff800000 {
469 compatible = "simple-bus";
470 reg = <0x0 0xff800000 0x0 0x100000>;
471 #address-cells = <2>;
473 ranges = <0x0 0x0 0x0 0xff800000 0x0 0x100000>;
475 pinctrl_aobus: pinctrl@14 {
476 compatible = "amlogic,meson-axg-aobus-pinctrl";
477 #address-cells = <2>;
482 reg = <0x0 0x00014 0x0 0x8>,
483 <0x0 0x0002c 0x0 0x4>,
484 <0x0 0x00024 0x0 0x8>;
485 reg-names = "mux", "pull", "gpio";
488 gpio-ranges = <&pinctrl_aobus 0 0 15>;
491 remote_input_ao_pins: remote_input_ao {
493 groups = "remote_input_ao";
494 function = "remote_input_ao";
499 pwm_AO_ab: pwm@7000 {
500 compatible = "amlogic,meson-axg-ao-pwm";
501 reg = <0x0 0x07000 0x0 0x20>;
506 pwm_AO_cd: pwm@2000 {
507 compatible = "amlogic,axg-ao-pwm";
508 reg = <0x0 0x02000 0x0 0x20>;
513 uart_AO: serial@3000 {
514 compatible = "amlogic,meson-gx-uart", "amlogic,meson-ao-uart";
515 reg = <0x0 0x3000 0x0 0x18>;
516 interrupts = <GIC_SPI 193 IRQ_TYPE_EDGE_RISING>;
517 clocks = <&xtal>, <&clkc CLKID_CLK81>, <&xtal>;
518 clock-names = "xtal", "pclk", "baud";
522 uart_AO_B: serial@4000 {
523 compatible = "amlogic,meson-gx-uart", "amlogic,meson-ao-uart";
524 reg = <0x0 0x4000 0x0 0x18>;
525 interrupts = <GIC_SPI 197 IRQ_TYPE_EDGE_RISING>;
526 clocks = <&xtal>, <&clkc CLKID_CLK81>, <&xtal>;
527 clock-names = "xtal", "pclk", "baud";
532 compatible = "amlogic,meson-gxbb-ir";
533 reg = <0x0 0x8000 0x0 0x20>;
534 interrupts = <GIC_SPI 196 IRQ_TYPE_EDGE_RISING>;