1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
3 * Copyright (c) 2019 BayLibre, SAS
4 * Author: Neil Armstrong <narmstrong@baylibre.com>
7 #include "meson-g12-common.dtsi"
8 #include <dt-bindings/clock/axg-audio-clkc.h>
9 #include <dt-bindings/power/meson-sm1-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 compatible = "amlogic,sm1";
16 tdmif_a: audio-controller-0 {
17 compatible = "amlogic,axg-tdm-iface";
18 #sound-dai-cells = <0>;
19 sound-name-prefix = "TDM_A";
20 clocks = <&clkc_audio AUD_CLKID_MST_A_MCLK>,
21 <&clkc_audio AUD_CLKID_MST_A_SCLK>,
22 <&clkc_audio AUD_CLKID_MST_A_LRCLK>;
23 clock-names = "mclk", "sclk", "lrclk";
27 tdmif_b: audio-controller-1 {
28 compatible = "amlogic,axg-tdm-iface";
29 #sound-dai-cells = <0>;
30 sound-name-prefix = "TDM_B";
31 clocks = <&clkc_audio AUD_CLKID_MST_B_MCLK>,
32 <&clkc_audio AUD_CLKID_MST_B_SCLK>,
33 <&clkc_audio AUD_CLKID_MST_B_LRCLK>;
34 clock-names = "mclk", "sclk", "lrclk";
38 tdmif_c: audio-controller-2 {
39 compatible = "amlogic,axg-tdm-iface";
40 #sound-dai-cells = <0>;
41 sound-name-prefix = "TDM_C";
42 clocks = <&clkc_audio AUD_CLKID_MST_C_MCLK>,
43 <&clkc_audio AUD_CLKID_MST_C_SCLK>,
44 <&clkc_audio AUD_CLKID_MST_C_LRCLK>;
45 clock-names = "mclk", "sclk", "lrclk";
50 #address-cells = <0x2>;
55 compatible = "arm,cortex-a55";
57 enable-method = "psci";
58 next-level-cache = <&l2>;
64 compatible = "arm,cortex-a55";
66 enable-method = "psci";
67 next-level-cache = <&l2>;
73 compatible = "arm,cortex-a55";
75 enable-method = "psci";
76 next-level-cache = <&l2>;
82 compatible = "arm,cortex-a55";
84 enable-method = "psci";
85 next-level-cache = <&l2>;
94 cpu_opp_table: opp-table {
95 compatible = "operating-points-v2";
99 opp-hz = /bits/ 64 <100000000>;
100 opp-microvolt = <730000>;
104 opp-hz = /bits/ 64 <250000000>;
105 opp-microvolt = <730000>;
109 opp-hz = /bits/ 64 <500000000>;
110 opp-microvolt = <730000>;
114 opp-hz = /bits/ 64 <666666666>;
115 opp-microvolt = <750000>;
119 opp-hz = /bits/ 64 <1000000000>;
120 opp-microvolt = <770000>;
124 opp-hz = /bits/ 64 <1200000000>;
125 opp-microvolt = <780000>;
129 opp-hz = /bits/ 64 <1404000000>;
130 opp-microvolt = <790000>;
134 opp-hz = /bits/ 64 <1500000000>;
135 opp-microvolt = <800000>;
139 opp-hz = /bits/ 64 <1608000000>;
140 opp-microvolt = <810000>;
144 opp-hz = /bits/ 64 <1704000000>;
145 opp-microvolt = <850000>;
149 opp-hz = /bits/ 64 <1800000000>;
150 opp-microvolt = <900000>;
154 opp-hz = /bits/ 64 <1908000000>;
155 opp-microvolt = <950000>;
162 compatible = "simple-bus";
163 reg = <0x0 0x60000 0x0 0x1000>;
164 #address-cells = <2>;
166 ranges = <0x0 0x0 0x0 0x60000 0x0 0x1000>;
168 clkc_audio: clock-controller@0 {
170 compatible = "amlogic,sm1-audio-clkc";
171 reg = <0x0 0x0 0x0 0xb4>;
175 clocks = <&clkc CLKID_AUDIO>,
180 <&clkc CLKID_HIFI_PLL>,
181 <&clkc CLKID_FCLK_DIV3>,
182 <&clkc CLKID_FCLK_DIV4>,
183 <&clkc CLKID_FCLK_DIV5>;
184 clock-names = "pclk",
194 resets = <&reset RESET_AUDIO>;
197 toddr_a: audio-controller@100 {
198 compatible = "amlogic,sm1-toddr",
200 reg = <0x0 0x100 0x0 0x2c>;
201 #sound-dai-cells = <0>;
202 sound-name-prefix = "TODDR_A";
203 interrupts = <GIC_SPI 148 IRQ_TYPE_EDGE_RISING>;
204 clocks = <&clkc_audio AUD_CLKID_TODDR_A>;
205 resets = <&arb AXG_ARB_TODDR_A>,
206 <&clkc_audio AUD_RESET_TODDR_A>;
207 reset-names = "arb", "rst";
208 amlogic,fifo-depth = <8192>;
212 toddr_b: audio-controller@140 {
213 compatible = "amlogic,sm1-toddr",
215 reg = <0x0 0x140 0x0 0x2c>;
216 #sound-dai-cells = <0>;
217 sound-name-prefix = "TODDR_B";
218 interrupts = <GIC_SPI 149 IRQ_TYPE_EDGE_RISING>;
219 clocks = <&clkc_audio AUD_CLKID_TODDR_B>;
220 resets = <&arb AXG_ARB_TODDR_B>,
221 <&clkc_audio AUD_RESET_TODDR_B>;
222 reset-names = "arb", "rst";
223 amlogic,fifo-depth = <256>;
227 toddr_c: audio-controller@180 {
228 compatible = "amlogic,sm1-toddr",
230 reg = <0x0 0x180 0x0 0x2c>;
231 #sound-dai-cells = <0>;
232 sound-name-prefix = "TODDR_C";
233 interrupts = <GIC_SPI 150 IRQ_TYPE_EDGE_RISING>;
234 clocks = <&clkc_audio AUD_CLKID_TODDR_C>;
235 resets = <&arb AXG_ARB_TODDR_C>,
236 <&clkc_audio AUD_RESET_TODDR_C>;
237 reset-names = "arb", "rst";
238 amlogic,fifo-depth = <256>;
242 frddr_a: audio-controller@1c0 {
243 compatible = "amlogic,sm1-frddr",
245 reg = <0x0 0x1c0 0x0 0x2c>;
246 #sound-dai-cells = <0>;
247 sound-name-prefix = "FRDDR_A";
248 interrupts = <GIC_SPI 152 IRQ_TYPE_EDGE_RISING>;
249 clocks = <&clkc_audio AUD_CLKID_FRDDR_A>;
250 resets = <&arb AXG_ARB_FRDDR_A>,
251 <&clkc_audio AUD_RESET_FRDDR_A>;
252 reset-names = "arb", "rst";
253 amlogic,fifo-depth = <512>;
257 frddr_b: audio-controller@200 {
258 compatible = "amlogic,sm1-frddr",
260 reg = <0x0 0x200 0x0 0x2c>;
261 #sound-dai-cells = <0>;
262 sound-name-prefix = "FRDDR_B";
263 interrupts = <GIC_SPI 153 IRQ_TYPE_EDGE_RISING>;
264 clocks = <&clkc_audio AUD_CLKID_FRDDR_B>;
265 resets = <&arb AXG_ARB_FRDDR_B>,
266 <&clkc_audio AUD_RESET_FRDDR_B>;
267 reset-names = "arb", "rst";
268 amlogic,fifo-depth = <256>;
272 frddr_c: audio-controller@240 {
273 compatible = "amlogic,sm1-frddr",
275 reg = <0x0 0x240 0x0 0x2c>;
276 #sound-dai-cells = <0>;
277 sound-name-prefix = "FRDDR_C";
278 interrupts = <GIC_SPI 154 IRQ_TYPE_EDGE_RISING>;
279 clocks = <&clkc_audio AUD_CLKID_FRDDR_C>;
280 resets = <&arb AXG_ARB_FRDDR_C>,
281 <&clkc_audio AUD_RESET_FRDDR_C>;
282 reset-names = "arb", "rst";
283 amlogic,fifo-depth = <256>;
287 arb: reset-controller@280 {
289 compatible = "amlogic,meson-sm1-audio-arb";
290 reg = <0x0 0x280 0x0 0x4>;
292 clocks = <&clkc_audio AUD_CLKID_DDR_ARB>;
295 tdmin_a: audio-controller@300 {
296 compatible = "amlogic,sm1-tdmin",
298 reg = <0x0 0x300 0x0 0x40>;
299 sound-name-prefix = "TDMIN_A";
300 resets = <&clkc_audio AUD_RESET_TDMIN_A>;
301 clocks = <&clkc_audio AUD_CLKID_TDMIN_A>,
302 <&clkc_audio AUD_CLKID_TDMIN_A_SCLK>,
303 <&clkc_audio AUD_CLKID_TDMIN_A_SCLK_SEL>,
304 <&clkc_audio AUD_CLKID_TDMIN_A_LRCLK>,
305 <&clkc_audio AUD_CLKID_TDMIN_A_LRCLK>;
306 clock-names = "pclk", "sclk", "sclk_sel",
307 "lrclk", "lrclk_sel";
311 tdmin_b: audio-controller@340 {
312 compatible = "amlogic,sm1-tdmin",
314 reg = <0x0 0x340 0x0 0x40>;
315 sound-name-prefix = "TDMIN_B";
316 resets = <&clkc_audio AUD_RESET_TDMIN_B>;
317 clocks = <&clkc_audio AUD_CLKID_TDMIN_B>,
318 <&clkc_audio AUD_CLKID_TDMIN_B_SCLK>,
319 <&clkc_audio AUD_CLKID_TDMIN_B_SCLK_SEL>,
320 <&clkc_audio AUD_CLKID_TDMIN_B_LRCLK>,
321 <&clkc_audio AUD_CLKID_TDMIN_B_LRCLK>;
322 clock-names = "pclk", "sclk", "sclk_sel",
323 "lrclk", "lrclk_sel";
327 tdmin_c: audio-controller@380 {
328 compatible = "amlogic,sm1-tdmin",
330 reg = <0x0 0x380 0x0 0x40>;
331 sound-name-prefix = "TDMIN_C";
332 resets = <&clkc_audio AUD_RESET_TDMIN_C>;
333 clocks = <&clkc_audio AUD_CLKID_TDMIN_C>,
334 <&clkc_audio AUD_CLKID_TDMIN_C_SCLK>,
335 <&clkc_audio AUD_CLKID_TDMIN_C_SCLK_SEL>,
336 <&clkc_audio AUD_CLKID_TDMIN_C_LRCLK>,
337 <&clkc_audio AUD_CLKID_TDMIN_C_LRCLK>;
338 clock-names = "pclk", "sclk", "sclk_sel",
339 "lrclk", "lrclk_sel";
343 tdmin_lb: audio-controller@3c0 {
344 compatible = "amlogic,sm1-tdmin",
346 reg = <0x0 0x3c0 0x0 0x40>;
347 sound-name-prefix = "TDMIN_LB";
348 resets = <&clkc_audio AUD_RESET_TDMIN_LB>;
349 clocks = <&clkc_audio AUD_CLKID_TDMIN_LB>,
350 <&clkc_audio AUD_CLKID_TDMIN_LB_SCLK>,
351 <&clkc_audio AUD_CLKID_TDMIN_LB_SCLK_SEL>,
352 <&clkc_audio AUD_CLKID_TDMIN_LB_LRCLK>,
353 <&clkc_audio AUD_CLKID_TDMIN_LB_LRCLK>;
354 clock-names = "pclk", "sclk", "sclk_sel",
355 "lrclk", "lrclk_sel";
359 tdmout_a: audio-controller@500 {
360 compatible = "amlogic,sm1-tdmout";
361 reg = <0x0 0x500 0x0 0x40>;
362 sound-name-prefix = "TDMOUT_A";
363 resets = <&clkc_audio AUD_RESET_TDMOUT_A>;
364 clocks = <&clkc_audio AUD_CLKID_TDMOUT_A>,
365 <&clkc_audio AUD_CLKID_TDMOUT_A_SCLK>,
366 <&clkc_audio AUD_CLKID_TDMOUT_A_SCLK_SEL>,
367 <&clkc_audio AUD_CLKID_TDMOUT_A_LRCLK>,
368 <&clkc_audio AUD_CLKID_TDMOUT_A_LRCLK>;
369 clock-names = "pclk", "sclk", "sclk_sel",
370 "lrclk", "lrclk_sel";
374 tdmout_b: audio-controller@540 {
375 compatible = "amlogic,sm1-tdmout";
376 reg = <0x0 0x540 0x0 0x40>;
377 sound-name-prefix = "TDMOUT_B";
378 resets = <&clkc_audio AUD_RESET_TDMOUT_B>;
379 clocks = <&clkc_audio AUD_CLKID_TDMOUT_B>,
380 <&clkc_audio AUD_CLKID_TDMOUT_B_SCLK>,
381 <&clkc_audio AUD_CLKID_TDMOUT_B_SCLK_SEL>,
382 <&clkc_audio AUD_CLKID_TDMOUT_B_LRCLK>,
383 <&clkc_audio AUD_CLKID_TDMOUT_B_LRCLK>;
384 clock-names = "pclk", "sclk", "sclk_sel",
385 "lrclk", "lrclk_sel";
389 tdmout_c: audio-controller@580 {
390 compatible = "amlogic,sm1-tdmout";
391 reg = <0x0 0x580 0x0 0x40>;
392 sound-name-prefix = "TDMOUT_C";
393 resets = <&clkc_audio AUD_RESET_TDMOUT_C>;
394 clocks = <&clkc_audio AUD_CLKID_TDMOUT_C>,
395 <&clkc_audio AUD_CLKID_TDMOUT_C_SCLK>,
396 <&clkc_audio AUD_CLKID_TDMOUT_C_SCLK_SEL>,
397 <&clkc_audio AUD_CLKID_TDMOUT_C_LRCLK>,
398 <&clkc_audio AUD_CLKID_TDMOUT_C_LRCLK>;
399 clock-names = "pclk", "sclk", "sclk_sel",
400 "lrclk", "lrclk_sel";
404 tohdmitx: audio-controller@744 {
405 compatible = "amlogic,sm1-tohdmitx",
406 "amlogic,g12a-tohdmitx";
407 reg = <0x0 0x744 0x0 0x4>;
408 #sound-dai-cells = <1>;
409 sound-name-prefix = "TOHDMITX";
410 resets = <&clkc_audio AUD_RESET_TOHDMITX>;
414 toddr_d: audio-controller@840 {
415 compatible = "amlogic,sm1-toddr",
417 reg = <0x0 0x840 0x0 0x2c>;
418 #sound-dai-cells = <0>;
419 sound-name-prefix = "TODDR_D";
420 interrupts = <GIC_SPI 49 IRQ_TYPE_EDGE_RISING>;
421 clocks = <&clkc_audio AUD_CLKID_TODDR_D>;
422 resets = <&arb AXG_ARB_TODDR_D>,
423 <&clkc_audio AUD_RESET_TODDR_D>;
424 reset-names = "arb", "rst";
425 amlogic,fifo-depth = <256>;
429 frddr_d: audio-controller@880 {
430 compatible = "amlogic,sm1-frddr",
432 reg = <0x0 0x880 0x0 0x2c>;
433 #sound-dai-cells = <0>;
434 sound-name-prefix = "FRDDR_D";
435 interrupts = <GIC_SPI 50 IRQ_TYPE_EDGE_RISING>;
436 clocks = <&clkc_audio AUD_CLKID_FRDDR_D>;
437 resets = <&arb AXG_ARB_FRDDR_D>,
438 <&clkc_audio AUD_RESET_FRDDR_D>;
439 reset-names = "arb", "rst";
440 amlogic,fifo-depth = <256>;
445 pdm: audio-controller@61000 {
446 compatible = "amlogic,sm1-pdm",
448 reg = <0x0 0x61000 0x0 0x34>;
449 #sound-dai-cells = <0>;
450 sound-name-prefix = "PDM";
451 clocks = <&clkc_audio AUD_CLKID_PDM>,
452 <&clkc_audio AUD_CLKID_PDM_DCLK>,
453 <&clkc_audio AUD_CLKID_PDM_SYSCLK>;
454 clock-names = "pclk", "dclk", "sysclk";
455 resets = <&clkc_audio AUD_RESET_PDM>;
461 compatible = "amlogic,meson-sm1-ao-cec";
465 compatible = "amlogic,meson-sm1-clk-measure";
470 compatible = "amlogic,sm1-clkc";
476 trip = <&cpu_passive>;
477 cooling-device = <&cpu0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
478 <&cpu1 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
479 <&cpu2 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
480 <&cpu3 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
485 cooling-device = <&cpu0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
486 <&cpu1 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
487 <&cpu2 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
488 <&cpu3 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
494 power-domains = <&pwrc PWRC_SM1_ETH_ID>;
498 compatible = "amlogic,meson-sm1-gpio-intc",
499 "amlogic,meson-gpio-intc";
503 power-domains = <&pwrc PWRC_SM1_PCIE_ID>;
507 compatible = "amlogic,meson-sm1-pwrc";
511 power-domains = <&pwrc PWRC_SM1_VPU_ID>;
515 power-domains = <&pwrc PWRC_SM1_VPU_ID>;
519 compatible = "amlogic,sm1-vdec";
523 power-domains = <&pwrc PWRC_SM1_VPU_ID>;
527 power-domains = <&pwrc PWRC_SM1_USB_ID>;