1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 2 /* 3 * Copyright (c) 2019 BayLibre, SAS 4 * Author: Jerome Brunet <jbrunet@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-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> 12 13 / { 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"; 22 status = "disabled"; 23 }; 24 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"; 33 status = "disabled"; 34 }; 35 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"; 44 status = "disabled"; 45 }; 46 }; 47 48 &apb { 49 pdm: audio-controller@40000 { 50 compatible = "amlogic,g12a-pdm", 51 "amlogic,axg-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>; 60 status = "disabled"; 61 }; 62 63 audio: bus@42000 { 64 compatible = "simple-bus"; 65 reg = <0x0 0x42000 0x0 0x2000>; 66 #address-cells = <2>; 67 #size-cells = <2>; 68 ranges = <0x0 0x0 0x0 0x42000 0x0 0x2000>; 69 70 clkc_audio: clock-controller@0 { 71 status = "disabled"; 72 compatible = "amlogic,g12a-audio-clkc"; 73 reg = <0x0 0x0 0x0 0xb4>; 74 #clock-cells = <1>; 75 #reset-cells = <1>; 76 77 clocks = <&clkc CLKID_AUDIO>, 78 <&clkc CLKID_MPLL0>, 79 <&clkc CLKID_MPLL1>, 80 <&clkc CLKID_MPLL2>, 81 <&clkc CLKID_MPLL3>, 82 <&clkc CLKID_HIFI_PLL>, 83 <&clkc CLKID_FCLK_DIV3>, 84 <&clkc CLKID_FCLK_DIV4>, 85 <&clkc CLKID_GP0_PLL>; 86 clock-names = "pclk", 87 "mst_in0", 88 "mst_in1", 89 "mst_in2", 90 "mst_in3", 91 "mst_in4", 92 "mst_in5", 93 "mst_in6", 94 "mst_in7"; 95 96 resets = <&reset RESET_AUDIO>; 97 }; 98 99 toddr_a: audio-controller@100 { 100 compatible = "amlogic,g12a-toddr", 101 "amlogic,axg-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>; 111 status = "disabled"; 112 }; 113 114 toddr_b: audio-controller@140 { 115 compatible = "amlogic,g12a-toddr", 116 "amlogic,axg-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>; 126 status = "disabled"; 127 }; 128 129 toddr_c: audio-controller@180 { 130 compatible = "amlogic,g12a-toddr", 131 "amlogic,axg-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>; 141 status = "disabled"; 142 }; 143 144 frddr_a: audio-controller@1c0 { 145 compatible = "amlogic,g12a-frddr", 146 "amlogic,axg-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>; 156 status = "disabled"; 157 }; 158 159 frddr_b: audio-controller@200 { 160 compatible = "amlogic,g12a-frddr", 161 "amlogic,axg-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>; 171 status = "disabled"; 172 }; 173 174 frddr_c: audio-controller@240 { 175 compatible = "amlogic,g12a-frddr", 176 "amlogic,axg-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>; 186 status = "disabled"; 187 }; 188 189 arb: reset-controller@280 { 190 status = "disabled"; 191 compatible = "amlogic,meson-axg-audio-arb"; 192 reg = <0x0 0x280 0x0 0x4>; 193 #reset-cells = <1>; 194 clocks = <&clkc_audio AUD_CLKID_DDR_ARB>; 195 }; 196 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"; 209 status = "disabled"; 210 }; 211 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"; 224 status = "disabled"; 225 }; 226 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"; 239 status = "disabled"; 240 }; 241 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"; 254 status = "disabled"; 255 }; 256 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>; 268 status = "disabled"; 269 }; 270 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>; 281 status = "disabled"; 282 }; 283 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"; 296 status = "disabled"; 297 }; 298 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"; 311 status = "disabled"; 312 }; 313 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"; 326 status = "disabled"; 327 }; 328 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>; 339 status = "disabled"; 340 }; 341 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>; 348 status = "disabled"; 349 }; 350 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>; 357 status = "disabled"; 358 }; 359 }; 360 }; 361 362 ðmac { 363 power-domains = <&pwrc PWRC_G12A_ETH_ID>; 364 }; 365 366 &hdmi_tx { 367 power-domains = <&pwrc PWRC_G12A_VPU_ID>; 368 }; 369 370 &vpu { 371 power-domains = <&pwrc PWRC_G12A_VPU_ID>; 372 }; 373 374 &sd_emmc_a { 375 amlogic,dram-access-quirk; 376 }; 377 378 &simplefb_cvbs { 379 power-domains = <&pwrc PWRC_G12A_VPU_ID>; 380 }; 381 382 &simplefb_hdmi { 383 power-domains = <&pwrc PWRC_G12A_VPU_ID>; 384 }; 385
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.