From patchwork Thu Nov 15 18:13:22 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinivas Kandagatla X-Patchwork-Id: 10684821 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 0DA0313BB for ; Thu, 15 Nov 2018 18:16:01 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id F1F7B2CD68 for ; Thu, 15 Nov 2018 18:16:00 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E60FE2CE2C; Thu, 15 Nov 2018 18:16:00 +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.7 required=2.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2E6822CD68 for ; Thu, 15 Nov 2018 18:16:00 +0000 (UTC) Received: from alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id B4AA4267B16; Thu, 15 Nov 2018 19:15:38 +0100 (CET) X-Original-To: alsa-devel@alsa-project.org Delivered-To: alsa-devel@alsa-project.org Received: by alsa0.perex.cz (Postfix, from userid 1000) id 912C1267B07; Thu, 15 Nov 2018 19:15:34 +0100 (CET) Received: from mail-wr1-f66.google.com (mail-wr1-f66.google.com [209.85.221.66]) by alsa0.perex.cz (Postfix) with ESMTP id 10483267AFF for ; Thu, 15 Nov 2018 19:15:33 +0100 (CET) Received: by mail-wr1-f66.google.com with SMTP id j17-v6so22221441wrq.11 for ; Thu, 15 Nov 2018 10:15:33 -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 :mime-version:content-transfer-encoding; bh=avO3Jb5XTMv2tnrPkaTW5Kc01HF/m3+otreEVZeHHFk=; b=VTDD3gwhgDIPz5nedhd5G093CeMP5MBrm1dIUNevSVuqkvu9dAj1O1Jgm2m1UQoZId WiiTINybGZ58hv2HZ2GWUPIQI5aWUN8B/02y9504NHQa1YmsC86NdhciT/s2aZp/m02l C4YPO9PAY6yaB3fwN1evcMZR0acfLeD8D9JBY= 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:mime-version:content-transfer-encoding; bh=avO3Jb5XTMv2tnrPkaTW5Kc01HF/m3+otreEVZeHHFk=; b=bZgtGHvsPaa61omsmxbQuE9AQGtRx3iGGkRv8+McwVCniCPbizZLhSE41weiVDJO4Q ilCZpdHEeaQ6hpyRS1nAKFwfqXtlp8kuNLz2nrPOgDO2POmtu/6pspMo4ZcjvlpqPhEm z2rGQIDxrbbUxqgzbwI7PJ3JmVbmqcFc6lcq1AEOtxDK2aq3q5v4ldLDBDht2ld/iGys EnGNPTD0FAzYotKYMxNfyJCpW4pLVMu9e18+/chLmYuQvR7CEJZyLNLVoNG7Q5/dTrMt 3qWOd7jLLREz6DHyQK0CL+w5f8DfOFkInXlVQK8O0qVt+Vom56pnszf2GBkHNh8rMMCN Ylzw== X-Gm-Message-State: AGRZ1gIcqvcJRE82wgadp7/1YGveVnNemqtc6pAzxzrvfnIyeGAes4F4 9C0ETGGkomtQw5nBXBFV/boJdQ== X-Google-Smtp-Source: AJdET5cTVtDvwaztQBzYS0OdKrezVBP4eDKVyEncR/n2l5jksEqbwcWtiqMi1Gg4VEGkwYhBdR3vVg== X-Received: by 2002:a5d:4b8b:: with SMTP id b11-v6mr6964115wrt.72.1542305732679; Thu, 15 Nov 2018 10:15:32 -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 r76-v6sm20934737wmb.21.2018.11.15.10.15.31 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 15 Nov 2018 10:15:31 -0800 (PST) From: Srinivas Kandagatla To: broonie@kernel.org, vkoul@kernel.org Date: Thu, 15 Nov 2018 18:13:22 +0000 Message-Id: <20181115181324.26784-4-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20181115181324.26784-1-srinivas.kandagatla@linaro.org> References: <20181115181324.26784-1-srinivas.kandagatla@linaro.org> MIME-Version: 1.0 Cc: devicetree@vger.kernel.org, alsa-devel@alsa-project.org, bgoswami@codeaurora.org, tiwai@suse.com, linux-kernel@vger.kernel.org, lgirdwood@gmail.com, robh+dt@kernel.org, rohitkr@codeaurora.org, srini@kernel.org, Srinivas Kandagatla Subject: [alsa-devel] [PATCH v3 3/5] ASoC: q6asm-dai: dt-bindings: Add support to compress dais X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org X-Virus-Scanned: ClamAV using ClamSMTP This patch adds board specific bindings required for dais, In particular for compressed dais and dai direction. Board specific setup involves setting up some of dais as compressed dais and also specify direction of any dai. Some of the dais might only support capture/playback depending on the board level wiring. These two new dt properties will allow such flexibilty at board level dts. Signed-off-by: Srinivas Kandagatla Reviewed-by: Vinod Koul Reviewed-by: Rob Herring --- .../devicetree/bindings/sound/qcom,q6asm.txt | 27 +++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/Documentation/devicetree/bindings/sound/qcom,q6asm.txt b/Documentation/devicetree/bindings/sound/qcom,q6asm.txt index f9c7bd8c1bc0..9f5378c51686 100644 --- a/Documentation/devicetree/bindings/sound/qcom,q6asm.txt +++ b/Documentation/devicetree/bindings/sound/qcom,q6asm.txt @@ -27,6 +27,28 @@ used by the apr service device. Value type: Definition: Must be 1 +== ASM DAI is subnode of "dais" and represent a dai, it includes board specific +configuration of each dai. Must contain the following properties. + +- reg + Usage: required + Value type: + Definition: Must be dai id + +- direction: + Usage: Required for Compress offload dais + Value type: + Definition: Specifies the direction of the dai stream + 0 for both tx and rx + 1 for only tx (Capture/Encode) + 2 for only rx (Playback/Decode) + +- is-compress-dai: + Usage: Required for Compress offload dais + Value type: + Definition: present for Compress offload dais + + = EXAMPLE q6asm@7 { @@ -35,5 +57,10 @@ q6asm@7 { q6asmdai: dais { compatible = "qcom,q6asm-dais"; #sound-dai-cells = <1>; + mm@0 { + reg = <0>; + direction = <2>; + is-compress-dai; + }; }; };