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: 10272967 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 2DF396016D for ; Sat, 10 Mar 2018 02:29:58 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1DE0B29E54 for ; Sat, 10 Mar 2018 02:29:58 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 1215829E6B; Sat, 10 Mar 2018 02:29:58 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID autolearn=unavailable version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 7F8C929E54 for ; Sat, 10 Mar 2018 02:29:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=yuwDHu4XzBjrpSNeCQ4dRxtS+B2m4yRPwA6jw/xq6xw=; b=FPoTc+DhA/xSjCGVQb4YsjMqdJ 0Rs9eVgZJzvaaikux49ZDZaFcKsb+LPZN0KIgWbUkQWg5PIv6c8FrB2UkXwmrm4FQvTWYxPJBVfeJ hPK/bZZBVJFtQDDpxBAjsThnvByBdE9vYRgAWAbOsXxEI+E/+hR/dkjRPF1WZcC/jUSlp2GuzwzjH 2IrRQtVgEQSy5THCIwUfebj/qxuEKAZ9MGxtKlLGeSz0n9cJd5WXXaTlVGv3JCNkuIQQdtwH4NOEo Pp/fg7ANuluJwNZeG8IwjiRCkbacFruSZmBmcWalJBsWZ3w02qFftNswPmxLWhy6yE48QU0e2Xcft afGKAjcw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.89 #1 (Red Hat Linux)) id 1euUGd-0003au-Fy; Sat, 10 Mar 2018 02:29:51 +0000 Received: from mail-wm0-x244.google.com ([2a00:1450:400c:c09::244]) by bombadil.infradead.org with esmtps (Exim 4.89 #1 (Red Hat Linux)) id 1euUEp-0002YP-8E for linux-arm-kernel@lists.infradead.org; Sat, 10 Mar 2018 02:28:06 +0000 Received: by mail-wm0-x244.google.com with SMTP id w128so7119120wmw.0 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=fXOLsHShMmv6AJZZAEmpRR+wic2OGqK11qZd2X2aP+2kYoUftY5zj87YYq/3bAVo2o /tbyDBOW/0ik0hs05rfPMjI87QuqR55ipOhXPDgg3iisVSGDXinsZwi0PySLJ2p7OipB uZBydKoIvitApps9DhU1bbXonSgjpoXUVh3+0303T9kS8ubvC89sdZfxm0oc7EPY44f3 P98nQ2if0XKhWkdjPdVbrCwuE67H7tcjra4MfPKW0KG6hob4Pn72LzEqZ6OYJOJ+eyBm mh2TO94kFDYoOEx8C5tkC56jScJUAh1M/b5Ln1E2Rw4TqtBrS8SkWPsZBPOouHk0cbGj A7Sw== X-Gm-Message-State: AElRT7GdmQTs6me67+KvdLRLr3XLTE6r3Bex79AKMD4YdM21aKTglbsr 1qUclhi7VNuvXNb0Y8AOm81AxA== X-Google-Smtp-Source: AG47ELueofjTR03L3azXj+PA6m8eaONmpXUrxjx5mbL8TFW196HNGdaMUGH8uZxzRejhBau4fhBjQQ== 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 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> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180309_182759_550423_326301DB X-CRM114-Status: GOOD ( 14.95 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: mark.rutland@arm.com, devicetree@vger.kernel.org, bgoswami@codeaurora.org, rohkumar@qti.qualcomm.com, gregkh@linuxfoundation.org, plai@codeaurora.org, lgirdwood@gmail.com, tiwai@suse.com, david.brown@linaro.org, srinivas.kandagatla@linaro.org, linux-arm-kernel@lists.infradead.org, spatakok@qti.qualcomm.com, perex@perex.cz, linux-kernel@vger.kernel.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP 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 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__ */ +