From patchwork Mon Jan 14 19:41:08 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinivas Kandagatla X-Patchwork-Id: 10763333 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 AC8EF139A for ; Mon, 14 Jan 2019 19:42:21 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9D82329EE1 for ; Mon, 14 Jan 2019 19:42:21 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9BD4B29EF7; Mon, 14 Jan 2019 19:42:21 +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 2E97929EFB for ; Mon, 14 Jan 2019 19:42:21 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726863AbfANTmT (ORCPT ); Mon, 14 Jan 2019 14:42:19 -0500 Received: from mail-wr1-f68.google.com ([209.85.221.68]:41060 "EHLO mail-wr1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726833AbfANTmQ (ORCPT ); Mon, 14 Jan 2019 14:42:16 -0500 Received: by mail-wr1-f68.google.com with SMTP id x10so240771wrs.8 for ; Mon, 14 Jan 2019 11:42:15 -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=SMVWf8S5qQu4nvxHW3aF7B34QEW9X1fPwQ6VU5Gu+DY=; b=k0x3W17SuiYSteG11Gc0m9OKo1MyAuFmDtUW5axGlr2XXH19XnSz+MHtLGApPmof7p ckHUuBtJMBSZr16+qUqJMmW2eLDob84ttVM1MvdqkKJ9A+TcLWtv+lRf6kgyV4fPgl0r tI/QMFEfZPi+AcrI13Ugfo8IfTFtIgg/fAPY4= 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=SMVWf8S5qQu4nvxHW3aF7B34QEW9X1fPwQ6VU5Gu+DY=; b=kHq/mZON8EE2zUpZtx8sZI0nwuh/v/xLAdJH+h8xJ4k4UIscQlXhN751QbIK//LstT GO6mCh7pQxng0NpMr52Sgrn3u6oiJwFMUp+MN8JHSXU+j7WgxXe3OoYUNBP30W6nBkCx c5uA+I2bpkk6XJzrgIQ+UXbfysZz8bxtvhjiRYsGdZ24GKT+AFBPbAiOD9fyedoA4Ee0 Y8UhYLXdGCf2nXIYJotJAXKC5BNf8mJM5hwX4oHybuTrk1sPWA7C+4a+z1npZAhQVQt9 43dlUGqpNjAh8NqZgHdKmDvD+WUYum+DMtKjL8Z6ze2u0pPTjHzOv1x+3efZ+dCjsYB3 AskA== X-Gm-Message-State: AJcUukdGatTuSZgkwgYOm+QXG6OMXVs8IxoMMKuCeQZmKd8XK3H+DUz/ aH6fCagewi7n6H3Mo+9Gc3q6Zg== X-Google-Smtp-Source: ALg8bN6RgcUWbEbh9a4SFZ1h5WfPIFdO+ItUs6i5KQ7sEtGfnKecj7bcJ8NiyVmjvY76FaE34QqQDQ== X-Received: by 2002:adf:d112:: with SMTP id a18mr66534wri.17.1547494933858; Mon, 14 Jan 2019 11:42:13 -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 b7sm66779996wrs.47.2019.01.14.11.42.12 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 14 Jan 2019 11:42:13 -0800 (PST) From: Srinivas Kandagatla To: robh+dt@kernel.org, gregkh@linuxfoundation.org, arnd@arndb.de Cc: mark.rutland@arm.com, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, bjorn.andersson@linaro.org, bkumar@qti.qualcomm.com, linux-arm-msm@vger.kernel.org, thierry.escande@linaro.org, Srinivas Kandagatla Subject: [PATCH v3 1/5] misc: dt-bindings: Add Qualcomm Fastrpc bindings Date: Mon, 14 Jan 2019 19:41:08 +0000 Message-Id: <20190114194112.32567-2-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190114194112.32567-1-srinivas.kandagatla@linaro.org> References: <20190114194112.32567-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 --- .../devicetree/bindings/misc/qcom,fastrpc.txt | 84 +++++++++++++++++++ 1 file changed, 84 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..004e636b4133 --- /dev/null +++ b/Documentation/devicetree/bindings/misc/qcom,fastrpc.txt @@ -0,0 +1,84 @@ +Qualcomm Technologies, Inc. FastRPC Driver + +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. + +- 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 node represents compute context banks available +on the dsp. The name of the nodes are not important. The properties of these +nodes are defined by the individual bindings for the specific service +- All Compute context banks MUST contain the following property: + +- compatible: + Usage: required + Value type: + Definition: must be "qcom,fastrpc-compute-cb" + +- reg + Usage: required + Value type: + Definition: Context Bank ID. + +- secured: + Usage: Optional + Value type: + Defination: Indicating context bank is secured + +- 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"; + lable = "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>; + }; + ... + }; + }; +};