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: 157839 Delivered-To: patch@linaro.org Received: by 2002:a02:48:0:0:0:0:0 with SMTP id 69csp1951227jaa; Fri, 8 Feb 2019 05:23:27 -0800 (PST) X-Google-Smtp-Source: AHgI3IbjMABxJYl6p+nM1CEcgb+wxo67LdclU8OG9yhhnU8xTlQmMVzZSOAodKfMYdfipILZKwW3 X-Received: by 2002:a63:d005:: with SMTP id z5mr20306021pgf.64.1549632207664; Fri, 08 Feb 2019 05:23:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549632207; cv=none; d=google.com; s=arc-20160816; b=bGZn44jMwDsSgVhKlTrMFqY0kYEZruRUOmAAuHDd5FD8G1IJw656VljrbcYOGZuqmQ TrGma3q3vuT36C8B/cvEv3bNASbUJgLPe23ccxWWzWY7X8nojqgwm8iL2YMkSAyvKaLQ Y+0dU0N7SLSeYRaddFSwGK7mM4zAzLP9yGy+VV4op82rUzCuxv1ZoQ207IFVbzPRTp4u XYsxnBakR3WJKAlqYu/mUouE1KZoXI67DJo0zlaJ6Y2ToIQ2vqBdg2xGT293nPP+kHrB rDKI5Rw8oaC37muulkbiL9nTbZw999yLlLJ0MOp0KL4bnHFcgWDj+a546LguHe84BF/2 /cSA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=bIjMZWBApTZOoaJL6tl091AuE0dnp0afLV6yVMOATA4=; b=qG2BwxHryT4BM4ZJvD4Kf4RzMZGtPa8gf9VL7aIEY83pox3u/Bnbj7bxcD0XXCIabX CPFi6djN6MV1PnZmXrxQeL8TXMSNFAPz0Jb4/Sz/6eJorq45ARkQh3y23yRJowEuOTHx 2hmj5qafGTVlIKo4JBWd2TtZsDlEeDjERt8eknYiOHOHi5MlgCaaB+UiLzh3ojKWNVoA d6uJwONq/2C9x0nEffWxFxEwcwdqrDDANWQd9HbTqcsfHHOcZRcD9sW2+uXhu4HazOY8 ldSdWHnH5PR5CJy/PySk6UJOqJF0lcK8JugbJF7x5sLP/RvAB+e/rZkJ1y0hsjE+q3Ij Ma0g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=tu+xjPU4; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-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 y8si2256114pfn.26.2019.02.08.05.23.27; Fri, 08 Feb 2019 05:23:27 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of devicetree-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=tu+xjPU4; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-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 S1727673AbfBHNX0 (ORCPT + 7 others); Fri, 8 Feb 2019 08:23:26 -0500 Received: from mail-wm1-f66.google.com ([209.85.128.66]:50311 "EHLO mail-wm1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727579AbfBHNXZ (ORCPT ); Fri, 8 Feb 2019 08:23:25 -0500 Received: by mail-wm1-f66.google.com with SMTP id z5so3419501wmf.0 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=exKJ+O0fGqECsdjU+B7BB43JBBwmzCjNNE1uvFdHq7Qmor3fMJvVWt8u1fLNl2j9JA D63WfmO7AUGZnQKQxCf4ullyl69HuZ+EM2A7WMehhP6hLOJjWPreoqcmGPD+AKupzInG gXi8OwjUxJYERJynhnFt3oPzuQq3Ztx1uLPKx7JY8IhtdiQL9NTY/oeg3Ki61QuTF5WO sqKkV85T1XDPvscAXMHV8rGY9h7oFfgupWqeCN1f8oWiVGhLxqsMJUPDt4j84kbiq6QV 4R7+8Djf2YKLCmXfFhLjpha0gR7AwAcPORWQEYJbeoWoKUhhPxKB/gOgh6LgG3Gz0zcy BiWw== X-Gm-Message-State: AHQUAubwz/FVW8LykHpiBZcrGGAZs2wFx1xxljRdNmoHz8Ze1zmKNZw6 2mh8izR3+LFjX0FqSaJeLYwn6Q== 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: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org 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 -- 2.20.1 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>; + }; + ... + }; + }; +};