1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
3 * Copyright (c) 2017 Amlogic, Inc. All rights reserved.
6 #include <dt-bindings/gpio/gpio.h>
7 #include <dt-bindings/interrupt-controller/irq.h>
8 #include <dt-bindings/interrupt-controller/arm-gic.h>
9 #include <dt-bindings/clock/axg-clkc.h>
12 compatible = "amlogic,meson-axg";
14 interrupt-parent = <&gic>;
23 /* 16 MiB reserved for Hardware ROM Firmware */
24 hwrom_reserved: hwrom@0 {
25 reg = <0x0 0x0 0x0 0x1000000>;
29 /* Alternate 3 MiB reserved for ARM Trusted Firmware (BL31) */
30 secmon_reserved: secmon@5000000 {
31 reg = <0x0 0x05000000 0x0 0x300000>;
37 #address-cells = <0x2>;
42 compatible = "arm,cortex-a53", "arm,armv8";
44 enable-method = "psci";
45 next-level-cache = <&l2>;
50 compatible = "arm,cortex-a53", "arm,armv8";
52 enable-method = "psci";
53 next-level-cache = <&l2>;
58 compatible = "arm,cortex-a53", "arm,armv8";
60 enable-method = "psci";
61 next-level-cache = <&l2>;
66 compatible = "arm,cortex-a53", "arm,armv8";
68 enable-method = "psci";
69 next-level-cache = <&l2>;
78 compatible = "arm,cortex-a53-pmu";
79 interrupts = <GIC_SPI 137 IRQ_TYPE_LEVEL_HIGH>,
80 <GIC_SPI 138 IRQ_TYPE_LEVEL_HIGH>,
81 <GIC_SPI 153 IRQ_TYPE_LEVEL_HIGH>,
82 <GIC_SPI 154 IRQ_TYPE_LEVEL_HIGH>;
83 interrupt-affinity = <&cpu0>, <&cpu1>, <&cpu2>, <&cpu3>;
87 compatible = "arm,psci-1.0";
92 compatible = "arm,armv8-timer";
93 interrupts = <GIC_PPI 13
94 (GIC_CPU_MASK_RAW(0xff) | IRQ_TYPE_LEVEL_LOW)>,
96 (GIC_CPU_MASK_RAW(0xff) | IRQ_TYPE_LEVEL_LOW)>,
98 (GIC_CPU_MASK_RAW(0xff) | IRQ_TYPE_LEVEL_LOW)>,
100 (GIC_CPU_MASK_RAW(0xff) | IRQ_TYPE_LEVEL_LOW)>;
104 compatible = "fixed-clock";
105 clock-frequency = <24000000>;
106 clock-output-names = "xtal";
111 compatible = "simple-bus";
112 #address-cells = <2>;
117 compatible = "simple-bus";
118 reg = <0x0 0xffd00000 0x0 0x25000>;
119 #address-cells = <2>;
121 ranges = <0x0 0x0 0x0 0xffd00000 0x0 0x25000>;
124 compatible = "amlogic,meson-axg-ee-pwm";
125 reg = <0x0 0x1b000 0x0 0x20>;
131 compatible = "amlogic,meson-axg-ee-pwm";
132 reg = <0x0 0x1a000 0x0 0x20>;
137 reset: reset-controller@1004 {
138 compatible = "amlogic,meson-axg-reset";
139 reg = <0x0 0x01004 0x0 0x9c>;
144 compatible = "amlogic,meson-axg-spicc";
145 reg = <0x0 0x13000 0x0 0x3c>;
146 interrupts = <GIC_SPI 81 IRQ_TYPE_LEVEL_HIGH>;
147 clocks = <&clkc CLKID_SPICC0>;
148 clock-names = "core";
149 #address-cells = <1>;
155 compatible = "amlogic,meson-axg-spicc";
156 reg = <0x0 0x15000 0x0 0x3c>;
157 interrupts = <GIC_SPI 82 IRQ_TYPE_LEVEL_HIGH>;
158 clocks = <&clkc CLKID_SPICC1>;
159 clock-names = "core";
160 #address-cells = <1>;
166 compatible = "amlogic,meson-axg-i2c";
168 reg = <0x0 0x1f000 0x0 0x20>;
169 interrupts = <GIC_SPI 21 IRQ_TYPE_EDGE_RISING>,
170 <GIC_SPI 47 IRQ_TYPE_EDGE_RISING>;
171 #address-cells = <1>;
173 clocks = <&clkc CLKID_I2C>;
174 clock-names = "clk_i2c";
178 compatible = "amlogic,meson-axg-i2c";
179 #address-cells = <1>;
181 reg = <0x0 0x1e000 0x0 0x20>;
183 interrupts = <GIC_SPI 214 IRQ_TYPE_EDGE_RISING>,
184 <GIC_SPI 48 IRQ_TYPE_EDGE_RISING>;
185 clocks = <&clkc CLKID_I2C>;
186 clock-names = "clk_i2c";
190 compatible = "amlogic,meson-axg-i2c";
192 reg = <0x0 0x1d000 0x0 0x20>;
193 interrupts = <GIC_SPI 215 IRQ_TYPE_EDGE_RISING>,
194 <GIC_SPI 49 IRQ_TYPE_EDGE_RISING>;
195 #address-cells = <1>;
197 clocks = <&clkc CLKID_I2C>;
198 clock-names = "clk_i2c";
202 compatible = "amlogic,meson-axg-i2c";
204 reg = <0x0 0x1c000 0x0 0x20>;
205 interrupts = <GIC_SPI 39 IRQ_TYPE_EDGE_RISING>,
206 <GIC_SPI 50 IRQ_TYPE_EDGE_RISING>;
207 #address-cells = <1>;
209 clocks = <&clkc CLKID_I2C>;
210 clock-names = "clk_i2c";
213 uart_A: serial@24000 {
214 compatible = "amlogic,meson-gx-uart";
215 reg = <0x0 0x24000 0x0 0x18>;
216 interrupts = <GIC_SPI 26 IRQ_TYPE_EDGE_RISING>;
218 clocks = <&xtal>, <&clkc CLKID_UART0>, <&xtal>;
219 clock-names = "xtal", "pclk", "baud";
222 uart_B: serial@23000 {
223 compatible = "amlogic,meson-gx-uart";
224 reg = <0x0 0x23000 0x0 0x18>;
225 interrupts = <GIC_SPI 75 IRQ_TYPE_EDGE_RISING>;
227 clocks = <&xtal>, <&clkc CLKID_UART1>, <&xtal>;
228 clock-names = "xtal", "pclk", "baud";
232 ethmac: ethernet@ff3f0000 {
233 compatible = "amlogic,meson-gxbb-dwmac", "snps,dwmac";
234 reg = <0x0 0xff3f0000 0x0 0x10000
235 0x0 0xff634540 0x0 0x8>;
236 interrupts = <GIC_SPI 8 IRQ_TYPE_EDGE_RISING>;
237 interrupt-names = "macirq";
238 clocks = <&clkc CLKID_ETH>,
239 <&clkc CLKID_FCLK_DIV2>,
241 clock-names = "stmmaceth", "clkin0", "clkin1";
245 gic: interrupt-controller@ffc01000 {
246 compatible = "arm,gic-400";
247 reg = <0x0 0xffc01000 0 0x1000>,
248 <0x0 0xffc02000 0 0x2000>,
249 <0x0 0xffc04000 0 0x2000>,
250 <0x0 0xffc06000 0 0x2000>;
251 interrupt-controller;
252 interrupts = <GIC_PPI 9
253 (GIC_CPU_MASK_SIMPLE(8) | IRQ_TYPE_LEVEL_HIGH)>;
254 #interrupt-cells = <3>;
255 #address-cells = <0>;
258 hiubus: bus@ff63c000 {
259 compatible = "simple-bus";
260 reg = <0x0 0xff63c000 0x0 0x1c00>;
261 #address-cells = <2>;
263 ranges = <0x0 0x0 0x0 0xff63c000 0x0 0x1c00>;
265 clkc: clock-controller@0 {
266 compatible = "amlogic,axg-clkc";
268 reg = <0x0 0x0 0x0 0x320>;
272 mailbox: mailbox@ff63dc00 {
273 compatible = "amlogic,meson-gx-mhu", "amlogic,meson-gxbb-mhu";
274 reg = <0 0xff63dc00 0 0x400>;
275 interrupts = <GIC_SPI 208 IRQ_TYPE_EDGE_RISING>,
276 <GIC_SPI 209 IRQ_TYPE_EDGE_RISING>,
277 <GIC_SPI 210 IRQ_TYPE_EDGE_RISING>;
281 periphs: periphs@ff634000 {
282 compatible = "simple-bus";
283 reg = <0x0 0xff634000 0x0 0x2000>;
284 #address-cells = <2>;
286 ranges = <0x0 0x0 0x0 0xff634000 0x0 0x2000>;
289 compatible = "amlogic,meson-rng";
290 reg = <0x0 0x18 0x0 0x4>;
291 clocks = <&clkc CLKID_RNG0>;
292 clock-names = "core";
295 pinctrl_periphs: pinctrl@480 {
296 compatible = "amlogic,meson-axg-periphs-pinctrl";
297 #address-cells = <2>;
302 reg = <0x0 0x00480 0x0 0x40>,
303 <0x0 0x004e8 0x0 0x14>,
304 <0x0 0x00520 0x0 0x14>,
305 <0x0 0x00430 0x0 0x3c>;
306 reg-names = "mux", "pull", "pull-enable", "gpio";
309 gpio-ranges = <&pinctrl_periphs 0 0 86>;
312 eth_rmii_x_pins: eth-x-rmii {
314 groups = "eth_mdio_x",
316 "eth_rgmii_rx_clk_x",
327 eth_rmii_y_pins: eth-y-rmii {
329 groups = "eth_mdio_y",
331 "eth_rgmii_rx_clk_y",
342 eth_rgmii_x_pins: eth-x-rgmii {
344 groups = "eth_mdio_x",
346 "eth_rgmii_rx_clk_x",
362 eth_rgmii_y_pins: eth-y-rgmii {
364 groups = "eth_mdio_y",
366 "eth_rgmii_rx_clk_y",
382 pwm_a_a_pins: pwm_a_a {
389 pwm_a_x18_pins: pwm_a_x18 {
391 groups = "pwm_a_x18";
396 pwm_a_x20_pins: pwm_a_x20 {
398 groups = "pwm_a_x20";
403 pwm_a_z_pins: pwm_a_z {
410 pwm_b_a_pins: pwm_b_a {
417 pwm_b_x_pins: pwm_b_x {
424 pwm_b_z_pins: pwm_b_z {
431 pwm_c_a_pins: pwm_c_a {
438 pwm_c_x10_pins: pwm_c_x10 {
440 groups = "pwm_c_x10";
445 pwm_c_x17_pins: pwm_c_x17 {
447 groups = "pwm_c_x17";
452 pwm_d_x11_pins: pwm_d_x11 {
454 groups = "pwm_d_x11";
459 pwm_d_x16_pins: pwm_d_x16 {
461 groups = "pwm_d_x16";
468 groups = "spi0_miso",
475 spi0_ss0_pins: spi0_ss0 {
482 spi0_ss1_pins: spi0_ss1 {
489 spi0_ss2_pins: spi0_ss2 {
497 spi1_a_pins: spi1_a {
499 groups = "spi1_miso_a",
506 spi1_ss0_a_pins: spi1_ss0_a {
508 groups = "spi1_ss0_a";
513 spi1_ss1_pins: spi1_ss1 {
520 spi1_x_pins: spi1_x {
522 groups = "spi1_miso_x",
529 spi1_ss0_x_pins: spi1_ss0_x {
531 groups = "spi1_ss0_x";
544 i2c1_z_pins: i2c1_z {
546 groups = "i2c1_sck_z",
552 i2c1_x_pins: i2c1_x {
554 groups = "i2c1_sck_x",
560 i2c2_x_pins: i2c2_x {
562 groups = "i2c2_sck_x",
568 i2c2_a_pins: i2c2_a {
570 groups = "i2c2_sck_a",
576 i2c3_a6_pins: i2c3_a6 {
578 groups = "i2c3_sda_a6",
584 i2c3_a12_pins: i2c3_a12 {
586 groups = "i2c3_sda_a12",
592 i2c3_a19_pins: i2c3_a19 {
594 groups = "i2c3_sda_a19",
600 uart_a_pins: uart_a {
602 groups = "uart_tx_a",
608 uart_a_cts_rts_pins: uart_a_cts_rts {
610 groups = "uart_cts_a",
616 uart_b_x_pins: uart_b_x {
618 groups = "uart_tx_b_x",
624 uart_b_x_cts_rts_pins: uart_b_x_cts_rts {
626 groups = "uart_cts_b_x",
632 uart_b_z_pins: uart_b_z {
634 groups = "uart_tx_b_z",
640 uart_b_z_cts_rts_pins: uart_b_z_cts_rts {
642 groups = "uart_cts_b_z",
648 uart_ao_b_z_pins: uart_ao_b_z {
650 groups = "uart_ao_tx_b_z",
652 function = "uart_ao_b_z";
656 uart_ao_b_z_cts_rts_pins: uart_ao_b_z_cts_rts {
658 groups = "uart_ao_cts_b_z",
660 function = "uart_ao_b_z";
666 sram: sram@fffc0000 {
667 compatible = "amlogic,meson-axg-sram", "mmio-sram";
668 reg = <0x0 0xfffc0000 0x0 0x20000>;
669 #address-cells = <1>;
671 ranges = <0 0x0 0xfffc0000 0x20000>;
673 cpu_scp_lpri: scp-shmem@0 {
674 compatible = "amlogic,meson-axg-scp-shmem";
675 reg = <0x13000 0x400>;
678 cpu_scp_hpri: scp-shmem@200 {
679 compatible = "amlogic,meson-axg-scp-shmem";
680 reg = <0x13400 0x400>;
684 aobus: bus@ff800000 {
685 compatible = "simple-bus";
686 reg = <0x0 0xff800000 0x0 0x100000>;
687 #address-cells = <2>;
689 ranges = <0x0 0x0 0x0 0xff800000 0x0 0x100000>;
691 pinctrl_aobus: pinctrl@14 {
692 compatible = "amlogic,meson-axg-aobus-pinctrl";
693 #address-cells = <2>;
698 reg = <0x0 0x00014 0x0 0x8>,
699 <0x0 0x0002c 0x0 0x4>,
700 <0x0 0x00024 0x0 0x8>;
701 reg-names = "mux", "pull", "gpio";
704 gpio-ranges = <&pinctrl_aobus 0 0 15>;
707 remote_input_ao_pins: remote_input_ao {
709 groups = "remote_input_ao";
710 function = "remote_input_ao";
714 uart_ao_a_pins: uart_ao_a {
716 groups = "uart_ao_tx_a",
718 function = "uart_ao_a";
722 uart_ao_a_cts_rts_pins: uart_ao_a_cts_rts {
724 groups = "uart_ao_cts_a",
726 function = "uart_ao_a";
730 uart_ao_b_pins: uart_ao_b {
732 groups = "uart_ao_tx_b",
734 function = "uart_ao_b";
738 uart_ao_b_cts_rts_pins: uart_ao_b_cts_rts {
740 groups = "uart_ao_cts_b",
742 function = "uart_ao_b";
747 sec_AO: ao-secure@140 {
748 compatible = "amlogic,meson-gx-ao-secure", "syscon";
749 reg = <0x0 0x140 0x0 0x140>;
753 pwm_AO_ab: pwm@7000 {
754 compatible = "amlogic,meson-axg-ao-pwm";
755 reg = <0x0 0x07000 0x0 0x20>;
760 pwm_AO_cd: pwm@2000 {
761 compatible = "amlogic,meson-axg-ao-pwm";
762 reg = <0x0 0x02000 0x0 0x20>;
768 compatible = "amlogic,meson-axg-i2c";
770 reg = <0x0 0x05000 0x0 0x20>;
771 interrupts = <GIC_SPI 195 IRQ_TYPE_EDGE_RISING>;
772 #address-cells = <1>;
774 clocks = <&clkc CLKID_I2C>;
775 clock-names = "clk_i2c";
778 uart_AO: serial@3000 {
779 compatible = "amlogic,meson-gx-uart", "amlogic,meson-ao-uart";
780 reg = <0x0 0x3000 0x0 0x18>;
781 interrupts = <GIC_SPI 193 IRQ_TYPE_EDGE_RISING>;
782 clocks = <&xtal>, <&clkc CLKID_CLK81>, <&xtal>;
783 clock-names = "xtal", "pclk", "baud";
787 uart_AO_B: serial@4000 {
788 compatible = "amlogic,meson-gx-uart", "amlogic,meson-ao-uart";
789 reg = <0x0 0x4000 0x0 0x18>;
790 interrupts = <GIC_SPI 197 IRQ_TYPE_EDGE_RISING>;
791 clocks = <&xtal>, <&clkc CLKID_CLK81>, <&xtal>;
792 clock-names = "xtal", "pclk", "baud";
797 compatible = "amlogic,meson-gxbb-ir";
798 reg = <0x0 0x8000 0x0 0x20>;
799 interrupts = <GIC_SPI 196 IRQ_TYPE_EDGE_RISING>;