From patchwork Sat Mar 10 02:24:33 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinivas Kandagatla X-Patchwork-Id: 131257 Delivered-To: patch@linaro.org Received: by 10.46.66.2 with SMTP id p2csp1690232lja; Fri, 9 Mar 2018 18:27:51 -0800 (PST) X-Google-Smtp-Source: AG47ELu7Tn1djheh8WF2hlLYO0rylq6LN7/RqkghDC7pYEDppsow/JGYAvCD6AxY9dFmKR6e9G7y X-Received: by 10.99.119.5 with SMTP id s5mr501223pgc.71.1520648871378; Fri, 09 Mar 2018 18:27:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520648871; cv=none; d=google.com; s=arc-20160816; b=JbD5w2Z1BjXM0TR0R/7jk38mQ4JnK8/1FQmJOvX1VlUG71UjU5I9PWUd4MuXZ0akfg +uewDSl+0z9AH3IwWoszo1sT/NnFZS64Wun7iXRZjFHhVraUMci5NRbbS1euIhDju1h6 PvmYhfs5JwkINkJpV4CLZvKU/LCji7eakgh5DsKfac5zv6iIJGXb0Dhp+CdNg2EEs3Fu lL8Eygwxku/igW64iPxfzrU6iRKH4zM3FmYrl9y1Y/q7qomRtz/ls31GOOebvOELWTCz 4tAGI9AVOaxY3Ry46foOWzRqsL27g2+sYQhyxn0nFwvbqF11ARcMFQwk5rOhu2po5Ui5 DK/Q== 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=2qmF8swB8xM6BPVInSwxGAxjVIWGmS9OAbK073X9fkM=; b=uJzybzxvzYH8d77pLn7wXrNOonGjpGOyOSzlCNG9mH3PPGEGA4gi7uMoeLbwNkXu+S O/adVXmq+fS7y3AOe6HlJdReoQPqxPlH+jzgUNzBPdr+fNhJFcDW2CS68UaBofKsnvVl hMaptXXenCsanIcfOI7YNXOFtvwDHRQLZ7FymmHRAvSPFc1/b6tXGjhC41L3EDwnNknR Ci8X7/edn7yj1UMIDc49qnuyFKrEGkpRHwG7YACWiorNbedJrUUIH42j5RaS/UXjU8Ux u8TooJhengyOb2VyaAobCJPZZ7IstU+4xc6ZeTFuxHLwsDIwH965ctDr+crjrWxH40Jx XUNQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=EfuE7YIu; spf=pass (google.com: best guess record for domain of linux-arm-msm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-arm-msm-owner@vger.kernel.org; dmarc=fail (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 r20si1623702pgu.423.2018.03.09.18.27.51; Fri, 09 Mar 2018 18:27:51 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-arm-msm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=EfuE7YIu; spf=pass (google.com: best guess record for domain of linux-arm-msm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-arm-msm-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932666AbeCJC1q (ORCPT + 10 others); Fri, 9 Mar 2018 21:27:46 -0500 Received: from mail-wr0-f195.google.com ([209.85.128.195]:38928 "EHLO mail-wr0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751275AbeCJC1p (ORCPT ); Fri, 9 Mar 2018 21:27:45 -0500 Received: by mail-wr0-f195.google.com with SMTP id r66so3092438wrb.6 for ; Fri, 09 Mar 2018 18:27:44 -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=qNkPjCX+uXERSiiJcnrRkyTt+6mEj36twYioni/4PQA=; b=EfuE7YIukazxaNNiDN745GBCdYaJQUB3eY4pkmh/luwizJafX66MxoWHDVWKFnuSls hGNoJXxDzW8SchCVkMAkZMEeBD3O+5j44w1mSlbH5EYCnavZJ2A5nWyNPvr+PxDqkzib 0I2KtecmoxDpnhG1xcBYwxt9LnOtCa+mejl4w= 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=qNkPjCX+uXERSiiJcnrRkyTt+6mEj36twYioni/4PQA=; b=MO+cXOI3MPwObAK0jiMZXyedmEZ9H0tCUG9PePcJKIpSoTefmEdhjyp8Gx1bomOukr IZ24MEeYBUFWqGmsajVlyC6zW0YWt+dNWAhMx1RSeysKTQgVPpOsNxdH8M3oc1gIHvLb 8m6t4adfWOEvLVVQPKZz6rDpv92HTYP4TKBG87kxM9rx4dTNSspfSGaFfOC4NuZKnFvq gmbgbvaVA9l49bHcHMGhPqbzAAkEE/2nTRklWK1w+J7/T5Y+bNNSkIAqe6+yrovqI3Lh ETrJPrlILiY8ruuGz2ilUgkxCvj2/7MnJ2eEIRGuQ0+DQNZ7XShXc1xixmjHemFVnqC3 cQ9A== X-Gm-Message-State: AElRT7GG6OlS+3RjmUEe3jeZCVRVfWPrjC/1IR3CKYrnPzsqfpPD+cSR gRGNOnT0sOMhVcwtplHhHWTJMw== X-Received: by 10.223.195.204 with SMTP id d12mr438500wrg.116.1520648863586; Fri, 09 Mar 2018 18:27:43 -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.42 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 09 Mar 2018 18:27:43 -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 Cc: gregkh@linuxfoundation.org, david.brown@linaro.org, mark.rutland@arm.com, lgirdwood@gmail.com, plai@codeaurora.org, bgoswami@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@linaro.org Subject: [PATCH v4 01/24] soc: qcom dt-bindings: Add APR bus bindings Date: Sat, 10 Mar 2018 02:24:33 +0000 Message-Id: <20180310022456.26739-2-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> Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.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 | 85 ++++++++++++++++++++++ include/dt-bindings/soc/qcom,apr.h | 27 +++++++ 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 -- 2.15.1 -- To unsubscribe from this list: send the line "unsubscribe linux-arm-msm" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html 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..6071a9038b4b --- /dev/null +++ b/Documentation/devicetree/bindings/soc/qcom/qcom,apr.txt @@ -0,0 +1,85 @@ +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 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: + +- 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. + += 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 = ; + }; + + q6asm { + compatible = "qcom,q6asm"; + qcom,apr-svc-name = "ASM"; + qcom,apr-svc-id = ; + }; + + q6adm { + compatible = "qcom,q6adm"; + qcom,apr-svc-name = "ADM"; + qcom,apr-svc-id = ; + }; + }; diff --git a/include/dt-bindings/soc/qcom,apr.h b/include/dt-bindings/soc/qcom,apr.h new file mode 100644 index 000000000000..905503f81885 --- /dev/null +++ b/include/dt-bindings/soc/qcom,apr.h @@ -0,0 +1,27 @@ +#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 */