Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp592845ybz; Wed, 15 Apr 2020 14:44:37 -0700 (PDT) X-Google-Smtp-Source: APiQypIDtj2MHmjXpNfRSse2i8mlb0Fnk4nW36Xjep/4K7cpDq+qe6+skh/UMMof20GuZQXuv4Zx X-Received: by 2002:aa7:c497:: with SMTP id m23mr3507785edq.155.1586987077560; Wed, 15 Apr 2020 14:44:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586987077; cv=none; d=google.com; s=arc-20160816; b=Bv6q+xLo5DViDIu6pj6LmO4q+EPgoVU0kI4PYlJF4ZaMppntlccORo8iMsVyC3KwDq YMWD527W6qtxc5r1h1/6U3lFLwBwzI+GDToUIgcV5luhkKbFPLVKDCEIacu2aI2HBgZD cJ9NtB2YaKc7aFZg9ml92ZR+YTveH6niI3XdczZ3lqruHybBktkXbWJhCccJNAxudiDr RFcjcKTQAomIGxHgwJLsEov/C2AAYA6zM3ioaMlkdzAdGjqVMJrXCJn/25/N0RuewkMX Hvd4QjYhkxUoqgJhevNAfavtgd0emEjDVU8c7tXqW+xKIe2kFQRG6W54O97Xyi/wLhC2 QkVQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=5/QdFs0H17QBuX1uwsHW6SudnkNXUrD80svVL4aPMwA=; b=ZBBdRpaFKrFfvUjPZosPI9APUpYxP7P+OFG/zdQ+GT2NA8ucpyom/xb0KDOB2fkEEm y28HiRhrA3rJaqOHglqsA+f3fRm2mhQwvZgNlojDvoZmIC+abOPxCmaEqRc2TYJx3L9B qNRG4v4BlFMsRaj86UIlzwwBSxdJf7ACvUojsX8woD6HWu/ombGTEi7PvHipjMiGD19l 4t55hOS82HPi9sZFdj/rS2UcIagvCXW88/xbiDshgxa0YSnMZvIaw/K10TBj9QVhvmGE /6mGXyihJssaCsAHVa6kf/JnnHVbTN/8aFOI775ZFXnjls2sjSCKI7sXdGAeP9hAD+vC ibVA== 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h1si10286768ejd.517.2020.04.15.14.44.14; Wed, 15 Apr 2020 14:44:37 -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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2440875AbgDNPq4 (ORCPT + 99 others); Tue, 14 Apr 2020 11:46:56 -0400 Received: from mail-oi1-f194.google.com ([209.85.167.194]:37582 "EHLO mail-oi1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731196AbgDNPqs (ORCPT ); Tue, 14 Apr 2020 11:46:48 -0400 Received: by mail-oi1-f194.google.com with SMTP id r25so920662oij.4; Tue, 14 Apr 2020 08:46:47 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=5/QdFs0H17QBuX1uwsHW6SudnkNXUrD80svVL4aPMwA=; b=k9aOKYssPBKNmvD+yPo6pOODZ2wkUQv0NDmCSelZq/4ayruvqlttiBLAn7g0D9v31t I4Caj4P3sNNDUAFfIkcLcPD5M/yIBS+ekBiEdUsW7YzgBBWzezUVx9qwBt2ro0DTLx8o JZnuzMhSDuOnURnsUwqRMfXK/GNmlMT2PqOEw8Wn7Oz86fhh8nASTGMPqWTc1H5eODhh RIr3/YvTsV3jcwPIaoTbtco9y8KVHHJJNjFyIdDAF0LDjqIYxuWsE2yqfCGLvUOAkITM o+QoAc/tOwxMaQyv5V02rKpmn26Q03VA4YYlOMI/ky1DXcl48HR66FT1nxA0agSntJxN Cqug== X-Gm-Message-State: AGi0PuYY6yM8dhSMz8PDk+kxBwfMF7Xry8Er+ncaU/zQnISgrT+Im3J0 nP3zBM5uuCl5GuHneqodlA== X-Received: by 2002:aca:2209:: with SMTP id b9mr16431716oic.103.1586879206591; Tue, 14 Apr 2020 08:46:46 -0700 (PDT) Received: from rob-hp-laptop (24-155-109-49.dyn.grandenetworks.net. [24.155.109.49]) by smtp.gmail.com with ESMTPSA id z24sm1428489otq.75.2020.04.14.08.46.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 14 Apr 2020 08:46:45 -0700 (PDT) Received: (nullmailer pid 28325 invoked by uid 1000); Tue, 14 Apr 2020 15:46:43 -0000 Date: Tue, 14 Apr 2020 10:46:43 -0500 From: Rob Herring To: Shengjiu Wang Cc: 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, mark.rutland@arm.com, devicetree@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v6 6/7] ASoC: dt-bindings: fsl_easrc: Add document for EASRC Message-ID: <20200414154643.GA29098@bogus> References: <68208297b49e85adfddf843bc205d154790a49de.1585726761.git.shengjiu.wang@nxp.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <68208297b49e85adfddf843bc205d154790a49de.1585726761.git.shengjiu.wang@nxp.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Apr 01, 2020 at 04:45:39PM +0800, Shengjiu Wang wrote: > 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: fsl,asrc-rate-hz > + allOf: > + - $ref: /schemas/types.yaml#/definitions/uint32 And then you can drop this. > + - 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 { Lowercase hex > + 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 >