From patchwork Fri Feb 8 13:23:02 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinivas Kandagatla X-Patchwork-Id: 10803069 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 417B8922 for ; Fri, 8 Feb 2019 13:24:00 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3057C2A64F for ; Fri, 8 Feb 2019 13:24:00 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 215FA2A819; Fri, 8 Feb 2019 13:24:00 +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=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A96722A64F for ; Fri, 8 Feb 2019 13:23:59 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726585AbfBHNX6 (ORCPT ); Fri, 8 Feb 2019 08:23:58 -0500 Received: from mail-wm1-f65.google.com ([209.85.128.65]:37987 "EHLO mail-wm1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727580AbfBHNXZ (ORCPT ); Fri, 8 Feb 2019 08:23:25 -0500 Received: by mail-wm1-f65.google.com with SMTP id v26so3368701wmh.3 for ; Fri, 08 Feb 2019 05:23:24 -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 :mime-version:content-transfer-encoding; bh=bIjMZWBApTZOoaJL6tl091AuE0dnp0afLV6yVMOATA4=; b=tu+xjPU4S39vb5RpTMx4vlubIIO6GpKivRMOUYjUip9HTdFkpZBVXpTNTWKr3mAQ+W Kh1PIR7iwAgkgxDbA4KzAK3h0LrMVCbBcCGBFwOoPyXbYDXGpXo3VA7+sjWWRjcR7sIt IMy7xGs9ujZP7/5AIZ6pyPETzQrfyBICFIfS7HgFNs4HLeUE8NZsYpgaRWS6Ri6Ahspd 7haBaD6C/0UPo3EeKWcrJ2RTsm45cXlIrPh2XbKtmxQF3Oh1milRGyIR4IKVoN+JOAf9 VDl8NpRpF2496GzrHVm7u4UeMXXRYauhY1pjyNA5sfTqVs/X2XMC1OfRNyiLGUGodJFJ G2Xg== 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=bIjMZWBApTZOoaJL6tl091AuE0dnp0afLV6yVMOATA4=; b=ieKjfk+ylO6ytSYALW1i0D9DmxGVwmGvfwYar0txesV8Lvy/aZfYvocBH3mEWmcPfs KFfubCHMEiRoYbv/p2rUGW9HG1DPHPVHr7vxGWfBAdGjn1AtgQboFLhw57lS4tlFCrgZ /jPPE2CKFgLNb9TpszyGC1yVYeoQUEcgmYGOTDgbWwdw/fxQX3ik7aHRBUMUou1VC/sT jIg41CUXnedgjvW7MpLiBJ8Qx0NvRomFk+VExkJ5JJwrSuNPuMgiOV/uLgk9TXAI7nHg dBMwb3Mint/dDRa/eI+qBJp3OkxpJXK06Aots0ARAvTP+rRihsABdKcJrFmjm7rDAA45 MLkw== X-Gm-Message-State: AHQUAuZVMXKG5GS3cNgYAAnqw5fKOt7QkqBNn+S6iSdugFvPulmsXLHP eCgF7nVq2IgSGyTd5hl0/1RAbA== X-Google-Smtp-Source: AHgI3IaGkYE2MiJFiqeMZsjTziPMPVUiX9811cLFiCd2CB/LB66Dc58Roam518QQMxxgf+GOp539oQ== X-Received: by 2002:a1c:5dce:: with SMTP id r197mr10870170wmb.130.1549632203403; Fri, 08 Feb 2019 05:23:23 -0800 (PST) Received: from srini-hackbox.lan (cpc89974-aztw32-2-0-cust43.18-1.cable.virginm.net. [86.30.250.44]) by smtp.gmail.com with ESMTPSA id m21sm3033007wmi.43.2019.02.08.05.23.21 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 08 Feb 2019 05:23:22 -0800 (PST) From: Srinivas Kandagatla To: gregkh@linuxfoundation.org, arnd@arndb.de Cc: robh+dt@kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, bjorn.andersson@linaro.org, bkumar@qti.qualcomm.com, linux-arm-msm@vger.kernel.org, Srinivas Kandagatla , Thierry Escande , Rob Herring Subject: [PATCH v6 1/5] misc: dt-bindings: Add Qualcomm Fastrpc bindings Date: Fri, 8 Feb 2019 13:23:02 +0000 Message-Id: <20190208132306.12571-2-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190208132306.12571-1-srinivas.kandagatla@linaro.org> References: <20190208132306.12571-1-srinivas.kandagatla@linaro.org> MIME-Version: 1.0 Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP The FastRPC driver implements an IPC (Inter-Processor Communication) mechanism that allows for clients to transparently make remote method invocations across DSP and APPS boundaries. This enables developers to offload tasks to the DSP and free up the application processor for other tasks. Co-developed-by: Thierry Escande Signed-off-by: Thierry Escande Signed-off-by: Srinivas Kandagatla Reviewed-by: Rob Herring --- .../devicetree/bindings/misc/qcom,fastrpc.txt | 78 +++++++++++++++++++ 1 file changed, 78 insertions(+) create mode 100644 Documentation/devicetree/bindings/misc/qcom,fastrpc.txt diff --git a/Documentation/devicetree/bindings/misc/qcom,fastrpc.txt b/Documentation/devicetree/bindings/misc/qcom,fastrpc.txt new file mode 100644 index 000000000000..2a1827ab50d2 --- /dev/null +++ b/Documentation/devicetree/bindings/misc/qcom,fastrpc.txt @@ -0,0 +1,78 @@ +Qualcomm Technologies, Inc. FastRPC Driver + +The FastRPC implements an IPC (Inter-Processor Communication) +mechanism that allows for clients to transparently make remote method +invocations across DSP and APPS boundaries. This enables developers +to offload tasks to the DSP and free up the application processor for +other tasks. + +- compatible: + Usage: required + Value type: + Definition: must be "qcom,fastrpc" + +- label + Usage: required + Value type: + Definition: should specify the dsp domain name this fastrpc + corresponds to. must be one of this: "adsp", "mdsp", "sdsp", "cdsp" + +- #address-cells + Usage: required + Value type: + Definition: Must be 1 + +- #size-cells + Usage: required + Value type: + Definition: Must be 0 + += COMPUTE BANKS +Each subnode of the Fastrpc represents compute context banks available +on the dsp. +- All Compute context banks MUST contain the following properties: + +- compatible: + Usage: required + Value type: + Definition: must be "qcom,fastrpc-compute-cb" + +- reg + Usage: required + Value type: + Definition: Context Bank ID. + +- qcom,nsessions: + Usage: Optional + Value type: + Defination: A value indicating how many sessions can share this + context bank. Defaults to 1 when this property + is not specified. + +Example: + +adsp-pil { + compatible = "qcom,msm8996-adsp-pil"; + ... + smd-edge { + label = "lpass"; + fastrpc { + compatible = "qcom,fastrpc"; + qcom,smd-channels = "fastrpcsmd-apps-dsp"; + label = "adsp"; + #address-cells = <1>; + #size-cells = <0>; + + cb@1 { + compatible = "qcom,fastrpc-compute-cb"; + reg = <1>; + }; + + cb@2 { + compatible = "qcom,fastrpc-compute-cb"; + reg = <2>; + }; + ... + }; + }; +};