84 lines · yaml
1# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)2%YAML 1.23---4$id: http://devicetree.org/schemas/sound/fsl,audmix.yaml#5$schema: http://devicetree.org/meta-schemas/core.yaml#6 7title: NXP Audio Mixer (AUDMIX).8 9maintainers:10 - Shengjiu Wang <shengjiu.wang@nxp.com>11 - Frank Li <Frank.Li@nxp.com>12 13description: |14 The Audio Mixer is a on-chip functional module that allows mixing of two15 audio streams into a single audio stream. Audio Mixer has two input serial16 audio interfaces. These are driven by two Synchronous Audio interface17 modules (SAI). Each input serial interface carries 8 audio channels in its18 frame in TDM manner. Mixer mixes audio samples of corresponding channels19 from two interfaces into a single sample. Before mixing, audio samples of20 two inputs can be attenuated based on configuration. The output of the21 Audio Mixer is also a serial audio interface. Like input interfaces it has22 the same TDM frame format. This output is used to drive the serial DAC TDM23 interface of audio codec and also sent to the external pins along with the24 receive path of normal audio SAI module for readback by the CPU.25 26 The output of Audio Mixer can be selected from any of the three streams27 - serial audio input 128 - serial audio input 229 - mixed audio30 31 Mixing operation is independent of audio sample rate but the two audio32 input streams must have same audio sample rate with same number of channels33 in TDM frame to be eligible for mixing.34 35properties:36 compatible:37 const: fsl,imx8qm-audmix38 39 reg:40 maxItems: 141 42 clocks:43 maxItems: 144 45 clock-names:46 items:47 - const: ipg48 49 power-domains:50 maxItems: 151 52 dais:53 description: contain a list of phandles to AUDMIX connected DAIs.54 $ref: /schemas/types.yaml#/definitions/phandle-array55 minItems: 256 items:57 - description: the AUDMIX output58 maxItems: 159 - description: serial audio input 160 maxItems: 161 - description: serial audio input 262 maxItems: 163 64required:65 - compatible66 - reg67 - clocks68 - clock-names69 - power-domains70 - dais71 72unevaluatedProperties: false73 74examples:75 - |76 audmix@59840000 {77 compatible = "fsl,imx8qm-audmix";78 reg = <0x59840000 0x10000>;79 clocks = <&amix_lpcg 0>;80 clock-names = "ipg";81 power-domains = <&pd_audmix>;82 dais = <&sai4>, <&sai5>;83 };84