From patchwork Thu Apr 26 09:45:46 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinivas Kandagatla X-Patchwork-Id: 134442 Delivered-To: patch@linaro.org Received: by 10.46.151.6 with SMTP id r6csp2029647lji; Thu, 26 Apr 2018 02:50:10 -0700 (PDT) X-Google-Smtp-Source: AB8JxZoQGghla1wB2e/6VSwkJP7n2tuv2gW5EyOofIqXyqPh9/zSSy7RxG6ZHpdrbd6o504KRrZN X-Received: by 10.28.111.154 with SMTP id c26mr17157655wmi.139.1524736209965; Thu, 26 Apr 2018 02:50:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524736209; cv=none; d=google.com; s=arc-20160816; b=odyOszYthR0n2LyHqZxOWXtjqkJ1yQIMcMP6atR2bmmupz5ZMTXBr5wEeizC+Ro8wI VpVxsPc3rPhLKtjK05OUtQJjNiVrzEv/aULAS65X4xB1bU9wIHL5/glAkdbUgPuma/HW FBYe4JlJD8n1WFKcal0W3HISJ4/9rFxX9v9m6QDL2mZqq1QSFMHohqT5OrDg4A1SGos+ nu0PCW+YllBswy6AlLwwBKpff2wRlKeREkHXl1zbOxbX2TvqIWPrLbwqPu8sHw+9R1N0 iFhqV+yZD/lakv4hL4bq0l4tYks/MBlBYq4k6k856Ja8IRRQEnqYvypP8mplT09kSj53 YPeA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:mime-version :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:cc:references:in-reply-to:message-id :date:to:from:dkim-signature:delivered-to:arc-authentication-results; bh=CtaqM+HczBzWDglVbh1XREkeJwTnRU6q02ThqiJWOI4=; b=QQcKdZNdqnDnW+b5QCmJS20DfGTy3kVTxXxLdmdfYL766NT/VrLysz254Tp906DG1e XDZRdF9ugt81dbre1OGmMAKHAOOnMWYlEZKI0R1BuvFUD+31pu8dmSJbsp5pPV703wlm 7b78ore95PtSEE8zLsexBEBVn/a1QKAyBte9dx2GaXAszZcYLe7Ym6nBQT/VqiASAd5m GLmLCO1ehRIIPjmHhmt7Q3zsR44XFu3BDZ1Ds7THe4VCzm8LR3s7CETd8MpoYWIM0G0C 5GTf8izjzAhblhtWQjWKBgBNRZ5QMZJPfXUl+d6WurqSdZglaM1CbI8JJSQrnMcWP9fh tbaQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=jTGzn8T+; spf=pass (google.com: domain of alsa-devel-bounces@alsa-project.org designates 77.48.224.243 as permitted sender) smtp.mailfrom=alsa-devel-bounces@alsa-project.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from alsa0.perex.cz (alsa0.perex.cz. [77.48.224.243]) by mx.google.com with ESMTP id 41-v6si10397411wry.292.2018.04.26.02.50.09; Thu, 26 Apr 2018 02:50:09 -0700 (PDT) Received-SPF: pass (google.com: domain of alsa-devel-bounces@alsa-project.org designates 77.48.224.243 as permitted sender) client-ip=77.48.224.243; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=jTGzn8T+; spf=pass (google.com: domain of alsa-devel-bounces@alsa-project.org designates 77.48.224.243 as permitted sender) smtp.mailfrom=alsa-devel-bounces@alsa-project.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id 4D3E8267813; Thu, 26 Apr 2018 11:49:45 +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 608442677F0; Thu, 26 Apr 2018 11:49:37 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mail1.perex.cz X-Spam-Level: X-Spam-Status: No, score=-0.1 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, SPF_PASS autolearn=disabled version=3.4.0 Received: from mail-wm0-f67.google.com (mail-wm0-f67.google.com [74.125.82.67]) by alsa0.perex.cz (Postfix) with ESMTP id 0E4D62676AB for ; Thu, 26 Apr 2018 11:49:35 +0200 (CEST) Received: by mail-wm0-f67.google.com with SMTP id f6so11830422wmc.4 for ; Thu, 26 Apr 2018 02:49:35 -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=RftNHazO+oJuV+QbDpSvKUFtUjVQnvDW7snf2gfnja8=; b=jTGzn8T+EtvrBY1geqt4PfK3kjl82cmVX3MAGn45cuPhlMQ1ZWWimJIXaKqcHUlN8x O5M0htupM7JmJLpu2MFj08eG9DJjUpqrwcgI+SVK2MgUAntkeWarYA1VFztA+82l6wxF ljDlB502jNeO3X6zPL54Dvp477gMje8Y4fTXY= 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=RftNHazO+oJuV+QbDpSvKUFtUjVQnvDW7snf2gfnja8=; b=Sj+xiK6GQE8SgqhxJWtPhsCzbnGnwYJ4KBC7Z+5qDY824ejj8qZRpJp+pclGpv7Ed4 EbXtW8IlRwity6PNTp3hToLAcTIpbj3S3EG1gYXBWXFDZBGzBKM/rV5eubZw4A/8ues6 7q5AO1lzO2orVtyub/z/wqGlvu4mRKWGbNVhex+HPCDVxpV0WBdiRiW603R3oXBuRA+F RJfTr/DN5KpLIq2qfX7lmkWF7aieNBWjgd91R50YtV6++k/eig4oIohzy+QF7pOMk1rg I+NynkxMHqxBufJkPmRqpE4jul21V++rX3arO9OFYRkZvFhxvgxrf6JPudspIdQnhZ+L zxZQ== X-Gm-Message-State: ALQs6tCxXVKQAN/1LftSjXBdSgkkDjHuzIb+WVxNedVDgPHs5Tn7fUNl pA2k22W2OkIwQGY+LmpYseGxSw== X-Received: by 10.28.126.11 with SMTP id z11mr16807536wmc.128.1524736174639; Thu, 26 Apr 2018 02:49:34 -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 a79sm5287289wme.48.2018.04.26.02.49.33 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 26 Apr 2018 02:49:34 -0700 (PDT) From: srinivas.kandagatla@linaro.org To: andy.gross@linaro.org, broonie@kernel.org, linux-arm-msm@vger.kernel.org, alsa-devel@alsa-project.org, robh+dt@kernel.org, bgoswami@codeaurora.org Date: Thu, 26 Apr 2018 10:45:46 +0100 Message-Id: <20180426094606.4775-5-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 2.16.2 In-Reply-To: <20180426094606.4775-1-srinivas.kandagatla@linaro.org> References: <20180426094606.4775-1-srinivas.kandagatla@linaro.org> Cc: mark.rutland@arm.com, devicetree@vger.kernel.org, rohkumar@qti.qualcomm.com, gregkh@linuxfoundation.org, plai@codeaurora.org, tiwai@suse.com, lgirdwood@gmail.com, david.brown@linaro.org, Srinivas Kandagatla , linux-arm-kernel@lists.infradead.org, spatakok@qti.qualcomm.com, linux-kernel@vger.kernel.org Subject: [alsa-devel] [PATCH v6 04/24] ASoC: qdsp6: dt-bindings: Add q6afe dt bindings 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 From: Srinivas Kandagatla This patch add DT bindings for AFE (Audio Frontend) DSP module. Signed-off-by: Srinivas Kandagatla Reviewed-and-tested-by: Rohit kumar --- .../devicetree/bindings/sound/qcom,q6afe.txt | 88 ++++++++++++++++++++++ include/dt-bindings/sound/qcom,q6afe.h | 31 ++++++++ 2 files changed, 119 insertions(+) create mode 100644 Documentation/devicetree/bindings/sound/qcom,q6afe.txt create mode 100644 include/dt-bindings/sound/qcom,q6afe.h -- 2.16.2 _______________________________________________ Alsa-devel mailing list Alsa-devel@alsa-project.org http://mailman.alsa-project.org/mailman/listinfo/alsa-devel diff --git a/Documentation/devicetree/bindings/sound/qcom,q6afe.txt b/Documentation/devicetree/bindings/sound/qcom,q6afe.txt new file mode 100644 index 000000000000..05208a63dd3c --- /dev/null +++ b/Documentation/devicetree/bindings/sound/qcom,q6afe.txt @@ -0,0 +1,88 @@ +Qualcomm Audio Front End (Q6AFE) binding + +AFE is one of the APR audio service on Q6DSP +Please refer to qcom,apr.txt for details of the common apr service bindings +used by all apr services. + +- but must contain the following property: + +- compatible: + Usage: required + Value type: + Definition: must be "qcom,q6afe-v." + Or "qcom,q6afe" where the version number can be queried + from DSP. + example "qcom,q6afe" + += AFE DAIs (Digial Audio Interface) +"dais" subnode of the AFE node represents dai specific configuration + +- #sound-dai-cells + Usage: required + Value type: + Definition: Must be 1 + +- reg + Usage: required + Value type: + Definition: Must be dai id + +- qcom,sd-lines + Usage: required for mi2s interface + Value type: + Definition: Must be list of serial data lines used by this dai. + should be one or more of the 1-4 sd lines. + += EXAMPLE + +q6afe@4 { + compatible = "qcom,q6afe"; + reg = ; + + dais { + #sound-dai-cells = <1>; + hdmi@1 { + reg = <1>; + }; + + prim-mi2s-rx@16 { + reg = <16>; + qcom,sd-lines = <1 3>; + }; + + prim-mi2s-tx@17 { + reg = <17>; + qcom,sd-lines = <2>; + }; + + sec-mi2s-rx@18 { + reg = <18>; + qcom,sd-lines = <1 4>; + }; + + sec-mi2s-tx@19 { + reg = <19>; + qcom,sd-lines = <2>; + }; + + tert-mi2s-rx@20 { + reg = <20>; + qcom,sd-lines = <2 4>; + }; + + tert-mi2s-tx@21 { + reg = <21>; + qcom,sd-lines = <1>; + }; + + quat-mi2s-rx@22 { + reg = <22>; + qcom,sd-lines = <1>; + }; + + quat-mi2s-tx@23 { + reg = <23>; + qcom,sd-lines = <2>; + }; + }; +}; diff --git a/include/dt-bindings/sound/qcom,q6afe.h b/include/dt-bindings/sound/qcom,q6afe.h new file mode 100644 index 000000000000..e162045f5dc9 --- /dev/null +++ b/include/dt-bindings/sound/qcom,q6afe.h @@ -0,0 +1,31 @@ +/* SPDX-License-Identifier: GPL-2.0 */ +#ifndef __DT_BINDINGS_Q6_AFE_H__ +#define __DT_BINDINGS_Q6_AFE_H__ + +/* Audio Front End (AFE) virtual ports IDs */ +#define HDMI_RX 1 +#define SLIMBUS_0_RX 2 +#define SLIMBUS_0_TX 3 +#define SLIMBUS_1_RX 4 +#define SLIMBUS_1_TX 5 +#define SLIMBUS_2_RX 6 +#define SLIMBUS_2_TX 7 +#define SLIMBUS_3_RX 8 +#define SLIMBUS_3_TX 9 +#define SLIMBUS_4_RX 10 +#define SLIMBUS_4_TX 11 +#define SLIMBUS_5_RX 12 +#define SLIMBUS_5_TX 13 +#define SLIMBUS_6_RX 14 +#define SLIMBUS_6_TX 15 +#define PRIMARY_MI2S_RX 16 +#define PRIMARY_MI2S_TX 17 +#define SECONDARY_MI2S_RX 18 +#define SECONDARY_MI2S_TX 19 +#define TERTIARY_MI2S_RX 20 +#define TERTIARY_MI2S_TX 21 +#define QUATERNARY_MI2S_RX 22 +#define QUATERNARY_MI2S_TX 23 + +#endif /* __DT_BINDINGS_Q6_AFE_H__ */ +