Received: by 10.192.165.148 with SMTP id m20csp304913imm; Fri, 4 May 2018 10:35:48 -0700 (PDT) X-Google-Smtp-Source: AB8JxZp792oTDwkWF3/atFGaA5q0xQTsmbCCEirqVT+juRknHBciFuiiRCMNfmZvagYNK4m3vGmA X-Received: by 2002:a17:902:8a81:: with SMTP id p1-v6mr5717076plo.33.1525455348757; Fri, 04 May 2018 10:35:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525455348; cv=none; d=google.com; s=arc-20160816; b=LwT71NKzEExQEvzGSa6pd00kgwq2OA/rbX2Bxw/PT+8KMffNZQ0gdqV2n+SKtnIa8D QHj7KaOkIbm42RxtlSgGF70Q+BnLXsJKeUqOFGu923Hw3xtmjRcof6/ftwjpRKJbroe+ +1DG2hKcq4TbDBSxSGTFskM3qljXVJMPmhQJUDoQUZpeIEtIe8HunUpbj9bOvx0Z5E48 mrkayvo9f3Ioq7pDxMyLlWUKNjhjpQCnM5o8hOIqw3ASuXZe5wH9oOHbidHtD5N+fO1A /7ZtoPGpwlhhhW5Jv4UHEiS/lbzqPfhhGmoMCSywViadaMOGsm2KOiHaZwpF3EKsIV8g nMBA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=nbQqtpcl1z98QxQVj+g0xDc5zuF1lf8Mf55t3bbC7aI=; b=stagrRY341nFK9YsiUYo8vEdL6hWp0rZx5NkJHd3mHjltU1qzIBw7TqtK8BvZoY784 my/UOVYu3nwq0CmyWWtsMCqKCrifDWuvCtWn2fy/iYSYjsE5xlAMv0O7mzPU36oSoItq kzWOiljtf6Zx+9W6nl4b471g5Ou2leINklp3pim1Xf9ljVzpgUsvAQ7zbmP8DDCajQhi eefp1q27E++uQsrJD7FZUNKZwniAcPsRrPLb/vHkbl4PMFT9kcVayJk7isaZwYNr72go bp0LlkISY/Q2asNfJvwhYs2g/WJb3ZiG+4VzJyWK4DEq5hTY54LZv9jmJfXth74LoPZe +Ieg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=eM0MfoBj; 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 r7-v6si16142611ple.585.2018.05.04.10.35.34; Fri, 04 May 2018 10:35: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=eM0MfoBj; 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 S1751561AbeEDRdz (ORCPT + 99 others); Fri, 4 May 2018 13:33:55 -0400 Received: from mail-pf0-f196.google.com ([209.85.192.196]:37551 "EHLO mail-pf0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751476AbeEDRdx (ORCPT ); Fri, 4 May 2018 13:33:53 -0400 Received: by mail-pf0-f196.google.com with SMTP id e9so13963537pfi.4 for ; Fri, 04 May 2018 10:33:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=nbQqtpcl1z98QxQVj+g0xDc5zuF1lf8Mf55t3bbC7aI=; b=eM0MfoBjhRpDjvcplpy8ekkV1NA+YeifoLnMx4BgF6nlXjL3fM2nSaEz0xuv1ObGGv vNTCxQGVxDD7Tq1lThCQuhjTW6pETUI5HirgxNOroh+nObJkNr3lLAWRCcSY2Vl75jjM PlxNsa3fzGkpShn4fcengOzWU71z7hePMKjqs= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=nbQqtpcl1z98QxQVj+g0xDc5zuF1lf8Mf55t3bbC7aI=; b=UDYWOfTlvH+eut/r80e70UScYAhSY+nj7oQ5/Wcqx14gdti1OTx5CbaXsFWYZilfig sOuRKBJDfj9Qxg3j++g1m1LcK4vXE4Gx1N6MV485lJiVoBbt2r90kF+ThS60KBUpqORw S9eVOIG1/Bfp0Ln0ERVqfTEQTXRrP7/f2uFBioY91o4W95LxBuviXnVvHOku6VpjKdDC T2GitA/1pvM3ygC1+0L6qN/drrd4/CtoDCLVjW5yQmhDtesrjhWIKoc2H4BoDA8Bvb3f MUroPQD4FMbFp9APVhYTEIC+074LtDarLyKp/0uKLeTJdOVOfNtGoA5mFNiIL+Fpo8se IRPA== X-Gm-Message-State: ALQs6tCGuHf05w3K4B2kIMcXURrTDnGwGAUhISLhVMCmkYK64vKDM2pJ /pOp+NxrURZxmjFePtwNVE658g== X-Received: by 2002:a17:902:42e:: with SMTP id 43-v6mr6924462ple.365.1525455232286; Fri, 04 May 2018 10:33:52 -0700 (PDT) Received: from minitux (104-188-17-28.lightspeed.sndgca.sbcglobal.net. [104.188.17.28]) by smtp.gmail.com with ESMTPSA id a4sm13257997pfj.19.2018.05.04.10.33.50 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 04 May 2018 10:33:51 -0700 (PDT) Date: Fri, 4 May 2018 10:33:49 -0700 From: Bjorn Andersson To: Srinivas Kandagatla Cc: 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, 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 Subject: Re: [PATCH v7 01/24] soc: qcom dt-bindings: Add APR bus bindings Message-ID: <20180504173348.GS18510@minitux> References: <20180501120820.11016-1-srinivas.kandagatla@linaro.org> <20180501120820.11016-2-srinivas.kandagatla@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180501120820.11016-2-srinivas.kandagatla@linaro.org> User-Agent: Mutt/1.9.2 (2017-12-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue 01 May 05:07 PDT 2018, Srinivas Kandagatla wrote: > 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 > Reviewed-by: Rob Herring Reviewed-by: Bjorn Andersson Regards, Bjorn > --- > .../devicetree/bindings/soc/qcom/qcom,apr.txt | 84 ++++++++++++++++++++++ > include/dt-bindings/soc/qcom,apr.h | 28 ++++++++ > 2 files changed, 112 insertions(+) > create mode 100644 Documentation/devicetree/bindings/soc/qcom/qcom,apr.txt > create mode 100644 include/dt-bindings/soc/qcom,apr.h > > 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..bcc612cc7423 > --- /dev/null > +++ b/Documentation/devicetree/bindings/soc/qcom/qcom,apr.txt > @@ -0,0 +1,84 @@ > +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" > + > +- reg > + 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 represents 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 > +- All APR services MUST contain the following property: > + > +- reg > + Usage: required > + Value type: > + Definition: APR Service ID > + 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. > + > += EXAMPLE > +The following example represents a QDSP based sound card on a MSM8996 device > +which uses apr as communication between Apps and QDSP. > + > + apr@4 { > + compatible = "qcom,apr-v2"; > + reg = ; > + > + q6core@3 { > + compatible = "qcom,q6core"; > + reg = ; > + }; > + > + q6afe@4 { > + compatible = "qcom,q6afe"; > + reg = ; > + > + dais { > + #sound-dai-cells = <1>; > + hdmi@1 { > + reg = <1>; > + }; > + }; > + }; > + > + q6asm@7 { > + compatible = "qcom,q6asm"; > + reg = ; > + ... > + }; > + > + q6adm@8 { > + compatible = "qcom,q6adm"; > + reg = ; > + ... > + }; > + }; > diff --git a/include/dt-bindings/soc/qcom,apr.h b/include/dt-bindings/soc/qcom,apr.h > new file mode 100644 > index 000000000000..006362400c0f > --- /dev/null > +++ b/include/dt-bindings/soc/qcom,apr.h > @@ -0,0 +1,28 @@ > +/* SPDX-License-Identifier: GPL-2.0 */ > +#ifndef __DT_BINDINGS_QCOM_APR_H > +#define __DT_BINDINGS_QCOM_APR_H > + > +/* Domain IDs */ > +#define APR_DOMAIN_SIM 0x1 > +#define APR_DOMAIN_PC 0x2 > +#define APR_DOMAIN_MODEM 0x3 > +#define APR_DOMAIN_ADSP 0x4 > +#define APR_DOMAIN_APPS 0x5 > +#define APR_DOMAIN_MAX 0x6 > + > +/* ADSP service IDs */ > +#define APR_SVC_ADSP_CORE 0x3 > +#define APR_SVC_AFE 0x4 > +#define APR_SVC_VSM 0x5 > +#define APR_SVC_VPM 0x6 > +#define APR_SVC_ASM 0x7 > +#define APR_SVC_ADM 0x8 > +#define APR_SVC_ADSP_MVM 0x09 > +#define APR_SVC_ADSP_CVS 0x0A > +#define APR_SVC_ADSP_CVP 0x0B > +#define APR_SVC_USM 0x0C > +#define APR_SVC_LSM 0x0D > +#define APR_SVC_VIDC 0x16 > +#define APR_SVC_MAX 0x17 > + > +#endif /* __DT_BINDINGS_QCOM_APR_H */ > -- > 2.16.2 >