Received: by 10.192.165.148 with SMTP id m20csp1830697imm; Thu, 26 Apr 2018 02:57:36 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+TybTpdA9QrZuusirvsjP8phRX67nIm1STHWIwqeAeofByz2nc+zsnOQ0vyuYxxeC3qQO3 X-Received: by 2002:a17:902:30a3:: with SMTP id v32-v6mr33302952plb.123.1524736656731; Thu, 26 Apr 2018 02:57:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524736656; cv=none; d=google.com; s=arc-20160816; b=fiTPzYOd2R8zkDFn28khCv+yyzlQjw7oYuZuSjwbr8qWBjye3T6/an+HrojbxkGYys ZtaE60Q4kfEx8VFl0pVNDYw0EUU7jFcqJM50DdCkHV/L2W+5ZdNPo9+L7jyiuVugN3YU kbSIb4ip/ESprrSRK/VcHFHpoBZ1sXFbjUIa1uvH1fjBsq9eXJWz4W9hf55YIYkBnliP WKto3F8V8k+Gwd08+ggaPr4lnDJ3eAEoWOJfdpE1YiVCrB/F9lRv0mqYLMPzLD1IBQXG ICl/i8ZLEFExOFZhTNRRBc/P3crTNMFpE4wCrc3oOaAAVYrYMLC1YAVJILDH6OeFShPd r2cg== 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=RftNHazO+oJuV+QbDpSvKUFtUjVQnvDW7snf2gfnja8=; b=WrFw9vB4p2ATf4s+Jk0YauEfLrc196+DX5m8lXEpr3veZwE128CTabFn6F779EXDvb MYYphx/C4a6yrfccJ/ibwJWQTtr95KrCnQPLXUDtdsIJPMNcdJkoatY0i3UFHAxm0dwu KE7vnApe18oWsyO/hu2v4IN5QeBjPaK4upx9o8PXoaZvA0x2zkEx1pd1pUkvJ3UEBI1i NWmdcp4t2EcvCIigP/fjY3WDj9QhWPlv7EtcTcwZ8av1VK0Y9bNrgGxfDESk4kWRrHCW W+1lPlq4xRDmFIQVQc+sse9Ns1Wh9gtfjhLyfAsYd/R5ZgB4rnLEaczsfeSCn2EV9f/m H/ww== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=jTGzn8T+; 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 m13si15737276pgs.49.2018.04.26.02.57.22; Thu, 26 Apr 2018 02:57:36 -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=jTGzn8T+; 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 S1754811AbeDZJzn (ORCPT + 99 others); Thu, 26 Apr 2018 05:55:43 -0400 Received: from mail-wm0-f66.google.com ([74.125.82.66]:54492 "EHLO mail-wm0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754801AbeDZJtg (ORCPT ); Thu, 26 Apr 2018 05:49:36 -0400 Received: by mail-wm0-f66.google.com with SMTP id f6so11830418wmc.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=dyUMQhZZzSklqwQ39E70QVBLlpBCV/QIi5kBjsnQQM/ThDkijDpBtUVCt3JElVM+W8 +Tafhigi+hzjov4teZQivF1AivvFjssd0d5fM1ZXzBUmBsygN/Bk2tLTJABZ/Mf7C4Qd ziPOS0h8yq+iQqo9Iun6FK0pEuhV6X+ahuu4JxRHxf94lP99EjUzp21JGVr7zhceAyHj 3XbxOiarcxuXYy7PVwr06+pXoi4pqdKS54EwDR72KVHwUFq2zB3gCdbaRAOQZqkC7IqD VYF6RbRauHTe/sWaik8Y+TTxnWNfZLO4BwHY/ZGmTSrCgc1mA59ZNctpFIWl0h0mNzxN bhEw== X-Gm-Message-State: ALQs6tDD+ki7SC7jBc8ovZK0Q7LcgjeA2aRkMaFsNqWx3CthbnrKQ3Lo r5DEANHr1xmAtj3XoVO9T+7yLw== 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 Cc: gregkh@linuxfoundation.org, david.brown@linaro.org, mark.rutland@arm.com, lgirdwood@gmail.com, plai@codeaurora.org, tiwai@suse.com, perex@perex.cz, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, rohkumar@qti.qualcomm.com, spatakok@qti.qualcomm.com, Srinivas Kandagatla Subject: [PATCH v6 04/24] ASoC: qdsp6: dt-bindings: Add q6afe dt bindings 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> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.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 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__ */ + -- 2.16.2