Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp2883499ybf; Mon, 2 Mar 2020 17:47:07 -0800 (PST) X-Google-Smtp-Source: ADFU+vvuJvJVEnfie0LfhTLKiliCbpq/XFvEqBxP2ZkixAWTqdQRI8oUfWh3pq6cRirAG9yb89wW X-Received: by 2002:a9d:51cb:: with SMTP id d11mr1542197oth.219.1583200027196; Mon, 02 Mar 2020 17:47:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1583200027; cv=none; d=google.com; s=arc-20160816; b=vFkIH4DUmJnwXePqamfQw3QlhRWrbpOAR1lp1FhsezROEw1w3v3FUvOawVpx6JZunb s5ZZk5TMCa3zAOeajFkwV5g7P7NtuOdhP1bDW13tfhP6QoEDGjyMK+W6UfjtUUHFRFLg gzZnAa0zqBtn1KGsPPMHU530GRFTHMYx2fVd9S9rSG1VLtjCotp7fcn+dBWC587l9NfB kDcdEYQwrrZrwAd8gCNmLm3vWFivtThn5wBVXsK6tY/NPsVAEz7VLV6bwDq2DAmTKDeK FjPqgLABKV8gJ7WYdGjWXdJTxv1YoDbv9CjF3OFyNe9t7b6FZ3T+4xteuQud9wfzHzDJ MSnQ== 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=0fZprhK1W/+54HzE9JKB5hhmjgGt264/Y236IBMlW68=; b=M8TKFfaeFK82+e1L+Pfm3vCJWbZpRrXDxSLXoO7Qi+yxZddtzeYVInnbL/iD0jqy11 lYZ+3VdZngXULUpDxvigmtuouryf3lkCmTHy7cn2PcJQi6he6AYFN9qXMPStGwvrw1SV N307Yv2zFxbZYFldRFvgcSv7oIDsrOTXTh9Y6gUUumiYG8lTqFofc/hOl/fk9rGzlKp/ 5m5TnOvQ3kiQ90GoS6Gz4+EAenwoXJu3LmiMQmHDqB8P0reg5CKaBw73sFakErE5qFXF TFo5fCbiNyufXEqBLBXBh6SmXaiPQVghXxjpH6AtQAgYaRrUT42cvIGazOG2QPhkF+2i IrZg== 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d4si2589538otp.214.2020.03.02.17.46.53; Mon, 02 Mar 2020 17:47:07 -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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726890AbgCCBqo (ORCPT + 99 others); Mon, 2 Mar 2020 20:46:44 -0500 Received: from mail-oi1-f193.google.com ([209.85.167.193]:44175 "EHLO mail-oi1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726773AbgCCBqn (ORCPT ); Mon, 2 Mar 2020 20:46:43 -0500 Received: by mail-oi1-f193.google.com with SMTP id d62so1336584oia.11; Mon, 02 Mar 2020 17:46:43 -0800 (PST) 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=0fZprhK1W/+54HzE9JKB5hhmjgGt264/Y236IBMlW68=; b=lR/4o+07bzBzlRkdlfv0gattUouxgkExDjVvOmrFA31b+x7/mz1mIwT75EsQjFMRPG jp+B9VfvE0pitJaueic08AgwQ22RiLEhY2Jy2Gbfr6oSR7PVcesVv90OfCMcoVAEZBwT J1Mi0R6UZ3IqnTLlATz6RbRs/ojdo/nwUOLLjZCwNfVCxvv1FqZA8eMc34+VVowF06R3 7LxZQ/lCd9j8Vr5zIeJfKrBP0Miwlr0MLTW/+eUT84BhMLZ6F1hZM+Px+qLHd+m/1k9c 9OZyVBGyG9w2t8ApUjIouni2mIYpdx15R7T1XKzAE4IILRTQ/o9SpIJwALmAx0TKioZK UVeA== X-Gm-Message-State: ANhLgQ1d7KbHJeb4DSDsBM+sObWqwhYovrwGXAHnVMqXWdj9R2/Sgc5K 3Ssjkou1aEg/Z2orsuTIdg== X-Received: by 2002:aca:bfc2:: with SMTP id p185mr936911oif.57.1583200002745; Mon, 02 Mar 2020 17:46:42 -0800 (PST) Received: from rob-hp-laptop (24-155-109-49.dyn.grandenetworks.net. [24.155.109.49]) by smtp.gmail.com with ESMTPSA id m19sm7258226otn.47.2020.03.02.17.46.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 Mar 2020 17:46:42 -0800 (PST) Received: (nullmailer pid 467 invoked by uid 1000); Tue, 03 Mar 2020 01:46:40 -0000 Date: Mon, 2 Mar 2020 19:46:40 -0600 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, shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, linux-imx@nxp.com, linux-arm-kernel@lists.infradead.org, linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v4 7/8] ASoC: dt-bindings: fsl_easrc: Add document for EASRC Message-ID: <20200303014640.GA26270@bogus> References: <2aa0b446c3e2af59e3472d8f7706298691ec4a5c.1583039752.git.shengjiu.wang@nxp.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <2aa0b446c3e2af59e3472d8f7706298691ec4a5c.1583039752.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 Sun, Mar 01, 2020 at 01:24:18PM +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 | 96 +++++++++++++++++++ > 1 file changed, 96 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..500af8f0c8f0 > --- /dev/null > +++ b/Documentation/devicetree/bindings/sound/fsl,easrc.yaml > @@ -0,0 +1,96 @@ > +# SPDX-License-Identifier: GPL-2.0 Dual license new bindings: (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: > + oneOf: > + - items: You can drop oneOf and items here. > + - enum: > + - fsl,imx8mn-easrc Blank line between properties please. > + reg: > + maxItems: 1 > + > + interrupts: > + maxItems: 1 > + > + clocks: > + items: > + - description: Peripheral clock > + > + clock-names: > + items: > + - const: mem > + > + dmas: > + maxItems: 8 > + > + dma-names: > + oneOf: Drop oneOf as there is only one. > + - 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 > + > + fsl,easrc-ram-script-name: > + $ref: /schemas/types.yaml#/definitions/string > + description: The coefficient table for the filters Need to define the exact string(s). > + > + fsl,asrc-rate: > + $ref: /schemas/types.yaml#/definitions/uint32 > + description: Defines a mutual sample rate used by DPCM Back Ends Constraints? > + > + fsl,asrc-format: > + $ref: /schemas/types.yaml#/definitions/uint32 > + description: Defines a mutual sample format used by DPCM Back Ends Constraints? > + > +required: > + - compatible > + - reg > + - interrupts > + - clocks > + - clock-names > + - dmas > + - dma-name dma-names > + - fsl,easrc-ram-script-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"; > + fsl,easrc-ram-script-name = "imx/easrc/easrc-imx8mn.bin"; > + fsl,asrc-rate = <8000>; > + fsl,asrc-format = <2>; > + status = "disabled"; Don't show status in examples. > + }; > -- > 2.21.0 >