Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp1239049ybz; Thu, 16 Apr 2020 05:39:52 -0700 (PDT) X-Google-Smtp-Source: APiQypLZQurcgsVKB4dlnkZE/EATz9Hn7LoPYqhHdi6GfUc3Ds3o7+hKPcPLHk3KrFJPY+OaZYmL X-Received: by 2002:a17:906:4714:: with SMTP id y20mr5434513ejq.5.1587040792255; Thu, 16 Apr 2020 05:39:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587040792; cv=none; d=google.com; s=arc-20160816; b=y5ws8Ay9KUdcME2gmENN0Frjbq0DOeAfK+oARplYskOXTFEAGoVaySw5mfNCuK+YM3 VHcYwDP0Jf77i7AMb8AH08gO6pM+cDi1quFKedHYgVUINuC2PjwhZeWEUafAmQSnL60r QHX9J+X41iO2dXymOw8NIm8XcbTxMaKiidaO3CJrFj/VnrrWG5kBHmWdB+LO0Q0tQOR0 +RCfhkmF2YrWmCod3ltqVSofJnKG/74xQoEKnE5nfy6vATLmOYZremUinShaxm9E4ATv DNlCJQ7rx20ypk0HVpaGhvmZHub7no9k0E8dFnuKJ6mKdQ9BTxAmWodUVx+L2145sjRz 0wAA== 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=67JG9Y+JBRONbqQePRDFkOn7tKVPvhFolREBX69xRDM=; b=HyHx90/FyRPx1y/BJi7LVGLPBeNdN+tJGC/+D5VqXbGSZTQnNenqCj+2msSA+hNVkw 97cIwkfpWkLf3QZhdHC9e114Edry/fKoQ54fTIDpmM6L2no/4L9M65yD3HD/ADC7r6oO GIj5CSdEENhY1j1RR0ihHSa/Z786pfFFBFUQfdv/Co9deaG6MAC6VwAwGjTpekFVuXUh cXb3Zv0aGMv7aevJpKaEjEY0OXQxvOYiAT7DNAPQLn4gvBPEx8OYbDsaPLE6OzRHuIQj 3Eu0Joyp5nYQQdcYUyqT2WGpw718vTfoBZMpSYnKhbDT/c8EK6zbm0mun2Z/bgdZtBkx OtYw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: 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 gr24si11978487ejb.162.2020.04.16.05.39.29; Thu, 16 Apr 2020 05:39:52 -0700 (PDT) Received-SPF: pass (google.com: 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: 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 S2635802AbgDPMfM (ORCPT + 99 others); Thu, 16 Apr 2020 08:35:12 -0400 Received: from inva021.nxp.com ([92.121.34.21]:49950 "EHLO inva021.nxp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2635683AbgDPMeE (ORCPT ); Thu, 16 Apr 2020 08:34:04 -0400 Received: from inva021.nxp.com (localhost [127.0.0.1]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id C80CA200CDC; Thu, 16 Apr 2020 14:34:01 +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 F0125200CEB; Thu, 16 Apr 2020 14:33:55 +0200 (CEST) Received: from localhost.localdomain (shlinux2.ap.freescale.net [10.192.224.44]) by invc005.ap-rdc01.nxp.com (Postfix) with ESMTP id E253D40305; Thu, 16 Apr 2020 20:33:48 +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 v9 6/7] ASoC: dt-bindings: fsl_easrc: Add document for EASRC Date: Thu, 16 Apr 2020 20:25:36 +0800 Message-Id: <3195cad960113a089d63c10e2268d63b253a69c5.1587038908.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 Reviewed-by: Rob Herring --- .../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..73cdcf053a9c --- /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