From patchwork Mon Sep 3 12:34:53 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinivas Kandagatla X-Patchwork-Id: 10585807 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 34580920 for ; Mon, 3 Sep 2018 12:37:48 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 20E8A2903B for ; Mon, 3 Sep 2018 12:37:48 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 15126294EB; Mon, 3 Sep 2018 12:37:48 +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.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE,T_DKIM_INVALID 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 6A6DB2903B for ; Mon, 3 Sep 2018 12:37:47 +0000 (UTC) Received: from alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id 9D6DE267830; Mon, 3 Sep 2018 14:37:39 +0200 (CEST) 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 CDCA4267819; Mon, 3 Sep 2018 14:37:35 +0200 (CEST) Received: from mail-wr1-f68.google.com (mail-wr1-f68.google.com [209.85.221.68]) by alsa0.perex.cz (Postfix) with ESMTP id 705792676C6 for ; Mon, 3 Sep 2018 14:37:33 +0200 (CEST) Received: by mail-wr1-f68.google.com with SMTP id z96-v6so498390wrb.8 for ; Mon, 03 Sep 2018 05:37:33 -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=a+gI26lyns6hC1V60ut4yEh2GS5VZAaewovdMW5NRgg=; b=JHcBIfvzUvhPgHDyQE2buEKr3EIVOrzX050yoxEWWIYsaWerRPZCeD9DfR6Z87xHPj rsv/nTZESIJEdz6rQeQIpBCp+z7Xl/vF28Re6n+MwqdfenV4i41cBIxQZpOKUPak2JWg 2JiwTLkJuzjCtUcnhw6jzT0eZvNk0F8zn24Tc= 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=a+gI26lyns6hC1V60ut4yEh2GS5VZAaewovdMW5NRgg=; b=omdz8VC30pekTYzghvyrO3duPgQSnp4l5xnfmQHcSSOq1ycMAUnvk3V2Kzwklnhx+j 3EBfg7EAehQTY6kWLrYIZkuKQLaqScasKk+lls+OU6hz1IZxELVHUt3nQkx6kKW3dAsM IDF+fK0us4WTmmFwz1qWQdPb0J229Fda+zA+MZNb4NVUCqUoO2gNGARG7aisQfdytBEf 4CjZP8p4t1KSHcJlYpJvqtLcjzPv4W+duGeLGXygmEPGw7/Ji0gM2RYO1chCWPJi7dno 2CUl8L+DHv+l0pMhaIXcP2ANUM2PVNXuOS31vPkfVdDCcMaB2cng+hTGMHpdGrmNkfki bWhw== X-Gm-Message-State: APzg51AhCwRgvGbIQaIm9A1gYeKzBLpBCjmmYnuo4CLEb4/c6D2yKPut aTcLAAGff/BsFbzV4nDaMaNowg== X-Google-Smtp-Source: ANB0VdYY1yivRRJPD3947MXKVBeYSoo/IBIswba6/pJLOlTgUcsRTM7g/LMfLoQYjRgcRXQb7m4Vyg== X-Received: by 2002:adf:e991:: with SMTP id h17-v6mr19787727wrm.238.1535978252921; Mon, 03 Sep 2018 05:37:32 -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 j44-v6sm27481099wre.40.2018.09.03.05.37.31 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 03 Sep 2018 05:37:32 -0700 (PDT) From: Srinivas Kandagatla To: broonie@kernel.org, alsa-devel@alsa-project.org, robh+dt@kernel.org Date: Mon, 3 Sep 2018 13:34:53 +0100 Message-Id: <20180903123455.9290-2-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20180903123455.9290-1-srinivas.kandagatla@linaro.org> References: <20180903123455.9290-1-srinivas.kandagatla@linaro.org> Cc: mark.rutland@arm.com, devicetree@vger.kernel.org, bgoswami@codeaurora.org, lgirdwood@gmail.com, tiwai@suse.com, linux-kernel@vger.kernel.org, vkoul@kernel.org, rohitkr@codeaurora.org, Srinivas Kandagatla Subject: [alsa-devel] [PATCH 1/3] 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: , MIME-Version: 1.0 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; + }; }; };