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: 10216853 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 C332060329 for ; Tue, 13 Feb 2018 17:03:33 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B307728E34 for ; Tue, 13 Feb 2018 17:03:33 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A785128EB5; Tue, 13 Feb 2018 17:03:33 +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=0.4 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,FUZZY_PRICES autolearn=no 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 156BE28E34 for ; Tue, 13 Feb 2018 17:03:32 +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=PcRa0iHFcR/mcYsP6Zl7o8wOMiJ+zaQuLEiJ4DSyim8=; b=U8jJ34JNLtvtPzMKCmZZC4GJmV u27uGkQ9Ugv/NQxZZCkCSxThu9PELhQlc3Sl3mQaxxb59eRsnM1ERwgNxJYZwY4sudzoBxl6Pb6Cf NS8vkEhBrjwgjMbnsjR2r9EZecv28gyBJRPCLReU7uyzmrzwmdUMXK1k4LbSodxaelGKHr1HHtFQv 8tbGHnFM8vbjenEN4YtnZA9OVNtqF3+dRwwRpV3jy+C12npZ6Hj59Ps+swiq+RdEoug5jzCwTChr7 N4diqwQ0lkY9j3/M71XnyK0Lcyx7Vm50hcuHxnapSzyrUNqyTsbmxSsJ8X2TSMJoFtbQOa3kxXp5o kF+V3rBA==; 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 1eldzM-0004yv-Oc; Tue, 13 Feb 2018 17:03:28 +0000 Received: from mail-wm0-x243.google.com ([2a00:1450:400c:c09::243]) by bombadil.infradead.org with esmtps (Exim 4.89 #1 (Red Hat Linux)) id 1eldxQ-0003Yf-Kg for linux-arm-kernel@lists.infradead.org; Tue, 13 Feb 2018 17:01:33 +0000 Received: by mail-wm0-x243.google.com with SMTP id a84so6048911wmi.5 for ; Tue, 13 Feb 2018 09:01:17 -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=hXKOvMYhDRwHaTBpjnnrt6MW4wGrSOLp27oT81jd2C1r62vmuoiUzGixjD0XhEOTFL tEz6EA3P+2FjkFmiuhpbe82jdHUGK5vSlKRZMGa/OJzn2pS9ZeIBH4pROYGxLATBRvSV +Wb39anS/FSLLY93TFxzhfV/zqr+G9I+wVgTQ2ifFgPS3YLboy9O82YyGWXElbON1Hmp cDNdArFJnxTEURvnQVjEKTo9Fi8sDFzRPrMc6y6zzXVe4fDkcrZF5sD3PNZq8fpTgEkM R3HH2erPZgxmrPemv4rf61Cdjc64RJYrIGN/P8t92PelcEoZonx9n3V1H0RbhXTQnOQL cEjA== X-Gm-Message-State: APf1xPCUnScJo+c2i1wbzvjL7+XN///481KBEanGbAXmMeOQ/f//XsbD BA5xbqTOd5/+UROxR/c838BT2Q== X-Google-Smtp-Source: AH8x225dpxIo9RdM1XkmHUzkaszMFmLDxhA18MzTnNM7F0O/MeMMwMFKxPC75XT2OnFSzNBEm+1Z/w== 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 Subject: [PATCH v3 01/25] dt-bindings: soc: qcom: Add bindings for APR bus 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> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180213_090128_747292_CE21C81B X-CRM114-Status: GOOD ( 13.19 ) 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, linux-kernel@vger.kernel.org, plai@codeaurora.org, tiwai@suse.com, lgirdwood@gmail.com, perex@perex.cz, 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 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 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 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"; + ... + }; + };