Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp489785pxv; Wed, 14 Jul 2021 08:31:41 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzVIT+ZYlUsyLS5Wec2nnPjzNrI25AEENB4HvMWNpF4uxjjXQw4tVFt3IsCMwTDqpO6kSLq X-Received: by 2002:a05:6e02:20e3:: with SMTP id q3mr6971253ilv.214.1626276701260; Wed, 14 Jul 2021 08:31:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626276701; cv=none; d=google.com; s=arc-20160816; b=phY7V8RGvhTA2bwwxjcDKaW/NZGPix3rR0+V9D6wOV+McCQd3OJmL/88ZsbfMheKt7 ZxTZhwDMEK3/Dc0q7onBo/fGdmsKOso8muYj6ZnQgYe6WwtSp1+FlOdplisO4mKqPrX3 UmzGzW84FyXX4Un1ohN5VliCuNfn06qMtcoQt737WLI4b0QS6cjYEsjTua6R58B93VKm lBGnveKgpjm78RTKHMVCD6k7BK3FxoBdqC2i5GsQrRI6PfwNhlEtsFJAAEjkG9H4KsSS bKWwLbSNI4wMj84sO9F/VK+R/UD/9+ohOK458M/AERIsVxque8hrfptcTsaQWxKbv0AW vMYw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=xiCF2nRgXBkkZxRW+nKblAu8sGXdLERpAmm5UZ/e/m8=; b=NfaJuD5Sx38SzYpc/nK8zlsMMGHD8O49fV8V10ngoi1wgf8RG2Z6eLNeJxcMXaeeQa llYlPiQJuC6YPED75/G0Vy76wm8jMO/Q9FOj5Frsf3rvkYy00f7uo6C8kh5NBkfHUtYV CMDt9BccSRT9nNTa/78hktKhTE0TNHNMPKTFXOVmVEaxlBLkycl9KO7PUAZuGbgO5o48 XLc4yauqOoGHiN5P5T5fjw6ZOe2gR1qBvUeG/CNWxEX4CluH5uz679ZJeFR6FrBfYjXf K0aBYCRexuSBV3DIRY0id6dOHVLg27B/S0Bn6L8ZcgKNuWOXHwL0mbLLRNd0YgieMohB Wmbg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=SRhSOcNw; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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. [23.128.96.18]) by mx.google.com with ESMTP id r6si3456672iov.48.2021.07.14.08.31.27; Wed, 14 Jul 2021 08:31:41 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=SRhSOcNw; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S239607AbhGNPdt (ORCPT + 99 others); Wed, 14 Jul 2021 11:33:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47118 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239647AbhGNPdt (ORCPT ); Wed, 14 Jul 2021 11:33:49 -0400 Received: from mail-wm1-x32b.google.com (mail-wm1-x32b.google.com [IPv6:2a00:1450:4864:20::32b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C51DDC061760 for ; Wed, 14 Jul 2021 08:30:56 -0700 (PDT) Received: by mail-wm1-x32b.google.com with SMTP id j34so1836718wms.5 for ; Wed, 14 Jul 2021 08:30:56 -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 :mime-version:content-transfer-encoding; bh=xiCF2nRgXBkkZxRW+nKblAu8sGXdLERpAmm5UZ/e/m8=; b=SRhSOcNwWN+ksk7Vs4KchDJ5/wH8TgYYFftErjY+9pbOkYNwDha7sNoYZzFCOjEfZc lY1Dw+HqNQ8AeiorkcGTa5q2YsGSgM//zTCf4DONWjgNRuN8RgK9qSi6aMfR9NlapphG hsimlLmoze5ccvvySMp4Dou4BUjHp6MMGbXq2gvMyECV7Tfh+hBr+BQbAS0JFTM95Orz K46foeXTtB2XGa/aB9Ip4syGkC/ulMZba2MyYBBbp16TP+DN2i7yGM2Sbywp6AAzMuXq Gt2UJg2fWZAuRCMt+oX7eBebrMAi3BtUJIepBy4DNWc7s3A5IC+EknMgD7u8VlnUhOu4 gpUA== 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:mime-version:content-transfer-encoding; bh=xiCF2nRgXBkkZxRW+nKblAu8sGXdLERpAmm5UZ/e/m8=; b=KzlXj5TffVSV9Iw/lmoJ/jArRCs6KaBzD+x2z2pt2x5yc6KJT4N9mBo8oTcXcSQOZx 6fAVdr7a8TYBQpnn01IUmp3Asf1DniMMUcRK8xP0ojMwU8WvN+w8ifYQARu8qWCPjBcc D5VZR/UA2I2evpzMlLytha6AQuWzoLn89odiVCFKVo6sw4Amf6xb5xbrr8JET6JXxkwe lt4EXTeZTXGj29eS/8Zu56NS0oBUZ22AurSlXmEHICvGyCb5aTB4nMdZpuqo4dTlEqU0 diuXsUuM5oMbfqWOUodAWsYaleEDnhhm4jEXpxgWu/zg/OplTebJ3aQGEvqn/uws3qly KLBg== X-Gm-Message-State: AOAM533cu9SWRrr2IipLPV8iWioNdVvZJ3Ip+sLZF0Nqp1fRF/DD1UXv TrtZopxN8hgWZ/MDWaBx/Gjw4A== X-Received: by 2002:a05:600c:3b93:: with SMTP id n19mr4770604wms.3.1626276655306; Wed, 14 Jul 2021 08:30:55 -0700 (PDT) Received: from srini-hackbox.lan (cpc86377-aztw32-2-0-cust226.18-1.cable.virginm.net. [92.233.226.227]) by smtp.gmail.com with ESMTPSA id y6sm2465174wma.48.2021.07.14.08.30.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 14 Jul 2021 08:30:54 -0700 (PDT) From: Srinivas Kandagatla To: bjorn.andersson@linaro.org, broonie@kernel.org, robh@kernel.org Cc: plai@codeaurora.org, tiwai@suse.de, devicetree@vger.kernel.org, perex@perex.cz, alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org, lgirdwood@gmail.com, bgoswami@codeaurora.org, Srinivas Kandagatla Subject: [PATCH v2 01/16] soc: dt-bindings: qcom: add gpr bindings Date: Wed, 14 Jul 2021 16:30:24 +0100 Message-Id: <20210714153039.28373-2-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20210714153039.28373-1-srinivas.kandagatla@linaro.org> References: <20210714153039.28373-1-srinivas.kandagatla@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Qualcomm Generic Packet router aka GPR is the IPC mechanism found in AudioReach next generation signal processing framework to perform command and response messages between various processors. GPR has concepts of static and dynamic port, all static services like APM (Audio Processing Manager), PRM (Proxy resource manager) have fixed port numbers where as dynamic services like graphs have dynamic port numbers which are allocated at runtime. All GPR packet messages will have source and destination domain and port along with opcode and payload. Signed-off-by: Srinivas Kandagatla --- .../bindings/soc/qcom/qcom,gpr.yaml | 83 +++++++++++++++++++ include/dt-bindings/soc/qcom,gpr.h | 18 ++++ 2 files changed, 101 insertions(+) create mode 100644 Documentation/devicetree/bindings/soc/qcom/qcom,gpr.yaml create mode 100644 include/dt-bindings/soc/qcom,gpr.h diff --git a/Documentation/devicetree/bindings/soc/qcom/qcom,gpr.yaml b/Documentation/devicetree/bindings/soc/qcom/qcom,gpr.yaml new file mode 100644 index 000000000000..d6dda44b655e --- /dev/null +++ b/Documentation/devicetree/bindings/soc/qcom/qcom,gpr.yaml @@ -0,0 +1,83 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: "http://devicetree.org/schemas/soc/qcom/qcom,gpr.yaml#" +$schema: "http://devicetree.org/meta-schemas/core.yaml#" + +title: Qualcomm Generic Packet Router binding + +maintainers: + - Srinivas Kandagatla + +description: | + This binding describes the Qualcomm Generic Packet Router,Shared Memory Manager, + used to send and receive packets between Audio DSP and Application processor. + +properties: + compatible: + const: qcom,gpr + + qcom,glink-channels: + const: adsp_apps + description: + glink channel associated with gpr function + + qcom,protection-domain: + $ref: /schemas/types.yaml#/definitions/string-array + description: protection domain service name and path for gpr service + has dependency on. + items: + - const: avs/audio + - const: msm/adsp/audio_pd + + qcom,gpr-domain: + $ref: /schemas/types.yaml#/definitions/uint32 + enum: [1, 2, 3] + description: + Selects the processor domain for gpr + 1 = Modem Domain + 2 = Audio DSP Domain + 3 = Application Processor Domain + + '#address-cells': + const: 1 + + '#size-cells': + const: 0 + +#GPR Services +patternProperties: + 'gprservice@[0-9]+$': + type: object + description: + GPR node's client devices use subnodes for desired static port services. + + properties: + reg: + maxItems: 1 + description: Service port id + + additionalProperties: false + +required: + - compatible + - qcom,glink-channels + - qcom,gpr-domain + +additionalProperties: false + +examples: + - | + #include + gpr { + compatible = "qcom,gpr"; + qcom,glink-channels = "adsp_apps"; + qcom,gpr-domain = ; + qcom,protection-domain = "avs/audio", "msm/adsp/audio_pd"; + #address-cells = <1>; + #size-cells = <0>; + + gprservice@1 { + reg = ; + }; + }; diff --git a/include/dt-bindings/soc/qcom,gpr.h b/include/dt-bindings/soc/qcom,gpr.h new file mode 100644 index 000000000000..1c68906e079c --- /dev/null +++ b/include/dt-bindings/soc/qcom,gpr.h @@ -0,0 +1,18 @@ +/* SPDX-License-Identifier: GPL-2.0 */ +#ifndef __DT_BINDINGS_QCOM_GPR_H +#define __DT_BINDINGS_QCOM_GPR_H + +/* DOMAINS */ + +#define GPR_DOMAIN_ID_MODEM 1 +#define GPR_DOMAIN_ID_ADSP 2 +#define GPR_DOMAIN_ID_APPS 3 + +/* Static Services */ + +#define GPR_APM_MODULE_IID 1 +#define GPR_PRM_MODULE_IID 2 +#define GPR_AMDB_MODULE_IID 3 +#define GPR_VCPM_MODULE_IID 4 + +#endif /* __DT_BINDINGS_QCOM_GPR_H */ -- 2.21.0