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: 145788 Delivered-To: patch@linaro.org Received: by 2002:a2e:1648:0:0:0:0:0 with SMTP id 8-v6csp2441857ljw; Mon, 3 Sep 2018 05:37:37 -0700 (PDT) X-Google-Smtp-Source: ANB0Vda8yFG6lBmtUtmIxnuHDgYqBl9ZymnAp0eFmwSdddaFAiFumNfu5x0Z0CHG2J4TjKgpJHh/ X-Received: by 2002:a63:a112:: with SMTP id b18-v6mr26244384pgf.384.1535978257424; Mon, 03 Sep 2018 05:37:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535978257; cv=none; d=google.com; s=arc-20160816; b=ZFGh7qg66Jnmfi+h77Bm8E3QSdQB81rMLmfBdxpk5He07Q+MwNt7gNdggrY4IMT+vT 189fHz6opOAEnvZArWdrwcBVATUOIAZdKntKwhZRFNgUDpBiQXA/PSNRvinPf1aRkYmi PBvXNrYW8Yut+IUP3RbL6z00tFzOAi/XryHridhx6DkJkxpZFxx0UEcw5tojKVAYcABl qOxsKPSV9SS+zfpQSPT3LBNoObyc9E5W0SyO1VHgrJYigzfXWUGtpdOABR1tQ+YptdMK lLqkAOB6igVAi1eEV0Rtv3gxFHA1hPCZabZS2Ww22Wfj2Qwxi1pMECmH9ZS6imn89Cxc 7B4g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=a+gI26lyns6hC1V60ut4yEh2GS5VZAaewovdMW5NRgg=; b=QjUF7+qVetYkAwAOBvCInDxx3XSn5YghwMRueUgtDHlX9sS4JGLUctyeUl38my7S18 3XDMTi4sG0Ujj9YjdjshuxTM8UdVK0dwhLvkSn7+o/Eg5f+JNQqL893L6/Vmztz3Hl/D TJ1kvfeAveirrhDPqLqT7EeWma3uXLcuN4uK4/hYlqvxxymKcmFQQLdqST41DmGB72wh vnCqfJUDRgtEQqCMdC4cJaeqxMmZNrt4Pp3qKjxabbULZHZxGSaSKKWiezggGK6lz19j wqRi+9DenQVNc9OQbK9QNGMvhrPIZZkwS0yEoFtHQHdS2ofwJesmd1hEsdwIPK0l4NBe oKGQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=JHcBIfvz; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t16-v6si17805666pgi.457.2018.09.03.05.37.37; Mon, 03 Sep 2018 05:37:37 -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; dkim=pass header.i=@linaro.org header.s=google header.b=JHcBIfvz; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727340AbeICQ5c (ORCPT + 32 others); Mon, 3 Sep 2018 12:57:32 -0400 Received: from mail-wr1-f65.google.com ([209.85.221.65]:44606 "EHLO mail-wr1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725955AbeICQ5b (ORCPT ); Mon, 3 Sep 2018 12:57:31 -0400 Received: by mail-wr1-f65.google.com with SMTP id v16-v6so475118wro.11 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=TFcwABi/jUgjNHb2PmEmZcBMLHt0yNK4L+w911NfS7qLZOwax+G38Id2JErqMg4zHU wc1+fSZ5rZM8cjJWwPOxavl29UgpE6wkKrsRnMZu8NwbWQVhzUUoJhejS7h6eVL273w7 ffH5UpU++hkIFwn2KxPu42B43RkGzk4M5+be0EMRsgi9sSVSJvuTm5ckws7GS+JsmRDI uyObx5QrFbiCn5EcYFjuytXaGWez5vSY67ydKEBY+JnnTwCkG5pxQ+4WhzmO4CR605XQ cqtmq0DSuxhPagCCgWcFZyQ25KDHSYxSj/QYHghhroGdJJBy7gIWomtTBditby4uRxS6 NNLQ== X-Gm-Message-State: APzg51DmfYkpIZNBlsDhu9OSaa+pfa4yBvGcMPL0dzdPx+PVeg4EjDMc 8IOBUBhTpPuMjKsMNiU8+4oMOw== 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 Cc: linux-kernel@vger.kernel.org, vkoul@kernel.org, bgoswami@codeaurora.org, rohitkr@codeaurora.org, lgirdwood@gmail.com, tiwai@suse.com, perex@perex.cz, devicetree@vger.kernel.org, mark.rutland@arm.com, Srinivas Kandagatla Subject: [PATCH 1/3] ASoC: q6asm-dai: dt-bindings: Add support to compress dais 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> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- .../devicetree/bindings/sound/qcom,q6asm.txt | 27 +++++++++++++++++++ 1 file changed, 27 insertions(+) -- 2.18.0 Reviewed-by: Vinod Koul 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; + }; }; };