Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp415259ybz; Wed, 15 Apr 2020 11:09:12 -0700 (PDT) X-Google-Smtp-Source: APiQypKwuX6ExUVy5qUFJ5j5/lKa8dhcEB5CdLwgLJgtx0X4iXSxzIwgEr8+ghrbn+Lf3nJ7sz+c X-Received: by 2002:aa7:db88:: with SMTP id u8mr26993980edt.366.1586974152176; Wed, 15 Apr 2020 11:09:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586974152; cv=none; d=google.com; s=arc-20160816; b=jpHr0U1Gs0G85Y7/hTsGcgyvhU48T75Qt51ctPEG6CPRKUCqUyfwP7SbM6MU71iAiV K7O4BR4UUvGNYCg4AjEB3twgaXOEk2ZDjS1NDttLBKN0pwtczJCvqrzNyrOYWC9uILF+ PQYJhHoVBjEhaF5671k0SgwMp5New0nECDbNqUWQh6eBEj18Rt7QFP+GWqbSfTa3jmgt lg47gZS1dRYhbrOmC3/pds4loKdm/bGm5cihKm+y9nTlJ1wLBtZtjX4W/BePzTui4yl0 R5o2IPao1irC/kssKgVAxxGyNXCQEghtfkEh7P15dtWYQvWGTxcfcdDtF3IXrVW9tJc5 hooQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:references :in-reply-to:message-id:date:subject:cc:to:from; bh=4gZ2zZWrlYL1ZZj3GAQzoSZr4s4v8UG6dpGodk4QoqY=; b=nlbrWJEKII1GV1K3/hMPRqwNOKs3mLNs3Wo1woHsQ3DD0Qow2GRQeekV86zrcRvpV7 8QJfjl79XifgCWdd4+jH7GGmnGR1woXaICcEuZ1HxYHVJY1Ci1fNLVFSIwgklVUZ8KxB GPq3WkUeOw20HLpwxBPGKUjee/DfO9wQSt55A30Srzum2rbNeU3Xrg33MlC1givrJHFq 5GrDhvgKWpUCwbil2okB4uEo+varMerMLH2EH3/LFGTx7gRbe3rBa1L2IjZjMhbFPZ2J Wkv/AD+URPl/jzfy3VvWxqQg6PNW50oplF57FY5tFHAvDyqNNGLhnboateR4vSF+n2J3 MZsg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y26si11178922edm.274.2020.04.15.11.08.44; Wed, 15 Apr 2020 11:09:12 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2406358AbgDNHEp (ORCPT + 99 others); Tue, 14 Apr 2020 03:04:45 -0400 Received: from inva021.nxp.com ([92.121.34.21]:56088 "EHLO inva021.nxp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2406333AbgDNHEh (ORCPT ); Tue, 14 Apr 2020 03:04:37 -0400 Received: from inva021.nxp.com (localhost [127.0.0.1]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id 323CA20033C; Tue, 14 Apr 2020 09:04:35 +0200 (CEST) Received: from invc005.ap-rdc01.nxp.com (invc005.ap-rdc01.nxp.com [165.114.16.14]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id 5E7A820032F; Tue, 14 Apr 2020 09:04:29 +0200 (CEST) Received: from localhost.localdomain (shlinux2.ap.freescale.net [10.192.224.44]) by invc005.ap-rdc01.nxp.com (Postfix) with ESMTP id 817AB4030B; Tue, 14 Apr 2020 15:04:20 +0800 (SGT) From: Shengjiu Wang To: timur@kernel.org, nicoleotsuka@gmail.com, Xiubo.Lee@gmail.com, festevam@gmail.com, broonie@kernel.org, alsa-devel@alsa-project.org, lgirdwood@gmail.com, perex@perex.cz, tiwai@suse.com, robh+dt@kernel.org, mark.rutland@arm.com, devicetree@vger.kernel.org Cc: linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org Subject: [PATCH v8 6/7] ASoC: dt-bindings: fsl_easrc: Add document for EASRC Date: Tue, 14 Apr 2020 14:56:06 +0800 Message-Id: <396a73da2a2fa8b77d0b773d321500b3e504d919.1586845138.git.shengjiu.wang@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: References: In-Reply-To: References: X-Virus-Scanned: ClamAV using ClamSMTP Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org EASRC (Enhanced Asynchronous Sample Rate Converter) is a new IP module found on i.MX8MN. Signed-off-by: Shengjiu Wang --- .../devicetree/bindings/sound/fsl,easrc.yaml | 101 ++++++++++++++++++ 1 file changed, 101 insertions(+) create mode 100644 Documentation/devicetree/bindings/sound/fsl,easrc.yaml diff --git a/Documentation/devicetree/bindings/sound/fsl,easrc.yaml b/Documentation/devicetree/bindings/sound/fsl,easrc.yaml new file mode 100644 index 000000000000..14ea60084420 --- /dev/null +++ b/Documentation/devicetree/bindings/sound/fsl,easrc.yaml @@ -0,0 +1,101 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/sound/fsl,easrc.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: NXP Asynchronous Sample Rate Converter (ASRC) Controller + +maintainers: + - Shengjiu Wang + +properties: + $nodename: + pattern: "^easrc@.*" + + compatible: + const: fsl,imx8mn-easrc + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + clocks: + items: + - description: Peripheral clock + + clock-names: + items: + - const: mem + + dmas: + maxItems: 8 + + dma-names: + items: + - const: ctx0_rx + - const: ctx0_tx + - const: ctx1_rx + - const: ctx1_tx + - const: ctx2_rx + - const: ctx2_tx + - const: ctx3_rx + - const: ctx3_tx + + firmware-name: + allOf: + - $ref: /schemas/types.yaml#/definitions/string + - const: imx/easrc/easrc-imx8mn.bin + description: The coefficient table for the filters + + fsl,asrc-rate: + allOf: + - $ref: /schemas/types.yaml#/definitions/uint32 + - minimum: 8000 + - maximum: 192000 + description: Defines a mutual sample rate used by DPCM Back Ends + + fsl,asrc-format: + allOf: + - $ref: /schemas/types.yaml#/definitions/uint32 + - enum: [2, 6, 10, 32, 36] + default: 2 + description: + Defines a mutual sample format used by DPCM Back Ends + +required: + - compatible + - reg + - interrupts + - clocks + - clock-names + - dmas + - dma-names + - firmware-name + - fsl,asrc-rate + - fsl,asrc-format + +examples: + - | + #include + + easrc: easrc@300C0000 { + compatible = "fsl,imx8mn-easrc"; + reg = <0x0 0x300C0000 0x0 0x10000>; + interrupts = <0x0 122 0x4>; + clocks = <&clk IMX8MN_CLK_ASRC_ROOT>; + clock-names = "mem"; + dmas = <&sdma2 16 23 0> , <&sdma2 17 23 0>, + <&sdma2 18 23 0> , <&sdma2 19 23 0>, + <&sdma2 20 23 0> , <&sdma2 21 23 0>, + <&sdma2 22 23 0> , <&sdma2 23 23 0>; + dma-names = "ctx0_rx", "ctx0_tx", + "ctx1_rx", "ctx1_tx", + "ctx2_rx", "ctx2_tx", + "ctx3_rx", "ctx3_tx"; + firmware-name = "imx/easrc/easrc-imx8mn.bin"; + fsl,asrc-rate = <8000>; + fsl,asrc-format = <2>; + }; -- 2.21.0