Freescale Asynchronous Sample Rate Converter (ASRC) Controller

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

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

The Asynchronous Sample Rate Converter (ASRC) converts the sampling rate of a signal associated with an input clock into a signal associated with a different output clock. The driver currently works as a Front End of DPCM with other Back Ends Audio controller such as ESAI, SSI and SAI. It has three pairs to support three substreams within totally 10 channels.

Maintainers (maintainers): "Shawn Guo <shawnguo@kernel.org>", "Sascha Hauer <s.hauer@pengutronix.de>"

Properties and child nodes (properties) #

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Allowed values (enum): "fsl,imx35-asrc", "fsl,imx53-asrc", "fsl,imx8qm-asrc", "fsl,imx8qxp-asrc", "fsl,imx952-asrc"

Rule 2

Array item rules (items)

Item 1

Allowed values (enum): "fsl,imx6sx-asrc", "fsl,imx6ul-asrc"

Item 2

Exact value (const): "fsl,imx53-asrc"

reg — required here #

Maximum number of items (maxItems): 1

interrupts — required here #

Maximum number of items (maxItems): 1

dmas — required here #

Maximum number of items (maxItems): 6

dma-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "rxa"

Item 2

Exact value (const): "rxb"

Item 3

Exact value (const): "rxc"

Item 4

Exact value (const): "txa"

Item 5

Exact value (const): "txb"

Item 6

Exact value (const): "txc"

clocks — required here #

Maximum number of items (maxItems): 19

clock-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "mem"

Item 2

Exact value (const): "ipg"

Item 3

Exact value (const): "asrck_0"

Item 4

Exact value (const): "asrck_1"

Item 5

Exact value (const): "asrck_2"

Item 6

Exact value (const): "asrck_3"

Item 7

Exact value (const): "asrck_4"

Item 8

Exact value (const): "asrck_5"

Item 9

Exact value (const): "asrck_6"

Item 10

Exact value (const): "asrck_7"

Item 11

Exact value (const): "asrck_8"

Item 12

Exact value (const): "asrck_9"

Item 13

Exact value (const): "asrck_a"

Item 14

Exact value (const): "asrck_b"

Item 15

Exact value (const): "asrck_c"

Item 16

Exact value (const): "asrck_d"

Item 17

Exact value (const): "asrck_e"

Item 18

Exact value (const): "asrck_f"

Item 19

Exact value (const): "spba"

power-domains — 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.

fsl,asrc-rate — required here #

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

The mutual sample rate used by DPCM Back Ends

fsl,asrc-width — required here #

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

The mutual sample width used by DPCM Back Ends

Allowed values (enum): 16, 24

fsl,asrc-clk-map — not listed as required here #

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

Defines clock map used in driver <0> - select the map for asrc0 in imx8qm/imx8qxp <1> - select the map for asrc1 in imx8qm/imx8qxp

Allowed values (enum): 0, 1

big-endian — not listed as required here #

Value type (type): "boolean"

If this property is absent, the little endian mode will be in use as default. Otherwise, the big endian mode will be in use for all the device registers.

fsl,asrc-format — not listed as required here #

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

Defines a mutual sample format used by DPCM Back Ends, which can replace the fsl,asrc-width. The value is 2 (S16_LE), or 6 (S24_LE).

Allowed values (enum): 2, 6

Required in this object (required): "compatible", "reg", "interrupts", "dmas", "dma-names", "clocks", "clock-names", "fsl,asrc-rate", "fsl,asrc-width"

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,imx8qm-asrc", "fsl,imx8qxp-asrc"

When the condition matches (then) #

Required in this object (required): "fsl,asrc-clk-map"

When the condition does not match (else) #

Properties and child nodes (properties)

fsl,asrc-clk-map — not listed as required here

false — Not permitted by this property rule.

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-asrc", "fsl,imx8qxp-asrc"

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) #

#include <dt-bindings/interrupt-controller/irq.h>
#include <dt-bindings/clock/imx6qdl-clock.h>
asrc: asrc@2034000 {
    compatible = "fsl,imx53-asrc";
    reg = <0x02034000 0x4000>;
    interrupts = <0 50 IRQ_TYPE_LEVEL_HIGH>;
    clocks = <&clks IMX6QDL_CLK_ASRC_IPG>,
             <&clks IMX6QDL_CLK_ASRC_MEM>, <&clks 0>,
             <&clks 0>, <&clks 0>, <&clks 0>, <&clks 0>,
             <&clks 0>, <&clks 0>, <&clks 0>, <&clks 0>,
             <&clks 0>, <&clks 0>, <&clks 0>, <&clks 0>,
             <&clks IMX6QDL_CLK_ASRC>, <&clks 0>, <&clks 0>,
             <&clks IMX6QDL_CLK_SPBA>;
    clock-names = "mem", "ipg", "asrck_0",
            "asrck_1", "asrck_2", "asrck_3", "asrck_4",
            "asrck_5", "asrck_6", "asrck_7", "asrck_8",
            "asrck_9", "asrck_a", "asrck_b", "asrck_c",
            "asrck_d", "asrck_e", "asrck_f", "spba";
    dmas = <&sdma 17 23 1>, <&sdma 18 23 1>, <&sdma 19 23 1>,
           <&sdma 20 23 1>, <&sdma 21 23 1>, <&sdma 22 23 1>;
    dma-names = "rxa", "rxb", "rxc",
                "txa", "txb", "txc";
    fsl,asrc-rate = <48000>;
    fsl,asrc-width = <16>;

    port {
        playback-only;

        asrc_endpoint: endpoint {
            remote-endpoint = <&fe00_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