Freescale Digital Audio Mux device

Schema identifier ($id): "http://devicetree.org/schemas/sound/imx-audmux.yaml#"

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

Maintainers (maintainers): "Oleksij Rempel <o.rempel@pengutronix.de>"

Properties and child nodes (properties) #

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Array item rules (items)

Item 1

Allowed values (enum): "fsl,imx27-audmux"

Item 2

Exact value (const): "fsl,imx21-audmux"

Rule 2

Array item rules (items)

Item 1

Allowed values (enum): "fsl,imx25-audmux", "fsl,imx35-audmux", "fsl,imx50-audmux", "fsl,imx51-audmux", "fsl,imx53-audmux", "fsl,imx6q-audmux", "fsl,imx6sl-audmux", "fsl,imx6sll-audmux", "fsl,imx6sx-audmux"

Item 2

Exact value (const): "fsl,imx31-audmux"

reg — required here #

Maximum number of items (maxItems): 1

clocks — not listed as required here #

Maximum number of items (maxItems): 1

clock-names — not listed as required here #

Array item rules (items) #

Item 1

Exact value (const): "audmux"

Properties matching a name pattern (patternProperties) #

^mux-[0-9a-z]*$ — name matches this regular expression #

Value type (type): "object"

Properties and child nodes (properties) #

fsl,audmux-port — required here

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

Integer of the audmux port that is configured by this child node

fsl,port-config — required here

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

List of configuration options for the specific port. For imx31-audmux and above, it is a list of tuples ptcr pdcr. For imx21-audmux it is a list of pcr values.

Required in this object (required): "fsl,audmux-port", "fsl,port-config"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Required in this object (required): "compatible", "reg"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

audmux@21d8000 {
    compatible = "fsl,imx6q-audmux", "fsl,imx31-audmux";
    reg = <0x021d8000 0x4000>;
};
audmux@10016000 {
    compatible = "fsl,imx27-audmux", "fsl,imx21-audmux";
    reg = <0x10016000 0x1000>;
    clocks = <&clks 1>;
    clock-names = "audmux";

    mux-ssi0 {
        fsl,audmux-port = <0>;
        fsl,port-config = <0xcb205000>;
    };

    mux-pins4 {
        fsl,audmux-port = <2>;
        fsl,port-config = <0x00001000>;
    };
};
#include <dt-bindings/sound/fsl-imx-audmux.h>
audmux@21d8000 {
    compatible = "fsl,imx6q-audmux", "fsl,imx31-audmux";
    reg = <0x021d8000 0x4000>;
    pinctrl-names = "default";
    pinctrl-0 = <&pinctrl_audmux>;

    mux-ssi1 {
        fsl,audmux-port = <0>;
        fsl,port-config = <
            IMX_AUDMUX_V2_PTCR_SYN		0
            IMX_AUDMUX_V2_PTCR_TFSEL(2)	0
            IMX_AUDMUX_V2_PTCR_TCSEL(2)	0
            IMX_AUDMUX_V2_PTCR_TFSDIR	0
            IMX_AUDMUX_V2_PTCR_TCLKDIR      IMX_AUDMUX_V2_PDCR_RXDSEL(2)
          >;
    };

    mux-pins3 {
        fsl,audmux-port = <2>;
        fsl,port-config = <
            IMX_AUDMUX_V2_PTCR_SYN          IMX_AUDMUX_V2_PDCR_RXDSEL(0)
            0                               IMX_AUDMUX_V2_PDCR_TXRXEN
          >;
    };
};

Source notes #

Annotations retained from the schema source

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

Edit this page