Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp387814ybb; Wed, 1 Apr 2020 01:55:17 -0700 (PDT) X-Google-Smtp-Source: ADFU+vvwCi2yWAR7UYoPSSdklkVSrAmzw3JK6zQIBKT/yJO++I22aa5XfD8IJmEvfqPm2D95gb3+ X-Received: by 2002:a9d:943:: with SMTP id 61mr16347748otp.3.1585731317536; Wed, 01 Apr 2020 01:55:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585731317; cv=none; d=google.com; s=arc-20160816; b=mKtmj6cnqphMhD5wy6qlSt3BGJPpWPldi0uVDUPuDFftIEVZQ1heBPiQysBG7Az+el /+Wx890wNeHRrJ15n+IYy3QvVFwLKaf8V9WS4pUJi0jyUYxMQ//0scyUInzIOeuhFc+Y wcqNCl00gbEiiNFaYWBvxlzL2Ol0GQpIvgiy7Oc8noW54kEybBlbazx9Nj5eTWSh/1jI OP48jwYelcZ6CqVpvKTrEQ8cexZi71gethtH4dniYo7zRdUnylcK78pGRBA1jfz3FYth RBQAP8iB+82Lu7ZdcOaJQUyQduUylR8hsLNbkm4Cjrmhr+m1EEhQXeqWqsMnIa3s+5w5 enEw== 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=X1glIREyu4+KU4E48NXJAaVCFNxutU/f+KIs0evrXacwPMz8i2su5K/uYjrdXivqCU rYCXJHZofbBeMeHsWopYE3eLMNE9XhNVFgLAH5KsAVwNBVsaBL9v1pAVt0CMQQ5eJQ5R csF/TPQmuANDFFQgzVoYNR1JH/y9IgfX68n/Ni0JeLdCeaBwFCCcyT0LEwR0jQ8cgwyO ErS7kiFT3rMgk2U/Z1FpELA5Apxbldji/FntHZQZMWKejwk33lid+O2Mjc8IydEFp1NT vcBZP99LfjQIz1C/rynYQ5gjqSXoIvtiALnTDMmzEk+k947OZVF7X51L08Gk+C+c726r X9Sw== 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 j15si574135ots.187.2020.04.01.01.55.05; Wed, 01 Apr 2020 01:55:17 -0700 (PDT) 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 S1732172AbgDAIxf (ORCPT + 99 others); Wed, 1 Apr 2020 04:53:35 -0400 Received: from inva021.nxp.com ([92.121.34.21]:55558 "EHLO inva021.nxp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732136AbgDAIx1 (ORCPT ); Wed, 1 Apr 2020 04:53:27 -0400 Received: from inva021.nxp.com (localhost [127.0.0.1]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id 6B2E4200CDF; Wed, 1 Apr 2020 10:53:25 +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 0A563200CC5; Wed, 1 Apr 2020 10:53:18 +0200 (CEST) Received: from localhost.localdomain (shlinux2.ap.freescale.net [10.192.224.44]) by invc005.ap-rdc01.nxp.com (Postfix) with ESMTP id 3B5E3402C4; Wed, 1 Apr 2020 16:53:09 +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 v6 6/7] ASoC: dt-bindings: fsl_easrc: Add document for EASRC Date: Wed, 1 Apr 2020 16:45:39 +0800 Message-Id: <68208297b49e85adfddf843bc205d154790a49de.1585726761.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