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: 151235 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp7327851ljp; Thu, 15 Nov 2018 10:15:37 -0800 (PST) X-Google-Smtp-Source: AJdET5eNyHbGPQ8/YI326yVBJbhV6QejnasuaeACejX8VmQ2nZripoMgo/c0S+9V87lmKNHCoRNC X-Received: by 2002:a17:902:33c1:: with SMTP id b59-v6mr7188888plc.71.1542305737656; Thu, 15 Nov 2018 10:15:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542305737; cv=none; d=google.com; s=arc-20160816; b=p14ZVinUB5hK5U7wch25oIldayHo85PsZ9yJusEKk4tcOQI5D5gNpAodNxi924bSGJ 9X9Kn7ytMBhCUo/CgINs4tBdgwS9hzllm3dPCPSxxRLB14v483TIbhAnxRRhqjpCfRWn 2P7CMkrM6Wrbyces3P6ID6eYnVfMUiUiC2XrFxCy9G2S0ZKcYUsqPwiBV8YjKdrY/Wmm TH1KdV5XjOIsPoBtpSUvwgD6lwv4vA7q2+g4fJftf1LTg+HZdrsMyLUnVDzBhit20Dpc JRbqlMkbJOrxdkhwzSh6qyO7YXQqXwwEDjeR44xl54M8ZZWR1PlqeFtTEVDfR01kZA5d wvZw== 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=avO3Jb5XTMv2tnrPkaTW5Kc01HF/m3+otreEVZeHHFk=; b=meNh+u4mRZnfeDMUlXecTgkZKTEVYbQfG/Abc7cv8O0iSIb0i4NMqackXvtjfftZgs EUjUhPItgEDEHz+4bw7yMR6vgowZZtK4C4C0O7vgP8gjEHe5VdCcgHWpBDVDAW45Z60J 3PLweRThKcS0WPiHZWQupqpcaGMI3YYfjBJNDzkTaS7GU8pmccmoIrU2VKV10vtRTvFo uCv9F57Ex+Ib5pw0v037B2yqa5hjjJ6hMC96CbJLwo/8PKoSEP6wYytryFZeOXX5f2yt H5VHQT441y8Guru96C5VuyI2dGB3JFe5GFJ1y5wMuJXChIOIePEptDA9jTpZfciCPC36 0SzQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=VTDD3gwh; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-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 y3-v6si27465221pfe.42.2018.11.15.10.15.37; Thu, 15 Nov 2018 10:15:37 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of devicetree-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=VTDD3gwh; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-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 S2388865AbeKPEY1 (ORCPT + 6 others); Thu, 15 Nov 2018 23:24:27 -0500 Received: from mail-wr1-f65.google.com ([209.85.221.65]:36822 "EHLO mail-wr1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388861AbeKPEY0 (ORCPT ); Thu, 15 Nov 2018 23:24:26 -0500 Received: by mail-wr1-f65.google.com with SMTP id z13-v6so22244798wrs.3 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=sciRbAAKvuKsih4cNZfBCUlz90WbkV3B62odV2ukE7gsRejR0zLReopsDsYdi7xI+p mUKVR6sYsFRKcDgpbHZHJlxlynlPOsAhBJinU1IDYJxTmRGtJE4Mme0dfmh6wtZoy5pA Bp6/SGWfmV8LkkoThR+nu9gszgipul3zPcYZWlWeTfguzG5uhD2dgRJS8CzINq+THNUU dDn4kFlo72S8Ybw68jAvtE3uW4m2jfx2hU6f2P+TgXCieUrkLJ3/zboz4+Fr8ILeKNPm TXeIkhHzL9jlUHxWwt6xMOXCIW/5d9AzxLD+iMlIzb4aPofAD0cw0bDJOxVff8tESYdO q6zA== X-Gm-Message-State: AGRZ1gKq/BRvvKaUXERGWo6QWz49vbeXx1iWMg1suYWzNZmfn/5HjtIn Ai4xQ/35AhT2K5Ol62KPfI/iuQ== 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 Cc: alsa-devel@alsa-project.org, robh+dt@kernel.org, linux-kernel@vger.kernel.org, bgoswami@codeaurora.org, rohitkr@codeaurora.org, lgirdwood@gmail.com, tiwai@suse.com, devicetree@vger.kernel.org, srini@kernel.org, Srinivas Kandagatla Subject: [PATCH v3 3/5] ASoC: q6asm-dai: dt-bindings: Add support to compress dais 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 Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@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.1 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; + }; }; };