NXP Audio Mixer (AUDMIX).

Schema identifier ($id): "http://devicetree.org/schemas/sound/fsl,audmix.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Shengjiu Wang <shengjiu.wang@nxp.com>", "Frank Li <Frank.Li@nxp.com>"

The Audio Mixer is a on-chip functional module that allows mixing of two audio streams into a single audio stream. Audio Mixer has two input serial audio interfaces. These are driven by two Synchronous Audio interface modules (SAI). Each input serial interface carries 8 audio channels in its frame in TDM manner. Mixer mixes audio samples of corresponding channels from two interfaces into a single sample. Before mixing, audio samples of two inputs can be attenuated based on configuration. The output of the Audio Mixer is also a serial audio interface. Like input interfaces it has the same TDM frame format. This output is used to drive the serial DAC TDM interface of audio codec and also sent to the external pins along with the receive path of normal audio SAI module for readback by the CPU.

The output of Audio Mixer can be selected from any of the three streams
  - serial audio input 1
  - serial audio input 2
  - mixed audio

Mixing operation is independent of audio sample rate but the two audio input streams must have same audio sample rate with same number of channels in TDM frame to be eligible for mixing.

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "fsl,imx8qm-audmix", "fsl,imx952-audmix"

reg — required here #

Maximum number of items (maxItems): 1

clocks — required here #

Maximum number of items (maxItems): 1

clock-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "ipg"

power-domains — not listed as required here #

Maximum number of items (maxItems): 1

dais — not listed as required here #

contain a list of phandles to AUDMIX connected DAIs.

Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle-array

Minimum number of items (minItems): 2

Array item rules (items) #

Item 1

the AUDMIX output

Maximum number of items (maxItems): 1

Item 2

serial audio input 1

Maximum number of items (maxItems): 1

Item 3

serial audio input 2

Maximum number of items (maxItems): 1

ports — not listed as required here #

Shared schema rule ($ref): /schemas/graph.yaml#/properties/ports

Properties matching a name pattern (patternProperties) #

^port@[0-1] — name matches this regular expression

Shared schema rule ($ref): audio-graph-port.yaml#

Properties not evaluated by applicable rules (unevaluatedProperties)

false

Not allowed by this rule.

Input port from SAI TX

Properties and child nodes (properties) #

port@2 — not listed as required here

Shared schema rule ($ref): audio-graph-port.yaml#

Properties not evaluated by applicable rules (unevaluatedProperties)

false

Not allowed by this rule.

Output port to SAI RX

Required in this object (required): "compatible", "reg", "clocks", "clock-names"

All of these rules must match (allOf) #

Rule 1 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Allowed values (enum): "fsl,imx8qm-audmix"

When the condition matches (then) #

Required in this object (required): "power-domains"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

audmix@59840000 {
  compatible = "fsl,imx8qm-audmix";
  reg = <0x59840000 0x10000>;
  clocks = <&amix_lpcg 0>;
  clock-names = "ipg";
  power-domains = <&pd_audmix>;
  dais = <&sai4>, <&sai5>;

  ports {
    #address-cells = <1>;
    #size-cells = <0>;

    port@0 {
      reg = <0>;
      playback-only;

      amix_endpoint0: endpoint {
        dai-tdm-slot-num = <8>;
        dai-tdm-slot-width = <32>;
        dai-tdm-slot-width-map = <32 8 32>;
        dai-format = "dsp_a";
        remote-endpoint = <&be00_ep>;
      };
    };

    port@1 {
      reg = <1>;
      playback-only;

      amix_endpoint1: endpoint {
        dai-tdm-slot-num = <8>;
        dai-tdm-slot-width = <32>;
        dai-tdm-slot-width-map = <32 8 32>;
        dai-format = "dsp_a";
        remote-endpoint = <&be01_ep>;
      };
    };

    port@2 {
      reg = <2>;
      capture-only;

      amix_endpoint2: endpoint {
        dai-tdm-slot-num = <8>;
        dai-tdm-slot-width = <32>;
        dai-tdm-slot-width-map = <32 8 32>;
        dai-format = "dsp_a";
        bitclock-master;
        frame-master;
        remote-endpoint = <&be02_ep>;
      };
    };
  };
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Edit this page