Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp5641530ybv; Tue, 11 Feb 2020 20:36:19 -0800 (PST) X-Google-Smtp-Source: APXvYqw5GZob3kB23D7D86/Ty1cPqk9oP6b2z9RbW/TRz/tkIHo1AdXQJwnzb1kwrgNTndsOhrez X-Received: by 2002:aca:220c:: with SMTP id b12mr4905443oic.55.1581482179730; Tue, 11 Feb 2020 20:36:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581482179; cv=none; d=google.com; s=arc-20160816; b=V5iOYKxNqjTtlpXI1LUj/jb0NIB+R4OtjPzlKFnd6RTyCfC5xGyqDLrbrYOjUk6uJe mOMiylrSMcpFrijRZx8Xu4EivcigXsRvjN4E6/iJaOD0f9vJbXy37n0JHiB2A3wTPHK9 ypRuUI3qV8vV4ne7om+QnBiRecRhLnwo7p3dx9oXLRY8a8u96s/VCdVp/RhnROlokJlM kzla/bDe9C9izZIjTb7Sqm1q23y3DNe8irHLnNNrs+m27EuZQMK+rxNmP5qgrTDBsFET SPnVvuoHv0rZjMtaliu+RlYVgZoNKxl4G7n5BraduoiB/hjx2ePADEHhaUwbGyHmPlTZ /JmQ== 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=OSjIpXzPpAeSnd72P16W3TAZvW+QGs/OO3K93DHFrDI=; b=iOE6G5QDY5yfAj0uR4xErr/89EdO016E5uLsKQDJ0PHzf84uQ6B5xGinpo+GWWnFW/ uww/wTA2Zl8h4h9Bfaek5umTUXhBhqAKALANHYV/9oYez8cLEXpmrvhJJEeEBeqvgR/M nPz8i+c8SkkpWYh5XLSepT80OS58YG6grHxA+rpFbuKLE6LYVlzK2LfZoD6N2R0b9z2Y t5NIb+UR3KbVnjKXcIbNsLqTwHrPY7b2zT2+Rl1TLYmkcZNOxBHSsJPPeFWIDf3djZkD TRoVdJIp03pLZL4vy9RuMKk3wIjcQhZYu9vfnRwPHOK6a/2QsyrBkimRhLsqk+zUnzxK nLSQ== 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 209.132.180.67 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. [209.132.180.67]) by mx.google.com with ESMTP id j1si3197456otn.53.2020.02.11.20.36.07; Tue, 11 Feb 2020 20:36:19 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 S1728134AbgBLEfs (ORCPT + 99 others); Tue, 11 Feb 2020 23:35:48 -0500 Received: from inva020.nxp.com ([92.121.34.13]:59428 "EHLO inva020.nxp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726960AbgBLEfq (ORCPT ); Tue, 11 Feb 2020 23:35:46 -0500 Received: from inva020.nxp.com (localhost [127.0.0.1]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id 4D5271C71CD; Wed, 12 Feb 2020 05:35:44 +0100 (CET) Received: from invc005.ap-rdc01.nxp.com (invc005.ap-rdc01.nxp.com [165.114.16.14]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id 31C391C71C8; Wed, 12 Feb 2020 05:35:37 +0100 (CET) Received: from localhost.localdomain (shlinux2.ap.freescale.net [10.192.224.44]) by invc005.ap-rdc01.nxp.com (Postfix) with ESMTP id 88F1F4029B; Wed, 12 Feb 2020 12:35:28 +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 2/3] ASoC: dt-bindings: fsl_easrc: Add document for EASRC Date: Wed, 12 Feb 2020 12:30:02 +0800 Message-Id: <1ae9af586a2003e23885ccc7ef58ee2b1dce29f7.1581475981.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.MX815. Signed-off-by: Shengjiu Wang --- .../devicetree/bindings/sound/fsl,easrc.txt | 57 +++++++++++++++++++ 1 file changed, 57 insertions(+) create mode 100644 Documentation/devicetree/bindings/sound/fsl,easrc.txt diff --git a/Documentation/devicetree/bindings/sound/fsl,easrc.txt b/Documentation/devicetree/bindings/sound/fsl,easrc.txt new file mode 100644 index 000000000000..0e8153165e3b --- /dev/null +++ b/Documentation/devicetree/bindings/sound/fsl,easrc.txt @@ -0,0 +1,57 @@ +NXP Asynchronous Sample Rate Converter (ASRC) Controller + +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 four context to support +four substreams within totally 32 channels. + +Required properties: +- compatible: Contains "fsl,imx8mn-easrc". + +- reg: Offset and length of the register set for the + device. + +- interrupts: Contains the asrc interrupt. + +- dmas: Generic dma devicetree binding as described in + Documentation/devicetree/bindings/dma/dma.txt. + +- dma-names: Contains "ctx0_rx", "ctx0_tx", + "ctx1_rx", "ctx1_tx", + "ctx2_rx", "ctx2_tx", + "ctx3_rx", "ctx3_tx". + +- clocks: Contains an entry for each entry in clock-names. + +- clock-names: "mem" - Peripheral clock to driver module. + +- fsl,easrc-ram-script-name: The coefficient table for the filters + +- fsl,asrc-rate: Defines a mutual sample rate used by DPCM Back + Ends. + +- fsl,asrc-width: Defines a mutual sample width used by DPCM Back + Ends. + +Example: + +easrc: easrc@300C0000 { + compatible = "fsl,imx8mn-easrc"; + reg = <0x0 0x300C0000 0x0 0x10000>; + interrupts = ; + 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"; + fsl,easrc-ram-script-name = "imx/easrc/easrc-imx8mn.bin"; + fsl,asrc-rate = <8000>; + fsl,asrc-width = <16>; + status = "disabled"; +}; -- 2.21.0