1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
3 * Copyright (c) 2017 Amlogic, Inc. All rights reserved.
6 #include <dt-bindings/clock/axg-aoclkc.h>
7 #include <dt-bindings/clock/axg-audio-clkc.h>
8 #include <dt-bindings/clock/axg-clkc.h>
9 #include <dt-bindings/gpio/gpio.h>
10 #include <dt-bindings/gpio/meson-axg-gpio.h>
11 #include <dt-bindings/interrupt-controller/irq.h>
12 #include <dt-bindings/interrupt-controller/arm-gic.h>
13 #include <dt-bindings/reset/amlogic,meson-axg-audio-arb.h>
14 #include <dt-bindings/reset/amlogic,meson-axg-reset.h>
17 compatible = "amlogic,meson-axg";
19 interrupt-parent = <&gic>;
23 tdmif_a: audio-controller-0 {
24 compatible = "amlogic,axg-tdm-iface";
25 #sound-dai-cells = <0>;
26 sound-name-prefix = "TDM_A";
27 clocks = <&clkc_audio AUD_CLKID_MST_A_MCLK>,
28 <&clkc_audio AUD_CLKID_MST_A_SCLK>,
29 <&clkc_audio AUD_CLKID_MST_A_LRCLK>;
30 clock-names = "mclk", "sclk", "lrclk";
34 tdmif_b: audio-controller-1 {
35 compatible = "amlogic,axg-tdm-iface";
36 #sound-dai-cells = <0>;
37 sound-name-prefix = "TDM_B";
38 clocks = <&clkc_audio AUD_CLKID_MST_B_MCLK>,
39 <&clkc_audio AUD_CLKID_MST_B_SCLK>,
40 <&clkc_audio AUD_CLKID_MST_B_LRCLK>;
41 clock-names = "mclk", "sclk", "lrclk";
45 tdmif_c: audio-controller-2 {
46 compatible = "amlogic,axg-tdm-iface";
47 #sound-dai-cells = <0>;
48 sound-name-prefix = "TDM_C";
49 clocks = <&clkc_audio AUD_CLKID_MST_C_MCLK>,
50 <&clkc_audio AUD_CLKID_MST_C_SCLK>,
51 <&clkc_audio AUD_CLKID_MST_C_LRCLK>;
52 clock-names = "mclk", "sclk", "lrclk";
57 compatible = "arm,cortex-a53-pmu";
58 interrupts = <GIC_SPI 137 IRQ_TYPE_LEVEL_HIGH>,
59 <GIC_SPI 138 IRQ_TYPE_LEVEL_HIGH>,
60 <GIC_SPI 153 IRQ_TYPE_LEVEL_HIGH>,
61 <GIC_SPI 154 IRQ_TYPE_LEVEL_HIGH>;
62 interrupt-affinity = <&cpu0>, <&cpu1>, <&cpu2>, <&cpu3>;
66 #address-cells = <0x2>;
71 compatible = "arm,cortex-a53";
73 enable-method = "psci";
74 next-level-cache = <&l2>;
75 clocks = <&scpi_dvfs 0>;
80 compatible = "arm,cortex-a53";
82 enable-method = "psci";
83 next-level-cache = <&l2>;
84 clocks = <&scpi_dvfs 0>;
89 compatible = "arm,cortex-a53";
91 enable-method = "psci";
92 next-level-cache = <&l2>;
93 clocks = <&scpi_dvfs 0>;
98 compatible = "arm,cortex-a53";
100 enable-method = "psci";
101 next-level-cache = <&l2>;
102 clocks = <&scpi_dvfs 0>;
106 compatible = "cache";
111 compatible = "amlogic,meson-gxbb-sm";
115 compatible = "amlogic,meson-gxbb-efuse";
116 clocks = <&clkc CLKID_EFUSE>;
117 #address-cells = <1>;
120 secure-monitor = <&sm>;
124 compatible = "arm,psci-1.0";
129 #address-cells = <2>;
133 /* 16 MiB reserved for Hardware ROM Firmware */
134 hwrom_reserved: hwrom@0 {
135 reg = <0x0 0x0 0x0 0x1000000>;
139 /* Alternate 3 MiB reserved for ARM Trusted Firmware (BL31) */
140 secmon_reserved: secmon@5000000 {
141 reg = <0x0 0x05000000 0x0 0x300000>;
147 compatible = "arm,scpi-pre-1.0";
148 mboxes = <&mailbox 1 &mailbox 2>;
149 shmem = <&cpu_scp_lpri &cpu_scp_hpri>;
151 scpi_clocks: clocks {
152 compatible = "arm,scpi-clocks";
154 scpi_dvfs: clock-controller {
155 compatible = "arm,scpi-dvfs-clocks";
158 clock-output-names = "vcpu";
162 scpi_sensors: sensors {
163 compatible = "amlogic,meson-gxbb-scpi-sensors";
164 #thermal-sensor-cells = <1>;
169 compatible = "simple-bus";
170 #address-cells = <2>;
174 ethmac: ethernet@ff3f0000 {
175 compatible = "amlogic,meson-axg-dwmac",
178 reg = <0x0 0xff3f0000 0x0 0x10000>,
179 <0x0 0xff634540 0x0 0x8>;
180 interrupts = <GIC_SPI 8 IRQ_TYPE_LEVEL_HIGH>;
181 interrupt-names = "macirq";
182 clocks = <&clkc CLKID_ETH>,
183 <&clkc CLKID_FCLK_DIV2>,
185 <&clkc CLKID_FCLK_DIV2>;
186 clock-names = "stmmaceth", "clkin0", "clkin1",
188 rx-fifo-depth = <4096>;
189 tx-fifo-depth = <2048>;
193 pdm: audio-controller@ff632000 {
194 compatible = "amlogic,axg-pdm";
195 reg = <0x0 0xff632000 0x0 0x34>;
196 #sound-dai-cells = <0>;
197 sound-name-prefix = "PDM";
198 clocks = <&clkc_audio AUD_CLKID_PDM>,
199 <&clkc_audio AUD_CLKID_PDM_DCLK>,
200 <&clkc_audio AUD_CLKID_PDM_SYSCLK>;
201 clock-names = "pclk", "dclk", "sysclk";
205 periphs: bus@ff634000 {
206 compatible = "simple-bus";
207 reg = <0x0 0xff634000 0x0 0x2000>;
208 #address-cells = <2>;
210 ranges = <0x0 0x0 0x0 0xff634000 0x0 0x2000>;
213 compatible = "amlogic,meson-rng";
214 reg = <0x0 0x18 0x0 0x4>;
215 clocks = <&clkc CLKID_RNG0>;
216 clock-names = "core";
219 pinctrl_periphs: pinctrl@480 {
220 compatible = "amlogic,meson-axg-periphs-pinctrl";
221 #address-cells = <2>;
226 reg = <0x0 0x00480 0x0 0x40>,
227 <0x0 0x004e8 0x0 0x14>,
228 <0x0 0x00520 0x0 0x14>,
229 <0x0 0x00430 0x0 0x3c>;
230 reg-names = "mux", "pull", "pull-enable", "gpio";
233 gpio-ranges = <&pinctrl_periphs 0 0 86>;
245 i2c1_x_pins: i2c1_x {
247 groups = "i2c1_sck_x",
254 i2c1_z_pins: i2c1_z {
256 groups = "i2c1_sck_z",
263 i2c2_a_pins: i2c2_a {
265 groups = "i2c2_sck_a",
272 i2c2_x_pins: i2c2_x {
274 groups = "i2c2_sck_x",
281 i2c3_a6_pins: i2c3_a6 {
283 groups = "i2c3_sda_a6",
290 i2c3_a12_pins: i2c3_a12 {
292 groups = "i2c3_sda_a12",
299 i2c3_a19_pins: i2c3_a19 {
301 groups = "i2c3_sda_a19",
310 groups = "emmc_nand_d0",
330 emmc_ds_pins: emmc_ds {
338 emmc_clk_gate_pins: emmc_clk_gate {
341 function = "gpio_periphs";
346 eth_rgmii_x_pins: eth-x-rgmii {
348 groups = "eth_mdio_x",
350 "eth_rgmii_rx_clk_x",
367 eth_rgmii_y_pins: eth-y-rgmii {
369 groups = "eth_mdio_y",
371 "eth_rgmii_rx_clk_y",
388 eth_rmii_x_pins: eth-x-rmii {
390 groups = "eth_mdio_x",
392 "eth_rgmii_rx_clk_x",
404 eth_rmii_y_pins: eth-y-rmii {
406 groups = "eth_mdio_y",
408 "eth_rgmii_rx_clk_y",
420 mclk_b_pins: mclk_b {
428 mclk_c_pins: mclk_c {
436 pdm_dclk_a14_pins: pdm_dclk_a14 {
438 groups = "pdm_dclk_a14";
444 pdm_dclk_a19_pins: pdm_dclk_a19 {
446 groups = "pdm_dclk_a19";
452 pdm_din0_pins: pdm_din0 {
460 pdm_din1_pins: pdm_din1 {
468 pdm_din2_pins: pdm_din2 {
476 pdm_din3_pins: pdm_din3 {
484 pwm_a_a_pins: pwm_a_a {
492 pwm_a_x18_pins: pwm_a_x18 {
494 groups = "pwm_a_x18";
500 pwm_a_x20_pins: pwm_a_x20 {
502 groups = "pwm_a_x20";
508 pwm_a_z_pins: pwm_a_z {
516 pwm_b_a_pins: pwm_b_a {
524 pwm_b_x_pins: pwm_b_x {
532 pwm_b_z_pins: pwm_b_z {
540 pwm_c_a_pins: pwm_c_a {
548 pwm_c_x10_pins: pwm_c_x10 {
550 groups = "pwm_c_x10";
556 pwm_c_x17_pins: pwm_c_x17 {
558 groups = "pwm_c_x17";
564 pwm_d_x11_pins: pwm_d_x11 {
566 groups = "pwm_d_x11";
572 pwm_d_x16_pins: pwm_d_x16 {
574 groups = "pwm_d_x16";
598 sdio_clk_gate_pins: sdio_clk_gate {
601 function = "gpio_periphs";
606 spdif_in_z_pins: spdif_in_z {
608 groups = "spdif_in_z";
609 function = "spdif_in";
614 spdif_in_a1_pins: spdif_in_a1 {
616 groups = "spdif_in_a1";
617 function = "spdif_in";
622 spdif_in_a7_pins: spdif_in_a7 {
624 groups = "spdif_in_a7";
625 function = "spdif_in";
630 spdif_in_a19_pins: spdif_in_a19 {
632 groups = "spdif_in_a19";
633 function = "spdif_in";
638 spdif_in_a20_pins: spdif_in_a20 {
640 groups = "spdif_in_a20";
641 function = "spdif_in";
646 spdif_out_a1_pins: spdif_out_a1 {
648 groups = "spdif_out_a1";
649 function = "spdif_out";
654 spdif_out_a11_pins: spdif_out_a11 {
656 groups = "spdif_out_a11";
657 function = "spdif_out";
662 spdif_out_a19_pins: spdif_out_a19 {
664 groups = "spdif_out_a19";
665 function = "spdif_out";
670 spdif_out_a20_pins: spdif_out_a20 {
672 groups = "spdif_out_a20";
673 function = "spdif_out";
678 spdif_out_z_pins: spdif_out_z {
680 groups = "spdif_out_z";
681 function = "spdif_out";
688 groups = "spi0_miso",
696 spi0_ss0_pins: spi0_ss0 {
704 spi0_ss1_pins: spi0_ss1 {
712 spi0_ss2_pins: spi0_ss2 {
720 spi1_a_pins: spi1_a {
722 groups = "spi1_miso_a",
730 spi1_ss0_a_pins: spi1_ss0_a {
732 groups = "spi1_ss0_a";
738 spi1_ss1_pins: spi1_ss1 {
746 spi1_x_pins: spi1_x {
748 groups = "spi1_miso_x",
756 spi1_ss0_x_pins: spi1_ss0_x {
758 groups = "spi1_ss0_x";
764 tdma_din0_pins: tdma_din0 {
766 groups = "tdma_din0";
772 tdma_dout0_x14_pins: tdma_dout0_x14 {
774 groups = "tdma_dout0_x14";
780 tdma_dout0_x15_pins: tdma_dout0_x15 {
782 groups = "tdma_dout0_x15";
788 tdma_dout1_pins: tdma_dout1 {
790 groups = "tdma_dout1";
796 tdma_din1_pins: tdma_din1 {
798 groups = "tdma_din1";
804 tdma_fs_pins: tdma_fs {
812 tdma_fs_slv_pins: tdma_fs_slv {
814 groups = "tdma_fs_slv";
820 tdma_sclk_pins: tdma_sclk {
822 groups = "tdma_sclk";
828 tdma_sclk_slv_pins: tdma_sclk_slv {
830 groups = "tdma_sclk_slv";
836 tdmb_din0_pins: tdmb_din0 {
838 groups = "tdmb_din0";
844 tdmb_din1_pins: tdmb_din1 {
846 groups = "tdmb_din1";
852 tdmb_din2_pins: tdmb_din2 {
854 groups = "tdmb_din2";
860 tdmb_din3_pins: tdmb_din3 {
862 groups = "tdmb_din3";
868 tdmb_dout0_pins: tdmb_dout0 {
870 groups = "tdmb_dout0";
876 tdmb_dout1_pins: tdmb_dout1 {
878 groups = "tdmb_dout1";
884 tdmb_dout2_pins: tdmb_dout2 {
886 groups = "tdmb_dout2";
892 tdmb_dout3_pins: tdmb_dout3 {
894 groups = "tdmb_dout3";
900 tdmb_fs_pins: tdmb_fs {
908 tdmb_fs_slv_pins: tdmb_fs_slv {
910 groups = "tdmb_fs_slv";
916 tdmb_sclk_pins: tdmb_sclk {
918 groups = "tdmb_sclk";
924 tdmb_sclk_slv_pins: tdmb_sclk_slv {
926 groups = "tdmb_sclk_slv";
932 tdmc_fs_pins: tdmc_fs {
940 tdmc_fs_slv_pins: tdmc_fs_slv {
942 groups = "tdmc_fs_slv";
948 tdmc_sclk_pins: tdmc_sclk {
950 groups = "tdmc_sclk";
956 tdmc_sclk_slv_pins: tdmc_sclk_slv {
958 groups = "tdmc_sclk_slv";
964 tdmc_din0_pins: tdmc_din0 {
966 groups = "tdmc_din0";
972 tdmc_din1_pins: tdmc_din1 {
974 groups = "tdmc_din1";
980 tdmc_din2_pins: tdmc_din2 {
982 groups = "tdmc_din2";
988 tdmc_din3_pins: tdmc_din3 {
990 groups = "tdmc_din3";
996 tdmc_dout0_pins: tdmc_dout0 {
998 groups = "tdmc_dout0";
1004 tdmc_dout1_pins: tdmc_dout1 {
1006 groups = "tdmc_dout1";
1012 tdmc_dout2_pins: tdmc_dout2 {
1014 groups = "tdmc_dout2";
1020 tdmc_dout3_pins: tdmc_dout3 {
1022 groups = "tdmc_dout3";
1028 uart_a_pins: uart_a {
1030 groups = "uart_tx_a",
1032 function = "uart_a";
1037 uart_a_cts_rts_pins: uart_a_cts_rts {
1039 groups = "uart_cts_a",
1041 function = "uart_a";
1046 uart_b_x_pins: uart_b_x {
1048 groups = "uart_tx_b_x",
1050 function = "uart_b";
1055 uart_b_x_cts_rts_pins: uart_b_x_cts_rts {
1057 groups = "uart_cts_b_x",
1059 function = "uart_b";
1064 uart_b_z_pins: uart_b_z {
1066 groups = "uart_tx_b_z",
1068 function = "uart_b";
1073 uart_b_z_cts_rts_pins: uart_b_z_cts_rts {
1075 groups = "uart_cts_b_z",
1077 function = "uart_b";
1082 uart_ao_b_z_pins: uart_ao_b_z {
1084 groups = "uart_ao_tx_b_z",
1086 function = "uart_ao_b_z";
1091 uart_ao_b_z_cts_rts_pins: uart_ao_b_z_cts_rts {
1093 groups = "uart_ao_cts_b_z",
1095 function = "uart_ao_b_z";
1102 hiubus: bus@ff63c000 {
1103 compatible = "simple-bus";
1104 reg = <0x0 0xff63c000 0x0 0x1c00>;
1105 #address-cells = <2>;
1107 ranges = <0x0 0x0 0x0 0xff63c000 0x0 0x1c00>;
1109 sysctrl: system-controller@0 {
1110 compatible = "amlogic,meson-axg-hhi-sysctrl",
1111 "simple-mfd", "syscon";
1112 reg = <0 0 0 0x400>;
1114 clkc: clock-controller {
1115 compatible = "amlogic,axg-clkc";
1118 clock-names = "xtal";
1123 mailbox: mailbox@ff63c404 {
1124 compatible = "amlogic,meson-gxbb-mhu";
1125 reg = <0 0xff63c404 0 0x4c>;
1126 interrupts = <GIC_SPI 208 IRQ_TYPE_EDGE_RISING>,
1127 <GIC_SPI 209 IRQ_TYPE_EDGE_RISING>,
1128 <GIC_SPI 210 IRQ_TYPE_EDGE_RISING>;
1132 audio: bus@ff642000 {
1133 compatible = "simple-bus";
1134 reg = <0x0 0xff642000 0x0 0x2000>;
1135 #address-cells = <2>;
1137 ranges = <0x0 0x0 0x0 0xff642000 0x0 0x2000>;
1139 clkc_audio: clock-controller@0 {
1140 compatible = "amlogic,axg-audio-clkc";
1141 reg = <0x0 0x0 0x0 0xb4>;
1144 clocks = <&clkc CLKID_AUDIO>,
1145 <&clkc CLKID_MPLL0>,
1146 <&clkc CLKID_MPLL1>,
1147 <&clkc CLKID_MPLL2>,
1148 <&clkc CLKID_MPLL3>,
1149 <&clkc CLKID_HIFI_PLL>,
1150 <&clkc CLKID_FCLK_DIV3>,
1151 <&clkc CLKID_FCLK_DIV4>,
1152 <&clkc CLKID_GP0_PLL>;
1153 clock-names = "pclk",
1163 resets = <&reset RESET_AUDIO>;
1166 toddr_a: audio-controller@100 {
1167 compatible = "amlogic,axg-toddr";
1168 reg = <0x0 0x100 0x0 0x2c>;
1169 #sound-dai-cells = <0>;
1170 sound-name-prefix = "TODDR_A";
1171 interrupts = <GIC_SPI 84 IRQ_TYPE_EDGE_RISING>;
1172 clocks = <&clkc_audio AUD_CLKID_TODDR_A>;
1173 resets = <&arb AXG_ARB_TODDR_A>;
1174 amlogic,fifo-depth = <512>;
1175 status = "disabled";
1178 toddr_b: audio-controller@140 {
1179 compatible = "amlogic,axg-toddr";
1180 reg = <0x0 0x140 0x0 0x2c>;
1181 #sound-dai-cells = <0>;
1182 sound-name-prefix = "TODDR_B";
1183 interrupts = <GIC_SPI 85 IRQ_TYPE_EDGE_RISING>;
1184 clocks = <&clkc_audio AUD_CLKID_TODDR_B>;
1185 resets = <&arb AXG_ARB_TODDR_B>;
1186 amlogic,fifo-depth = <256>;
1187 status = "disabled";
1190 toddr_c: audio-controller@180 {
1191 compatible = "amlogic,axg-toddr";
1192 reg = <0x0 0x180 0x0 0x2c>;
1193 #sound-dai-cells = <0>;
1194 sound-name-prefix = "TODDR_C";
1195 interrupts = <GIC_SPI 86 IRQ_TYPE_EDGE_RISING>;
1196 clocks = <&clkc_audio AUD_CLKID_TODDR_C>;
1197 resets = <&arb AXG_ARB_TODDR_C>;
1198 amlogic,fifo-depth = <256>;
1199 status = "disabled";
1202 frddr_a: audio-controller@1c0 {
1203 compatible = "amlogic,axg-frddr";
1204 reg = <0x0 0x1c0 0x0 0x2c>;
1205 #sound-dai-cells = <0>;
1206 sound-name-prefix = "FRDDR_A";
1207 interrupts = <GIC_SPI 88 IRQ_TYPE_EDGE_RISING>;
1208 clocks = <&clkc_audio AUD_CLKID_FRDDR_A>;
1209 resets = <&arb AXG_ARB_FRDDR_A>;
1210 amlogic,fifo-depth = <512>;
1211 status = "disabled";
1214 frddr_b: audio-controller@200 {
1215 compatible = "amlogic,axg-frddr";
1216 reg = <0x0 0x200 0x0 0x2c>;
1217 #sound-dai-cells = <0>;
1218 sound-name-prefix = "FRDDR_B";
1219 interrupts = <GIC_SPI 89 IRQ_TYPE_EDGE_RISING>;
1220 clocks = <&clkc_audio AUD_CLKID_FRDDR_B>;
1221 resets = <&arb AXG_ARB_FRDDR_B>;
1222 amlogic,fifo-depth = <256>;
1223 status = "disabled";
1226 frddr_c: audio-controller@240 {
1227 compatible = "amlogic,axg-frddr";
1228 reg = <0x0 0x240 0x0 0x2c>;
1229 #sound-dai-cells = <0>;
1230 sound-name-prefix = "FRDDR_C";
1231 interrupts = <GIC_SPI 90 IRQ_TYPE_EDGE_RISING>;
1232 clocks = <&clkc_audio AUD_CLKID_FRDDR_C>;
1233 resets = <&arb AXG_ARB_FRDDR_C>;
1234 amlogic,fifo-depth = <256>;
1235 status = "disabled";
1238 arb: reset-controller@280 {
1239 compatible = "amlogic,meson-axg-audio-arb";
1240 reg = <0x0 0x280 0x0 0x4>;
1242 clocks = <&clkc_audio AUD_CLKID_DDR_ARB>;
1245 tdmin_a: audio-controller@300 {
1246 compatible = "amlogic,axg-tdmin";
1247 reg = <0x0 0x300 0x0 0x40>;
1248 sound-name-prefix = "TDMIN_A";
1249 clocks = <&clkc_audio AUD_CLKID_TDMIN_A>,
1250 <&clkc_audio AUD_CLKID_TDMIN_A_SCLK>,
1251 <&clkc_audio AUD_CLKID_TDMIN_A_SCLK_SEL>,
1252 <&clkc_audio AUD_CLKID_TDMIN_A_LRCLK>,
1253 <&clkc_audio AUD_CLKID_TDMIN_A_LRCLK>;
1254 clock-names = "pclk", "sclk", "sclk_sel",
1255 "lrclk", "lrclk_sel";
1256 status = "disabled";
1259 tdmin_b: audio-controller@340 {
1260 compatible = "amlogic,axg-tdmin";
1261 reg = <0x0 0x340 0x0 0x40>;
1262 sound-name-prefix = "TDMIN_B";
1263 clocks = <&clkc_audio AUD_CLKID_TDMIN_B>,
1264 <&clkc_audio AUD_CLKID_TDMIN_B_SCLK>,
1265 <&clkc_audio AUD_CLKID_TDMIN_B_SCLK_SEL>,
1266 <&clkc_audio AUD_CLKID_TDMIN_B_LRCLK>,
1267 <&clkc_audio AUD_CLKID_TDMIN_B_LRCLK>;
1268 clock-names = "pclk", "sclk", "sclk_sel",
1269 "lrclk", "lrclk_sel";
1270 status = "disabled";
1273 tdmin_c: audio-controller@380 {
1274 compatible = "amlogic,axg-tdmin";
1275 reg = <0x0 0x380 0x0 0x40>;
1276 sound-name-prefix = "TDMIN_C";
1277 clocks = <&clkc_audio AUD_CLKID_TDMIN_C>,
1278 <&clkc_audio AUD_CLKID_TDMIN_C_SCLK>,
1279 <&clkc_audio AUD_CLKID_TDMIN_C_SCLK_SEL>,
1280 <&clkc_audio AUD_CLKID_TDMIN_C_LRCLK>,
1281 <&clkc_audio AUD_CLKID_TDMIN_C_LRCLK>;
1282 clock-names = "pclk", "sclk", "sclk_sel",
1283 "lrclk", "lrclk_sel";
1284 status = "disabled";
1287 tdmin_lb: audio-controller@3c0 {
1288 compatible = "amlogic,axg-tdmin";
1289 reg = <0x0 0x3c0 0x0 0x40>;
1290 sound-name-prefix = "TDMIN_LB";
1291 clocks = <&clkc_audio AUD_CLKID_TDMIN_LB>,
1292 <&clkc_audio AUD_CLKID_TDMIN_LB_SCLK>,
1293 <&clkc_audio AUD_CLKID_TDMIN_LB_SCLK_SEL>,
1294 <&clkc_audio AUD_CLKID_TDMIN_LB_LRCLK>,
1295 <&clkc_audio AUD_CLKID_TDMIN_LB_LRCLK>;
1296 clock-names = "pclk", "sclk", "sclk_sel",
1297 "lrclk", "lrclk_sel";
1298 status = "disabled";
1301 spdifin: audio-controller@400 {
1302 compatible = "amlogic,axg-spdifin";
1303 reg = <0x0 0x400 0x0 0x30>;
1304 #sound-dai-cells = <0>;
1305 sound-name-prefix = "SPDIFIN";
1306 interrupts = <GIC_SPI 87 IRQ_TYPE_EDGE_RISING>;
1307 clocks = <&clkc_audio AUD_CLKID_SPDIFIN>,
1308 <&clkc_audio AUD_CLKID_SPDIFIN_CLK>;
1309 clock-names = "pclk", "refclk";
1310 status = "disabled";
1313 spdifout: audio-controller@480 {
1314 compatible = "amlogic,axg-spdifout";
1315 reg = <0x0 0x480 0x0 0x50>;
1316 #sound-dai-cells = <0>;
1317 sound-name-prefix = "SPDIFOUT";
1318 clocks = <&clkc_audio AUD_CLKID_SPDIFOUT>,
1319 <&clkc_audio AUD_CLKID_SPDIFOUT_CLK>;
1320 clock-names = "pclk", "mclk";
1321 status = "disabled";
1324 tdmout_a: audio-controller@500 {
1325 compatible = "amlogic,axg-tdmout";
1326 reg = <0x0 0x500 0x0 0x40>;
1327 sound-name-prefix = "TDMOUT_A";
1328 clocks = <&clkc_audio AUD_CLKID_TDMOUT_A>,
1329 <&clkc_audio AUD_CLKID_TDMOUT_A_SCLK>,
1330 <&clkc_audio AUD_CLKID_TDMOUT_A_SCLK_SEL>,
1331 <&clkc_audio AUD_CLKID_TDMOUT_A_LRCLK>,
1332 <&clkc_audio AUD_CLKID_TDMOUT_A_LRCLK>;
1333 clock-names = "pclk", "sclk", "sclk_sel",
1334 "lrclk", "lrclk_sel";
1335 status = "disabled";
1338 tdmout_b: audio-controller@540 {
1339 compatible = "amlogic,axg-tdmout";
1340 reg = <0x0 0x540 0x0 0x40>;
1341 sound-name-prefix = "TDMOUT_B";
1342 clocks = <&clkc_audio AUD_CLKID_TDMOUT_B>,
1343 <&clkc_audio AUD_CLKID_TDMOUT_B_SCLK>,
1344 <&clkc_audio AUD_CLKID_TDMOUT_B_SCLK_SEL>,
1345 <&clkc_audio AUD_CLKID_TDMOUT_B_LRCLK>,
1346 <&clkc_audio AUD_CLKID_TDMOUT_B_LRCLK>;
1347 clock-names = "pclk", "sclk", "sclk_sel",
1348 "lrclk", "lrclk_sel";
1349 status = "disabled";
1352 tdmout_c: audio-controller@580 {
1353 compatible = "amlogic,axg-tdmout";
1354 reg = <0x0 0x580 0x0 0x40>;
1355 sound-name-prefix = "TDMOUT_C";
1356 clocks = <&clkc_audio AUD_CLKID_TDMOUT_C>,
1357 <&clkc_audio AUD_CLKID_TDMOUT_C_SCLK>,
1358 <&clkc_audio AUD_CLKID_TDMOUT_C_SCLK_SEL>,
1359 <&clkc_audio AUD_CLKID_TDMOUT_C_LRCLK>,
1360 <&clkc_audio AUD_CLKID_TDMOUT_C_LRCLK>;
1361 clock-names = "pclk", "sclk", "sclk_sel",
1362 "lrclk", "lrclk_sel";
1363 status = "disabled";
1367 aobus: bus@ff800000 {
1368 compatible = "simple-bus";
1369 reg = <0x0 0xff800000 0x0 0x100000>;
1370 #address-cells = <2>;
1372 ranges = <0x0 0x0 0x0 0xff800000 0x0 0x100000>;
1374 sysctrl_AO: sys-ctrl@0 {
1375 compatible = "amlogic,meson-axg-ao-sysctrl", "simple-mfd", "syscon";
1376 reg = <0x0 0x0 0x0 0x100>;
1378 clkc_AO: clock-controller {
1379 compatible = "amlogic,meson-axg-aoclkc";
1382 clocks = <&xtal>, <&clkc CLKID_CLK81>;
1383 clock-names = "xtal", "mpeg-clk";
1387 pinctrl_aobus: pinctrl@14 {
1388 compatible = "amlogic,meson-axg-aobus-pinctrl";
1389 #address-cells = <2>;
1394 reg = <0x0 0x00014 0x0 0x8>,
1395 <0x0 0x0002c 0x0 0x4>,
1396 <0x0 0x00024 0x0 0x8>;
1397 reg-names = "mux", "pull", "gpio";
1400 gpio-ranges = <&pinctrl_aobus 0 0 15>;
1403 i2c_ao_sck_4_pins: i2c_ao_sck_4 {
1405 groups = "i2c_ao_sck_4";
1406 function = "i2c_ao";
1411 i2c_ao_sck_8_pins: i2c_ao_sck_8 {
1413 groups = "i2c_ao_sck_8";
1414 function = "i2c_ao";
1419 i2c_ao_sck_10_pins: i2c_ao_sck_10 {
1421 groups = "i2c_ao_sck_10";
1422 function = "i2c_ao";
1427 i2c_ao_sda_5_pins: i2c_ao_sda_5 {
1429 groups = "i2c_ao_sda_5";
1430 function = "i2c_ao";
1435 i2c_ao_sda_9_pins: i2c_ao_sda_9 {
1437 groups = "i2c_ao_sda_9";
1438 function = "i2c_ao";
1443 i2c_ao_sda_11_pins: i2c_ao_sda_11 {
1445 groups = "i2c_ao_sda_11";
1446 function = "i2c_ao";
1451 remote_input_ao_pins: remote_input_ao {
1453 groups = "remote_input_ao";
1454 function = "remote_input_ao";
1459 uart_ao_a_pins: uart_ao_a {
1461 groups = "uart_ao_tx_a",
1463 function = "uart_ao_a";
1468 uart_ao_a_cts_rts_pins: uart_ao_a_cts_rts {
1470 groups = "uart_ao_cts_a",
1472 function = "uart_ao_a";
1477 uart_ao_b_pins: uart_ao_b {
1479 groups = "uart_ao_tx_b",
1481 function = "uart_ao_b";
1486 uart_ao_b_cts_rts_pins: uart_ao_b_cts_rts {
1488 groups = "uart_ao_cts_b",
1490 function = "uart_ao_b";
1496 sec_AO: ao-secure@140 {
1497 compatible = "amlogic,meson-gx-ao-secure", "syscon";
1498 reg = <0x0 0x140 0x0 0x140>;
1499 amlogic,has-chip-id;
1502 pwm_AO_cd: pwm@2000 {
1503 compatible = "amlogic,meson-axg-ao-pwm";
1504 reg = <0x0 0x02000 0x0 0x20>;
1506 status = "disabled";
1509 uart_AO: serial@3000 {
1510 compatible = "amlogic,meson-gx-uart", "amlogic,meson-ao-uart";
1511 reg = <0x0 0x3000 0x0 0x18>;
1512 interrupts = <GIC_SPI 193 IRQ_TYPE_EDGE_RISING>;
1513 clocks = <&xtal>, <&clkc_AO CLKID_AO_UART1>, <&xtal>;
1514 clock-names = "xtal", "pclk", "baud";
1515 status = "disabled";
1518 uart_AO_B: serial@4000 {
1519 compatible = "amlogic,meson-gx-uart", "amlogic,meson-ao-uart";
1520 reg = <0x0 0x4000 0x0 0x18>;
1521 interrupts = <GIC_SPI 197 IRQ_TYPE_EDGE_RISING>;
1522 clocks = <&xtal>, <&clkc_AO CLKID_AO_UART2>, <&xtal>;
1523 clock-names = "xtal", "pclk", "baud";
1524 status = "disabled";
1528 compatible = "amlogic,meson-axg-i2c";
1529 reg = <0x0 0x05000 0x0 0x20>;
1530 interrupts = <GIC_SPI 195 IRQ_TYPE_EDGE_RISING>;
1531 clocks = <&clkc CLKID_AO_I2C>;
1532 #address-cells = <1>;
1534 status = "disabled";
1537 pwm_AO_ab: pwm@7000 {
1538 compatible = "amlogic,meson-axg-ao-pwm";
1539 reg = <0x0 0x07000 0x0 0x20>;
1541 status = "disabled";
1545 compatible = "amlogic,meson-gxbb-ir";
1546 reg = <0x0 0x8000 0x0 0x20>;
1547 interrupts = <GIC_SPI 196 IRQ_TYPE_EDGE_RISING>;
1548 status = "disabled";
1552 compatible = "amlogic,meson-axg-saradc",
1553 "amlogic,meson-saradc";
1554 reg = <0x0 0x9000 0x0 0x38>;
1555 #io-channel-cells = <1>;
1556 interrupts = <GIC_SPI 73 IRQ_TYPE_EDGE_RISING>;
1558 <&clkc_AO CLKID_AO_SAR_ADC>,
1559 <&clkc_AO CLKID_AO_SAR_ADC_CLK>,
1560 <&clkc_AO CLKID_AO_SAR_ADC_SEL>;
1561 clock-names = "clkin", "core", "adc_clk", "adc_sel";
1562 status = "disabled";
1566 gic: interrupt-controller@ffc01000 {
1567 compatible = "arm,gic-400";
1568 reg = <0x0 0xffc01000 0 0x1000>,
1569 <0x0 0xffc02000 0 0x2000>,
1570 <0x0 0xffc04000 0 0x2000>,
1571 <0x0 0xffc06000 0 0x2000>;
1572 interrupt-controller;
1573 interrupts = <GIC_PPI 9
1574 (GIC_CPU_MASK_SIMPLE(8) | IRQ_TYPE_LEVEL_HIGH)>;
1575 #interrupt-cells = <3>;
1576 #address-cells = <0>;
1579 cbus: bus@ffd00000 {
1580 compatible = "simple-bus";
1581 reg = <0x0 0xffd00000 0x0 0x25000>;
1582 #address-cells = <2>;
1584 ranges = <0x0 0x0 0x0 0xffd00000 0x0 0x25000>;
1586 reset: reset-controller@1004 {
1587 compatible = "amlogic,meson-axg-reset";
1588 reg = <0x0 0x01004 0x0 0x9c>;
1592 gpio_intc: interrupt-controller@f080 {
1593 compatible = "amlogic,meson-axg-gpio-intc",
1594 "amlogic,meson-gpio-intc";
1595 reg = <0x0 0xf080 0x0 0x10>;
1596 interrupt-controller;
1597 #interrupt-cells = <2>;
1598 amlogic,channel-interrupts = <64 65 66 67 68 69 70 71>;
1602 compatible = "amlogic,meson-gxbb-wdt";
1603 reg = <0x0 0xf0d0 0x0 0x10>;
1608 compatible = "amlogic,meson-axg-ee-pwm";
1609 reg = <0x0 0x1b000 0x0 0x20>;
1611 status = "disabled";
1615 compatible = "amlogic,meson-axg-ee-pwm";
1616 reg = <0x0 0x1a000 0x0 0x20>;
1618 status = "disabled";
1622 compatible = "amlogic,meson-axg-spicc";
1623 reg = <0x0 0x13000 0x0 0x3c>;
1624 interrupts = <GIC_SPI 81 IRQ_TYPE_LEVEL_HIGH>;
1625 clocks = <&clkc CLKID_SPICC0>;
1626 clock-names = "core";
1627 #address-cells = <1>;
1629 status = "disabled";
1633 compatible = "amlogic,meson-axg-spicc";
1634 reg = <0x0 0x15000 0x0 0x3c>;
1635 interrupts = <GIC_SPI 82 IRQ_TYPE_LEVEL_HIGH>;
1636 clocks = <&clkc CLKID_SPICC1>;
1637 clock-names = "core";
1638 #address-cells = <1>;
1640 status = "disabled";
1643 clk_msr: clock-measure@18000 {
1644 compatible = "amlogic,meson-axg-clk-measure";
1645 reg = <0x0 0x18000 0x0 0x10>;
1649 compatible = "amlogic,meson-axg-i2c";
1650 reg = <0x0 0x1c000 0x0 0x20>;
1651 interrupts = <GIC_SPI 39 IRQ_TYPE_EDGE_RISING>;
1652 clocks = <&clkc CLKID_I2C>;
1653 #address-cells = <1>;
1655 status = "disabled";
1659 compatible = "amlogic,meson-axg-i2c";
1660 reg = <0x0 0x1d000 0x0 0x20>;
1661 interrupts = <GIC_SPI 215 IRQ_TYPE_EDGE_RISING>;
1662 clocks = <&clkc CLKID_I2C>;
1663 #address-cells = <1>;
1665 status = "disabled";
1669 compatible = "amlogic,meson-axg-i2c";
1670 reg = <0x0 0x1e000 0x0 0x20>;
1671 interrupts = <GIC_SPI 214 IRQ_TYPE_EDGE_RISING>;
1672 clocks = <&clkc CLKID_I2C>;
1673 #address-cells = <1>;
1675 status = "disabled";
1679 compatible = "amlogic,meson-axg-i2c";
1680 reg = <0x0 0x1f000 0x0 0x20>;
1681 interrupts = <GIC_SPI 21 IRQ_TYPE_EDGE_RISING>;
1682 clocks = <&clkc CLKID_I2C>;
1683 #address-cells = <1>;
1685 status = "disabled";
1688 uart_B: serial@23000 {
1689 compatible = "amlogic,meson-gx-uart";
1690 reg = <0x0 0x23000 0x0 0x18>;
1691 interrupts = <GIC_SPI 75 IRQ_TYPE_EDGE_RISING>;
1692 status = "disabled";
1693 clocks = <&xtal>, <&clkc CLKID_UART1>, <&xtal>;
1694 clock-names = "xtal", "pclk", "baud";
1697 uart_A: serial@24000 {
1698 compatible = "amlogic,meson-gx-uart";
1699 reg = <0x0 0x24000 0x0 0x18>;
1700 interrupts = <GIC_SPI 26 IRQ_TYPE_EDGE_RISING>;
1701 status = "disabled";
1702 clocks = <&xtal>, <&clkc CLKID_UART0>, <&xtal>;
1703 clock-names = "xtal", "pclk", "baud";
1708 compatible = "simple-bus";
1709 reg = <0x0 0xffe00000 0x0 0x200000>;
1710 #address-cells = <2>;
1712 ranges = <0x0 0x0 0x0 0xffe00000 0x0 0x200000>;
1714 sd_emmc_b: sd@5000 {
1715 compatible = "amlogic,meson-axg-mmc";
1716 reg = <0x0 0x5000 0x0 0x800>;
1717 interrupts = <GIC_SPI 217 IRQ_TYPE_EDGE_RISING>;
1718 status = "disabled";
1719 clocks = <&clkc CLKID_SD_EMMC_B>,
1720 <&clkc CLKID_SD_EMMC_B_CLK0>,
1721 <&clkc CLKID_FCLK_DIV2>;
1722 clock-names = "core", "clkin0", "clkin1";
1723 resets = <&reset RESET_SD_EMMC_B>;
1726 sd_emmc_c: mmc@7000 {
1727 compatible = "amlogic,meson-axg-mmc";
1728 reg = <0x0 0x7000 0x0 0x800>;
1729 interrupts = <GIC_SPI 218 IRQ_TYPE_EDGE_RISING>;
1730 status = "disabled";
1731 clocks = <&clkc CLKID_SD_EMMC_C>,
1732 <&clkc CLKID_SD_EMMC_C_CLK0>,
1733 <&clkc CLKID_FCLK_DIV2>;
1734 clock-names = "core", "clkin0", "clkin1";
1735 resets = <&reset RESET_SD_EMMC_C>;
1739 sram: sram@fffc0000 {
1740 compatible = "mmio-sram";
1741 reg = <0x0 0xfffc0000 0x0 0x20000>;
1742 #address-cells = <1>;
1744 ranges = <0 0x0 0xfffc0000 0x20000>;
1746 cpu_scp_lpri: scp-sram@13000 {
1747 compatible = "amlogic,meson-axg-scp-shmem";
1748 reg = <0x13000 0x400>;
1751 cpu_scp_hpri: scp-sram@13400 {
1752 compatible = "amlogic,meson-axg-scp-shmem";
1753 reg = <0x13400 0x400>;
1759 compatible = "arm,armv8-timer";
1760 interrupts = <GIC_PPI 13
1761 (GIC_CPU_MASK_RAW(0xff) | IRQ_TYPE_LEVEL_LOW)>,
1763 (GIC_CPU_MASK_RAW(0xff) | IRQ_TYPE_LEVEL_LOW)>,
1765 (GIC_CPU_MASK_RAW(0xff) | IRQ_TYPE_LEVEL_LOW)>,
1767 (GIC_CPU_MASK_RAW(0xff) | IRQ_TYPE_LEVEL_LOW)>;
1771 compatible = "fixed-clock";
1772 clock-frequency = <24000000>;
1773 clock-output-names = "xtal";