From patchwork Sat Mar 10 02:24:38 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinivas Kandagatla X-Patchwork-Id: 10273035 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 6CCA860236 for ; Sat, 10 Mar 2018 02:32:34 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5C32C29CE3 for ; Sat, 10 Mar 2018 02:32:34 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 4F5BA29D3E; Sat, 10 Mar 2018 02:32:34 +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=-1.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID autolearn=ham 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 C3B3229CE3 for ; Sat, 10 Mar 2018 02:32:33 +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=c7PbLNfxFEzBXgPA9w0ge4/Tt1/1YJGD/0ltLgwHKYc=; b=Kk+KmJ+RtID7GWdY2DDRF1YT8W SF6if8dt7E+0wkE6nuWU2E045lKVsGoDgHa+lsVC/XNCgWpvXimZL9UAnU4tN7z2wJJ5fNrE3Yn9w l/dlo7It3y0OdaE0jx69fXLUTRIiUCW3O843pYhcNFCY0jIvnv2SSuq3NWPbDrrMOfSH0cV5KKz1V 50aA0FYopTVkB6aqDDzkefrYw8GqUeHTCSJvD65YNLAKEaXI904cNtQ7I0RZp43+bQ567J3jYwSsK 9pTy0pnTMmxCc1pSqw8zPov/7HgGpqOUHr21utLlvy/Avy6lp6J6VpNpuftJLZ6UNwaC9cGegOFKx Fphw3opg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.89 #1 (Red Hat Linux)) id 1euUJ9-0006AX-7j; Sat, 10 Mar 2018 02:32:27 +0000 Received: from mail-wm0-x242.google.com ([2a00:1450:400c:c09::242]) by bombadil.infradead.org with esmtps (Exim 4.89 #1 (Red Hat Linux)) id 1euUEr-0002YX-Gg for linux-arm-kernel@lists.infradead.org; Sat, 10 Mar 2018 02:28:19 +0000 Received: by mail-wm0-x242.google.com with SMTP id x7so6985326wmc.0 for ; Fri, 09 Mar 2018 18:27:51 -0800 (PST) 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=5RoroAqka1QiRkDT0H3/wN8yePmLtx+aMNSdBlanLuo=; b=h8lWMzSGhaYPymeam4moGtHBZQp/1t91PoZabP7HhBHNpUlP4ViackL67llme/p2dM mOH18782YGT+zGNcHR6607MpE8aijD/kMYLl9D3Up7WDSXAGX2qY15w4E7nEqatI1K+a KpVPpUzQFj1+h7fD1Wf4JcjmbgByixkAPtlXg= 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=5RoroAqka1QiRkDT0H3/wN8yePmLtx+aMNSdBlanLuo=; b=Gpsjyq8RT/SwTgcuujTSeYWwEu8ffOu0UOYqVhfOkSk3M8nVlDVIJf+vV4ZYffsqo6 UAbVnjulkFn/nTnKDdZwfQ34ahXQVW7ugkppolKbrJSWo9DOhQNnyqgyoEpR+rSYlW4p w9UBTPN3oMfhyjpKB4JdmVn9Xl8nJ0QrvbZDV8y/GAThkkUd/a6L4vlX2UaGhz0tBikc +24dOrPkO79PeofBFWYp553XCgAQNVAmssEL8LDXNhz3ayYm4eg+a+p/AUIz38C5Q3TL mLJ36vWtSMOIWxRRJOfcqjnJJMVsIgu7VAt6gIv10wz/Ejue/uCNNJ9GrxEwDYMiaVJf fK8Q== X-Gm-Message-State: AElRT7FyFtxVLD/ILIw7P+8x0eD2razk7q7nrDXeCqiesphwsoREI9EN htXbxTqY162VLS67qOJ8p7cr8MGCmao= X-Google-Smtp-Source: AG47ELuOouk8Lw4D4aMq+6RjqwQF4DCz/QNJ1YTvoNX9DNh0xheJO8YsQfQTMmZxhxGL6YgEvYIixQ== X-Received: by 10.28.62.16 with SMTP id l16mr77377wma.54.1520648869814; Fri, 09 Mar 2018 18:27:49 -0800 (PST) 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 g78sm21489wmc.31.2018.03.09.18.27.48 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 09 Mar 2018 18:27:49 -0800 (PST) From: srinivas.kandagatla@linaro.org To: andy.gross@linaro.org, broonie@kernel.org, linux-arm-msm@vger.kernel.org, alsa-devel@alsa-project.org, robh+dt@kernel.org Subject: [PATCH v4 06/24] ASoC: qdsp6: dt-bindings: Add q6asm dt bindings Date: Sat, 10 Mar 2018 02:24:38 +0000 Message-Id: <20180310022456.26739-7-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 2.15.1 In-Reply-To: <20180310022456.26739-1-srinivas.kandagatla@linaro.org> References: <20180310022456.26739-1-srinivas.kandagatla@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180309_182802_249303_06A2AFAC X-CRM114-Status: GOOD ( 13.82 ) 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, bgoswami@codeaurora.org, rohkumar@qti.qualcomm.com, gregkh@linuxfoundation.org, plai@codeaurora.org, lgirdwood@gmail.com, tiwai@suse.com, david.brown@linaro.org, srinivas.kandagatla@linaro.org, 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 From: Srinivas Kandagatla This patch add DT bindings for ASM (Audio Stream Manager) DSP module. Signed-off-by: Srinivas Kandagatla --- .../devicetree/bindings/sound/qcom,q6asm.txt | 34 ++++++++++++++++++++++ include/dt-bindings/sound/qcom,q6asm.h | 22 ++++++++++++++ 2 files changed, 56 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..84703747db3c --- /dev/null +++ b/Documentation/devicetree/bindings/sound/qcom,q6asm.txt @@ -0,0 +1,34 @@ +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 coommon apr service bindings +used by the apr service device. + +- but must contain the following property: + +- compatible: + Usage: required + Value type: + Definition: must be "qcom,asm-v.". + Or "qcom,asm" where the version number can be queried + from DSP. + example "qcom,asm-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: q6asm { + compatible = "qcom,q6asm"; + qcom,apr-svc-name = "ASM"; + qcom,apr-svc-id = ; + 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..2e11b15d930d --- /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__ */