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: 155578 Delivered-To: patch@linaro.org Received: by 2002:a02:48:0:0:0:0:0 with SMTP id 69csp4040481jaa; Mon, 14 Jan 2019 11:42:21 -0800 (PST) X-Google-Smtp-Source: ALg8bN4oqqt8pYw6/6y4q0eCpa6BGKCPXIwOzKEpTMbG0we85nF/EO7UgDMV9Ju5tbbmlj/MNhxx X-Received: by 2002:a62:c711:: with SMTP id w17mr139169pfg.50.1547494941363; Mon, 14 Jan 2019 11:42:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547494941; cv=none; d=google.com; s=arc-20160816; b=Vi6ya4G37psSYkaEPfe0KttocRj5KOPgQsank4Wk3kvq0HLwIRunIfjxJKw1Lzt7a3 aBVgA7Iq9/TZ0PCo13vibmdFJOwv85FU5jsot08FuHEVCRjiVWvMOv6MHIp4iEyVzSq3 nRASI5sRQqCyxQYRCIG3cC0QGST4QCuQimBwmG86WQsRIybuXqUlm546rrld1dS+Qd75 6pjtjZylGGHufkX8QbC1dq3g7lNbswQ7y7xFWmstlXs4FzFP0oLTWDI1SBKXl67Ryf9J r0B8zXvh1X2J7OTHsv/fapWFQKfoZDVf4ViMPn+teUyamrkIzQ/WRTBo02HlP0I+EfBR NdjA== 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=SMVWf8S5qQu4nvxHW3aF7B34QEW9X1fPwQ6VU5Gu+DY=; b=PbXbJlHdLRedR+QqyEiw54R3/m5HYoWW0nojRNrKf/nlegoDFn5TGc/nRLDTz9uYfL 2gf5hgh7ucMj6JUyBxGRjXI6CknB6wnCSm1g4Cr8RU374sFaPELwA+mGwvlpdKs2ZuDY 0R3RdHc3OLapzXT/fbzaqGFDpUe+u+Z9qL7l/DiTDMCMN4w8vBPWjds/maU19Yoi7Lh5 r6akVS0+GF9XxkW4joG2PmeYSvfcY3dBvM9ZPeI6gYMFMYaFMastwOk9n6KY1XbviyVO 98yEeoQyiqnMQWYQ8MtmKjAhOEs5bwIvMXJTqn/tPi+wd+PVCaGQwGIt4WOzL5t+58Sf 8QDw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=k0x3W17S; 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=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 101si1185877pld.22.2019.01.14.11.42.20; Mon, 14 Jan 2019 11:42:21 -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=pass header.i=@linaro.org header.s=google header.b=k0x3W17S; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726863AbfANTmT (ORCPT + 15 others); 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-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 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 -- 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..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>; + }; + ... + }; + }; +};