Received: by 10.192.165.148 with SMTP id m20csp774680imm; Fri, 27 Apr 2018 07:19:51 -0700 (PDT) X-Google-Smtp-Source: AB8JxZphNMo5xF6zN6MOvzL19DpPwxoUUBmM+sSjnilrbjj+QZG+LO2of9zdkxIFlZpTlQQdSqu5 X-Received: by 2002:a63:6385:: with SMTP id x127-v6mr2311157pgb.50.1524838791192; Fri, 27 Apr 2018 07:19:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524838791; cv=none; d=google.com; s=arc-20160816; b=IhMjsTr+hHoeKslLfVIb1C80/fq7YIGOjMq8mFon6xxaZX47TgWJEkYDNh+r3YjUxw uKezyESc4nBLd0q/7yaDH7bHvVTLdrwPZj1Fy0V3YMGYHHLts/OB4Vhus6a1qMiIEjwA sMFn3FkvVuePRz2maAT0IO3BSpcNPN+L+xrhr94aXj6mLDR9ZMTyDcTx2TAqng59s/mo wP624O8p/bqcTUxhYXj1pE9uDbyB8afxKhcbVWVXepKRnTADvxNrKX8zZo+8/xog4iei Zgcoz56ruWkebnReAXIjXdxj1RTt4JxWKPhpD4DD5Tq94hxqOQUz1XUVjkwXlrknjVr0 tNog== 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:arc-authentication-results; bh=+Bqh4Jg6d4LMpl6JY3zk3itVWi7KPbLQ18q35bTni34=; b=UZmwAwDwzf6jDu3cWbMTv/innDSKg/o4P0UlqEiOibpMLvuTwFxw2Q4U4Sr+CeZ1JD 7FueUyY/442camripYx1xdokW4bAFkp9UoEx0MY0JsyX8n8TZ9zijX26CYKydmp3+KGD 8lIE2St7CJwBCgpkIX9ZQ0u9VOPoYFF83mUd7YR/sv+G9nykD17wZB/DUAshw31mFSQz b+TLx7Pu6V5mBiflt6qfCkqLzo6YCV87cDf2r6TqXBFsZFKum5FFjU74pL8P51+ekIBo da1I4/IRYHTOEVBUMyNLwHE+BgTJ49rzC61nxqKQPqCdIP9XZxGrh2UJu6Fi7ZiBqjCx lWlg== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s16-v6si1312842plp.487.2018.04.27.07.19.37; Fri, 27 Apr 2018 07:19:51 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S935524AbeD0ORu (ORCPT + 99 others); Fri, 27 Apr 2018 10:17:50 -0400 Received: from mail-oi0-f67.google.com ([209.85.218.67]:40531 "EHLO mail-oi0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S935360AbeD0OR2 (ORCPT ); Fri, 27 Apr 2018 10:17:28 -0400 Received: by mail-oi0-f67.google.com with SMTP id c203-v6so1705660oib.7; Fri, 27 Apr 2018 07:17:28 -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=+Bqh4Jg6d4LMpl6JY3zk3itVWi7KPbLQ18q35bTni34=; b=gJL1HD1Xq0+yvGi1fIDsdpgndN+wDECuU4QoFWa/DCRFYQJ/844tIVU9LJ8OfeiQiK erwFjUO2vsTxbKsl+J5rDBrdyruNLyxF1i4Id7RgaBXJGfWJYXl2D0aRK218sA75QqPh 7+jwRBS/ydCq8P5EZb2eSNhdTLSg8AGLwaUS2jJjTbIjNcfCwQczBba6uxgt4xINOniN SD3oknTi1xjipnmmte1AlrluFdPPg98P79ZwdjB+w/A46dhyutNyBkkYEXwvI4ckUVqE NyDZQs3/HN+H+9NngOM8Q1oPmeGMe6hELqV9S9AbFXfC943ft+0RbWMAmdFPvqAwu5jJ oPhQ== X-Gm-Message-State: ALQs6tAc2XVsymrJzwxb15IjHN41gtB7ASmeZ2ytY7tnGNG50yhloT3L 7KDzMmjKkGxWEMmeMUgMv/sF4Fc= X-Received: by 2002:aca:1716:: with SMTP id j22-v6mr1452739oii.336.1524838648199; Fri, 27 Apr 2018 07:17:28 -0700 (PDT) Received: from localhost (216-188-254-6.dyn.grandenetworks.net. [216.188.254.6]) by smtp.gmail.com with ESMTPSA id a42-v6sm540129otj.23.2018.04.27.07.17.26 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 27 Apr 2018 07:17:26 -0700 (PDT) Date: Fri, 27 Apr 2018 09:17:26 -0500 From: Rob Herring To: srinivas.kandagatla@linaro.org Cc: andy.gross@linaro.org, broonie@kernel.org, linux-arm-msm@vger.kernel.org, alsa-devel@alsa-project.org, bgoswami@codeaurora.org, gregkh@linuxfoundation.org, david.brown@linaro.org, mark.rutland@arm.com, lgirdwood@gmail.com, plai@codeaurora.org, tiwai@suse.com, perex@perex.cz, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, rohkumar@qti.qualcomm.com, spatakok@qti.qualcomm.com Subject: Re: [PATCH v6 06/24] ASoC: qdsp6: dt-bindings: Add q6asm dt bindings Message-ID: <20180427141726.f2wrdhm7qwl6de2l@rob-hp-laptop> References: <20180426094606.4775-1-srinivas.kandagatla@linaro.org> <20180426094606.4775-7-srinivas.kandagatla@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180426094606.4775-7-srinivas.kandagatla@linaro.org> User-Agent: NeoMutt/20170609 (1.8.3) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Apr 26, 2018 at 10:45:48AM +0100, srinivas.kandagatla@linaro.org wrote: > From: Srinivas Kandagatla > > This patch add DT bindings for ASM (Audio Stream Manager) DSP module. > > Signed-off-by: Srinivas Kandagatla > Reviewed-and-tested-by: Rohit kumar > --- > .../devicetree/bindings/sound/qcom,q6asm.txt | 33 ++++++++++++++++++++++ > include/dt-bindings/sound/qcom,q6asm.h | 22 +++++++++++++++ > 2 files changed, 55 insertions(+) > create mode 100644 Documentation/devicetree/bindings/sound/qcom,q6asm.txt > create mode 100644 include/dt-bindings/sound/qcom,q6asm.h > > diff --git a/Documentation/devicetree/bindings/sound/qcom,q6asm.txt b/Documentation/devicetree/bindings/sound/qcom,q6asm.txt > new file mode 100644 > index 000000000000..2178eb91146f > --- /dev/null > +++ b/Documentation/devicetree/bindings/sound/qcom,q6asm.txt > @@ -0,0 +1,33 @@ > +Qualcomm Audio Stream Manager (Q6ASM) binding > + > +Q6ASM is one of the APR audio service on Q6DSP. > +Please refer to qcom,apr.txt for details of the common apr service bindings > +used by the apr service device. > + > +- but must contain the following property: > + > +- compatible: > + Usage: required > + Value type: > + Definition: must be "qcom,q6asm-v.". > + Or "qcom,q6asm" where the version number can be queried > + from DSP. > + example "qcom,q6asm-v2.0" > + > += ASM DAIs (Digial Audio Interface) > +"dais" subnode of the ASM node represents dai specific configuration > + > +- #sound-dai-cells > + Usage: required > + Value type: > + Definition: Must be 1 > + > += EXAMPLE > + > +q6asm@7 { > + compatible = "qcom,q6asm"; > + reg = ; > + q6asmdai: dais { > + #sound-dai-cells = <1>; > + }; > +}; > diff --git a/include/dt-bindings/sound/qcom,q6asm.h b/include/dt-bindings/sound/qcom,q6asm.h > new file mode 100644 > index 000000000000..1eb77d87c2e8 > --- /dev/null > +++ b/include/dt-bindings/sound/qcom,q6asm.h > @@ -0,0 +1,22 @@ > +/* SPDX-License-Identifier: GPL-2.0 */ > +#ifndef __DT_BINDINGS_Q6_ASM_H__ > +#define __DT_BINDINGS_Q6_ASM_H__ > + > +#define MSM_FRONTEND_DAI_MULTIMEDIA1 0 > +#define MSM_FRONTEND_DAI_MULTIMEDIA2 1 > +#define MSM_FRONTEND_DAI_MULTIMEDIA3 2 > +#define MSM_FRONTEND_DAI_MULTIMEDIA4 3 > +#define MSM_FRONTEND_DAI_MULTIMEDIA5 4 > +#define MSM_FRONTEND_DAI_MULTIMEDIA6 5 > +#define MSM_FRONTEND_DAI_MULTIMEDIA7 6 > +#define MSM_FRONTEND_DAI_MULTIMEDIA8 7 > +#define MSM_FRONTEND_DAI_MULTIMEDIA9 8 > +#define MSM_FRONTEND_DAI_MULTIMEDIA10 9 > +#define MSM_FRONTEND_DAI_MULTIMEDIA11 10 > +#define MSM_FRONTEND_DAI_MULTIMEDIA12 11 > +#define MSM_FRONTEND_DAI_MULTIMEDIA13 12 > +#define MSM_FRONTEND_DAI_MULTIMEDIA14 13 > +#define MSM_FRONTEND_DAI_MULTIMEDIA15 14 > +#define MSM_FRONTEND_DAI_MULTIMEDIA16 15 Do you plan to add more? I find the defines here fairly pointless. Nothing says cell values need to be 0 based, so you could just use 1-16 directly. In any case, Reviewed-by: Rob Herring Rob