Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp5539584ybv; Mon, 17 Feb 2020 22:46:54 -0800 (PST) X-Google-Smtp-Source: APXvYqzkokNspqKyB2x56X8YcQxuwKCPNWSWaijCF4dfGGIYWPUBMvpcc1zKYAuOMg64Tkdu2u+S X-Received: by 2002:a9d:4110:: with SMTP id o16mr14955746ote.101.1582008414386; Mon, 17 Feb 2020 22:46:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582008414; cv=none; d=google.com; s=arc-20160816; b=XEfkCYW7Wa5ZKIiaMQju1C63zTtvHDe0IUWmmMDXf9mo+pDjdVFhD192oQoxhaBBDz Ie/Dl03iuKebj7pQ5a2F/8D9VDJCfuY8UrVi4N6XDRlViF6dnY7YiBZi/bqdzxS19j0E ckDysulN44VHb4k7u0zpfX6GFPVxtC3ehkxSTHs+v1UOdkLjHVnlg8eqRD2gpoRXgkUx XyBXX5zrCjyBz6cYC6C+qjGkORF5ZobL0HWXjJaACP+MkSsW4zkj791apbu+MVngb+VV N6MC7BIMyDIvk7Qp32OwjgCbwtmA+KoRClR9xV2bYZtTeLMJK0Vj81QJ4DBWUOlKWm9k NVdQ== 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=jY8r18kc3P9r++7WM8C/RUK9NCs8bhI9aGJ6IGAAc6k=; b=IncGP1THZ2ynijfzETuHHwzs9Mmlq5CsGJ+zgkLEHyIfUMdU3Z4aqdGCnuXzGmOdrV upN5GjTuC51ELH+e2TDSTGIOldyP6NEfKuuMXLi6tXgYpvTJuFBwwyUdmk10UX6FA35t gk+ecfmczRFSl5UCRMH3AaMaWpNRIw9KekBmp4lW1v+CFU3eg9E3G3vKReqN9Za07ntA BNNCaeQeeFKqb+DahcK1Jk976yGU2N7rqmMijadlElLqsEi17qXkcYhQkwedeftWtpUs iupROxo1xYfK1VFBMRIiFGXxsHQ+JzTThWPYm+jN/Yhp87liz0iCoLlBhD1F7R6zIfPw 77/w== 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 o16si1367467otp.289.2020.02.17.22.46.41; Mon, 17 Feb 2020 22:46:54 -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 S1726323AbgBRGqU (ORCPT + 99 others); Tue, 18 Feb 2020 01:46:20 -0500 Received: from inva021.nxp.com ([92.121.34.21]:46884 "EHLO inva021.nxp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726180AbgBRGqT (ORCPT ); Tue, 18 Feb 2020 01:46:19 -0500 Received: from inva021.nxp.com (localhost [127.0.0.1]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id A7E4820363E; Tue, 18 Feb 2020 07:46:14 +0100 (CET) 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 9D9B62035DE; Tue, 18 Feb 2020 07:46:07 +0100 (CET) Received: from localhost.localdomain (shlinux2.ap.freescale.net [10.192.224.44]) by invc005.ap-rdc01.nxp.com (Postfix) with ESMTP id AAD9E403DA; Tue, 18 Feb 2020 14:45: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 v2 2/3] ASoC: dt-bindings: fsl_easrc: Add document for EASRC Date: Tue, 18 Feb 2020 14:39:36 +0800 Message-Id: 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.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