Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp8361420imu; Thu, 15 Nov 2018 10:17:02 -0800 (PST) X-Google-Smtp-Source: AJdET5dIucOsttGS/uViAFmtdXIOkjdrfoYpMbnaWKoe2ucOfTy/wU8w5LJmDF6MAr3t94WxqrKq X-Received: by 2002:a17:902:8b8c:: with SMTP id ay12-v6mr7088570plb.69.1542305821950; Thu, 15 Nov 2018 10:17:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542305821; cv=none; d=google.com; s=arc-20160816; b=NUkESmxRANZ7Fv+WmNkS1yE9lWqwVGQG5ZrCTtpCyv/wYySOMBymF2Xtc4ghwwUlMB Fz4bTlb0TYb/PS+zhaSkelMdWX8NFvwYKsp0jZzJDYRALpnGd7ppQyD62pYXVFWOgZb7 d4pqR/yY35I2ALGiXl6pB7lCLXQhrJ/mw2EpSIE5bcWvXN7BpoRYE8saLWoCgvLq3r35 dpz/arHNePIucGgjK6g2cxh5yUZAJe+IttTatSUsSy1R38w+pPHF21iYQhTxrGYcmuE6 68APFpqtew101G1KKhjtZWg8ZI8IBAarx46p1ssiD6zu/Shxx9gx5HQ16Xkkdi5yMKxi Xgyg== 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=qgovF8gbNzSAVf3695glcam441nn3X2Awtp9DW4FqCtIdh1ti7pC4cAMBimU1B0u7J lJpgz5HZk9vdt1Mjk3Dc/ckZdFyhx0F9agNTL+Hh7RxSLAz2WL2kE60z1evq66LngN2V OkLk9dqWTQpJv2xh/pNYljR9U19hKPKQxgj+JNOXWQ7mTlCQocsI6P1iuZemra3ZSjl4 2yvOqA7XXU8rFr7XEPllm8Gekog/XjwnNWnopoY7qapL6shMA85Ll+yBc60VX4kzs7vS lGuC7xOY+1rfFGqJV0jSm7f1i9JzeVUWCp5v0XBj7YWTGCybPKNBz+GQACXudCo+k9g/ R93A== 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 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 i69si5442761pgd.71.2018.11.15.10.16.47; Thu, 15 Nov 2018 10:17:01 -0800 (PST) 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=VTDD3gwh; 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 S2388914AbeKPEY1 (ORCPT + 99 others); Thu, 15 Nov 2018 23:24:27 -0500 Received: from mail-wr1-f66.google.com ([209.85.221.66]:33206 "EHLO mail-wr1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388865AbeKPEY0 (ORCPT ); Thu, 15 Nov 2018 23:24:26 -0500 Received: by mail-wr1-f66.google.com with SMTP id u9-v6so22243517wrr.0 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=ryXPCG0/VJsTPgF0AO0Di2ki+xHDxBQKX2uYt6iEFkJhM6/VuUVxOvVlBEAwOt+90L Zg/ow+ec3GYO8IZoz+Gd3wOH17HFyBAI0nGL0gJPvx8b3mzAtP+bUSvSLB7VQXV5D1fi 8CDFSrPt/iHy7JKxSnQk4LaejCnTfaPJnyhlsVpmf8GW/YqFP8zqCqluLQ87LcZ7OOCW l9u4icmC3zgMpQ1C0guvmxl00QetyNLGXA4GRBjC+oB3LwTCALQxeG+BJN1jLRwLy0+6 9Ctf8nzUjQxxe7KW5KImRahI4Lybl8o7Th0muYdPEGfMq+Kmtbdt5MEZW+9MmiHxOnQ+ 8hTg== X-Gm-Message-State: AGRZ1gJw39QVkcz+efrj8n/7rtE6pR2apvh6Q/d5DuwtGchNn23N99zD hWQ1KelFPwp6ehXUAqVER8fENQ== 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 Content-Transfer-Encoding: 8bit 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(+) 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; + }; }; }; -- 2.19.1