1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
4 $id: http://devicetree.org/schemas/sound/fsl,audmix.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: NXP Audio Mixer (AUDMIX).
10 - Shengjiu Wang <shengjiu.wang@nxp.com>
11 - Frank Li <Frank.Li@nxp.com>
14 The Audio Mixer is a on-chip functional module that allows mixing of two
15 audio streams into a single audio stream. Audio Mixer has two input serial
16 audio interfaces. These are driven by two Synchronous Audio interface
17 modules (SAI). Each input serial interface carries 8 audio channels in its
18 frame in TDM manner. Mixer mixes audio samples of corresponding channels
19 from two interfaces into a single sample. Before mixing, audio samples of
20 two inputs can be attenuated based on configuration. The output of the
21 Audio Mixer is also a serial audio interface. Like input interfaces it has
22 the same TDM frame format. This output is used to drive the serial DAC TDM
23 interface of audio codec and also sent to the external pins along with the
24 receive path of normal audio SAI module for readback by the CPU.
26 The output of Audio Mixer can be selected from any of the three streams
27 - serial audio input 1
28 - serial audio input 2
31 Mixing operation is independent of audio sample rate but the two audio
32 input streams must have same audio sample rate with same number of channels
33 in TDM frame to be eligible for mixing.
37 const: fsl,imx8qm-audmix
53 description: contain a list of phandles to AUDMIX connected DAIs.
54 $ref: /schemas/types.yaml#/definitions/phandle-array
57 - description: the AUDMIX output
59 - description: serial audio input 1
61 - description: serial audio input 2
72 unevaluatedProperties: false
77 compatible = "fsl,imx8qm-audmix";
78 reg = <0x59840000 0x10000>;
79 clocks = <&amix_lpcg 0>;
81 power-domains = <&pd_audmix>;
82 dais = <&sai4>, <&sai5>;