1// SPDX-License-Identifier: (GPL-2.0+ OR MIT) 2/* 3 * Copyright (c) 2019 BayLibre, SAS 4 * Author: Neil Armstrong <narmstrong@baylibre.com> 5 */ 6 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> 12 13/ { 14 compatible = "amlogic,sm1"; 15 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"; 24 status = "disabled"; 25 }; 26 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"; 35 status = "disabled"; 36 }; 37 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"; 46 status = "disabled"; 47 }; 48 49 cpus { 50 #address-cells = <0x2>; 51 #size-cells = <0x0>; 52 53 cpu0: cpu@0 { 54 device_type = "cpu"; 55 compatible = "arm,cortex-a55"; 56 reg = <0x0 0x0>; 57 enable-method = "psci"; 58 next-level-cache = <&l2>; 59 #cooling-cells = <2>; 60 }; 61 62 cpu1: cpu@1 { 63 device_type = "cpu"; 64 compatible = "arm,cortex-a55"; 65 reg = <0x0 0x1>; 66 enable-method = "psci"; 67 next-level-cache = <&l2>; 68 #cooling-cells = <2>; 69 }; 70 71 cpu2: cpu@2 { 72 device_type = "cpu"; 73 compatible = "arm,cortex-a55"; 74 reg = <0x0 0x2>; 75 enable-method = "psci"; 76 next-level-cache = <&l2>; 77 #cooling-cells = <2>; 78 }; 79 80 cpu3: cpu@3 { 81 device_type = "cpu"; 82 compatible = "arm,cortex-a55"; 83 reg = <0x0 0x3>; 84 enable-method = "psci"; 85 next-level-cache = <&l2>; 86 #cooling-cells = <2>; 87 }; 88 89 l2: l2-cache0 { 90 compatible = "cache"; 91 }; 92 }; 93 94 cpu_opp_table: opp-table { 95 compatible = "operating-points-v2"; 96 opp-shared; 97 98 opp-1000000000 { 99 opp-hz = /bits/ 64 <1000000000>; 100 opp-microvolt = <770000>; 101 }; 102 103 opp-1200000000 { 104 opp-hz = /bits/ 64 <1200000000>; 105 opp-microvolt = <780000>; 106 }; 107 108 opp-1404000000 { 109 opp-hz = /bits/ 64 <1404000000>; 110 opp-microvolt = <790000>; 111 }; 112 113 opp-1500000000 { 114 opp-hz = /bits/ 64 <1500000000>; 115 opp-microvolt = <800000>; 116 }; 117 118 opp-1608000000 { 119 opp-hz = /bits/ 64 <1608000000>; 120 opp-microvolt = <810000>; 121 }; 122 123 opp-1704000000 { 124 opp-hz = /bits/ 64 <1704000000>; 125 opp-microvolt = <850000>; 126 }; 127 128 opp-1800000000 { 129 opp-hz = /bits/ 64 <1800000000>; 130 opp-microvolt = <900000>; 131 }; 132 133 opp-1908000000 { 134 opp-hz = /bits/ 64 <1908000000>; 135 opp-microvolt = <950000>; 136 }; 137 }; 138}; 139 140&apb { 141 audio: bus@60000 { 142 compatible = "simple-bus"; 143 reg = <0x0 0x60000 0x0 0x1000>; 144 #address-cells = <2>; 145 #size-cells = <2>; 146 ranges = <0x0 0x0 0x0 0x60000 0x0 0x1000>; 147 148 clkc_audio: clock-controller@0 { 149 status = "disabled"; 150 compatible = "amlogic,sm1-audio-clkc"; 151 reg = <0x0 0x0 0x0 0xb4>; 152 #clock-cells = <1>; 153 #reset-cells = <1>; 154 155 clocks = <&clkc CLKID_AUDIO>, 156 <&clkc CLKID_MPLL0>, 157 <&clkc CLKID_MPLL1>, 158 <&clkc CLKID_MPLL2>, 159 <&clkc CLKID_MPLL3>, 160 <&clkc CLKID_HIFI_PLL>, 161 <&clkc CLKID_FCLK_DIV3>, 162 <&clkc CLKID_FCLK_DIV4>, 163 <&clkc CLKID_FCLK_DIV5>; 164 clock-names = "pclk", 165 "mst_in0", 166 "mst_in1", 167 "mst_in2", 168 "mst_in3", 169 "mst_in4", 170 "mst_in5", 171 "mst_in6", 172 "mst_in7"; 173 174 resets = <&reset RESET_AUDIO>; 175 }; 176 177 toddr_a: audio-controller@100 { 178 compatible = "amlogic,sm1-toddr", 179 "amlogic,axg-toddr"; 180 reg = <0x0 0x100 0x0 0x2c>; 181 #sound-dai-cells = <0>; 182 sound-name-prefix = "TODDR_A"; 183 interrupts = <GIC_SPI 148 IRQ_TYPE_EDGE_RISING>; 184 clocks = <&clkc_audio AUD_CLKID_TODDR_A>; 185 resets = <&arb AXG_ARB_TODDR_A>, 186 <&clkc_audio AUD_RESET_TODDR_A>; 187 reset-names = "arb", "rst"; 188 amlogic,fifo-depth = <8192>; 189 status = "disabled"; 190 }; 191 192 toddr_b: audio-controller@140 { 193 compatible = "amlogic,sm1-toddr", 194 "amlogic,axg-toddr"; 195 reg = <0x0 0x140 0x0 0x2c>; 196 #sound-dai-cells = <0>; 197 sound-name-prefix = "TODDR_B"; 198 interrupts = <GIC_SPI 149 IRQ_TYPE_EDGE_RISING>; 199 clocks = <&clkc_audio AUD_CLKID_TODDR_B>; 200 resets = <&arb AXG_ARB_TODDR_B>, 201 <&clkc_audio AUD_RESET_TODDR_B>; 202 reset-names = "arb", "rst"; 203 amlogic,fifo-depth = <256>; 204 status = "disabled"; 205 }; 206 207 toddr_c: audio-controller@180 { 208 compatible = "amlogic,sm1-toddr", 209 "amlogic,axg-toddr"; 210 reg = <0x0 0x180 0x0 0x2c>; 211 #sound-dai-cells = <0>; 212 sound-name-prefix = "TODDR_C"; 213 interrupts = <GIC_SPI 150 IRQ_TYPE_EDGE_RISING>; 214 clocks = <&clkc_audio AUD_CLKID_TODDR_C>; 215 resets = <&arb AXG_ARB_TODDR_C>, 216 <&clkc_audio AUD_RESET_TODDR_C>; 217 reset-names = "arb", "rst"; 218 amlogic,fifo-depth = <256>; 219 status = "disabled"; 220 }; 221 222 frddr_a: audio-controller@1c0 { 223 compatible = "amlogic,sm1-frddr", 224 "amlogic,axg-frddr"; 225 reg = <0x0 0x1c0 0x0 0x2c>; 226 #sound-dai-cells = <0>; 227 sound-name-prefix = "FRDDR_A"; 228 interrupts = <GIC_SPI 152 IRQ_TYPE_EDGE_RISING>; 229 clocks = <&clkc_audio AUD_CLKID_FRDDR_A>; 230 resets = <&arb AXG_ARB_FRDDR_A>, 231 <&clkc_audio AUD_RESET_FRDDR_A>; 232 reset-names = "arb", "rst"; 233 amlogic,fifo-depth = <512>; 234 status = "disabled"; 235 }; 236 237 frddr_b: audio-controller@200 { 238 compatible = "amlogic,sm1-frddr", 239 "amlogic,axg-frddr"; 240 reg = <0x0 0x200 0x0 0x2c>; 241 #sound-dai-cells = <0>; 242 sound-name-prefix = "FRDDR_B"; 243 interrupts = <GIC_SPI 153 IRQ_TYPE_EDGE_RISING>; 244 clocks = <&clkc_audio AUD_CLKID_FRDDR_B>; 245 resets = <&arb AXG_ARB_FRDDR_B>, 246 <&clkc_audio AUD_RESET_FRDDR_B>; 247 reset-names = "arb", "rst"; 248 amlogic,fifo-depth = <256>; 249 status = "disabled"; 250 }; 251 252 frddr_c: audio-controller@240 { 253 compatible = "amlogic,sm1-frddr", 254 "amlogic,axg-frddr"; 255 reg = <0x0 0x240 0x0 0x2c>; 256 #sound-dai-cells = <0>; 257 sound-name-prefix = "FRDDR_C"; 258 interrupts = <GIC_SPI 154 IRQ_TYPE_EDGE_RISING>; 259 clocks = <&clkc_audio AUD_CLKID_FRDDR_C>; 260 resets = <&arb AXG_ARB_FRDDR_C>, 261 <&clkc_audio AUD_RESET_FRDDR_C>; 262 reset-names = "arb", "rst"; 263 amlogic,fifo-depth = <256>; 264 status = "disabled"; 265 }; 266 267 arb: reset-controller@280 { 268 status = "disabled"; 269 compatible = "amlogic,meson-sm1-audio-arb"; 270 reg = <0x0 0x280 0x0 0x4>; 271 #reset-cells = <1>; 272 clocks = <&clkc_audio AUD_CLKID_DDR_ARB>; 273 }; 274 275 tdmin_a: audio-controller@300 { 276 compatible = "amlogic,sm1-tdmin", 277 "amlogic,axg-tdmin"; 278 reg = <0x0 0x300 0x0 0x40>; 279 sound-name-prefix = "TDMIN_A"; 280 resets = <&clkc_audio AUD_RESET_TDMIN_A>; 281 clocks = <&clkc_audio AUD_CLKID_TDMIN_A>, 282 <&clkc_audio AUD_CLKID_TDMIN_A_SCLK>, 283 <&clkc_audio AUD_CLKID_TDMIN_A_SCLK_SEL>, 284 <&clkc_audio AUD_CLKID_TDMIN_A_LRCLK>, 285 <&clkc_audio AUD_CLKID_TDMIN_A_LRCLK>; 286 clock-names = "pclk", "sclk", "sclk_sel", 287 "lrclk", "lrclk_sel"; 288 status = "disabled"; 289 }; 290 291 tdmin_b: audio-controller@340 { 292 compatible = "amlogic,sm1-tdmin", 293 "amlogic,axg-tdmin"; 294 reg = <0x0 0x340 0x0 0x40>; 295 sound-name-prefix = "TDMIN_B"; 296 resets = <&clkc_audio AUD_RESET_TDMIN_B>; 297 clocks = <&clkc_audio AUD_CLKID_TDMIN_B>, 298 <&clkc_audio AUD_CLKID_TDMIN_B_SCLK>, 299 <&clkc_audio AUD_CLKID_TDMIN_B_SCLK_SEL>, 300 <&clkc_audio AUD_CLKID_TDMIN_B_LRCLK>, 301 <&clkc_audio AUD_CLKID_TDMIN_B_LRCLK>; 302 clock-names = "pclk", "sclk", "sclk_sel", 303 "lrclk", "lrclk_sel"; 304 status = "disabled"; 305 }; 306 307 tdmin_c: audio-controller@380 { 308 compatible = "amlogic,sm1-tdmin", 309 "amlogic,axg-tdmin"; 310 reg = <0x0 0x380 0x0 0x40>; 311 sound-name-prefix = "TDMIN_C"; 312 resets = <&clkc_audio AUD_RESET_TDMIN_C>; 313 clocks = <&clkc_audio AUD_CLKID_TDMIN_C>, 314 <&clkc_audio AUD_CLKID_TDMIN_C_SCLK>, 315 <&clkc_audio AUD_CLKID_TDMIN_C_SCLK_SEL>, 316 <&clkc_audio AUD_CLKID_TDMIN_C_LRCLK>, 317 <&clkc_audio AUD_CLKID_TDMIN_C_LRCLK>; 318 clock-names = "pclk", "sclk", "sclk_sel", 319 "lrclk", "lrclk_sel"; 320 status = "disabled"; 321 }; 322 323 tdmin_lb: audio-controller@3c0 { 324 compatible = "amlogic,sm1-tdmin", 325 "amlogic,axg-tdmin"; 326 reg = <0x0 0x3c0 0x0 0x40>; 327 sound-name-prefix = "TDMIN_LB"; 328 resets = <&clkc_audio AUD_RESET_TDMIN_LB>; 329 clocks = <&clkc_audio AUD_CLKID_TDMIN_LB>, 330 <&clkc_audio AUD_CLKID_TDMIN_LB_SCLK>, 331 <&clkc_audio AUD_CLKID_TDMIN_LB_SCLK_SEL>, 332 <&clkc_audio AUD_CLKID_TDMIN_LB_LRCLK>, 333 <&clkc_audio AUD_CLKID_TDMIN_LB_LRCLK>; 334 clock-names = "pclk", "sclk", "sclk_sel", 335 "lrclk", "lrclk_sel"; 336 status = "disabled"; 337 }; 338 339 tdmout_a: audio-controller@500 { 340 compatible = "amlogic,sm1-tdmout"; 341 reg = <0x0 0x500 0x0 0x40>; 342 sound-name-prefix = "TDMOUT_A"; 343 resets = <&clkc_audio AUD_RESET_TDMOUT_A>; 344 clocks = <&clkc_audio AUD_CLKID_TDMOUT_A>, 345 <&clkc_audio AUD_CLKID_TDMOUT_A_SCLK>, 346 <&clkc_audio AUD_CLKID_TDMOUT_A_SCLK_SEL>, 347 <&clkc_audio AUD_CLKID_TDMOUT_A_LRCLK>, 348 <&clkc_audio AUD_CLKID_TDMOUT_A_LRCLK>; 349 clock-names = "pclk", "sclk", "sclk_sel", 350 "lrclk", "lrclk_sel"; 351 status = "disabled"; 352 }; 353 354 tdmout_b: audio-controller@540 { 355 compatible = "amlogic,sm1-tdmout"; 356 reg = <0x0 0x540 0x0 0x40>; 357 sound-name-prefix = "TDMOUT_B"; 358 resets = <&clkc_audio AUD_RESET_TDMOUT_B>; 359 clocks = <&clkc_audio AUD_CLKID_TDMOUT_B>, 360 <&clkc_audio AUD_CLKID_TDMOUT_B_SCLK>, 361 <&clkc_audio AUD_CLKID_TDMOUT_B_SCLK_SEL>, 362 <&clkc_audio AUD_CLKID_TDMOUT_B_LRCLK>, 363 <&clkc_audio AUD_CLKID_TDMOUT_B_LRCLK>; 364 clock-names = "pclk", "sclk", "sclk_sel", 365 "lrclk", "lrclk_sel"; 366 status = "disabled"; 367 }; 368 369 tdmout_c: audio-controller@580 { 370 compatible = "amlogic,sm1-tdmout"; 371 reg = <0x0 0x580 0x0 0x40>; 372 sound-name-prefix = "TDMOUT_C"; 373 resets = <&clkc_audio AUD_RESET_TDMOUT_C>; 374 clocks = <&clkc_audio AUD_CLKID_TDMOUT_C>, 375 <&clkc_audio AUD_CLKID_TDMOUT_C_SCLK>, 376 <&clkc_audio AUD_CLKID_TDMOUT_C_SCLK_SEL>, 377 <&clkc_audio AUD_CLKID_TDMOUT_C_LRCLK>, 378 <&clkc_audio AUD_CLKID_TDMOUT_C_LRCLK>; 379 clock-names = "pclk", "sclk", "sclk_sel", 380 "lrclk", "lrclk_sel"; 381 status = "disabled"; 382 }; 383 384 tohdmitx: audio-controller@744 { 385 compatible = "amlogic,sm1-tohdmitx", 386 "amlogic,g12a-tohdmitx"; 387 reg = <0x0 0x744 0x0 0x4>; 388 #sound-dai-cells = <1>; 389 sound-name-prefix = "TOHDMITX"; 390 resets = <&clkc_audio AUD_RESET_TOHDMITX>; 391 status = "disabled"; 392 }; 393 394 toddr_d: audio-controller@840 { 395 compatible = "amlogic,sm1-toddr", 396 "amlogic,axg-toddr"; 397 reg = <0x0 0x840 0x0 0x2c>; 398 #sound-dai-cells = <0>; 399 sound-name-prefix = "TODDR_D"; 400 interrupts = <GIC_SPI 49 IRQ_TYPE_EDGE_RISING>; 401 clocks = <&clkc_audio AUD_CLKID_TODDR_D>; 402 resets = <&arb AXG_ARB_TODDR_D>, 403 <&clkc_audio AUD_RESET_TODDR_D>; 404 reset-names = "arb", "rst"; 405 amlogic,fifo-depth = <256>; 406 status = "disabled"; 407 }; 408 409 frddr_d: audio-controller@880 { 410 compatible = "amlogic,sm1-frddr", 411 "amlogic,axg-frddr"; 412 reg = <0x0 0x880 0x0 0x2c>; 413 #sound-dai-cells = <0>; 414 sound-name-prefix = "FRDDR_D"; 415 interrupts = <GIC_SPI 50 IRQ_TYPE_EDGE_RISING>; 416 clocks = <&clkc_audio AUD_CLKID_FRDDR_D>; 417 resets = <&arb AXG_ARB_FRDDR_D>, 418 <&clkc_audio AUD_RESET_FRDDR_D>; 419 reset-names = "arb", "rst"; 420 amlogic,fifo-depth = <256>; 421 status = "disabled"; 422 }; 423 }; 424 425 pdm: audio-controller@61000 { 426 compatible = "amlogic,sm1-pdm", 427 "amlogic,axg-pdm"; 428 reg = <0x0 0x61000 0x0 0x34>; 429 #sound-dai-cells = <0>; 430 sound-name-prefix = "PDM"; 431 clocks = <&clkc_audio AUD_CLKID_PDM>, 432 <&clkc_audio AUD_CLKID_PDM_DCLK>, 433 <&clkc_audio AUD_CLKID_PDM_SYSCLK>; 434 clock-names = "pclk", "dclk", "sysclk"; 435 resets = <&clkc_audio AUD_RESET_PDM>; 436 status = "disabled"; 437 }; 438}; 439 440&cecb_AO { 441 compatible = "amlogic,meson-sm1-ao-cec"; 442}; 443 444&clk_msr { 445 compatible = "amlogic,meson-sm1-clk-measure"; 446}; 447 448 449&clkc { 450 compatible = "amlogic,sm1-clkc"; 451}; 452 453&cpu_thermal { 454 cooling-maps { 455 map0 { 456 trip = <&cpu_passive>; 457 cooling-device = <&cpu0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, 458 <&cpu1 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, 459 <&cpu2 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, 460 <&cpu3 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; 461 }; 462 463 map1 { 464 trip = <&cpu_hot>; 465 cooling-device = <&cpu0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, 466 <&cpu1 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, 467 <&cpu2 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, 468 <&cpu3 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; 469 }; 470 }; 471}; 472 473ðmac { 474 power-domains = <&pwrc PWRC_SM1_ETH_ID>; 475}; 476 477&gpio_intc { 478 compatible = "amlogic,meson-sm1-gpio-intc", 479 "amlogic,meson-gpio-intc"; 480}; 481 482&pcie { 483 power-domains = <&pwrc PWRC_SM1_PCIE_ID>; 484}; 485 486&pwrc { 487 compatible = "amlogic,meson-sm1-pwrc"; 488}; 489 490&simplefb_cvbs { 491 power-domains = <&pwrc PWRC_SM1_VPU_ID>; 492}; 493 494&simplefb_hdmi { 495 power-domains = <&pwrc PWRC_SM1_VPU_ID>; 496}; 497 498&vdec { 499 compatible = "amlogic,sm1-vdec"; 500}; 501 502&vpu { 503 power-domains = <&pwrc PWRC_SM1_VPU_ID>; 504}; 505 506&usb { 507 power-domains = <&pwrc PWRC_SM1_USB_ID>; 508}; 509