1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
4 $id: http://devicetree.org/schemas/sound/fsl,imx-asrc.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: Freescale Asynchronous Sample Rate Converter (ASRC) Controller
10 The Asynchronous Sample Rate Converter (ASRC) converts the sampling rate of
11 a signal associated with an input clock into a signal associated with a
12 different output clock. The driver currently works as a Front End of DPCM
13 with other Back Ends Audio controller such as ESAI, SSI and SAI. It has
14 three pairs to support three substreams within totally 10 channels.
32 - const: fsl,imx53-asrc
78 $ref: /schemas/types.yaml#/definitions/uint32
79 description: The mutual sample rate used by DPCM Back Ends
82 $ref: /schemas/types.yaml#/definitions/uint32
83 description: The mutual sample width used by DPCM Back Ends
87 $ref: /schemas/types.yaml#/definitions/uint32
89 Defines clock map used in driver
90 <0> - select the map for asrc0 in imx8qm/imx8qxp
91 <1> - select the map for asrc1 in imx8qm/imx8qxp
97 If this property is absent, the little endian mode will be in use as
98 default. Otherwise, the big endian mode will be in use for all the
102 $ref: /schemas/types.yaml#/definitions/uint32
104 Defines a mutual sample format used by DPCM Back Ends, which can
105 replace the fsl,asrc-width. The value is 2 (S16_LE), or 6 (S24_LE).
132 fsl,asrc-clk-map: false
134 additionalProperties: false
138 #include <dt-bindings/interrupt-controller/irq.h>
139 #include <dt-bindings/clock/imx6qdl-clock.h>
141 compatible = "fsl,imx53-asrc";
142 reg = <0x02034000 0x4000>;
143 interrupts = <0 50 IRQ_TYPE_LEVEL_HIGH>;
144 clocks = <&clks IMX6QDL_CLK_ASRC_IPG>,
145 <&clks IMX6QDL_CLK_ASRC_MEM>, <&clks 0>,
146 <&clks 0>, <&clks 0>, <&clks 0>, <&clks 0>,
147 <&clks 0>, <&clks 0>, <&clks 0>, <&clks 0>,
148 <&clks 0>, <&clks 0>, <&clks 0>, <&clks 0>,
149 <&clks IMX6QDL_CLK_ASRC>, <&clks 0>, <&clks 0>,
150 <&clks IMX6QDL_CLK_SPBA>;
151 clock-names = "mem", "ipg", "asrck_0",
152 "asrck_1", "asrck_2", "asrck_3", "asrck_4",
153 "asrck_5", "asrck_6", "asrck_7", "asrck_8",
154 "asrck_9", "asrck_a", "asrck_b", "asrck_c",
155 "asrck_d", "asrck_e", "asrck_f", "spba";
156 dmas = <&sdma 17 23 1>, <&sdma 18 23 1>, <&sdma 19 23 1>,
157 <&sdma 20 23 1>, <&sdma 21 23 1>, <&sdma 22 23 1>;
158 dma-names = "rxa", "rxb", "rxc",
160 fsl,asrc-rate = <48000>;
161 fsl,asrc-width = <16>;