From patchwork Tue May 1 12:08:00 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinivas Kandagatla X-Patchwork-Id: 134760 Delivered-To: patch@linaro.org Received: by 10.46.151.6 with SMTP id r6csp4881215lji; Tue, 1 May 2018 05:10:48 -0700 (PDT) X-Google-Smtp-Source: AB8JxZo8I3sYvnYDqdFc3Ym4Aq3k7OxxchtCU2HLcfzvgm9gPVq+f4pp/y1azv1GCgBRb9sU8vUO X-Received: by 2002:a63:744c:: with SMTP id e12-v6mr8018822pgn.4.1525176648342; Tue, 01 May 2018 05:10:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525176648; cv=none; d=google.com; s=arc-20160816; b=edOKCSJ+WA+KbpqFYwSkNQdGR53+iBzRCm/6P4pD6UN+cjXhAVsv/OHaK/hTJYXVe7 JdH4U8Sy6bn6Ub78TgJQnGWNjCsyR9k3fjvviYVWmo94ldjWff+eU/i9uyLqp6xGxcM8 PMUjTKYUQpjzcU6MLPNUPY6SclV1q47H/boR8CqaNAdzNlLCgHubpA7S2mLzwgTtbaB8 HTwStUoL7NNATANNk/l/8Sh1Zku/XqH2MHkBb0JcIbuuXhm3YSGlBwW2yCgRq4l8d+Ok zEQfHQN68V9/BSzSrtIf0H5lin1rTqK+i+HnWVRKIwRfn3xbv3C2me+5baWg4qbbbilm F9vA== 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=xkbKsxbRRPXqkpTNYjaVgN/DRTLrUYT//iCmJy9/C0A=; b=jtnlhriWYVanyWYTbOY18Ke5Ua0iGNLARK+Py3J5W5caKTMHpG7Ovpmqw9VYJLLUst ex4c42bzxFYeHfxYz+P0Pc2H206Og+svfpzDwlv1gbXJ4KjRHIXX2QWDcJ7BvCTpB6TT t+peLXpMMHnBt7SQdPzrVlieYkF/d/Zf/pHO8OXgMU6pNpfVGypeV7e5hfpp5/RWI75m Ea23QZbKgWfgNAvZa66yFED/3W+yPYrwveBJoctI1z06EFyx09sIKsuCom61owpmcZUL Nof/cH4oRSKeV2HWFQNPjO7v3x3e2yTs5G2zChqv2yezj5J335xKdL7VCgWPD+n29+7V dF0Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=APf4IDHj; 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 f11-v6si9299067plo.352.2018.05.01.05.10.48; Tue, 01 May 2018 05:10:48 -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=APf4IDHj; 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 S1755401AbeEAMKn (ORCPT + 29 others); Tue, 1 May 2018 08:10:43 -0400 Received: from mail-wr0-f194.google.com ([209.85.128.194]:46719 "EHLO mail-wr0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755145AbeEAMKc (ORCPT ); Tue, 1 May 2018 08:10:32 -0400 Received: by mail-wr0-f194.google.com with SMTP id o2-v6so7743533wrj.13 for ; Tue, 01 May 2018 05:10:31 -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=xkbKsxbRRPXqkpTNYjaVgN/DRTLrUYT//iCmJy9/C0A=; b=APf4IDHjpnflJyBMW7Wc1ay+3fUA0YFjuTx7ZPIkxgSOj6gPnATEYfRR6/vzSiDYkZ dze8roeXuOwKpaCS7fAljPqOdnzEennDbTAz1CKBtMqiKAsyyAW03WznMvONSBTYHLxE kfkQzKqwU7nq1X8D01lTJ94u5q6NAo104h6vE= 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=xkbKsxbRRPXqkpTNYjaVgN/DRTLrUYT//iCmJy9/C0A=; b=pAi3U2kASbyXrJjZhcbeuzuXxZvhcam07iX9mKzey5RbqNhHkT0qzAuzO7h+ViKsbv J8MXrB2641KPevNwpsc2j8NWwy1eIyAAJdx7dyttkXtTuFMwDcXH0PHRkMU+H+ecv3nN 8CmZ7ZyETfFowfbdmw6GV48pYfZvPWnfK9D2v7zp5Wt0t5HX4giapeIw4EgLqO3ckC9E pMUYY4yQUs8AjWyGn9F0VDRbm9dYhwtJ4OY+l8H9VDHiECmGfH0oMN7DI/mef2vhhFSf oTblu7SbrZq3XnAmiVOXD3XYjEVZKhuqXEx55k98gQb6q0F7XyKPl52SNURTV8dxOqyO 4kJg== X-Gm-Message-State: ALQs6tCNU+o3pulJDJQXIVf1Yhk1XEQUlVyhXEY0IP6EHSbfFMyyUCA7 eV3Ld3JRagepoDbSOxsyHCuE0pgMi1Q= X-Received: by 2002:adf:b3d7:: with SMTP id x23-v6mr4198590wrd.142.1525176630583; Tue, 01 May 2018 05:10:30 -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 r200sm14565124wmb.39.2018.05.01.05.10.29 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 01 May 2018 05:10:30 -0700 (PDT) From: Srinivas Kandagatla 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 v7 04/24] ASoC: qdsp6: dt-bindings: Add q6afe dt bindings Date: Tue, 1 May 2018 13:08:00 +0100 Message-Id: <20180501120820.11016-5-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 2.16.2 In-Reply-To: <20180501120820.11016-1-srinivas.kandagatla@linaro.org> References: <20180501120820.11016-1-srinivas.kandagatla@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 | 104 +++++++++++++++++++++ include/dt-bindings/sound/qcom,q6afe.h | 31 ++++++ 2 files changed, 135 insertions(+) create mode 100644 Documentation/devicetree/bindings/sound/qcom,q6afe.txt create mode 100644 include/dt-bindings/sound/qcom,q6afe.h -- 2.16.2 diff --git a/Documentation/devicetree/bindings/sound/qcom,q6afe.txt b/Documentation/devicetree/bindings/sound/qcom,q6afe.txt new file mode 100644 index 000000000000..14335a08b963 --- /dev/null +++ b/Documentation/devicetree/bindings/sound/qcom,q6afe.txt @@ -0,0 +1,104 @@ +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. Must contain the following properties. + +- 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. It represents afe dais, each afe dai is a +subnode of "dais" representing board specific dai setup. +"dais" node should have following properties followed by dai children. + +- #sound-dai-cells + Usage: required + Value type: + Definition: Must be 1 + +- #address-cells + Usage: required + Value type: + Definition: Must be 1 + +- #size-cells + Usage: required + Value type: + Definition: Must be 0 + +== AFE 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 + +- 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>; + #address-cells = <1>; + #size-cells = <0>; + + 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__ */ +