From patchwork Sat Mar 10 02:24:36 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinivas Kandagatla X-Patchwork-Id: 131259 Delivered-To: patch@linaro.org Received: by 10.46.66.2 with SMTP id p2csp1690410lja; Fri, 9 Mar 2018 18:28:07 -0800 (PST) X-Google-Smtp-Source: AG47ELtM8rZ1R2tyYfd6mwzY9TEJaWa3hOlNA9eMbbiG6sDGxIejuKKsaOiz9nGWifH5aY63957G X-Received: by 2002:a17:902:7e44:: with SMTP id a4-v6mr615033pln.392.1520648887135; Fri, 09 Mar 2018 18:28:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520648887; cv=none; d=google.com; s=arc-20160816; b=k0AOilgy3h7LQ6Ls3AevVVfq/2o83VUCIBDa7LxViqeDhxo7Z+S6NcCihDKYdGNJr/ QaCI0ZJ7ULfrv31MFll50cKfz2DoBfAZzW5r0s6r4OVDTBiYM524I+vXNrksgJm4B6Up 9vi0vrIP8WAiG6xlntWVp2d+0sBV8gkC/DBpxhkoUdrN/VW8UwrofWImSLt4emiEwdrX W6trSybU2odPpoje7LpOz98VKIThJUz4yyqwDC8LBdL1uDoZFa+Uwgt2si7cnHhzPOZB bWFK6ftkmtC5aFvGthwIT6+YgdIStN4voXOs7TbPmFNr7TsiDNaoml0xHsWec8lTyvJL +a4g== 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=X+bTrY5qCf93IxDIVamlPsHW+tZsoSfxM3TB4cHbFl8=; b=T9bEM0Z/6Ihr5BpjgL5/v4EaJ+GoApl14T0qfkADPNdc8bXAIy+AbUDWnJ4i9rhNoA +3sz7HDqCF1SAiRRcyLXKhHZCufdl8YEzr5GMsmFlzSatZAqUNxJM7u6mIn6vlhBOje1 PCVCaPSsRGUGZyujlNcf76YOEzw/MAV6cq6Er9yn68rkKx2M1YudqPx+/Gu+hagWw8// YFq0vT/lC4/qU9AV8PE7FjEoF7LA/CZhHYrYsOPP+3KFDYlV1bp/Gb58QkEpm/IOyWLP fBU1wkboIMZ/rC8AIPIkyZLyVyT0GMvWg+iyeMqiDkVXkUgieb3XzN6K0gg33/8KBl7W yKsw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=NN3afkla; 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 g2-v6si1924004pli.637.2018.03.09.18.28.06; Fri, 09 Mar 2018 18:28:07 -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=NN3afkla; 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 S932909AbeCJC17 (ORCPT + 28 others); Fri, 9 Mar 2018 21:27:59 -0500 Received: from mail-wm0-f66.google.com ([74.125.82.66]:51458 "EHLO mail-wm0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751588AbeCJC1s (ORCPT ); Fri, 9 Mar 2018 21:27:48 -0500 Received: by mail-wm0-f66.google.com with SMTP id h21so7054780wmd.1 for ; Fri, 09 Mar 2018 18:27:48 -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; bh=X+bTrY5qCf93IxDIVamlPsHW+tZsoSfxM3TB4cHbFl8=; b=NN3afklair/niV1v5O1McBIieAZf0EmQv/aFy9M5VKqtF1nUkJ9tsV7BnHlcM9eCQe hhnhzQbYWyZOwQMxdreq814BVAgcWXbLxcpG5nMWjAtPtfG4aG0VxGP3YcCgKJVwF5Nb N7xIA+g0UXCxTpGV1GNskOHglwlytc06GcKQE= 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=X+bTrY5qCf93IxDIVamlPsHW+tZsoSfxM3TB4cHbFl8=; b=pmdWih1m0b5sQsqXw7/T6Wq4z2O/kzlyxuTYOB28mE1GJtQeGJyOv91NfVj1lzseu0 xGOqSFHHlN5E6T4QHYuWYc03Br6CQ1mEijiQ54vz5dOLwAOKzNa8Zby295uJAGtFo4uk bPhzVSj00vY96nNWKIfZ07RRv0YiYi5pqS11fLaVAiWouGIu+Ocwof0fqaW/f6fOYhgr 2EGSbGL5ldPk3cqg86uLZUdTL0BiVLbMpTLQtlC+kwrfImH4Xiv9q9i+g6UmIke8OSGe 0xDQrEmWrXVMNjuQhmNKa1HclJtUjfppgVaxHBBHSsAieV+1th9sCKOIHrGOFmtxICDh MbeQ== X-Gm-Message-State: AElRT7Fz+lALZyngnhhr3S436FJ9w5dF2Y5z8af5+4C0/M00gIylaBwu IAkdYs/bJ5IegTJBz5HVWoKekg== X-Received: by 10.28.6.205 with SMTP id 196mr74235wmg.136.1520648867452; Fri, 09 Mar 2018 18:27:47 -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 g78sm21489wmc.31.2018.03.09.18.27.46 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 09 Mar 2018 18:27:46 -0800 (PST) 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 Cc: gregkh@linuxfoundation.org, david.brown@linaro.org, mark.rutland@arm.com, lgirdwood@gmail.com, plai@codeaurora.org, bgoswami@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@linaro.org Subject: [PATCH v4 04/24] ASoC: qdsp6: dt-bindings: Add q6afe dt bindings Date: Sat, 10 Mar 2018 02:24:36 +0000 Message-Id: <20180310022456.26739-5-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 2.15.1 In-Reply-To: <20180310022456.26739-1-srinivas.kandagatla@linaro.org> References: <20180310022456.26739-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 --- .../devicetree/bindings/sound/qcom,q6afe.txt | 107 +++++++++++++++++++++ include/dt-bindings/sound/qcom,q6afe.h | 31 ++++++ 2 files changed, 138 insertions(+) create mode 100644 Documentation/devicetree/bindings/sound/qcom,q6afe.txt create mode 100644 include/dt-bindings/sound/qcom,q6afe.h -- 2.15.1 diff --git a/Documentation/devicetree/bindings/sound/qcom,q6afe.txt b/Documentation/devicetree/bindings/sound/qcom,q6afe.txt new file mode 100644 index 000000000000..1e4b82e7747a --- /dev/null +++ b/Documentation/devicetree/bindings/sound/qcom,q6afe.txt @@ -0,0 +1,107 @@ +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,afe-v." + Or "qcom,afe" where the version number can be queried + from DSP. + example "qcom,afe-v2.0" + += 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 + +- interface-type + Usage: required + Value type: + Definition: Must be one of following + "mi2s" + "hdmi" + "pcm" + "slim" + +- 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 { + compatible = "qcom,q6afe"; + qcom,apr-svc-name = "AFE"; + qcom,apr-svc-id = ; + + q6asmdai: dais { + #sound-dai-cells = <1>; + hdmi@1 { + reg = <1>; + interface-type = "hdmi"; + }; + + prim-mi2s-rx@16 { + reg = <16>; + qcom,sd-lines = <1 3>; + interface-type = "mi2s"; + }; + + prim-mi2s-tx@17 { + reg = <17>; + qcom,sd-lines = <2>; + interface-type = "mi2s"; + }; + + sec-mi2s-rx@18 { + reg = <18>; + qcom,sd-lines = <1 4>; + interface-type = "mi2s"; + }; + + sec-mi2s-tx@19 { + reg = <19>; + qcom,sd-lines = <2>; + interface-type = "mi2s"; + }; + + tert-mi2s-rx@20 { + reg = <20>; + qcom,sd-lines = <2 4>; + interface-type = "mi2s"; + }; + + tert-mi2s-tx@21 { + reg = <21>; + qcom,sd-lines = <1>; + interface-type = "mi2s"; + }; + + quat-mi2s-rx@22 { + reg = <22>; + qcom,sd-lines = <1>; + interface-type = "mi2s"; + }; + + quat-mi2s-tx@23 { + reg = <23>; + qcom,sd-lines = <2>; + interface-type = "mi2s"; + }; + }; +}; diff --git a/include/dt-bindings/sound/qcom,q6afe.h b/include/dt-bindings/sound/qcom,q6afe.h new file mode 100644 index 000000000000..3c7868394889 --- /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__ */ +