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- 11 #include <dt-bindings/reset/amlogic,meson-g12a 12 13 / { 14 tdmif_a: audio-controller-0 { 15 compatible = "amlogic,axg-tdm- 16 #sound-dai-cells = <0>; 17 sound-name-prefix = "TDM_A"; 18 clocks = <&clkc_audio AUD_CLKI 19 <&clkc_audio AUD_CLKI 20 <&clkc_audio AUD_CLKI 21 clock-names = "sclk", "lrclk", 22 status = "disabled"; 23 }; 24 25 tdmif_b: audio-controller-1 { 26 compatible = "amlogic,axg-tdm- 27 #sound-dai-cells = <0>; 28 sound-name-prefix = "TDM_B"; 29 clocks = <&clkc_audio AUD_CLKI 30 <&clkc_audio AUD_CLKI 31 <&clkc_audio AUD_CLKI 32 clock-names = "sclk", "lrclk", 33 status = "disabled"; 34 }; 35 36 tdmif_c: audio-controller-2 { 37 compatible = "amlogic,axg-tdm- 38 #sound-dai-cells = <0>; 39 sound-name-prefix = "TDM_C"; 40 clocks = <&clkc_audio AUD_CLKI 41 <&clkc_audio AUD_CLKI 42 <&clkc_audio AUD_CLKI 43 clock-names = "sclk", "lrclk", 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_CLKI 56 <&clkc_audio AUD_CLKI 57 <&clkc_audio AUD_CLKI 58 clock-names = "pclk", "dclk", 59 resets = <&clkc_audio AUD_RESE 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 69 70 clkc_audio: clock-controller@0 71 status = "disabled"; 72 compatible = "amlogic, 73 reg = <0x0 0x0 0x0 0xb 74 #clock-cells = <1>; 75 #reset-cells = <1>; 76 77 clocks = <&clkc CLKID_ 78 <&clkc CLKID_ 79 <&clkc CLKID_ 80 <&clkc CLKID_ 81 <&clkc CLKID_ 82 <&clkc CLKID_ 83 <&clkc CLKID_ 84 <&clkc CLKID_ 85 <&clkc CLKID_ 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 97 }; 98 99 toddr_a: audio-controller@100 100 compatible = "amlogic, 101 "amlogic, 102 reg = <0x0 0x100 0x0 0 103 #sound-dai-cells = <0> 104 sound-name-prefix = "T 105 interrupts = <GIC_SPI 106 clocks = <&clkc_audio 107 resets = <&arb AXG_ARB 108 <&clkc_audio 109 reset-names = "arb", " 110 amlogic,fifo-depth = < 111 status = "disabled"; 112 }; 113 114 toddr_b: audio-controller@140 115 compatible = "amlogic, 116 "amlogic, 117 reg = <0x0 0x140 0x0 0 118 #sound-dai-cells = <0> 119 sound-name-prefix = "T 120 interrupts = <GIC_SPI 121 clocks = <&clkc_audio 122 resets = <&arb AXG_ARB 123 <&clkc_audio 124 reset-names = "arb", " 125 amlogic,fifo-depth = < 126 status = "disabled"; 127 }; 128 129 toddr_c: audio-controller@180 130 compatible = "amlogic, 131 "amlogic, 132 reg = <0x0 0x180 0x0 0 133 #sound-dai-cells = <0> 134 sound-name-prefix = "T 135 interrupts = <GIC_SPI 136 clocks = <&clkc_audio 137 resets = <&arb AXG_ARB 138 <&clkc_audio 139 reset-names = "arb", " 140 amlogic,fifo-depth = < 141 status = "disabled"; 142 }; 143 144 frddr_a: audio-controller@1c0 145 compatible = "amlogic, 146 "amlogic, 147 reg = <0x0 0x1c0 0x0 0 148 #sound-dai-cells = <0> 149 sound-name-prefix = "F 150 interrupts = <GIC_SPI 151 clocks = <&clkc_audio 152 resets = <&arb AXG_ARB 153 <&clkc_audio 154 reset-names = "arb", " 155 amlogic,fifo-depth = < 156 status = "disabled"; 157 }; 158 159 frddr_b: audio-controller@200 160 compatible = "amlogic, 161 "amlogic, 162 reg = <0x0 0x200 0x0 0 163 #sound-dai-cells = <0> 164 sound-name-prefix = "F 165 interrupts = <GIC_SPI 166 clocks = <&clkc_audio 167 resets = <&arb AXG_ARB 168 <&clkc_audio 169 reset-names = "arb", " 170 amlogic,fifo-depth = < 171 status = "disabled"; 172 }; 173 174 frddr_c: audio-controller@240 175 compatible = "amlogic, 176 "amlogic, 177 reg = <0x0 0x240 0x0 0 178 #sound-dai-cells = <0> 179 sound-name-prefix = "F 180 interrupts = <GIC_SPI 181 clocks = <&clkc_audio 182 resets = <&arb AXG_ARB 183 <&clkc_audio 184 reset-names = "arb", " 185 amlogic,fifo-depth = < 186 status = "disabled"; 187 }; 188 189 arb: reset-controller@280 { 190 status = "disabled"; 191 compatible = "amlogic, 192 reg = <0x0 0x280 0x0 0 193 #reset-cells = <1>; 194 clocks = <&clkc_audio 195 }; 196 197 tdmin_a: audio-controller@300 198 compatible = "amlogic, 199 reg = <0x0 0x300 0x0 0 200 sound-name-prefix = "T 201 resets = <&clkc_audio 202 clocks = <&clkc_audio 203 <&clkc_audio 204 <&clkc_audio 205 <&clkc_audio 206 <&clkc_audio 207 clock-names = "pclk", 208 "lrclk", 209 status = "disabled"; 210 }; 211 212 tdmin_b: audio-controller@340 213 compatible = "amlogic, 214 reg = <0x0 0x340 0x0 0 215 sound-name-prefix = "T 216 resets = <&clkc_audio 217 clocks = <&clkc_audio 218 <&clkc_audio 219 <&clkc_audio 220 <&clkc_audio 221 <&clkc_audio 222 clock-names = "pclk", 223 "lrclk", 224 status = "disabled"; 225 }; 226 227 tdmin_c: audio-controller@380 228 compatible = "amlogic, 229 reg = <0x0 0x380 0x0 0 230 sound-name-prefix = "T 231 resets = <&clkc_audio 232 clocks = <&clkc_audio 233 <&clkc_audio 234 <&clkc_audio 235 <&clkc_audio 236 <&clkc_audio 237 clock-names = "pclk", 238 "lrclk", 239 status = "disabled"; 240 }; 241 242 tdmin_lb: audio-controller@3c0 243 compatible = "amlogic, 244 reg = <0x0 0x3c0 0x0 0 245 sound-name-prefix = "T 246 resets = <&clkc_audio 247 clocks = <&clkc_audio 248 <&clkc_audio 249 <&clkc_audio 250 <&clkc_audio 251 <&clkc_audio 252 clock-names = "pclk", 253 "lrclk", 254 status = "disabled"; 255 }; 256 257 spdifin: audio-controller@400 258 compatible = "amlogic, 259 "amlogic, 260 reg = <0x0 0x400 0x0 0 261 #sound-dai-cells = <0> 262 sound-name-prefix = "S 263 interrupts = <GIC_SPI 264 clocks = <&clkc_audio 265 <&clkc_audio 266 clock-names = "pclk", 267 resets = <&clkc_audio 268 status = "disabled"; 269 }; 270 271 spdifout_a: audio-controller@4 272 compatible = "amlogic, 273 "amlogic, 274 reg = <0x0 0x480 0x0 0 275 #sound-dai-cells = <0> 276 sound-name-prefix = "S 277 clocks = <&clkc_audio 278 <&clkc_audio 279 clock-names = "pclk", 280 resets = <&clkc_audio 281 status = "disabled"; 282 }; 283 284 tdmout_a: audio-controller@500 285 compatible = "amlogic, 286 reg = <0x0 0x500 0x0 0 287 sound-name-prefix = "T 288 resets = <&clkc_audio 289 clocks = <&clkc_audio 290 <&clkc_audio 291 <&clkc_audio 292 <&clkc_audio 293 <&clkc_audio 294 clock-names = "pclk", 295 "lrclk", 296 status = "disabled"; 297 }; 298 299 tdmout_b: audio-controller@540 300 compatible = "amlogic, 301 reg = <0x0 0x540 0x0 0 302 sound-name-prefix = "T 303 resets = <&clkc_audio 304 clocks = <&clkc_audio 305 <&clkc_audio 306 <&clkc_audio 307 <&clkc_audio 308 <&clkc_audio 309 clock-names = "pclk", 310 "lrclk", 311 status = "disabled"; 312 }; 313 314 tdmout_c: audio-controller@580 315 compatible = "amlogic, 316 reg = <0x0 0x580 0x0 0 317 sound-name-prefix = "T 318 resets = <&clkc_audio 319 clocks = <&clkc_audio 320 <&clkc_audio 321 <&clkc_audio 322 <&clkc_audio 323 <&clkc_audio 324 clock-names = "pclk", 325 "lrclk", 326 status = "disabled"; 327 }; 328 329 spdifout_b: audio-controller@6 330 compatible = "amlogic, 331 "amlogic, 332 reg = <0x0 0x680 0x0 0 333 #sound-dai-cells = <0> 334 sound-name-prefix = "S 335 clocks = <&clkc_audio 336 <&clkc_audio 337 clock-names = "pclk", 338 resets = <&clkc_audio 339 status = "disabled"; 340 }; 341 342 toacodec: audio-controller@740 343 compatible = "amlogic, 344 reg = <0x0 0x740 0x0 0 345 #sound-dai-cells = <1> 346 sound-name-prefix = "T 347 resets = <&clkc_audio 348 status = "disabled"; 349 }; 350 351 tohdmitx: audio-controller@744 352 compatible = "amlogic, 353 reg = <0x0 0x744 0x0 0 354 #sound-dai-cells = <1> 355 sound-name-prefix = "T 356 resets = <&clkc_audio 357 status = "disabled"; 358 }; 359 }; 360 }; 361 362 ðmac { 363 power-domains = <&pwrc PWRC_G12A_ETH_I 364 }; 365 366 &hdmi_tx { 367 power-domains = <&pwrc PWRC_G12A_VPU_I 368 }; 369 370 &vpu { 371 power-domains = <&pwrc PWRC_G12A_VPU_I 372 }; 373 374 &sd_emmc_a { 375 amlogic,dram-access-quirk; 376 }; 377 378 &simplefb_cvbs { 379 power-domains = <&pwrc PWRC_G12A_VPU_I 380 }; 381 382 &simplefb_hdmi { 383 power-domains = <&pwrc PWRC_G12A_VPU_I 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.