NXP Medium Quality Sound (MQS)

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

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

Maintainers (maintainers): "Shengjiu Wang <shengjiu.wang@nxp.com>", "Chancel Liu <chancel.liu@nxp.com>"

Medium quality sound (MQS) is used to generate medium quality audio via a standard GPIO in the pinmux, allowing the user to connect stereo speakers or headphones to a power amplifier without an additional DAC chip.

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "fsl,imx6sx-mqs", "fsl,imx8qm-mqs", "fsl,imx8qxp-mqs", "fsl,imx93-mqs", "fsl,imx943-aonmix-mqs", "fsl,imx943-wakeupmix-mqs", "fsl,imx95-aonmix-mqs", "fsl,imx95-netcmix-mqs"

#sound-dai-cells — not listed as required here #

Exact value (const): 0

clocks — required here #

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 2

clock-names — required here #

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 2

gpr — not listed as required here #

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

The phandle to the General Purpose Register (GPR) node

reg — not listed as required here #

Maximum number of items (maxItems): 1

power-domains — not listed as required here #

Maximum number of items (maxItems): 1

resets — not listed as required here #

Maximum number of items (maxItems): 1

port — 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.

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

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): dai-common.yaml#

Rule 2 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Allowed values (enum): "fsl,imx6sx-mqs", "fsl,imx93-mqs"

When the condition matches (then) #

Required in this object (required): "gpr"

Rule 3 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Allowed values (enum): "fsl,imx8qm-mqs", "fsl,imx8qxp-mqs"

When the condition matches (then) #

Properties and child nodes (properties)

clocks — not listed as required here

Array item rules (items)

Item 1

Master clock

Item 2

Clock for register access

clock-names — not listed as required here

Array item rules (items)

Item 1

Exact value (const): "mclk"

Item 2

Exact value (const): "core"

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

When the condition does not match (else) #

Properties and child nodes (properties)

clocks — not listed as required here

Array item rules (items)

Item 1

Master clock

clock-names — not listed as required here

Array item rules (items)

Item 1

Exact value (const): "mclk"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/clock/imx6sx-clock.h>
mqs0: mqs {
    compatible = "fsl,imx6sx-mqs";
    gpr = <&gpr>;
    clocks = <&clks IMX6SX_CLK_SAI1>;
    clock-names = "mclk";
};
#include <dt-bindings/firmware/imx/rsrc.h>
mqs1: mqs@59850000 {
    compatible = "fsl,imx8qm-mqs";
    reg = <0x59850000 0x10000>;
    clocks = <&mqs0_lpcg 0>, <&mqs0_lpcg 1>;
    clock-names = "mclk", "core";
    power-domains = <&pd IMX_SC_R_MQS_0>;
};

Source notes #

Annotations retained from the schema source

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

Edit this page