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.
17 - Shawn Guo <shawnguo@kernel.org>
18 - Sascha Hauer <s.hauer@pengutronix.de>
32 - const: fsl,imx53-asrc
81 $ref: /schemas/types.yaml#/definitions/uint32
82 description: The mutual sample rate used by DPCM Back Ends
85 $ref: /schemas/types.yaml#/definitions/uint32
86 description: The mutual sample width used by DPCM Back Ends
90 $ref: /schemas/types.yaml#/definitions/uint32
92 Defines clock map used in driver
93 <0> - select the map for asrc0 in imx8qm/imx8qxp
94 <1> - select the map for asrc1 in imx8qm/imx8qxp
100 If this property is absent, the little endian mode will be in use as
101 default. Otherwise, the big endian mode will be in use for all the
105 $ref: /schemas/types.yaml#/definitions/uint32
107 Defines a mutual sample format used by DPCM Back Ends, which can
108 replace the fsl,asrc-width. The value is 2 (S16_LE), or 6 (S24_LE).
135 fsl,asrc-clk-map: false
148 additionalProperties: false
152 #include <dt-bindings/interrupt-controller/irq.h>
153 #include <dt-bindings/clock/imx6qdl-clock.h>
155 compatible = "fsl,imx53-asrc";
156 reg = <0x02034000 0x4000>;
157 interrupts = <0 50 IRQ_TYPE_LEVEL_HIGH>;
158 clocks = <&clks IMX6QDL_CLK_ASRC_IPG>,
159 <&clks IMX6QDL_CLK_ASRC_MEM>, <&clks 0>,
160 <&clks 0>, <&clks 0>, <&clks 0>, <&clks 0>,
161 <&clks 0>, <&clks 0>, <&clks 0>, <&clks 0>,
162 <&clks 0>, <&clks 0>, <&clks 0>, <&clks 0>,
163 <&clks IMX6QDL_CLK_ASRC>, <&clks 0>, <&clks 0>,
164 <&clks IMX6QDL_CLK_SPBA>;
165 clock-names = "mem", "ipg", "asrck_0",
166 "asrck_1", "asrck_2", "asrck_3", "asrck_4",
167 "asrck_5", "asrck_6", "asrck_7", "asrck_8",
168 "asrck_9", "asrck_a", "asrck_b", "asrck_c",
169 "asrck_d", "asrck_e", "asrck_f", "spba";
170 dmas = <&sdma 17 23 1>, <&sdma 18 23 1>, <&sdma 19 23 1>,
171 <&sdma 20 23 1>, <&sdma 21 23 1>, <&sdma 22 23 1>;
172 dma-names = "rxa", "rxb", "rxc",
174 fsl,asrc-rate = <48000>;
175 fsl,asrc-width = <16>;