1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
3 * Copyright (c) 2019 BayLibre, SAS
4 * Author: Jerome Brunet <jbrunet@baylibre.com>
7 #include "meson-g12-common.dtsi"
8 #include <dt-bindings/clock/axg-audio-clkc.h>
9 #include <dt-bindings/power/meson-g12a-power.h>
10 #include <dt-bindings/reset/amlogic,meson-axg-audio-arb.h>
11 #include <dt-bindings/reset/amlogic,meson-g12a-audio-reset.h>
14 tdmif_a: audio-controller-0 {
15 compatible = "amlogic,axg-tdm-iface";
16 #sound-dai-cells = <0>;
17 sound-name-prefix = "TDM_A";
18 clocks = <&clkc_audio AUD_CLKID_MST_A_SCLK>,
19 <&clkc_audio AUD_CLKID_MST_A_LRCLK>,
20 <&clkc_audio AUD_CLKID_MST_A_MCLK>;
21 clock-names = "sclk", "lrclk", "mclk";
25 tdmif_b: audio-controller-1 {
26 compatible = "amlogic,axg-tdm-iface";
27 #sound-dai-cells = <0>;
28 sound-name-prefix = "TDM_B";
29 clocks = <&clkc_audio AUD_CLKID_MST_B_SCLK>,
30 <&clkc_audio AUD_CLKID_MST_B_LRCLK>,
31 <&clkc_audio AUD_CLKID_MST_B_MCLK>;
32 clock-names = "sclk", "lrclk", "mclk";
36 tdmif_c: audio-controller-2 {
37 compatible = "amlogic,axg-tdm-iface";
38 #sound-dai-cells = <0>;
39 sound-name-prefix = "TDM_C";
40 clocks = <&clkc_audio AUD_CLKID_MST_C_SCLK>,
41 <&clkc_audio AUD_CLKID_MST_C_LRCLK>,
42 <&clkc_audio AUD_CLKID_MST_C_MCLK>;
43 clock-names = "sclk", "lrclk", "mclk";
49 pdm: audio-controller@40000 {
50 compatible = "amlogic,g12a-pdm",
52 reg = <0x0 0x40000 0x0 0x34>;
53 #sound-dai-cells = <0>;
54 sound-name-prefix = "PDM";
55 clocks = <&clkc_audio AUD_CLKID_PDM>,
56 <&clkc_audio AUD_CLKID_PDM_DCLK>,
57 <&clkc_audio AUD_CLKID_PDM_SYSCLK>;
58 clock-names = "pclk", "dclk", "sysclk";
59 resets = <&clkc_audio AUD_RESET_PDM>;
64 compatible = "simple-bus";
65 reg = <0x0 0x42000 0x0 0x2000>;
68 ranges = <0x0 0x0 0x0 0x42000 0x0 0x2000>;
70 clkc_audio: clock-controller@0 {
72 compatible = "amlogic,g12a-audio-clkc";
73 reg = <0x0 0x0 0x0 0xb4>;
77 clocks = <&clkc CLKID_AUDIO>,
82 <&clkc CLKID_HIFI_PLL>,
83 <&clkc CLKID_FCLK_DIV3>,
84 <&clkc CLKID_FCLK_DIV4>,
85 <&clkc CLKID_GP0_PLL>;
96 resets = <&reset RESET_AUDIO>;
99 toddr_a: audio-controller@100 {
100 compatible = "amlogic,g12a-toddr",
102 reg = <0x0 0x100 0x0 0x2c>;
103 #sound-dai-cells = <0>;
104 sound-name-prefix = "TODDR_A";
105 interrupts = <GIC_SPI 148 IRQ_TYPE_EDGE_RISING>;
106 clocks = <&clkc_audio AUD_CLKID_TODDR_A>;
107 resets = <&arb AXG_ARB_TODDR_A>,
108 <&clkc_audio AUD_RESET_TODDR_A>;
109 reset-names = "arb", "rst";
110 amlogic,fifo-depth = <512>;
114 toddr_b: audio-controller@140 {
115 compatible = "amlogic,g12a-toddr",
117 reg = <0x0 0x140 0x0 0x2c>;
118 #sound-dai-cells = <0>;
119 sound-name-prefix = "TODDR_B";
120 interrupts = <GIC_SPI 149 IRQ_TYPE_EDGE_RISING>;
121 clocks = <&clkc_audio AUD_CLKID_TODDR_B>;
122 resets = <&arb AXG_ARB_TODDR_B>,
123 <&clkc_audio AUD_RESET_TODDR_B>;
124 reset-names = "arb", "rst";
125 amlogic,fifo-depth = <256>;
129 toddr_c: audio-controller@180 {
130 compatible = "amlogic,g12a-toddr",
132 reg = <0x0 0x180 0x0 0x2c>;
133 #sound-dai-cells = <0>;
134 sound-name-prefix = "TODDR_C";
135 interrupts = <GIC_SPI 150 IRQ_TYPE_EDGE_RISING>;
136 clocks = <&clkc_audio AUD_CLKID_TODDR_C>;
137 resets = <&arb AXG_ARB_TODDR_C>,
138 <&clkc_audio AUD_RESET_TODDR_C>;
139 reset-names = "arb", "rst";
140 amlogic,fifo-depth = <256>;
144 frddr_a: audio-controller@1c0 {
145 compatible = "amlogic,g12a-frddr",
147 reg = <0x0 0x1c0 0x0 0x2c>;
148 #sound-dai-cells = <0>;
149 sound-name-prefix = "FRDDR_A";
150 interrupts = <GIC_SPI 152 IRQ_TYPE_EDGE_RISING>;
151 clocks = <&clkc_audio AUD_CLKID_FRDDR_A>;
152 resets = <&arb AXG_ARB_FRDDR_A>,
153 <&clkc_audio AUD_RESET_FRDDR_A>;
154 reset-names = "arb", "rst";
155 amlogic,fifo-depth = <512>;
159 frddr_b: audio-controller@200 {
160 compatible = "amlogic,g12a-frddr",
162 reg = <0x0 0x200 0x0 0x2c>;
163 #sound-dai-cells = <0>;
164 sound-name-prefix = "FRDDR_B";
165 interrupts = <GIC_SPI 153 IRQ_TYPE_EDGE_RISING>;
166 clocks = <&clkc_audio AUD_CLKID_FRDDR_B>;
167 resets = <&arb AXG_ARB_FRDDR_B>,
168 <&clkc_audio AUD_RESET_FRDDR_B>;
169 reset-names = "arb", "rst";
170 amlogic,fifo-depth = <256>;
174 frddr_c: audio-controller@240 {
175 compatible = "amlogic,g12a-frddr",
177 reg = <0x0 0x240 0x0 0x2c>;
178 #sound-dai-cells = <0>;
179 sound-name-prefix = "FRDDR_C";
180 interrupts = <GIC_SPI 154 IRQ_TYPE_EDGE_RISING>;
181 clocks = <&clkc_audio AUD_CLKID_FRDDR_C>;
182 resets = <&arb AXG_ARB_FRDDR_C>,
183 <&clkc_audio AUD_RESET_FRDDR_C>;
184 reset-names = "arb", "rst";
185 amlogic,fifo-depth = <256>;
189 arb: reset-controller@280 {
191 compatible = "amlogic,meson-axg-audio-arb";
192 reg = <0x0 0x280 0x0 0x4>;
194 clocks = <&clkc_audio AUD_CLKID_DDR_ARB>;
197 tdmin_a: audio-controller@300 {
198 compatible = "amlogic,g12a-tdmin";
199 reg = <0x0 0x300 0x0 0x40>;
200 sound-name-prefix = "TDMIN_A";
201 resets = <&clkc_audio AUD_RESET_TDMIN_A>;
202 clocks = <&clkc_audio AUD_CLKID_TDMIN_A>,
203 <&clkc_audio AUD_CLKID_TDMIN_A_SCLK>,
204 <&clkc_audio AUD_CLKID_TDMIN_A_SCLK_SEL>,
205 <&clkc_audio AUD_CLKID_TDMIN_A_LRCLK>,
206 <&clkc_audio AUD_CLKID_TDMIN_A_LRCLK>;
207 clock-names = "pclk", "sclk", "sclk_sel",
208 "lrclk", "lrclk_sel";
212 tdmin_b: audio-controller@340 {
213 compatible = "amlogic,g12a-tdmin";
214 reg = <0x0 0x340 0x0 0x40>;
215 sound-name-prefix = "TDMIN_B";
216 resets = <&clkc_audio AUD_RESET_TDMIN_B>;
217 clocks = <&clkc_audio AUD_CLKID_TDMIN_B>,
218 <&clkc_audio AUD_CLKID_TDMIN_B_SCLK>,
219 <&clkc_audio AUD_CLKID_TDMIN_B_SCLK_SEL>,
220 <&clkc_audio AUD_CLKID_TDMIN_B_LRCLK>,
221 <&clkc_audio AUD_CLKID_TDMIN_B_LRCLK>;
222 clock-names = "pclk", "sclk", "sclk_sel",
223 "lrclk", "lrclk_sel";
227 tdmin_c: audio-controller@380 {
228 compatible = "amlogic,g12a-tdmin";
229 reg = <0x0 0x380 0x0 0x40>;
230 sound-name-prefix = "TDMIN_C";
231 resets = <&clkc_audio AUD_RESET_TDMIN_C>;
232 clocks = <&clkc_audio AUD_CLKID_TDMIN_C>,
233 <&clkc_audio AUD_CLKID_TDMIN_C_SCLK>,
234 <&clkc_audio AUD_CLKID_TDMIN_C_SCLK_SEL>,
235 <&clkc_audio AUD_CLKID_TDMIN_C_LRCLK>,
236 <&clkc_audio AUD_CLKID_TDMIN_C_LRCLK>;
237 clock-names = "pclk", "sclk", "sclk_sel",
238 "lrclk", "lrclk_sel";
242 tdmin_lb: audio-controller@3c0 {
243 compatible = "amlogic,g12a-tdmin";
244 reg = <0x0 0x3c0 0x0 0x40>;
245 sound-name-prefix = "TDMIN_LB";
246 resets = <&clkc_audio AUD_RESET_TDMIN_LB>;
247 clocks = <&clkc_audio AUD_CLKID_TDMIN_LB>,
248 <&clkc_audio AUD_CLKID_TDMIN_LB_SCLK>,
249 <&clkc_audio AUD_CLKID_TDMIN_LB_SCLK_SEL>,
250 <&clkc_audio AUD_CLKID_TDMIN_LB_LRCLK>,
251 <&clkc_audio AUD_CLKID_TDMIN_LB_LRCLK>;
252 clock-names = "pclk", "sclk", "sclk_sel",
253 "lrclk", "lrclk_sel";
257 spdifin: audio-controller@400 {
258 compatible = "amlogic,g12a-spdifin",
259 "amlogic,axg-spdifin";
260 reg = <0x0 0x400 0x0 0x30>;
261 #sound-dai-cells = <0>;
262 sound-name-prefix = "SPDIFIN";
263 interrupts = <GIC_SPI 151 IRQ_TYPE_EDGE_RISING>;
264 clocks = <&clkc_audio AUD_CLKID_SPDIFIN>,
265 <&clkc_audio AUD_CLKID_SPDIFIN_CLK>;
266 clock-names = "pclk", "refclk";
267 resets = <&clkc_audio AUD_RESET_SPDIFIN>;
271 spdifout_a: audio-controller@480 {
272 compatible = "amlogic,g12a-spdifout",
273 "amlogic,axg-spdifout";
274 reg = <0x0 0x480 0x0 0x50>;
275 #sound-dai-cells = <0>;
276 sound-name-prefix = "SPDIFOUT_A";
277 clocks = <&clkc_audio AUD_CLKID_SPDIFOUT>,
278 <&clkc_audio AUD_CLKID_SPDIFOUT_CLK>;
279 clock-names = "pclk", "mclk";
280 resets = <&clkc_audio AUD_RESET_SPDIFOUT>;
284 tdmout_a: audio-controller@500 {
285 compatible = "amlogic,g12a-tdmout";
286 reg = <0x0 0x500 0x0 0x40>;
287 sound-name-prefix = "TDMOUT_A";
288 resets = <&clkc_audio AUD_RESET_TDMOUT_A>;
289 clocks = <&clkc_audio AUD_CLKID_TDMOUT_A>,
290 <&clkc_audio AUD_CLKID_TDMOUT_A_SCLK>,
291 <&clkc_audio AUD_CLKID_TDMOUT_A_SCLK_SEL>,
292 <&clkc_audio AUD_CLKID_TDMOUT_A_LRCLK>,
293 <&clkc_audio AUD_CLKID_TDMOUT_A_LRCLK>;
294 clock-names = "pclk", "sclk", "sclk_sel",
295 "lrclk", "lrclk_sel";
299 tdmout_b: audio-controller@540 {
300 compatible = "amlogic,g12a-tdmout";
301 reg = <0x0 0x540 0x0 0x40>;
302 sound-name-prefix = "TDMOUT_B";
303 resets = <&clkc_audio AUD_RESET_TDMOUT_B>;
304 clocks = <&clkc_audio AUD_CLKID_TDMOUT_B>,
305 <&clkc_audio AUD_CLKID_TDMOUT_B_SCLK>,
306 <&clkc_audio AUD_CLKID_TDMOUT_B_SCLK_SEL>,
307 <&clkc_audio AUD_CLKID_TDMOUT_B_LRCLK>,
308 <&clkc_audio AUD_CLKID_TDMOUT_B_LRCLK>;
309 clock-names = "pclk", "sclk", "sclk_sel",
310 "lrclk", "lrclk_sel";
314 tdmout_c: audio-controller@580 {
315 compatible = "amlogic,g12a-tdmout";
316 reg = <0x0 0x580 0x0 0x40>;
317 sound-name-prefix = "TDMOUT_C";
318 resets = <&clkc_audio AUD_RESET_TDMOUT_C>;
319 clocks = <&clkc_audio AUD_CLKID_TDMOUT_C>,
320 <&clkc_audio AUD_CLKID_TDMOUT_C_SCLK>,
321 <&clkc_audio AUD_CLKID_TDMOUT_C_SCLK_SEL>,
322 <&clkc_audio AUD_CLKID_TDMOUT_C_LRCLK>,
323 <&clkc_audio AUD_CLKID_TDMOUT_C_LRCLK>;
324 clock-names = "pclk", "sclk", "sclk_sel",
325 "lrclk", "lrclk_sel";
329 spdifout_b: audio-controller@680 {
330 compatible = "amlogic,g12a-spdifout",
331 "amlogic,axg-spdifout";
332 reg = <0x0 0x680 0x0 0x50>;
333 #sound-dai-cells = <0>;
334 sound-name-prefix = "SPDIFOUT_B";
335 clocks = <&clkc_audio AUD_CLKID_SPDIFOUT_B>,
336 <&clkc_audio AUD_CLKID_SPDIFOUT_B_CLK>;
337 clock-names = "pclk", "mclk";
338 resets = <&clkc_audio AUD_RESET_SPDIFOUT_B>;
342 toacodec: audio-controller@740 {
343 compatible = "amlogic,g12a-toacodec";
344 reg = <0x0 0x740 0x0 0x4>;
345 #sound-dai-cells = <1>;
346 sound-name-prefix = "TOACODEC";
347 resets = <&clkc_audio AUD_RESET_TOACODEC>;
351 tohdmitx: audio-controller@744 {
352 compatible = "amlogic,g12a-tohdmitx";
353 reg = <0x0 0x744 0x0 0x4>;
354 #sound-dai-cells = <1>;
355 sound-name-prefix = "TOHDMITX";
356 resets = <&clkc_audio AUD_RESET_TOHDMITX>;
363 power-domains = <&pwrc PWRC_G12A_ETH_ID>;
367 power-domains = <&pwrc PWRC_G12A_VPU_ID>;
371 amlogic,dram-access-quirk;
375 power-domains = <&pwrc PWRC_G12A_VPU_ID>;
379 power-domains = <&pwrc PWRC_G12A_VPU_ID>;