From patchwork Wed Sep 26 10:23:47 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinivas Kandagatla X-Patchwork-Id: 147560 Delivered-To: patch@linaro.org Received: by 2002:a2e:8595:0:0:0:0:0 with SMTP id b21-v6csp532572lji; Wed, 26 Sep 2018 03:26:05 -0700 (PDT) X-Google-Smtp-Source: ACcGV626pJW2/Pw+toUadadk6Kg3uZPTZRWU+YjjJ77PlWUtIIHWQJaR1emD9McEkqIaPdYkdxV+ X-Received: by 2002:a63:8442:: with SMTP id k63-v6mr5067836pgd.388.1537957565114; Wed, 26 Sep 2018 03:26:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537957565; cv=none; d=google.com; s=arc-20160816; b=VlqOHKDQlUmn8EKu/h7l4hSLJWyxKr5+UrX0/xr9F4MCPjA0gc6KxFXsRoVPVOvSjF mI6yzaPta0n/ooINuFVq2QQxCfFbwAhqs0WyO1H/ayKgeT9+cW0RfaX9+OyTvqGHmq9/ cTV2vkr0kti2p5WeOR23UampVDE7tpODMpLdnruNgcZfFzkFqWJLl/YemE0rOEL0Va76 MIILq/cw0+FqB14oVoG4UVQfaovIll9SvsXa0peNAeOv5qLp5uZm1OuEv93XVRg08rxN WXUdoY7PiRhRyTjhtJjfSKWWHh6nUXYZzpK6+hrV/p6+scH93g5yUeISwxLfs1uADxc1 C8Fg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=7HEPUdBWDT21/CbUw0qj1CFFc0ibgZ+M4DOX00nfRHk=; b=bGInFEH0n2Cxhbd4HPWqIQNyH7H9sRS6j6fTGfY/1b8hbrogkTAN/a9qcelITD4LdY NUQQe6WKMuG2dNLJRaTA85kp1sZro5BgRKKRGW2xhlPwr2+0D0NL0XhinOHTuNDvwnee xG17yV6TWWtzYi9jR5pCMiYSvg5rnnFsVoH8EFRcdSPfnIvcBweYBvMnzd+kx1murg9t GXFPJYdcZJrzua3rP+05KRa92KuRmvBDPASI2WPr+Gg5M3KRLgvvgiWr6XTiyl/o+djQ RzcPYs1b2aT8G/2ii9+mGrhgNy7fKVHWJ3mFU6eFY5AMREFgS45p/E2WC4jpoQ6qkisD siXQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=V7ermJss; 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 j9-v6si4477361plk.153.2018.09.26.03.26.04; Wed, 26 Sep 2018 03:26:05 -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=V7ermJss; 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 S1727761AbeIZQiR (ORCPT + 32 others); Wed, 26 Sep 2018 12:38:17 -0400 Received: from mail-wm1-f68.google.com ([209.85.128.68]:40171 "EHLO mail-wm1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727637AbeIZQiR (ORCPT ); Wed, 26 Sep 2018 12:38:17 -0400 Received: by mail-wm1-f68.google.com with SMTP id o2-v6so1688941wmh.5 for ; Wed, 26 Sep 2018 03:26:00 -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 :mime-version:content-transfer-encoding; bh=7HEPUdBWDT21/CbUw0qj1CFFc0ibgZ+M4DOX00nfRHk=; b=V7ermJsspmGGZkAixJ06hvGrqfb+can4oZ+NeNgKdvFO5410gXDuzUvrJrUG5fF00q TGrFwIRnXw5e966e5qGEioSNAuwB9mIRFpRkJRqYf8S05vaR63vVS0tm9tdluf+5UCx3 LRQDm3+cwEL+olhxnZhpOHBN9MwWWKCu3du9U= 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=7HEPUdBWDT21/CbUw0qj1CFFc0ibgZ+M4DOX00nfRHk=; b=sbHT76EbRVegt7tPaVTZ4jVNyrCZOJbHXqHfd5lkluIexNL8oAm0+pXiFPu+JHHC0U /nIwj6JJsgudDPpoQCor/xVaWVJpOTX+FvHHa9qqKFOfYgPD9TroiLLS2uPbzlAb8pwc UMGrrWuNhwoLobQD5Hu/wgj1LgzMB/HmdAGm2BE6hrwZDn+fxh5R5vURA1WrwveOHjrr R8ax3qDTYIBlpconNMbqsWBkn8c/elcN0Pa9VMPYGT0D9hecKHHS991qES2zp4ffjBhA QGx+buqx9GrAch/SsMSDQSSa14q4NQ2uC2GpLOhM+6ETlyk3N7VgsZFkj9GqwErCqmVX srhg== X-Gm-Message-State: ABuFfogiGTW/8+nV7ObS41jpMSDWLgxMYgggznBoIX9nntAOMNYd7ZSq nqm3OyBSxtfPJfHavp4S09d4nw== X-Received: by 2002:a1c:7305:: with SMTP id d5-v6mr3672366wmb.53.1537957559455; Wed, 26 Sep 2018 03:25:59 -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 b12sm4442648wrx.11.2018.09.26.03.25.58 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 26 Sep 2018 03:25:58 -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, devicetree@vger.kernel.org, mark.rutland@arm.com, Srinivas Kandagatla Subject: [PATCH v2 3/5] ASoC: q6asm-dai: dt-bindings: Add support to compress dais Date: Wed, 26 Sep 2018 11:23:47 +0100 Message-Id: <20180926102349.23481-4-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 2.19.0 In-Reply-To: <20180926102349.23481-1-srinivas.kandagatla@linaro.org> References: <20180926102349.23481-1-srinivas.kandagatla@linaro.org> MIME-Version: 1.0 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 Reviewed-by: Vinod Koul Reviewed-by: Rob Herring --- .../devicetree/bindings/sound/qcom,q6asm.txt | 27 +++++++++++++++++++ 1 file changed, 27 insertions(+) -- 2.19.0 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; + }; }; };