1a960de4dSShengjiu Wang# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2a960de4dSShengjiu Wang%YAML 1.2 3a960de4dSShengjiu Wang--- 4a960de4dSShengjiu Wang$id: http://devicetree.org/schemas/sound/fsl,easrc.yaml# 5a960de4dSShengjiu Wang$schema: http://devicetree.org/meta-schemas/core.yaml# 6a960de4dSShengjiu Wang 7a960de4dSShengjiu Wangtitle: NXP Asynchronous Sample Rate Converter (ASRC) Controller 8a960de4dSShengjiu Wang 9a960de4dSShengjiu Wangmaintainers: 10a960de4dSShengjiu Wang - Shengjiu Wang <shengjiu.wang@nxp.com> 11a960de4dSShengjiu Wang 12a960de4dSShengjiu Wangproperties: 13a960de4dSShengjiu Wang $nodename: 14a960de4dSShengjiu Wang pattern: "^easrc@.*" 15a960de4dSShengjiu Wang 16a960de4dSShengjiu Wang compatible: 17a960de4dSShengjiu Wang const: fsl,imx8mn-easrc 18a960de4dSShengjiu Wang 19a960de4dSShengjiu Wang reg: 20a960de4dSShengjiu Wang maxItems: 1 21a960de4dSShengjiu Wang 22a960de4dSShengjiu Wang interrupts: 23a960de4dSShengjiu Wang maxItems: 1 24a960de4dSShengjiu Wang 25a960de4dSShengjiu Wang clocks: 26a960de4dSShengjiu Wang items: 27a960de4dSShengjiu Wang - description: Peripheral clock 28a960de4dSShengjiu Wang 29a960de4dSShengjiu Wang clock-names: 30a960de4dSShengjiu Wang items: 31a960de4dSShengjiu Wang - const: mem 32a960de4dSShengjiu Wang 33a960de4dSShengjiu Wang dmas: 34a960de4dSShengjiu Wang maxItems: 8 35a960de4dSShengjiu Wang 36a960de4dSShengjiu Wang dma-names: 37a960de4dSShengjiu Wang items: 38a960de4dSShengjiu Wang - const: ctx0_rx 39a960de4dSShengjiu Wang - const: ctx0_tx 40a960de4dSShengjiu Wang - const: ctx1_rx 41a960de4dSShengjiu Wang - const: ctx1_tx 42a960de4dSShengjiu Wang - const: ctx2_rx 43a960de4dSShengjiu Wang - const: ctx2_tx 44a960de4dSShengjiu Wang - const: ctx3_rx 45a960de4dSShengjiu Wang - const: ctx3_tx 46a960de4dSShengjiu Wang 47a960de4dSShengjiu Wang firmware-name: 48086e9074SRob Herring $ref: /schemas/types.yaml#/definitions/string 49086e9074SRob Herring const: imx/easrc/easrc-imx8mn.bin 50a960de4dSShengjiu Wang description: The coefficient table for the filters 51a960de4dSShengjiu Wang 52a960de4dSShengjiu Wang fsl,asrc-rate: 53086e9074SRob Herring $ref: /schemas/types.yaml#/definitions/uint32 54086e9074SRob Herring minimum: 8000 55086e9074SRob Herring maximum: 192000 56a960de4dSShengjiu Wang description: Defines a mutual sample rate used by DPCM Back Ends 57a960de4dSShengjiu Wang 58a960de4dSShengjiu Wang fsl,asrc-format: 59086e9074SRob Herring $ref: /schemas/types.yaml#/definitions/uint32 60086e9074SRob Herring enum: [2, 6, 10, 32, 36] 61a960de4dSShengjiu Wang default: 2 62a960de4dSShengjiu Wang description: 63a960de4dSShengjiu Wang Defines a mutual sample format used by DPCM Back Ends 64a960de4dSShengjiu Wang 65a960de4dSShengjiu Wangrequired: 66a960de4dSShengjiu Wang - compatible 67a960de4dSShengjiu Wang - reg 68a960de4dSShengjiu Wang - interrupts 69a960de4dSShengjiu Wang - clocks 70a960de4dSShengjiu Wang - clock-names 71a960de4dSShengjiu Wang - dmas 72a960de4dSShengjiu Wang - dma-names 73a960de4dSShengjiu Wang - firmware-name 74a960de4dSShengjiu Wang - fsl,asrc-rate 75a960de4dSShengjiu Wang - fsl,asrc-format 76a960de4dSShengjiu Wang 77a960de4dSShengjiu Wangexamples: 78a960de4dSShengjiu Wang - | 79a960de4dSShengjiu Wang #include <dt-bindings/clock/imx8mn-clock.h> 80a960de4dSShengjiu Wang 81a960de4dSShengjiu Wang easrc: easrc@300c0000 { 82a960de4dSShengjiu Wang compatible = "fsl,imx8mn-easrc"; 830db958b6SRob Herring reg = <0x300c0000 0x10000>; 84a960de4dSShengjiu Wang interrupts = <0x0 122 0x4>; 85a960de4dSShengjiu Wang clocks = <&clk IMX8MN_CLK_ASRC_ROOT>; 86a960de4dSShengjiu Wang clock-names = "mem"; 87a960de4dSShengjiu Wang dmas = <&sdma2 16 23 0> , <&sdma2 17 23 0>, 88a960de4dSShengjiu Wang <&sdma2 18 23 0> , <&sdma2 19 23 0>, 89a960de4dSShengjiu Wang <&sdma2 20 23 0> , <&sdma2 21 23 0>, 90a960de4dSShengjiu Wang <&sdma2 22 23 0> , <&sdma2 23 23 0>; 91a960de4dSShengjiu Wang dma-names = "ctx0_rx", "ctx0_tx", 92a960de4dSShengjiu Wang "ctx1_rx", "ctx1_tx", 93a960de4dSShengjiu Wang "ctx2_rx", "ctx2_tx", 94a960de4dSShengjiu Wang "ctx3_rx", "ctx3_tx"; 95a960de4dSShengjiu Wang firmware-name = "imx/easrc/easrc-imx8mn.bin"; 96a960de4dSShengjiu Wang fsl,asrc-rate = <8000>; 97a960de4dSShengjiu Wang fsl,asrc-format = <2>; 98a960de4dSShengjiu Wang }; 99