From patchwork Tue Feb 13 16:58:13 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinivas Kandagatla X-Patchwork-Id: 128264 Delivered-To: patch@linaro.org Received: by 10.46.124.24 with SMTP id x24csp4457352ljc; Tue, 13 Feb 2018 09:01:41 -0800 (PST) X-Google-Smtp-Source: AH8x226xQl+aCsvCv6kOJWenkd2IA68lEas60UzNJqGcFoUps3jsiM6d8Tr0SthwcH8ldlcdnD90 X-Received: by 10.223.143.101 with SMTP id p92mr1757862wrb.241.1518541301193; Tue, 13 Feb 2018 09:01:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518541301; cv=none; d=google.com; s=arc-20160816; b=09GoqV2JkQDlbc9xaI6jsMSN5KKZSdBJCrkmCj0AUDVygkRacalKzvOzwbDFDTHehW PwI2X131D8JQRsbShkNXtOYvMxCBePy8tlDs1WnLwcn97xGoZIdk5rIvkTI0ouwCR0yr MDgM4X0BwBk2WsQUlds2WuV6W6PRSdc18JqpfLlqJK7cnWWtz/Ew7EO6tGY7XDXBzxbQ lWA8iyOLQn/5Brw8RnXRZj9P5+EkFuX4rW5H54tYUIX9R+26ihwCVdy6KZDPi/5lXOtJ 0CDWGI/4wMTzxkCGkJGn5lGFrqgV4NRLmD/BBHZ3TtbgeceXhFFQQKv2dOIzr7q3rHbO rjdA== 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=6VYxO2uYvpyazsEA9I11d5W9+H5qwpyZHMlTqz805X4=; b=odr5mYhR53NkDabkcz8w2qk/b8vLfKL+7Xv4KxFwKVzWNnUsGMsQVdDm+YVGoVIIz/ 8NX9FLVnVYQnJ8gpjJVpRFCsIYjzzwdPETqnqXHvfjLbE5bqvq5cDPuOlLvIxIaMiqqf b2prNEPfVdBNt9IWlh64mnjwaDv92kbTwQtP8rmHnaxEbxZT/z7IvkmAYCTG4He/lsEd vzJP9weCYSfD0qibGIB1dgQjwi0wXzNXrhVjzXs0oElQHeFgr4UqxocwCw4mMCuf0u89 QqrKwAhOf28fwismO9ljKC9Vs2w9cV/u/a5HbWVKOFukWEylUdQGVaVOTzbUIZNfyB87 NH+Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=IpY6ks/W; 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 l200si5676575wmd.32.2018.02.13.09.01.39; Tue, 13 Feb 2018 09:01:41 -0800 (PST) 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=IpY6ks/W; 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 60050267753; Tue, 13 Feb 2018 18:01:22 +0100 (CET) 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 CCC8026774D; Tue, 13 Feb 2018 18:01:19 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mail1.perex.cz X-Spam-Level: X-Spam-Status: No, score=0.6 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FUZZY_PRICES,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL,SPF_PASS autolearn=disabled version=3.4.0 Received: from mail-wm0-f65.google.com (mail-wm0-f65.google.com [74.125.82.65]) by alsa0.perex.cz (Postfix) with ESMTP id 24764267748 for ; Tue, 13 Feb 2018 18:01:16 +0100 (CET) Received: by mail-wm0-f65.google.com with SMTP id r71so17415430wmd.1 for ; Tue, 13 Feb 2018 09:01:16 -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=gMzc/4UfCRL2FZQv6l25a9Yutn2cjjhV8z0U72lTsx4=; b=IpY6ks/W/uke/K4QykdivbGMar1/Y8Wd4paMb2rxPXmfMLSs+gAUkNMxyW5+tWL6WN 1WzWp3t0y3ZHsitXPcvPZGdBdn44sWmvQ53+z6sP37iTR4SL9ep9eUrEP+4v4KKP8foG YLKQxpFvhC3P5SXBpjXrpE0NoSjg2QlzylOBw= 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=gMzc/4UfCRL2FZQv6l25a9Yutn2cjjhV8z0U72lTsx4=; b=HuAhJMSHoZZX9gdNT8tMJZ36arStg8Vx8OYJxQ+ZanDNAWnhN7Cuepu8m9KxsZ5E4y 0ECuinAjDycmyPR7+aozC6lxQgQTBqJ54uotfNBTRJhxqZgaE/dbgNZ+U++ohc5L3NFZ Qk3i3/shPOIzxKnzO6Q+AdLvMg54EIP5a1Utei8SIxOIhw5BjOQPnacRhhxUh5eFqhHs ELPZbKqBIByE57JZLXKQvnxvaeeogTujaSBwJ3kFSvD8WZEChu5z63ssITke5iZVp7KG PPnBssTj8NOKqvcPxhmIu5P2V2rsJZB9vzmAMcCQHRFEms1FSOAcCxtZNmpn+VFOro7R ojjA== X-Gm-Message-State: APf1xPC7Rk1EkpM8eoWg+V41EHlFdI4EKuNf8UFLQrTuHkSyPfdxzYN9 FQ4IGWNPdaiCD4aCxlKdwf4z1g== X-Received: by 10.28.110.3 with SMTP id j3mr2022125wmc.97.1518541276526; Tue, 13 Feb 2018 09:01:16 -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 y145sm7432723wmd.43.2018.02.13.09.01.15 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 13 Feb 2018 09:01:15 -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 Date: Tue, 13 Feb 2018 16:58:13 +0000 Message-Id: <20180213165837.1620-2-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 2.15.1 In-Reply-To: <20180213165837.1620-1-srinivas.kandagatla@linaro.org> References: <20180213165837.1620-1-srinivas.kandagatla@linaro.org> Cc: mark.rutland@arm.com, devicetree@vger.kernel.org, bgoswami@codeaurora.org, rohkumar@qti.qualcomm.com, linux-kernel@vger.kernel.org, plai@codeaurora.org, tiwai@suse.com, lgirdwood@gmail.com, david.brown@linaro.org, robh+dt@kernel.org, Srinivas Kandagatla , spatakok@qti.qualcomm.com, linux-soc@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [alsa-devel] [PATCH v3 01/25] dt-bindings: soc: qcom: Add bindings for APR bus 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 Qualcomm APR (Asynchronous Packet Router) bus driver. This bus is used for communicating with DSP which provides audio and various other services to cpu. Signed-off-by: Srinivas Kandagatla --- .../devicetree/bindings/soc/qcom/qcom,apr.txt | 83 ++++++++++++++++++++++ 1 file changed, 83 insertions(+) create mode 100644 Documentation/devicetree/bindings/soc/qcom/qcom,apr.txt -- 2.15.1 _______________________________________________ Alsa-devel mailing list Alsa-devel@alsa-project.org http://mailman.alsa-project.org/mailman/listinfo/alsa-devel diff --git a/Documentation/devicetree/bindings/soc/qcom/qcom,apr.txt b/Documentation/devicetree/bindings/soc/qcom/qcom,apr.txt new file mode 100644 index 000000000000..1b95fbfed348 --- /dev/null +++ b/Documentation/devicetree/bindings/soc/qcom/qcom,apr.txt @@ -0,0 +1,83 @@ +Qualcomm APR (Asynchronous Packet Router) binding + +This binding describes the Qualcomm APR. APR is a IPC protocol for +communication between Application processor and QDSP. APR is mainly +used for audio/voice services on the QDSP. + +- compatible: + Usage: required + Value type: + Definition: must be "qcom,apr-v", example "qcom,apr-v2" + +- qcom,apr-dest-domain-id + Usage: required + Value type: + Definition: Destination processor ID. + Possible values are : + 1 - APR simulator + 2 - PC + 3 - MODEM + 4 - ADSP + 5 - APPS + 6 - MODEM2 + 7 - APPS2 + += APR SERVICES +Each subnode of the APR node can represent service tied to this apr. The name +of the nodes are not important. The properties of these nodes are defined +by the individual bindings for the specific service +- but must contain the following property: + +- qcom,apr-svc-id + Usage: required + Value type: + Definition: APR Service ID, used for matching the service. + Possible values are : + 3 - DSP Core Service + 4 - Audio Front End Service. + 5 - Voice Stream Manager Service. + 6 - Voice processing manager. + 7 - Audio Stream Manager Service. + 8 - Audio Device Manager Service. + 9 - Multimode voice manager. + 10 - Core voice stream. + 11 - Core voice processor. + 12 - Ultrasound stream manager. + 13 - Listen stream manager. + +- qcom,apr-svc-name + Usage: required + Value type: + Definition: User readable name of a APR service. + += APR DEVICES: +Each subnode of the APR node can represent devices tied to this apr, like +sound-card. The properties of these nodes are defined by the individual +bindings for the specific device. + += EXAMPLE +The following example represents a QDSP based sound card on a MSM8996 device +which uses apr as communication between Apps and QDSP. + + apr { + compatible = "qcom,apr-v2"; + qcom,smd-channels = "apr_audio_svc"; + qcom,apr-dest-domain-id = ; + + q6core { + compatible = "qcom,q6core"; + qcom,apr-svc-name = "CORE"; + qcom,apr-svc-id = ; + }; + + q6afe { + compatible = "qcom,q6afe"; + qcom,apr-svc-name = "AFE"; + qcom,apr-svc-id = ; + }; + + audio { + compatible = "qcom,msm8996-snd-card"; + ... + }; + };