From patchwork Wed May 9 12:56:17 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinivas Kandagatla X-Patchwork-Id: 10389487 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id B480460318 for ; Wed, 9 May 2018 13:06:30 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A3AA228F32 for ; Wed, 9 May 2018 13:06:30 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9845028FA8; Wed, 9 May 2018 13:06:30 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI autolearn=unavailable version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id D712028FB5 for ; Wed, 9 May 2018 13:06:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=my2C/XzoKCAdB8Ggj/rYpuPwG0IRsux3AWOobs4MzHM=; b=nhljOHgBYRBq2ULqlYgSnBnohj cjkUGYz7wKHHojkQIm9IlEmJh+z9VytOdx/UC5I1Skh3mb3U7+Nzz2jkJ50uXBoOG4tiE/yffsYLP A+Xvwj9ASeknA0dLkj/tAAcZ9v3DZ8LpumVG869j3xNCcv1YVGvoOOFC8te/OwUo4/7E+mI4cg9y+ 1kZ1SHwWZF6WBoMWnNVeEh8vlsJdOFgfdyT67SDX6clLqXfgLzyj2ofEV1TxY2ee0wNnBE7nNlgAI u2aCB9t3KKWrcNYLAIC0sar2ZwxVNnt/OmCdR7YnO0L0UAZ2M0sQOIx5AC3tdYcWsa3bnhyorpcJV 4GMuEUIQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1fGOnN-0005G0-HF; Wed, 09 May 2018 13:06:13 +0000 Received: from mail-wm0-x243.google.com ([2a00:1450:400c:c09::243]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1fGOiE-0001zh-9S for linux-arm-kernel@lists.infradead.org; Wed, 09 May 2018 13:01:01 +0000 Received: by mail-wm0-x243.google.com with SMTP id a8so24573586wmg.5 for ; Wed, 09 May 2018 06:00:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=TonztnZFUfzr96dQ6USPYmlNzO7FCoMzce/zgXpMmwg=; b=KXPrJwFul1zTkqThgjCW95nWSpIZTW2BuyGpNe3JihZZsF7g3aQPcXGO9HB+v8Y3RU 0aDwa7Q3ptlY7iH+EZCwEEX73LJhx5RLebPixQAEMA6eLq3v7JfkUoSN6Soqk64/+aMh qkxedSdy00TgknqfW+n+3Q9HRjKnsh3n4tya4= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=TonztnZFUfzr96dQ6USPYmlNzO7FCoMzce/zgXpMmwg=; b=cZEO+FCFGRbzh4OZKKdNL1f2QYPJy+2SI8SrjmSZgjGr0L0XsSq5+os2kE0LaB1AbO 6gTAG0BxFVrgn3PFmfBo46dIs1iFqBIPuFekH1lvy0Cxk6+5jqRDpYdgXhsyQ8o40ElZ PNhCKrXEDD9R8RpraadMe9KH1STwVpGUac+Aq9qEe9TOze3oR4eLEvw9wNKHvnNq19A5 pKSQ3bGHeuFPTx1X7/t6KzDF1reVUKnjN4xcbfTa9PXGW4z0wH9dauEk//93khadwk9z WxIbEtegUiSwpGvjjd8U/GJuy+UjgCqpCvVmK9kV5WJTmSxurJEylgNd5wiNxc9b199K SY4g== X-Gm-Message-State: ALQs6tDqM+yv5x3yd8bXdrbpFCgaZmFxg9hsxpJzMKAfR2ygL/cW98CA 68fQpXkCZLEFWt+hTJn8HLPQ9w== X-Google-Smtp-Source: AB8JxZrhnXziQ3yjd/9eKCAgq0tVbx+ZqGZPT6EQ43DuwJQPwEbjeMDju5nim873MVifcY2Q8yyhhw== X-Received: by 2002:a1c:c1c9:: with SMTP id r192-v6mr5511413wmf.120.1525870845596; Wed, 09 May 2018 06:00:45 -0700 (PDT) Received: from localhost.localdomain (cpc90716-aztw32-2-0-cust92.18-1.cable.virginm.net. [86.26.100.93]) by smtp.gmail.com with ESMTPSA id q2-v6sm29422963wrj.57.2018.05.09.06.00.44 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 09 May 2018 06:00:44 -0700 (PDT) From: Srinivas Kandagatla To: andy.gross@linaro.org, broonie@kernel.org, linux-arm-msm@vger.kernel.org, alsa-devel@alsa-project.org, robh+dt@kernel.org, bgoswami@codeaurora.org Subject: [PATCH v8 06/24] ASoC: qdsp6: dt-bindings: Add q6asm dt bindings Date: Wed, 9 May 2018 13:56:17 +0100 Message-Id: <20180509125635.5653-7-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 2.16.2 In-Reply-To: <20180509125635.5653-1-srinivas.kandagatla@linaro.org> References: <20180509125635.5653-1-srinivas.kandagatla@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180509_060054_422911_DEC435D0 X-CRM114-Status: GOOD ( 13.53 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: mark.rutland@arm.com, devicetree@vger.kernel.org, rohkumar@qti.qualcomm.com, gregkh@linuxfoundation.org, plai@codeaurora.org, tiwai@suse.com, lgirdwood@gmail.com, david.brown@linaro.org, Srinivas Kandagatla , linux-arm-kernel@lists.infradead.org, spatakok@qti.qualcomm.com, perex@perex.cz, linux-kernel@vger.kernel.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP This patch add DT bindings for ASM (Audio Stream Manager) DSP module. Signed-off-by: Srinivas Kandagatla Reviewed-and-tested-by: Rohit kumar Reviewed-by: Rob Herring Reviewed-by: Banajit Goswami --- .../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 + +#endif /* __DT_BINDINGS_Q6_ASM_H__ */